2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for xf86-video-dummy 0.3.7.
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
94
*[\\/]* ) as_myself=$0 ;;
95
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99
test -z "$as_dir" && as_dir=.
100
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
111
if test ! -f "$as_myself"; then
112
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there. '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
# Use a proper internal environment variable to ensure we don't fall
138
# into an infinite loop, continuously re-executing ourselves.
139
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
_as_can_reexec=no; export _as_can_reexec;
141
# We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149
*v*x* | *x*v* ) as_opts=-vx ;;
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160
# We don't want this to propagate to other subprocesses.
161
{ _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
# is contrary to our usage. Disable this feature.
168
alias -g '\${1+\"\$@\"}'='\"\$@\"'
171
case \`(set -o) 2>/dev/null\` in #(
179
as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
exitcode=1; echo positional parameters were not saved.
195
test x\$exitcode = x0 || exit 1
197
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
test \$(( 1 + 1 )) = 2 || exit 1
203
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207
PATH=/empty FPATH=/empty; export PATH FPATH
208
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210
if (eval "$as_required") 2>/dev/null; then :
215
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223
test -z "$as_dir" && as_dir=.
227
for as_base in sh bash ksh sh5; do
228
# Try only shells that exist, to save several forks.
229
as_shell=$as_dir/$as_base
230
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232
CONFIG_SHELL=$as_shell as_have_required=yes
233
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243
CONFIG_SHELL=$SHELL as_have_required=yes
248
if test "x$CONFIG_SHELL" != x; then :
250
# We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258
*v*x* | *x*v* ) as_opts=-vx ;;
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270
if test x$as_have_required = xno; then :
271
$as_echo "$0: This script requires a shell more modern than all"
272
$as_echo "$0: the shells that I found on your system."
273
if test x${ZSH_VERSION+set} = xset ; then
274
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
277
$as_echo "$0: Please tell bug-autoconf@gnu.org and
278
$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279
$0: about your system, including any error possibly output
280
$0: before this message. Then install a modern shell, or
281
$0: manually run the script under such a shell if you do
288
SHELL=${CONFIG_SHELL-/bin/sh}
290
# Unset more variables known to interfere with behavior of common tools.
291
CLICOLOR_FORCE= GREP_OPTIONS=
292
unset CLICOLOR_FORCE GREP_OPTIONS
294
## --------------------- ##
295
## M4sh Shell Functions. ##
296
## --------------------- ##
299
# Portably unset VAR.
302
{ eval $1=; unset $1;}
306
# as_fn_set_status STATUS
307
# -----------------------
308
# Set $? to STATUS, without forking.
316
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326
# Create "$as_dir" as a directory, including parents if necessary.
331
-*) as_dir=./$as_dir;;
333
test -d "$as_dir" || eval $as_mkdir_p || {
337
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340
as_dirs="'$as_qdir' $as_dirs"
341
as_dir=`$as_dirname -- "$as_dir" ||
342
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343
X"$as_dir" : 'X\(//\)[^/]' \| \
344
X"$as_dir" : 'X\(//\)$' \| \
345
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346
$as_echo X"$as_dir" |
347
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364
test -d "$as_dir" && break
366
test -z "$as_dirs" || eval "mkdir $as_dirs"
367
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372
# as_fn_executable_p FILE
373
# -----------------------
374
# Test if FILE is an executable regular file.
375
as_fn_executable_p ()
377
test -f "$1" && test -x "$1"
378
} # as_fn_executable_p
379
# as_fn_append VAR VALUE
380
# ----------------------
381
# Append the text in VALUE to the end of the definition contained in VAR. Take
382
# advantage of any shell optimizations that allow amortized linear growth over
383
# repeated appends, instead of the typical quadratic growth present in naive
385
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386
eval 'as_fn_append ()
399
# Perform arithmetic evaluation on the ARGs, and store the result in the
400
# global $as_val. Take advantage of shells that can avoid forks. The arguments
401
# must be portable across $(()) and expr.
402
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410
as_val=`expr "$@" || test $? -eq 1`
415
# as_fn_error STATUS ERROR [LINENO LOG_FD]
416
# ----------------------------------------
417
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419
# script with STATUS, using 1 if that was 0.
422
as_status=$1; test $as_status -eq 0 && as_status=1
424
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427
$as_echo "$as_me: error: $2" >&2
428
as_fn_exit $as_status
431
if expr a : '\(a\)' >/dev/null 2>&1 &&
432
test "X`expr 00001 : '.*\(...\)'`" = X001; then
438
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450
as_me=`$as_basename -- "$0" ||
451
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452
X"$0" : 'X\(//\)$' \| \
453
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455
sed '/^.*\/\([^/][^/]*\)\/*$/{
469
# Avoid depending upon Character Ranges.
470
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473
as_cr_digits='0123456789'
474
as_cr_alnum=$as_cr_Letters$as_cr_digits
477
as_lineno_1=$LINENO as_lineno_1a=$LINENO
478
as_lineno_2=$LINENO as_lineno_2a=$LINENO
479
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497
chmod +x "$as_me.lineno" ||
498
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501
# already done that, so ensure we don't try to do so again and fall
502
# in an infinite loop. This has already happened in practice.
503
_as_can_reexec=no; export _as_can_reexec
504
# Don't try to exec as it changes $[0], causing all sort of problems
505
# (the dirname of $[0] is not the place where we might find the
506
# original and so on. Autoconf is especially sensitive to this).
508
# Exit status is that of the last command.
512
ECHO_C= ECHO_N= ECHO_T=
513
case `echo -n x` in #(((((
515
case `echo 'xy\c'` in
516
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
518
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525
rm -f conf$$ conf$$.exe conf$$.file
526
if test -d conf$$.dir; then
527
rm -f conf$$.dir/conf$$.file
530
mkdir conf$$.dir 2>/dev/null
532
if (echo >conf$$.file) 2>/dev/null; then
533
if ln -s conf$$.file conf$$ 2>/dev/null; then
535
# ... but there are two gotchas:
536
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538
# In both cases, we have to default to `cp -pR'.
539
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541
elif ln conf$$.file conf$$ 2>/dev/null; then
549
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550
rmdir conf$$.dir 2>/dev/null
552
if mkdir -p . 2>/dev/null; then
553
as_mkdir_p='mkdir -p "$as_dir"'
555
test -d ./-p && rmdir ./-p
560
as_executable_p=as_fn_executable_p
562
# Sed expression to map a string onto a valid CPP name.
563
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
# Sed expression to map a string onto a valid variable name.
566
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
SHELL=${CONFIG_SHELL-/bin/sh}
571
test -n "$DJDIR" || exec 7<&0 </dev/null
575
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576
# so uname gets run too.
577
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
ac_default_prefix=/usr/local
584
ac_config_libobj_dir=.
591
# Identity of this package.
592
PACKAGE_NAME='xf86-video-dummy'
593
PACKAGE_TARNAME='xf86-video-dummy'
594
PACKAGE_VERSION='0.3.7'
595
PACKAGE_STRING='xf86-video-dummy 0.3.7'
596
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
599
ac_unique_file="Makefile.am"
600
# Factoring default headers for most tests.
601
ac_includes_default="\
603
#ifdef HAVE_SYS_TYPES_H
604
# include <sys/types.h>
606
#ifdef HAVE_SYS_STAT_H
607
# include <sys/stat.h>
613
# ifdef HAVE_STDLIB_H
618
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623
#ifdef HAVE_STRINGS_H
624
# include <strings.h>
626
#ifdef HAVE_INTTYPES_H
627
# include <inttypes.h>
636
ac_subst_vars='am__EXEEXT_FALSE
717
MAINTAINER_MODE_FALSE
731
INSTALL_STRIP_PROGRAM
773
program_transform_name
786
enable_option_checking
788
enable_maintainer_mode
789
enable_dependency_tracking
790
enable_selective_werror
791
enable_strict_compilation
802
ac_precious_vars='build_alias
818
# Initialize some variables set by options.
820
ac_init_version=false
821
ac_unrecognized_opts=
823
# The variables have the same names as the options, with
824
# dashes changed to underlines.
832
program_transform_name=s,x,x,
840
# Installation directory options.
841
# These are left unexpanded so users can "make install exec_prefix=/foo"
842
# and all the variables that are supposed to be based on exec_prefix
843
# by default will actually change.
844
# Use braces instead of parens because sh, perl, etc. also accept them.
845
# (The list follows the same order as the GNU Coding Standards.)
846
bindir='${exec_prefix}/bin'
847
sbindir='${exec_prefix}/sbin'
848
libexecdir='${exec_prefix}/libexec'
849
datarootdir='${prefix}/share'
850
datadir='${datarootdir}'
851
sysconfdir='${prefix}/etc'
852
sharedstatedir='${prefix}/com'
853
localstatedir='${prefix}/var'
854
includedir='${prefix}/include'
855
oldincludedir='/usr/include'
856
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857
infodir='${datarootdir}/info'
862
libdir='${exec_prefix}/lib'
863
localedir='${datarootdir}/locale'
864
mandir='${datarootdir}/man'
870
# If the previous option needs an argument, assign it.
871
if test -n "$ac_prev"; then
872
eval $ac_prev=\$ac_option
878
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883
# Accept the important Cygnus configure options, so we can diagnose typos.
885
case $ac_dashdash$ac_option in
889
-bindir | --bindir | --bindi | --bind | --bin | --bi)
891
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894
-build | --build | --buil | --bui | --bu)
895
ac_prev=build_alias ;;
896
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
897
build_alias=$ac_optarg ;;
899
-cache-file | --cache-file | --cache-fil | --cache-fi \
900
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901
ac_prev=cache_file ;;
902
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904
cache_file=$ac_optarg ;;
907
cache_file=config.cache ;;
909
-datadir | --datadir | --datadi | --datad)
911
-datadir=* | --datadir=* | --datadi=* | --datad=*)
912
datadir=$ac_optarg ;;
914
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915
| --dataroo | --dataro | --datar)
916
ac_prev=datarootdir ;;
917
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919
datarootdir=$ac_optarg ;;
921
-disable-* | --disable-*)
922
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923
# Reject names that are not valid shell variable names.
924
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925
as_fn_error $? "invalid feature name: $ac_useropt"
926
ac_useropt_orig=$ac_useropt
927
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928
case $ac_user_opts in
932
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933
ac_unrecognized_sep=', ';;
935
eval enable_$ac_useropt=no ;;
937
-docdir | --docdir | --docdi | --doc | --do)
939
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947
-enable-* | --enable-*)
948
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949
# Reject names that are not valid shell variable names.
950
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951
as_fn_error $? "invalid feature name: $ac_useropt"
952
ac_useropt_orig=$ac_useropt
953
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954
case $ac_user_opts in
958
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959
ac_unrecognized_sep=', ';;
961
eval enable_$ac_useropt=\$ac_optarg ;;
963
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965
| --exec | --exe | --ex)
966
ac_prev=exec_prefix ;;
967
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969
| --exec=* | --exe=* | --ex=*)
970
exec_prefix=$ac_optarg ;;
972
-gas | --gas | --ga | --g)
973
# Obsolete; use --with-gas.
976
-help | --help | --hel | --he | -h)
978
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979
ac_init_help=recursive ;;
980
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981
ac_init_help=short ;;
983
-host | --host | --hos | --ho)
984
ac_prev=host_alias ;;
985
-host=* | --host=* | --hos=* | --ho=*)
986
host_alias=$ac_optarg ;;
988
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992
htmldir=$ac_optarg ;;
994
-includedir | --includedir | --includedi | --included | --include \
995
| --includ | --inclu | --incl | --inc)
996
ac_prev=includedir ;;
997
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998
| --includ=* | --inclu=* | --incl=* | --inc=*)
999
includedir=$ac_optarg ;;
1001
-infodir | --infodir | --infodi | --infod | --info | --inf)
1003
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004
infodir=$ac_optarg ;;
1006
-libdir | --libdir | --libdi | --libd)
1008
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1009
libdir=$ac_optarg ;;
1011
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012
| --libexe | --libex | --libe)
1013
ac_prev=libexecdir ;;
1014
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015
| --libexe=* | --libex=* | --libe=*)
1016
libexecdir=$ac_optarg ;;
1018
-localedir | --localedir | --localedi | --localed | --locale)
1019
ac_prev=localedir ;;
1020
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021
localedir=$ac_optarg ;;
1023
-localstatedir | --localstatedir | --localstatedi | --localstated \
1024
| --localstate | --localstat | --localsta | --localst | --locals)
1025
ac_prev=localstatedir ;;
1026
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028
localstatedir=$ac_optarg ;;
1030
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033
mandir=$ac_optarg ;;
1035
-nfp | --nfp | --nf)
1036
# Obsolete; use --without-fp.
1039
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040
| --no-cr | --no-c | -n)
1043
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049
| --oldin | --oldi | --old | --ol | --o)
1050
ac_prev=oldincludedir ;;
1051
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054
oldincludedir=$ac_optarg ;;
1056
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059
prefix=$ac_optarg ;;
1061
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1062
| --program-pre | --program-pr | --program-p)
1063
ac_prev=program_prefix ;;
1064
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1065
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066
program_prefix=$ac_optarg ;;
1068
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1069
| --program-suf | --program-su | --program-s)
1070
ac_prev=program_suffix ;;
1071
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1072
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073
program_suffix=$ac_optarg ;;
1075
-program-transform-name | --program-transform-name \
1076
| --program-transform-nam | --program-transform-na \
1077
| --program-transform-n | --program-transform- \
1078
| --program-transform | --program-transfor \
1079
| --program-transfo | --program-transf \
1080
| --program-trans | --program-tran \
1081
| --progr-tra | --program-tr | --program-t)
1082
ac_prev=program_transform_name ;;
1083
-program-transform-name=* | --program-transform-name=* \
1084
| --program-transform-nam=* | --program-transform-na=* \
1085
| --program-transform-n=* | --program-transform-=* \
1086
| --program-transform=* | --program-transfor=* \
1087
| --program-transfo=* | --program-transf=* \
1088
| --program-trans=* | --program-tran=* \
1089
| --progr-tra=* | --program-tr=* | --program-t=*)
1090
program_transform_name=$ac_optarg ;;
1092
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095
pdfdir=$ac_optarg ;;
1097
-psdir | --psdir | --psdi | --psd | --ps)
1099
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103
| -silent | --silent | --silen | --sile | --sil)
1106
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110
sbindir=$ac_optarg ;;
1112
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1113
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114
| --sharedst | --shareds | --shared | --share | --shar \
1116
ac_prev=sharedstatedir ;;
1117
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121
sharedstatedir=$ac_optarg ;;
1123
-site | --site | --sit)
1125
-site=* | --site=* | --sit=*)
1128
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131
srcdir=$ac_optarg ;;
1133
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134
| --syscon | --sysco | --sysc | --sys | --sy)
1135
ac_prev=sysconfdir ;;
1136
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138
sysconfdir=$ac_optarg ;;
1140
-target | --target | --targe | --targ | --tar | --ta | --t)
1141
ac_prev=target_alias ;;
1142
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143
target_alias=$ac_optarg ;;
1145
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1148
-version | --version | --versio | --versi | --vers | -V)
1149
ac_init_version=: ;;
1152
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153
# Reject names that are not valid shell variable names.
1154
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155
as_fn_error $? "invalid package name: $ac_useropt"
1156
ac_useropt_orig=$ac_useropt
1157
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158
case $ac_user_opts in
1162
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163
ac_unrecognized_sep=', ';;
1165
eval with_$ac_useropt=\$ac_optarg ;;
1167
-without-* | --without-*)
1168
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169
# Reject names that are not valid shell variable names.
1170
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171
as_fn_error $? "invalid package name: $ac_useropt"
1172
ac_useropt_orig=$ac_useropt
1173
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174
case $ac_user_opts in
1178
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179
ac_unrecognized_sep=', ';;
1181
eval with_$ac_useropt=no ;;
1184
# Obsolete; use --with-x.
1187
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188
| --x-incl | --x-inc | --x-in | --x-i)
1189
ac_prev=x_includes ;;
1190
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192
x_includes=$ac_optarg ;;
1194
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1195
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196
ac_prev=x_libraries ;;
1197
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199
x_libraries=$ac_optarg ;;
1201
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1202
Try \`$0 --help' for more information"
1206
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207
# Reject names that are not valid shell variable names.
1208
case $ac_envvar in #(
1209
'' | [0-9]* | *[!_$as_cr_alnum]* )
1210
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212
eval $ac_envvar=\$ac_optarg
1213
export $ac_envvar ;;
1216
# FIXME: should be removed in autoconf 3.0.
1217
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226
if test -n "$ac_prev"; then
1227
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228
as_fn_error $? "missing argument to $ac_option"
1231
if test -n "$ac_unrecognized_opts"; then
1232
case $enable_option_checking in
1234
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239
# Check all directory arguments for consistency.
1240
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241
datadir sysconfdir sharedstatedir localstatedir includedir \
1242
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243
libdir localedir mandir
1245
eval ac_val=\$$ac_var
1246
# Remove trailing slashes.
1249
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250
eval $ac_var=\$ac_val;;
1252
# Be sure to have absolute directory names.
1254
[\\/$]* | ?:[\\/]* ) continue;;
1255
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260
# There might be people who depend on the old broken behavior: `$host'
1261
# used to hold the argument of --host etc.
1262
# FIXME: To remove some day.
1265
target=$target_alias
1267
# FIXME: To remove some day.
1268
if test "x$host_alias" != x; then
1269
if test "x$build_alias" = x; then
1270
cross_compiling=maybe
1271
elif test "x$build_alias" != "x$host_alias"; then
1277
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
test "$silent" = yes && exec 6>/dev/null
1282
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283
ac_ls_di=`ls -di .` &&
1284
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285
as_fn_error $? "working directory cannot be determined"
1286
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287
as_fn_error $? "pwd does not report name of working directory"
1290
# Find the source files, if location was not specified.
1291
if test -z "$srcdir"; then
1292
ac_srcdir_defaulted=yes
1293
# Try the directory containing this script, then the parent directory.
1294
ac_confdir=`$as_dirname -- "$as_myself" ||
1295
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296
X"$as_myself" : 'X\(//\)[^/]' \| \
1297
X"$as_myself" : 'X\(//\)$' \| \
1298
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299
$as_echo X"$as_myself" |
1300
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318
if test ! -r "$srcdir/$ac_unique_file"; then
1322
ac_srcdir_defaulted=no
1324
if test ! -r "$srcdir/$ac_unique_file"; then
1325
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332
# When building in place, set srcdir=.
1333
if test "$ac_abs_confdir" = "$ac_pwd"; then
1336
# Remove unnecessary trailing slashes from srcdir.
1337
# Double slashes in file names in object file debugging info
1338
# mess up M-x gdb in Emacs.
1340
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342
for ac_var in $ac_precious_vars; do
1343
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344
eval ac_env_${ac_var}_value=\$${ac_var}
1345
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350
# Report the --help message.
1352
if test "$ac_init_help" = "long"; then
1353
# Omit some internal or obsolete options to make the list less imposing.
1354
# This message is too long to be a string in the A/UX 3.1 sh.
1356
\`configure' configures xf86-video-dummy 0.3.7 to adapt to many kinds of systems.
1358
Usage: $0 [OPTION]... [VAR=VALUE]...
1360
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361
VAR=VALUE. See below for descriptions of some of the useful variables.
1363
Defaults for the options are specified in brackets.
1366
-h, --help display this help and exit
1367
--help=short display options specific to this package
1368
--help=recursive display the short help of all the included packages
1369
-V, --version display version information and exit
1370
-q, --quiet, --silent do not print \`checking ...' messages
1371
--cache-file=FILE cache test results in FILE [disabled]
1372
-C, --config-cache alias for \`--cache-file=config.cache'
1373
-n, --no-create do not create output files
1374
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1376
Installation directories:
1377
--prefix=PREFIX install architecture-independent files in PREFIX
1378
[$ac_default_prefix]
1379
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382
By default, \`make install' will install all the files in
1383
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385
for instance \`--prefix=\$HOME'.
1387
For better control, use the options below.
1389
Fine tuning of the installation directories:
1390
--bindir=DIR user executables [EPREFIX/bin]
1391
--sbindir=DIR system admin executables [EPREFIX/sbin]
1392
--libexecdir=DIR program executables [EPREFIX/libexec]
1393
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396
--libdir=DIR object code libraries [EPREFIX/lib]
1397
--includedir=DIR C header files [PREFIX/include]
1398
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1399
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401
--infodir=DIR info documentation [DATAROOTDIR/info]
1402
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403
--mandir=DIR man documentation [DATAROOTDIR/man]
1404
--docdir=DIR documentation root
1405
[DATAROOTDIR/doc/xf86-video-dummy]
1406
--htmldir=DIR html documentation [DOCDIR]
1407
--dvidir=DIR dvi documentation [DOCDIR]
1408
--pdfdir=DIR pdf documentation [DOCDIR]
1409
--psdir=DIR ps documentation [DOCDIR]
1415
--program-prefix=PREFIX prepend PREFIX to installed program names
1416
--program-suffix=SUFFIX append SUFFIX to installed program names
1417
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
--build=BUILD configure for building on BUILD [guessed]
1421
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1425
if test -n "$ac_init_help"; then
1426
case $ac_init_help in
1427
short | recursive ) echo "Configuration of xf86-video-dummy 0.3.7:";;
1432
--disable-option-checking ignore unrecognized --enable/--with options
1433
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435
--enable-silent-rules less verbose build output (undo: "make V=1")
1436
--disable-silent-rules verbose build output (undo: "make V=0")
1437
--enable-maintainer-mode
1438
enable make rules and dependencies not useful (and
1439
sometimes confusing) to the casual installer
1440
--enable-dependency-tracking
1441
do not reject slow dependency extractors
1442
--disable-dependency-tracking
1443
speeds up one-time build
1444
--disable-selective-werror
1445
Turn off selective compiler errors. (default:
1447
--enable-strict-compilation
1448
Enable all warnings from compiler and make them
1449
errors (default: disabled)
1450
--enable-static[=PKGS] build static libraries [default=no]
1451
--enable-shared[=PKGS] build shared libraries [default=yes]
1452
--enable-fast-install[=PKGS]
1453
optimize for fast installation [default=yes]
1454
--disable-libtool-lock avoid locking (might break parallel builds)
1455
--disable-dga Build DGA extension (default: yes)
1458
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1462
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1463
--with-sysroot=DIR Search for dependent libraries within DIR
1464
(or the compiler's sysroot if not specified).
1465
--with-xorg-module-dir=DIR
1467
Some influential environment variables:
1468
CC C compiler command
1469
CFLAGS C compiler flags
1470
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471
nonstandard directory <lib dir>
1472
LIBS libraries to pass to the linker, e.g. -l<library>
1473
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1474
you have headers in a nonstandard directory <include dir>
1476
PKG_CONFIG path to pkg-config utility
1478
directories to add to pkg-config's search path
1480
path overriding pkg-config's built-in search path
1481
XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1482
XORG_LIBS linker flags for XORG, overriding pkg-config
1484
Use these variables to override the choices made by `configure' or to help
1485
it to find libraries and programs with nonstandard names/locations.
1487
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1492
if test "$ac_init_help" = "recursive"; then
1493
# If there are subdirs, report their specific --help.
1494
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495
test -d "$ac_dir" ||
1496
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504
# A ".." for each directory in $ac_dir_suffix.
1505
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506
case $ac_top_builddir_sub in
1507
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511
ac_abs_top_builddir=$ac_pwd
1512
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513
# for backward compatibility:
1514
ac_top_builddir=$ac_top_build_prefix
1517
.) # We are building in place.
1519
ac_top_srcdir=$ac_top_builddir_sub
1520
ac_abs_top_srcdir=$ac_pwd ;;
1521
[\\/]* | ?:[\\/]* ) # Absolute name.
1522
ac_srcdir=$srcdir$ac_dir_suffix;
1523
ac_top_srcdir=$srcdir
1524
ac_abs_top_srcdir=$srcdir ;;
1526
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527
ac_top_srcdir=$ac_top_build_prefix$srcdir
1528
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
cd "$ac_dir" || { ac_status=$?; continue; }
1533
# Check for guested configure.
1534
if test -f "$ac_srcdir/configure.gnu"; then
1536
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537
elif test -f "$ac_srcdir/configure"; then
1539
$SHELL "$ac_srcdir/configure" --help=recursive
1541
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543
cd "$ac_pwd" || { ac_status=$?; break; }
1547
test -n "$ac_init_help" && exit $ac_status
1548
if $ac_init_version; then
1550
xf86-video-dummy configure 0.3.7
1551
generated by GNU Autoconf 2.69
1553
Copyright (C) 2012 Free Software Foundation, Inc.
1554
This configure script is free software; the Free Software Foundation
1555
gives unlimited permission to copy, distribute and modify it.
1560
## ------------------------ ##
1561
## Autoconf initialization. ##
1562
## ------------------------ ##
1564
# ac_fn_c_try_compile LINENO
1565
# --------------------------
1566
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1567
ac_fn_c_try_compile ()
1569
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570
rm -f conftest.$ac_objext
1571
if { { ac_try="$ac_compile"
1573
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574
*) ac_try_echo=$ac_try;;
1576
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577
$as_echo "$ac_try_echo"; } >&5
1578
(eval "$ac_compile") 2>conftest.err
1580
if test -s conftest.err; then
1581
grep -v '^ *+' conftest.err >conftest.er1
1582
cat conftest.er1 >&5
1583
mv -f conftest.er1 conftest.err
1585
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586
test $ac_status = 0; } && {
1587
test -z "$ac_c_werror_flag" ||
1588
test ! -s conftest.err
1589
} && test -s conftest.$ac_objext; then :
1592
$as_echo "$as_me: failed program was:" >&5
1593
sed 's/^/| /' conftest.$ac_ext >&5
1597
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598
as_fn_set_status $ac_retval
1600
} # ac_fn_c_try_compile
1602
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1603
# ---------------------------------------------
1604
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1606
ac_fn_c_check_decl ()
1608
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609
as_decl_name=`echo $2|sed 's/ *(.*//'`
1610
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1612
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1613
if eval \${$3+:} false; then :
1614
$as_echo_n "(cached) " >&6
1616
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617
/* end confdefs.h. */
1622
#ifndef $as_decl_name
1624
(void) $as_decl_use;
1626
(void) $as_decl_name;
1634
if ac_fn_c_try_compile "$LINENO"; then :
1639
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643
$as_echo "$ac_res" >&6; }
1644
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646
} # ac_fn_c_check_decl
1648
# ac_fn_c_try_cpp LINENO
1649
# ----------------------
1650
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1653
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654
if { { ac_try="$ac_cpp conftest.$ac_ext"
1656
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657
*) ac_try_echo=$ac_try;;
1659
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660
$as_echo "$ac_try_echo"; } >&5
1661
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663
if test -s conftest.err; then
1664
grep -v '^ *+' conftest.err >conftest.er1
1665
cat conftest.er1 >&5
1666
mv -f conftest.er1 conftest.err
1668
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669
test $ac_status = 0; } > conftest.i && {
1670
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671
test ! -s conftest.err
1675
$as_echo "$as_me: failed program was:" >&5
1676
sed 's/^/| /' conftest.$ac_ext >&5
1680
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681
as_fn_set_status $ac_retval
1685
# ac_fn_c_try_run LINENO
1686
# ----------------------
1687
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688
# that executables *can* be run.
1691
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692
if { { ac_try="$ac_link"
1694
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695
*) ac_try_echo=$ac_try;;
1697
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698
$as_echo "$ac_try_echo"; } >&5
1699
(eval "$ac_link") 2>&5
1701
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703
{ { case "(($ac_try" in
1704
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705
*) ac_try_echo=$ac_try;;
1707
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708
$as_echo "$ac_try_echo"; } >&5
1709
(eval "$ac_try") 2>&5
1711
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712
test $ac_status = 0; }; }; then :
1715
$as_echo "$as_me: program exited with status $ac_status" >&5
1716
$as_echo "$as_me: failed program was:" >&5
1717
sed 's/^/| /' conftest.$ac_ext >&5
1719
ac_retval=$ac_status
1721
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723
as_fn_set_status $ac_retval
1727
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728
# -------------------------------------------------------
1729
# Tests whether HEADER exists and can be compiled using the include files in
1730
# INCLUDES, setting the cache variable VAR accordingly.
1731
ac_fn_c_check_header_compile ()
1733
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735
$as_echo_n "checking for $2... " >&6; }
1736
if eval \${$3+:} false; then :
1737
$as_echo_n "(cached) " >&6
1739
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740
/* end confdefs.h. */
1744
if ac_fn_c_try_compile "$LINENO"; then :
1749
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753
$as_echo "$ac_res" >&6; }
1754
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
} # ac_fn_c_check_header_compile
1758
# ac_fn_c_try_link LINENO
1759
# -----------------------
1760
# Try to link conftest.$ac_ext, and return whether this succeeded.
1763
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764
rm -f conftest.$ac_objext conftest$ac_exeext
1765
if { { ac_try="$ac_link"
1767
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768
*) ac_try_echo=$ac_try;;
1770
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771
$as_echo "$ac_try_echo"; } >&5
1772
(eval "$ac_link") 2>conftest.err
1774
if test -s conftest.err; then
1775
grep -v '^ *+' conftest.err >conftest.er1
1776
cat conftest.er1 >&5
1777
mv -f conftest.er1 conftest.err
1779
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780
test $ac_status = 0; } && {
1781
test -z "$ac_c_werror_flag" ||
1782
test ! -s conftest.err
1783
} && test -s conftest$ac_exeext && {
1784
test "$cross_compiling" = yes ||
1785
test -x conftest$ac_exeext
1789
$as_echo "$as_me: failed program was:" >&5
1790
sed 's/^/| /' conftest.$ac_ext >&5
1794
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1795
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1796
# interfere with the next link command; also delete a directory that is
1797
# left behind by Apple's compiler. We do this before executing the actions.
1798
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
as_fn_set_status $ac_retval
1802
} # ac_fn_c_try_link
1804
# ac_fn_c_check_func LINENO FUNC VAR
1805
# ----------------------------------
1806
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1807
ac_fn_c_check_func ()
1809
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811
$as_echo_n "checking for $2... " >&6; }
1812
if eval \${$3+:} false; then :
1813
$as_echo_n "(cached) " >&6
1815
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816
/* end confdefs.h. */
1817
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1818
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1819
#define $2 innocuous_$2
1821
/* System header to define __stub macros and hopefully few prototypes,
1822
which can conflict with char $2 (); below.
1823
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1824
<limits.h> exists even on freestanding compilers. */
1827
# include <limits.h>
1829
# include <assert.h>
1834
/* Override any GCC internal prototype to avoid an error.
1835
Use char because int might match the return type of a GCC
1836
builtin and then its argument prototype would still apply. */
1841
/* The GNU C library defines this for functions which it implements
1842
to always fail with ENOSYS. Some functions are actually named
1843
something starting with __ and the normal name is an alias. */
1844
#if defined __stub_$2 || defined __stub___$2
1856
if ac_fn_c_try_link "$LINENO"; then :
1861
rm -f core conftest.err conftest.$ac_objext \
1862
conftest$ac_exeext conftest.$ac_ext
1865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866
$as_echo "$ac_res" >&6; }
1867
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
} # ac_fn_c_check_func
1870
cat >config.log <<_ACEOF
1871
This file contains any messages produced by compilers while
1872
running configure, to aid debugging if configure makes a mistake.
1874
It was created by xf86-video-dummy $as_me 0.3.7, which was
1875
generated by GNU Autoconf 2.69. Invocation command line was
1887
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1888
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1889
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1890
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1891
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1894
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1896
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1897
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1898
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1899
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1900
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1901
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1902
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1906
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910
test -z "$as_dir" && as_dir=.
1911
$as_echo "PATH: $as_dir"
1927
# Keep a trace of the command line.
1928
# Strip out --no-create and --no-recursion so they do not pile up.
1929
# Strip out --silent because we don't want to record it for future runs.
1930
# Also quote any args containing shell meta-characters.
1931
# Make two passes to allow for proper duplicate-argument suppression.
1935
ac_must_keep_next=false
1941
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1942
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1943
| -silent | --silent | --silen | --sile | --sil)
1946
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1949
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951
as_fn_append ac_configure_args1 " '$ac_arg'"
1952
if test $ac_must_keep_next = true; then
1953
ac_must_keep_next=false # Got value, back to normal.
1956
*=* | --config-cache | -C | -disable-* | --disable-* \
1957
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1958
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1959
| -with-* | --with-* | -without-* | --without-* | --x)
1960
case "$ac_configure_args0 " in
1961
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1964
-* ) ac_must_keep_next=true ;;
1967
as_fn_append ac_configure_args " '$ac_arg'"
1972
{ ac_configure_args0=; unset ac_configure_args0;}
1973
{ ac_configure_args1=; unset ac_configure_args1;}
1975
# When interrupted or exit'd, cleanup temporary files, and complete
1976
# config.log. We remove comments because anyway the quotes in there
1977
# would cause problems or look ugly.
1978
# WARNING: Use '\'' to represent an apostrophe within the trap.
1979
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1980
trap 'exit_status=$?
1981
# Save into config.log some information that might help in debugging.
1985
$as_echo "## ---------------- ##
1986
## Cache variables. ##
1987
## ---------------- ##"
1989
# The following way of writing the cache mishandles newlines in values,
1991
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1992
eval ac_val=\$$ac_var
1996
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1997
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2000
_ | IFS | as_nl) ;; #(
2001
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2002
*) { eval $ac_var=; unset $ac_var;} ;;
2007
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2008
*${as_nl}ac_space=\ *)
2010
"s/'\''/'\''\\\\'\'''\''/g;
2011
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2014
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2021
$as_echo "## ----------------- ##
2022
## Output variables. ##
2023
## ----------------- ##"
2025
for ac_var in $ac_subst_vars
2027
eval ac_val=\$$ac_var
2029
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031
$as_echo "$ac_var='\''$ac_val'\''"
2035
if test -n "$ac_subst_files"; then
2036
$as_echo "## ------------------- ##
2037
## File substitutions. ##
2038
## ------------------- ##"
2040
for ac_var in $ac_subst_files
2042
eval ac_val=\$$ac_var
2044
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046
$as_echo "$ac_var='\''$ac_val'\''"
2051
if test -s confdefs.h; then
2052
$as_echo "## ----------- ##
2059
test "$ac_signal" != 0 &&
2060
$as_echo "$as_me: caught signal $ac_signal"
2061
$as_echo "$as_me: exit $exit_status"
2063
rm -f core *.core core.conftest.* &&
2064
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2067
for ac_signal in 1 2 13 15; do
2068
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2072
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2073
rm -f -r conftest* confdefs.h
2075
$as_echo "/* confdefs.h */" > confdefs.h
2077
# Predefined preprocessor variables.
2079
cat >>confdefs.h <<_ACEOF
2080
#define PACKAGE_NAME "$PACKAGE_NAME"
2083
cat >>confdefs.h <<_ACEOF
2084
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2087
cat >>confdefs.h <<_ACEOF
2088
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2091
cat >>confdefs.h <<_ACEOF
2092
#define PACKAGE_STRING "$PACKAGE_STRING"
2095
cat >>confdefs.h <<_ACEOF
2096
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2099
cat >>confdefs.h <<_ACEOF
2100
#define PACKAGE_URL "$PACKAGE_URL"
2104
# Let the site file select an alternate cache file if it wants to.
2105
# Prefer an explicitly selected file to automatically selected ones.
2108
if test -n "$CONFIG_SITE"; then
2109
# We do not want a PATH search for config.site.
2110
case $CONFIG_SITE in #((
2111
-*) ac_site_file1=./$CONFIG_SITE;;
2112
*/*) ac_site_file1=$CONFIG_SITE;;
2113
*) ac_site_file1=./$CONFIG_SITE;;
2115
elif test "x$prefix" != xNONE; then
2116
ac_site_file1=$prefix/share/config.site
2117
ac_site_file2=$prefix/etc/config.site
2119
ac_site_file1=$ac_default_prefix/share/config.site
2120
ac_site_file2=$ac_default_prefix/etc/config.site
2122
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2124
test "x$ac_site_file" = xNONE && continue
2125
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2126
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2127
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2128
sed 's/^/| /' "$ac_site_file" >&5
2130
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132
as_fn_error $? "failed to load site script $ac_site_file
2133
See \`config.log' for more details" "$LINENO" 5; }
2137
if test -r "$cache_file"; then
2138
# Some versions of bash will fail to source /dev/null (special files
2139
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2140
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2141
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2142
$as_echo "$as_me: loading cache $cache_file" >&6;}
2144
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2145
*) . "./$cache_file";;
2149
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2150
$as_echo "$as_me: creating cache $cache_file" >&6;}
2154
# Check that the precious variables saved in the cache have kept the same
2156
ac_cache_corrupted=false
2157
for ac_var in $ac_precious_vars; do
2158
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2159
eval ac_new_set=\$ac_env_${ac_var}_set
2160
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2161
eval ac_new_val=\$ac_env_${ac_var}_value
2162
case $ac_old_set,$ac_new_set in
2164
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2165
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2166
ac_cache_corrupted=: ;;
2168
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2169
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2170
ac_cache_corrupted=: ;;
2173
if test "x$ac_old_val" != "x$ac_new_val"; then
2174
# differences in whitespace do not lead to failure.
2175
ac_old_val_w=`echo x $ac_old_val`
2176
ac_new_val_w=`echo x $ac_new_val`
2177
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2178
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2179
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2180
ac_cache_corrupted=:
2182
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2183
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2184
eval $ac_var=\$ac_old_val
2186
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2187
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2188
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2189
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2192
# Pass precious variables to config.status.
2193
if test "$ac_new_set" = set; then
2195
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2196
*) ac_arg=$ac_var=$ac_new_val ;;
2198
case " $ac_configure_args " in
2199
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2200
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2204
if $ac_cache_corrupted; then
2205
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2208
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2209
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2211
## -------------------- ##
2212
## Main body of script. ##
2213
## -------------------- ##
2216
ac_cpp='$CPP $CPPFLAGS'
2217
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223
ac_config_headers="$ac_config_headers config.h"
2226
for ac_dir in . "$srcdir"/.; do
2227
if test -f "$ac_dir/install-sh"; then
2229
ac_install_sh="$ac_aux_dir/install-sh -c"
2231
elif test -f "$ac_dir/install.sh"; then
2233
ac_install_sh="$ac_aux_dir/install.sh -c"
2235
elif test -f "$ac_dir/shtool"; then
2237
ac_install_sh="$ac_aux_dir/shtool install -c"
2241
if test -z "$ac_aux_dir"; then
2242
as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2245
# These three variables are undocumented and unsupported,
2246
# and are intended to be withdrawn in a future Autoconf release.
2247
# They can cause serious problems if a builder's source tree is in a directory
2248
# whose full name contains unusual characters.
2249
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2250
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2251
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2255
# Initialize Automake
2256
am__api_version='1.13'
2258
# Find a good install program. We prefer a C program (faster),
2259
# so one script is as good as another. But avoid the broken or
2260
# incompatible versions:
2261
# SysV /etc/install, /usr/sbin/install
2262
# SunOS /usr/etc/install
2263
# IRIX /sbin/install
2265
# AmigaOS /C/install, which installs bootblocks on floppy discs
2266
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2267
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2268
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2269
# OS/2's system install, which has a completely different semantic
2270
# ./install, which can be erroneously created by make from ./install.sh.
2271
# Reject install programs that cannot install multiple files.
2272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2273
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2274
if test -z "$INSTALL"; then
2275
if ${ac_cv_path_install+:} false; then :
2276
$as_echo_n "(cached) " >&6
2278
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282
test -z "$as_dir" && as_dir=.
2283
# Account for people who put trailing slashes in PATH elements.
2284
case $as_dir/ in #((
2285
./ | .// | /[cC]/* | \
2286
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2287
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2290
# OSF1 and SCO ODT 3.0 have their own names for install.
2291
# Don't use installbsd from OSF since it installs stuff as root
2293
for ac_prog in ginstall scoinst install; do
2294
for ac_exec_ext in '' $ac_executable_extensions; do
2295
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2296
if test $ac_prog = install &&
2297
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2298
# AIX install. It has an incompatible calling convention.
2300
elif test $ac_prog = install &&
2301
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2302
# program-specific install script used by HP pwplus--don't use.
2305
rm -rf conftest.one conftest.two conftest.dir
2306
echo one > conftest.one
2307
echo two > conftest.two
2309
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2310
test -s conftest.one && test -s conftest.two &&
2311
test -s conftest.dir/conftest.one &&
2312
test -s conftest.dir/conftest.two
2314
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2327
rm -rf conftest.one conftest.two conftest.dir
2330
if test "${ac_cv_path_install+set}" = set; then
2331
INSTALL=$ac_cv_path_install
2333
# As a last resort, use the slow shell script. Don't cache a
2334
# value for INSTALL within a source directory, because that will
2335
# break other packages using the cache if that directory is
2336
# removed, or if the value is a relative name.
2337
INSTALL=$ac_install_sh
2340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2341
$as_echo "$INSTALL" >&6; }
2343
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2344
# It thinks the first close brace ends the variable substitution.
2345
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2347
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2349
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2352
$as_echo_n "checking whether build environment is sane... " >&6; }
2353
# Reject unsafe characters in $srcdir or the absolute working directory
2354
# name. Accept space and tab only in the latter.
2358
*[\\\"\#\$\&\'\`$am_lf]*)
2359
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2362
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2363
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2366
# Do 'set' in a subshell so we don't clobber the current shell's
2367
# arguments. Must try -L first in case configure is actually a
2368
# symlink; some systems play weird games with the mod time of symlinks
2369
# (eg FreeBSD returns the mod time of the symlink's containing
2373
for am_try in 1 2; do
2374
echo "timestamp, slept: $am_has_slept" > conftest.file
2375
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2376
if test "$*" = "X"; then
2378
set X `ls -t "$srcdir/configure" conftest.file`
2380
if test "$*" != "X $srcdir/configure conftest.file" \
2381
&& test "$*" != "X conftest.file $srcdir/configure"; then
2383
# If neither matched, then we have a broken ls. This can happen
2384
# if, for instance, CONFIG_SHELL is bash and it inherits a
2385
# broken ls alias from the environment. This has actually
2386
# happened. Such a system could not be considered "sane".
2387
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2388
alias in your environment" "$LINENO" 5
2390
if test "$2" = conftest.file || test $am_try -eq 2; then
2397
test "$2" = conftest.file
2403
as_fn_error $? "newly created file is older than distributed files!
2404
Check your system clock" "$LINENO" 5
2406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2407
$as_echo "yes" >&6; }
2408
# If we didn't sleep, we still need to ensure time stamps of config.status and
2409
# generated files are strictly newer.
2411
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2418
test "$program_prefix" != NONE &&
2419
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2420
# Use a double $ so make ignores it.
2421
test "$program_suffix" != NONE &&
2422
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2423
# Double any \ or $.
2424
# By default was `s,x,x', remove it if useless.
2425
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2426
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2428
# expand $ac_aux_dir to an absolute path
2429
am_aux_dir=`cd $ac_aux_dir && pwd`
2431
if test x"${MISSING+set}" != xset; then
2434
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2436
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2439
# Use eval to expand $SHELL
2440
if eval "$MISSING --is-lightweight"; then
2441
am_missing_run="$MISSING "
2444
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2445
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2448
if test x"${install_sh}" != xset; then
2451
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2453
install_sh="\${SHELL} $am_aux_dir/install-sh"
2457
# Installed binaries are usually stripped using 'strip' when the user
2458
# run "make install-strip". However 'strip' might not be the right
2459
# tool to use in cross-compilation environments, therefore Automake
2460
# will honor the 'STRIP' environment variable to overrule this program.
2461
if test "$cross_compiling" != no; then
2462
if test -n "$ac_tool_prefix"; then
2463
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2464
set dummy ${ac_tool_prefix}strip; ac_word=$2
2465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466
$as_echo_n "checking for $ac_word... " >&6; }
2467
if ${ac_cv_prog_STRIP+:} false; then :
2468
$as_echo_n "(cached) " >&6
2470
if test -n "$STRIP"; then
2471
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477
test -z "$as_dir" && as_dir=.
2478
for ac_exec_ext in '' $ac_executable_extensions; do
2479
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2480
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2481
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490
STRIP=$ac_cv_prog_STRIP
2491
if test -n "$STRIP"; then
2492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2493
$as_echo "$STRIP" >&6; }
2495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496
$as_echo "no" >&6; }
2501
if test -z "$ac_cv_prog_STRIP"; then
2503
# Extract the first word of "strip", so it can be a program name with args.
2504
set dummy strip; ac_word=$2
2505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506
$as_echo_n "checking for $ac_word... " >&6; }
2507
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2508
$as_echo_n "(cached) " >&6
2510
if test -n "$ac_ct_STRIP"; then
2511
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517
test -z "$as_dir" && as_dir=.
2518
for ac_exec_ext in '' $ac_executable_extensions; do
2519
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520
ac_cv_prog_ac_ct_STRIP="strip"
2521
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2531
if test -n "$ac_ct_STRIP"; then
2532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2533
$as_echo "$ac_ct_STRIP" >&6; }
2535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536
$as_echo "no" >&6; }
2539
if test "x$ac_ct_STRIP" = x; then
2542
case $cross_compiling:$ac_tool_warned in
2544
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2545
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2546
ac_tool_warned=yes ;;
2551
STRIP="$ac_cv_prog_STRIP"
2555
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2558
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2559
if test -z "$MKDIR_P"; then
2560
if ${ac_cv_path_mkdir+:} false; then :
2561
$as_echo_n "(cached) " >&6
2563
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2567
test -z "$as_dir" && as_dir=.
2568
for ac_prog in mkdir gmkdir; do
2569
for ac_exec_ext in '' $ac_executable_extensions; do
2570
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2571
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2572
'mkdir (GNU coreutils) '* | \
2573
'mkdir (coreutils) '* | \
2574
'mkdir (fileutils) '4.1*)
2575
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2585
test -d ./--version && rmdir ./--version
2586
if test "${ac_cv_path_mkdir+set}" = set; then
2587
MKDIR_P="$ac_cv_path_mkdir -p"
2589
# As a last resort, use the slow shell script. Don't cache a
2590
# value for MKDIR_P within a source directory, because that will
2591
# break other packages using the cache if that directory is
2592
# removed, or if the value is a relative name.
2593
MKDIR_P="$ac_install_sh -d"
2596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2597
$as_echo "$MKDIR_P" >&6; }
2599
for ac_prog in gawk mawk nawk awk
2601
# Extract the first word of "$ac_prog", so it can be a program name with args.
2602
set dummy $ac_prog; ac_word=$2
2603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2604
$as_echo_n "checking for $ac_word... " >&6; }
2605
if ${ac_cv_prog_AWK+:} false; then :
2606
$as_echo_n "(cached) " >&6
2608
if test -n "$AWK"; then
2609
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615
test -z "$as_dir" && as_dir=.
2616
for ac_exec_ext in '' $ac_executable_extensions; do
2617
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2618
ac_cv_prog_AWK="$ac_prog"
2619
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629
if test -n "$AWK"; then
2630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2631
$as_echo "$AWK" >&6; }
2633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634
$as_echo "no" >&6; }
2638
test -n "$AWK" && break
2641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2642
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2644
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2645
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2646
$as_echo_n "(cached) " >&6
2648
cat >conftest.make <<\_ACEOF
2651
@echo '@@@%%%=$(MAKE)=@@@%%%'
2653
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2654
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2656
eval ac_cv_prog_make_${ac_make}_set=yes;;
2658
eval ac_cv_prog_make_${ac_make}_set=no;;
2662
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2664
$as_echo "yes" >&6; }
2667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668
$as_echo "no" >&6; }
2669
SET_MAKE="MAKE=${MAKE-make}"
2672
rm -rf .tst 2>/dev/null
2673
mkdir .tst 2>/dev/null
2674
if test -d .tst; then
2679
rmdir .tst 2>/dev/null
2681
# Check whether --enable-silent-rules was given.
2682
if test "${enable_silent_rules+set}" = set; then :
2683
enableval=$enable_silent_rules;
2686
case $enable_silent_rules in # (((
2687
yes) AM_DEFAULT_VERBOSITY=0;;
2688
no) AM_DEFAULT_VERBOSITY=1;;
2689
*) AM_DEFAULT_VERBOSITY=1;;
2691
am_make=${MAKE-make}
2692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2693
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2694
if ${am_cv_make_support_nested_variables+:} false; then :
2695
$as_echo_n "(cached) " >&6
2697
if $as_echo 'TRUE=$(BAR$(V))
2703
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2704
am_cv_make_support_nested_variables=yes
2706
am_cv_make_support_nested_variables=no
2709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2710
$as_echo "$am_cv_make_support_nested_variables" >&6; }
2711
if test $am_cv_make_support_nested_variables = yes; then
2713
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2715
AM_V=$AM_DEFAULT_VERBOSITY
2716
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2720
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2721
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2722
# is not polluted with repeated "-I."
2723
am__isrc=' -I$(srcdir)'
2724
# test to see if srcdir already configured
2725
if test -f $srcdir/config.status; then
2726
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2730
# test whether we have cygpath
2731
if test -z "$CYGPATH_W"; then
2732
if (cygpath --version) >/dev/null 2>/dev/null; then
2733
CYGPATH_W='cygpath -w'
2740
# Define the identity of the package.
2741
PACKAGE='xf86-video-dummy'
2745
cat >>confdefs.h <<_ACEOF
2746
#define PACKAGE "$PACKAGE"
2750
cat >>confdefs.h <<_ACEOF
2751
#define VERSION "$VERSION"
2754
# Some tools Automake needs.
2756
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2759
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2762
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2765
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2768
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2770
# For better backward compatibility. To be removed once Automake 1.9.x
2771
# dies out for good. For more background, see:
2772
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2773
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2774
mkdir_p='$(MKDIR_P)'
2776
# We need awk for the "check" target. The system "awk" is bad on
2778
# Always define AMTAR for backward compatibility. Yes, it's still used
2779
# in the wild :-( We should find a proper way to deprecate it ...
2783
# We'll loop over all known methods to create a tar archive until one works.
2784
_am_tools='gnutar pax cpio none'
2786
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2795
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2796
# Check whether --enable-maintainer-mode was given.
2797
if test "${enable_maintainer_mode+set}" = set; then :
2798
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2800
USE_MAINTAINER_MODE=no
2803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2804
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2805
if test $USE_MAINTAINER_MODE = yes; then
2806
MAINTAINER_MODE_TRUE=
2807
MAINTAINER_MODE_FALSE='#'
2809
MAINTAINER_MODE_TRUE='#'
2810
MAINTAINER_MODE_FALSE=
2813
MAINT=$MAINTAINER_MODE_TRUE
2817
# Require xorg-macros: XORG_DEFAULT_OPTIONS
2829
DEPDIR="${am__leading_dot}deps"
2831
ac_config_commands="$ac_config_commands depfiles"
2834
am_make=${MAKE-make}
2835
cat > confinc << 'END'
2837
@echo this is the am__doit target
2840
# If we don't find an include directive, just comment out the code.
2841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2842
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2846
# First try GNU make style include.
2847
echo "include confinc" > confmf
2848
# Ignore all kinds of additional output from 'make'.
2849
case `$am_make -s -f confmf 2> /dev/null` in #(
2850
*the\ am__doit\ target*)
2856
# Now try BSD make style include.
2857
if test "$am__include" = "#"; then
2858
echo '.include "confinc"' > confmf
2859
case `$am_make -s -f confmf 2> /dev/null` in #(
2860
*the\ am__doit\ target*)
2861
am__include=.include
2869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2870
$as_echo "$_am_result" >&6; }
2871
rm -f confinc confmf
2873
# Check whether --enable-dependency-tracking was given.
2874
if test "${enable_dependency_tracking+set}" = set; then :
2875
enableval=$enable_dependency_tracking;
2878
if test "x$enable_dependency_tracking" != xno; then
2879
am_depcomp="$ac_aux_dir/depcomp"
2883
if test "x$enable_dependency_tracking" != xno; then
2893
ac_cpp='$CPP $CPPFLAGS'
2894
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2895
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2896
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2897
if test -n "$ac_tool_prefix"; then
2898
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2899
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2900
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901
$as_echo_n "checking for $ac_word... " >&6; }
2902
if ${ac_cv_prog_CC+:} false; then :
2903
$as_echo_n "(cached) " >&6
2905
if test -n "$CC"; then
2906
ac_cv_prog_CC="$CC" # Let the user override the test.
2908
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912
test -z "$as_dir" && as_dir=.
2913
for ac_exec_ext in '' $ac_executable_extensions; do
2914
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2916
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926
if test -n "$CC"; then
2927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928
$as_echo "$CC" >&6; }
2930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931
$as_echo "no" >&6; }
2936
if test -z "$ac_cv_prog_CC"; then
2938
# Extract the first word of "gcc", so it can be a program name with args.
2939
set dummy gcc; ac_word=$2
2940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941
$as_echo_n "checking for $ac_word... " >&6; }
2942
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2943
$as_echo_n "(cached) " >&6
2945
if test -n "$ac_ct_CC"; then
2946
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2948
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952
test -z "$as_dir" && as_dir=.
2953
for ac_exec_ext in '' $ac_executable_extensions; do
2954
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955
ac_cv_prog_ac_ct_CC="gcc"
2956
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2966
if test -n "$ac_ct_CC"; then
2967
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2968
$as_echo "$ac_ct_CC" >&6; }
2970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971
$as_echo "no" >&6; }
2974
if test "x$ac_ct_CC" = x; then
2977
case $cross_compiling:$ac_tool_warned in
2979
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2980
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2981
ac_tool_warned=yes ;;
2989
if test -z "$CC"; then
2990
if test -n "$ac_tool_prefix"; then
2991
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2992
set dummy ${ac_tool_prefix}cc; ac_word=$2
2993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994
$as_echo_n "checking for $ac_word... " >&6; }
2995
if ${ac_cv_prog_CC+:} false; then :
2996
$as_echo_n "(cached) " >&6
2998
if test -n "$CC"; then
2999
ac_cv_prog_CC="$CC" # Let the user override the test.
3001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005
test -z "$as_dir" && as_dir=.
3006
for ac_exec_ext in '' $ac_executable_extensions; do
3007
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008
ac_cv_prog_CC="${ac_tool_prefix}cc"
3009
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019
if test -n "$CC"; then
3020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021
$as_echo "$CC" >&6; }
3023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024
$as_echo "no" >&6; }
3030
if test -z "$CC"; then
3031
# Extract the first word of "cc", so it can be a program name with args.
3032
set dummy cc; ac_word=$2
3033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034
$as_echo_n "checking for $ac_word... " >&6; }
3035
if ${ac_cv_prog_CC+:} false; then :
3036
$as_echo_n "(cached) " >&6
3038
if test -n "$CC"; then
3039
ac_cv_prog_CC="$CC" # Let the user override the test.
3042
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046
test -z "$as_dir" && as_dir=.
3047
for ac_exec_ext in '' $ac_executable_extensions; do
3048
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3050
ac_prog_rejected=yes
3054
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061
if test $ac_prog_rejected = yes; then
3062
# We found a bogon in the path, so make sure we never use it.
3063
set dummy $ac_cv_prog_CC
3065
if test $# != 0; then
3066
# We chose a different compiler from the bogus one.
3067
# However, it has the same basename, so the bogon will be chosen
3068
# first if we set CC to just the basename; use the full file name.
3070
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3076
if test -n "$CC"; then
3077
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078
$as_echo "$CC" >&6; }
3080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081
$as_echo "no" >&6; }
3086
if test -z "$CC"; then
3087
if test -n "$ac_tool_prefix"; then
3088
for ac_prog in cl.exe
3090
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3091
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093
$as_echo_n "checking for $ac_word... " >&6; }
3094
if ${ac_cv_prog_CC+:} false; then :
3095
$as_echo_n "(cached) " >&6
3097
if test -n "$CC"; then
3098
ac_cv_prog_CC="$CC" # Let the user override the test.
3100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104
test -z "$as_dir" && as_dir=.
3105
for ac_exec_ext in '' $ac_executable_extensions; do
3106
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3108
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118
if test -n "$CC"; then
3119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3120
$as_echo "$CC" >&6; }
3122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123
$as_echo "no" >&6; }
3127
test -n "$CC" && break
3130
if test -z "$CC"; then
3132
for ac_prog in cl.exe
3134
# Extract the first word of "$ac_prog", so it can be a program name with args.
3135
set dummy $ac_prog; ac_word=$2
3136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137
$as_echo_n "checking for $ac_word... " >&6; }
3138
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3139
$as_echo_n "(cached) " >&6
3141
if test -n "$ac_ct_CC"; then
3142
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148
test -z "$as_dir" && as_dir=.
3149
for ac_exec_ext in '' $ac_executable_extensions; do
3150
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151
ac_cv_prog_ac_ct_CC="$ac_prog"
3152
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3162
if test -n "$ac_ct_CC"; then
3163
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3164
$as_echo "$ac_ct_CC" >&6; }
3166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167
$as_echo "no" >&6; }
3171
test -n "$ac_ct_CC" && break
3174
if test "x$ac_ct_CC" = x; then
3177
case $cross_compiling:$ac_tool_warned in
3179
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3180
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3181
ac_tool_warned=yes ;;
3190
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192
as_fn_error $? "no acceptable C compiler found in \$PATH
3193
See \`config.log' for more details" "$LINENO" 5; }
3195
# Provide some information about the compiler.
3196
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3199
for ac_option in --version -v -V -qversion; do
3200
{ { ac_try="$ac_compiler $ac_option >&5"
3202
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203
*) ac_try_echo=$ac_try;;
3205
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206
$as_echo "$ac_try_echo"; } >&5
3207
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3209
if test -s conftest.err; then
3211
... rest of stderr output deleted ...
3212
10q' conftest.err >conftest.er1
3213
cat conftest.er1 >&5
3215
rm -f conftest.er1 conftest.err
3216
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217
test $ac_status = 0; }
3220
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221
/* end confdefs.h. */
3231
ac_clean_files_save=$ac_clean_files
3232
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3233
# Try to create an executable without -o first, disregard a.out.
3234
# It will help us diagnose broken compilers, and finding out an intuition
3236
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3237
$as_echo_n "checking whether the C compiler works... " >&6; }
3238
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3240
# The possible output files:
3241
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3244
for ac_file in $ac_files
3247
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3248
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3253
if { { ac_try="$ac_link_default"
3255
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256
*) ac_try_echo=$ac_try;;
3258
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259
$as_echo "$ac_try_echo"; } >&5
3260
(eval "$ac_link_default") 2>&5
3262
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3263
test $ac_status = 0; }; then :
3264
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3265
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3266
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3267
# so that the user can short-circuit this test for compilers unknown to
3269
for ac_file in $ac_files ''
3271
test -f "$ac_file" || continue
3273
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3276
# We found the default executable, but exeext='' is most
3280
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3282
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3284
# We set ac_cv_exeext here because the later test for it is not
3285
# safe: cross compilers may not add the suffix if given an `-o'
3286
# argument, so we may need to know it at that point already.
3287
# Even if this section looks crufty: it has the advantage of
3294
test "$ac_cv_exeext" = no && ac_cv_exeext=
3299
if test -z "$ac_file"; then :
3300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301
$as_echo "no" >&6; }
3302
$as_echo "$as_me: failed program was:" >&5
3303
sed 's/^/| /' conftest.$ac_ext >&5
3305
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307
as_fn_error 77 "C compiler cannot create executables
3308
See \`config.log' for more details" "$LINENO" 5; }
3310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311
$as_echo "yes" >&6; }
3313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3314
$as_echo_n "checking for C compiler default output file name... " >&6; }
3315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3316
$as_echo "$ac_file" >&6; }
3317
ac_exeext=$ac_cv_exeext
3319
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3320
ac_clean_files=$ac_clean_files_save
3321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3322
$as_echo_n "checking for suffix of executables... " >&6; }
3323
if { { ac_try="$ac_link"
3325
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326
*) ac_try_echo=$ac_try;;
3328
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329
$as_echo "$ac_try_echo"; } >&5
3330
(eval "$ac_link") 2>&5
3332
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333
test $ac_status = 0; }; then :
3334
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3335
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3336
# work properly (i.e., refer to `conftest.exe'), while it won't with
3338
for ac_file in conftest.exe conftest conftest.*; do
3339
test -f "$ac_file" || continue
3341
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3342
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3351
See \`config.log' for more details" "$LINENO" 5; }
3353
rm -f conftest conftest$ac_cv_exeext
3354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3355
$as_echo "$ac_cv_exeext" >&6; }
3357
rm -f conftest.$ac_ext
3358
EXEEXT=$ac_cv_exeext
3360
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361
/* end confdefs.h. */
3366
FILE *f = fopen ("conftest.out", "w");
3367
return ferror (f) || fclose (f) != 0;
3373
ac_clean_files="$ac_clean_files conftest.out"
3374
# Check that the compiler produces executables we can run. If not, either
3375
# the compiler is broken, or we cross compile.
3376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3377
$as_echo_n "checking whether we are cross compiling... " >&6; }
3378
if test "$cross_compiling" != yes; then
3379
{ { ac_try="$ac_link"
3381
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382
*) ac_try_echo=$ac_try;;
3384
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385
$as_echo "$ac_try_echo"; } >&5
3386
(eval "$ac_link") 2>&5
3388
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389
test $ac_status = 0; }
3390
if { ac_try='./conftest$ac_cv_exeext'
3391
{ { case "(($ac_try" in
3392
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393
*) ac_try_echo=$ac_try;;
3395
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396
$as_echo "$ac_try_echo"; } >&5
3397
(eval "$ac_try") 2>&5
3399
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400
test $ac_status = 0; }; }; then
3403
if test "$cross_compiling" = maybe; then
3406
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408
as_fn_error $? "cannot run C compiled programs.
3409
If you meant to cross compile, use \`--host'.
3410
See \`config.log' for more details" "$LINENO" 5; }
3414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3415
$as_echo "$cross_compiling" >&6; }
3417
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3418
ac_clean_files=$ac_clean_files_save
3419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3420
$as_echo_n "checking for suffix of object files... " >&6; }
3421
if ${ac_cv_objext+:} false; then :
3422
$as_echo_n "(cached) " >&6
3424
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425
/* end confdefs.h. */
3435
rm -f conftest.o conftest.obj
3436
if { { ac_try="$ac_compile"
3438
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439
*) ac_try_echo=$ac_try;;
3441
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442
$as_echo "$ac_try_echo"; } >&5
3443
(eval "$ac_compile") 2>&5
3445
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446
test $ac_status = 0; }; then :
3447
for ac_file in conftest.o conftest.obj conftest.*; do
3448
test -f "$ac_file" || continue;
3450
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3451
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3456
$as_echo "$as_me: failed program was:" >&5
3457
sed 's/^/| /' conftest.$ac_ext >&5
3459
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461
as_fn_error $? "cannot compute suffix of object files: cannot compile
3462
See \`config.log' for more details" "$LINENO" 5; }
3464
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3467
$as_echo "$ac_cv_objext" >&6; }
3468
OBJEXT=$ac_cv_objext
3470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3471
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3472
if ${ac_cv_c_compiler_gnu+:} false; then :
3473
$as_echo_n "(cached) " >&6
3475
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476
/* end confdefs.h. */
3489
if ac_fn_c_try_compile "$LINENO"; then :
3494
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3499
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3500
if test $ac_compiler_gnu = yes; then
3505
ac_test_CFLAGS=${CFLAGS+set}
3506
ac_save_CFLAGS=$CFLAGS
3507
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3508
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3509
if ${ac_cv_prog_cc_g+:} false; then :
3510
$as_echo_n "(cached) " >&6
3512
ac_save_c_werror_flag=$ac_c_werror_flag
3513
ac_c_werror_flag=yes
3516
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517
/* end confdefs.h. */
3527
if ac_fn_c_try_compile "$LINENO"; then :
3531
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532
/* end confdefs.h. */
3542
if ac_fn_c_try_compile "$LINENO"; then :
3545
ac_c_werror_flag=$ac_save_c_werror_flag
3547
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548
/* end confdefs.h. */
3558
if ac_fn_c_try_compile "$LINENO"; then :
3561
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566
ac_c_werror_flag=$ac_save_c_werror_flag
3568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3569
$as_echo "$ac_cv_prog_cc_g" >&6; }
3570
if test "$ac_test_CFLAGS" = set; then
3571
CFLAGS=$ac_save_CFLAGS
3572
elif test $ac_cv_prog_cc_g = yes; then
3573
if test "$GCC" = yes; then
3579
if test "$GCC" = yes; then
3585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3586
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3587
if ${ac_cv_prog_cc_c89+:} false; then :
3588
$as_echo_n "(cached) " >&6
3590
ac_cv_prog_cc_c89=no
3592
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593
/* end confdefs.h. */
3597
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3598
struct buf { int x; };
3599
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3600
static char *e (p, i)
3606
static char *f (char * (*g) (char **, int), char **p, ...)
3611
s = g (p, va_arg (v,int));
3616
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3617
function prototypes and stuff, but not '\xHH' hex character constants.
3618
These don't provoke an error unfortunately, instead are silently treated
3619
as 'x'. The following induces an error, until -std is added to get
3620
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3621
array size at least. It's necessary to write '\x00'==0 to get something
3622
that's true only with -std. */
3623
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3625
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3626
inside strings and character constants. */
3628
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3630
int test (int i, double x);
3631
struct s1 {int (*f) (int a);};
3632
struct s2 {int (*f) (double a);};
3633
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3639
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3644
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3645
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3647
CC="$ac_save_CC $ac_arg"
3648
if ac_fn_c_try_compile "$LINENO"; then :
3649
ac_cv_prog_cc_c89=$ac_arg
3651
rm -f core conftest.err conftest.$ac_objext
3652
test "x$ac_cv_prog_cc_c89" != "xno" && break
3654
rm -f conftest.$ac_ext
3659
case "x$ac_cv_prog_cc_c89" in
3661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3662
$as_echo "none needed" >&6; } ;;
3664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3665
$as_echo "unsupported" >&6; } ;;
3667
CC="$CC $ac_cv_prog_cc_c89"
3668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3669
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3671
if test "x$ac_cv_prog_cc_c89" != xno; then :
3676
ac_cpp='$CPP $CPPFLAGS'
3677
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681
depcc="$CC" am_compiler_list=
3683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3684
$as_echo_n "checking dependency style of $depcc... " >&6; }
3685
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3686
$as_echo_n "(cached) " >&6
3688
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3689
# We make a subdir and do the tests there. Otherwise we can end up
3690
# making bogus files that we don't know about and never remove. For
3691
# instance it was reported that on HP-UX the gcc test will end up
3692
# making a dummy file named 'D' -- because '-MD' means "put the output
3696
# Copy depcomp to subdir because otherwise we won't find it if we're
3697
# using a relative directory.
3698
cp "$am_depcomp" conftest.dir
3700
# We will build objects and dependencies in a subdirectory because
3701
# it helps to detect inapplicable dependency modes. For instance
3702
# both Tru64's cc and ICC support -MD to output dependencies as a
3703
# side effect of compilation, but ICC will put the dependencies in
3704
# the current directory while Tru64 will put them in the object
3708
am_cv_CC_dependencies_compiler_type=none
3709
if test "$am_compiler_list" = ""; then
3710
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3713
case " $depcc " in #(
3714
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3717
for depmode in $am_compiler_list; do
3718
# Setup a source with many dependencies, because some compilers
3719
# like to wrap large dependency lists on column 80 (with \), and
3720
# we should not choose a depcomp mode which is confused by this.
3722
# We need to recreate these files for each test, as the compiler may
3723
# overwrite some of them when testing with obscure command lines.
3724
# This happens at least with the AIX C compiler.
3726
for i in 1 2 3 4 5 6; do
3727
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3728
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3729
# Solaris 10 /bin/sh.
3730
echo '/* dummy */' > sub/conftst$i.h
3732
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3734
# We check with '-c' and '-o' for the sake of the "dashmstdout"
3735
# mode. It turns out that the SunPro C++ compiler does not properly
3736
# handle '-M -o', and we need to detect this. Also, some Intel
3737
# versions had trouble with output in subdirs.
3738
am__obj=sub/conftest.${OBJEXT-o}
3739
am__minus_obj="-o $am__obj"
3742
# This depmode causes a compiler race in universal mode.
3743
test "$am__universal" = false || continue
3746
# After this tag, mechanisms are not by side-effect, so they'll
3747
# only be used when explicitly requested.
3748
if test "x$enable_dependency_tracking" = xyes; then
3754
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3755
# This compiler won't grok '-c -o', but also, the minuso test has
3756
# not run yet. These depmodes are late enough in the game, and
3757
# so weak that their functioning should not be impacted.
3758
am__obj=conftest.${OBJEXT-o}
3763
if depmode=$depmode \
3764
source=sub/conftest.c object=$am__obj \
3765
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3766
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3767
>/dev/null 2>conftest.err &&
3768
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3769
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3770
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3771
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3772
# icc doesn't choke on unknown options, it will just issue warnings
3773
# or remarks (even with -Werror). So we grep stderr for any message
3774
# that says an option was ignored or not supported.
3775
# When given -MP, icc 7.0 and 7.1 complain thusly:
3776
# icc: Command line warning: ignoring option '-M'; no argument required
3777
# The diagnosis changed in icc 8.0:
3778
# icc: Command line remark: option '-MP' not supported
3779
if (grep 'ignoring option' conftest.err ||
3780
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3781
am_cv_CC_dependencies_compiler_type=$depmode
3790
am_cv_CC_dependencies_compiler_type=none
3794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3795
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3796
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3799
test "x$enable_dependency_tracking" != xno \
3800
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3802
am__fastdepCC_FALSE='#'
3804
am__fastdepCC_TRUE='#'
3805
am__fastdepCC_FALSE=
3809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3810
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3811
if ${ac_cv_prog_cc_c99+:} false; then :
3812
$as_echo_n "(cached) " >&6
3814
ac_cv_prog_cc_c99=no
3816
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817
/* end confdefs.h. */
3819
#include <stdbool.h>
3824
// Check varargs macros. These examples are taken from C99 6.10.3.5.
3825
#define debug(...) fprintf (stderr, __VA_ARGS__)
3826
#define showlist(...) puts (#__VA_ARGS__)
3827
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3829
test_varargs_macros (void)
3834
debug ("X = %d\n", x);
3835
showlist (The first, second, and third items.);
3836
report (x>y, "x is %d but y is %d", x, y);
3839
// Check long long types.
3840
#define BIG64 18446744073709551615ull
3841
#define BIG32 4294967295ul
3842
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3844
your preprocessor is broken;
3848
your preprocessor is broken;
3850
static long long int bignum = -9223372036854775807LL;
3851
static unsigned long long int ubignum = BIG64;
3853
struct incomplete_array
3861
const wchar_t *name;
3865
typedef const char *ccp;
3868
test_restrict (ccp restrict text)
3870
// See if C++-style comments work.
3871
// Iterate through items via the restricted pointer.
3872
// Also check for declarations in for loops.
3873
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3878
// Check varargs and va_copy.
3880
test_varargs (const char *format, ...)
3883
va_start (args, format);
3885
va_copy (args_copy, args);
3896
str = va_arg (args_copy, const char *);
3899
number = va_arg (args_copy, int);
3902
fnumber = va_arg (args_copy, double);
3917
_Bool success = false;
3920
if (test_restrict ("String literal") == 0)
3922
char *restrict newvar = "Another string";
3925
test_varargs ("s, d' f .", "string", 65, 34.234);
3926
test_varargs_macros ();
3928
// Check flexible array members.
3929
struct incomplete_array *ia =
3930
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3932
for (int i = 0; i < ia->datasize; ++i)
3933
ia->data[i] = i * 1.234;
3935
// Check named initializers.
3936
struct named_init ni = {
3938
.name = L"Test wide string",
3939
.average = 543.34343,
3944
int dynamic_array[ni.number];
3945
dynamic_array[ni.number - 1] = 543;
3947
// work around unused variable warnings
3948
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3949
|| dynamic_array[ni.number - 1] != 543);
3955
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3957
CC="$ac_save_CC $ac_arg"
3958
if ac_fn_c_try_compile "$LINENO"; then :
3959
ac_cv_prog_cc_c99=$ac_arg
3961
rm -f core conftest.err conftest.$ac_objext
3962
test "x$ac_cv_prog_cc_c99" != "xno" && break
3964
rm -f conftest.$ac_ext
3969
case "x$ac_cv_prog_cc_c99" in
3971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3972
$as_echo "none needed" >&6; } ;;
3974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3975
$as_echo "unsupported" >&6; } ;;
3977
CC="$CC $ac_cv_prog_cc_c99"
3978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3979
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3981
if test "x$ac_cv_prog_cc_c99" != xno; then :
3988
ac_cpp='$CPP $CPPFLAGS'
3989
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3993
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3994
# On Suns, sometimes $CPP names a directory.
3995
if test -n "$CPP" && test -d "$CPP"; then
3998
if test -z "$CPP"; then
3999
if ${ac_cv_prog_CPP+:} false; then :
4000
$as_echo_n "(cached) " >&6
4002
# Double quotes because CPP needs to be expanded
4003
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4006
for ac_c_preproc_warn_flag in '' yes
4008
# Use a header file that comes with gcc, so configuring glibc
4009
# with a fresh cross-compiler works.
4010
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4011
# <limits.h> exists even on freestanding compilers.
4012
# On the NeXT, cc -E runs the code through the compiler's parser,
4013
# not just through cpp. "Syntax error" is here to catch this case.
4014
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015
/* end confdefs.h. */
4017
# include <limits.h>
4019
# include <assert.h>
4023
if ac_fn_c_try_cpp "$LINENO"; then :
4026
# Broken: fails on valid input.
4029
rm -f conftest.err conftest.i conftest.$ac_ext
4031
# OK, works on sane cases. Now check whether nonexistent headers
4032
# can be detected and how.
4033
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034
/* end confdefs.h. */
4035
#include <ac_nonexistent.h>
4037
if ac_fn_c_try_cpp "$LINENO"; then :
4038
# Broken: success on invalid input.
4041
# Passes both tests.
4045
rm -f conftest.err conftest.i conftest.$ac_ext
4048
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4049
rm -f conftest.i conftest.err conftest.$ac_ext
4050
if $ac_preproc_ok; then :
4062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4063
$as_echo "$CPP" >&6; }
4065
for ac_c_preproc_warn_flag in '' yes
4067
# Use a header file that comes with gcc, so configuring glibc
4068
# with a fresh cross-compiler works.
4069
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070
# <limits.h> exists even on freestanding compilers.
4071
# On the NeXT, cc -E runs the code through the compiler's parser,
4072
# not just through cpp. "Syntax error" is here to catch this case.
4073
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074
/* end confdefs.h. */
4076
# include <limits.h>
4078
# include <assert.h>
4082
if ac_fn_c_try_cpp "$LINENO"; then :
4085
# Broken: fails on valid input.
4088
rm -f conftest.err conftest.i conftest.$ac_ext
4090
# OK, works on sane cases. Now check whether nonexistent headers
4091
# can be detected and how.
4092
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093
/* end confdefs.h. */
4094
#include <ac_nonexistent.h>
4096
if ac_fn_c_try_cpp "$LINENO"; then :
4097
# Broken: success on invalid input.
4100
# Passes both tests.
4104
rm -f conftest.err conftest.i conftest.$ac_ext
4107
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4108
rm -f conftest.i conftest.err conftest.$ac_ext
4109
if $ac_preproc_ok; then :
4112
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4113
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4114
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4115
See \`config.log' for more details" "$LINENO" 5; }
4119
ac_cpp='$CPP $CPPFLAGS'
4120
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4126
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4127
if ${ac_cv_path_GREP+:} false; then :
4128
$as_echo_n "(cached) " >&6
4130
if test -z "$GREP"; then
4131
ac_path_GREP_found=false
4132
# Loop through the user's path and test for each of PROGNAME-LIST
4133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4137
test -z "$as_dir" && as_dir=.
4138
for ac_prog in grep ggrep; do
4139
for ac_exec_ext in '' $ac_executable_extensions; do
4140
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4141
as_fn_executable_p "$ac_path_GREP" || continue
4142
# Check for GNU ac_path_GREP and select it if it is found.
4143
# Check for GNU $ac_path_GREP
4144
case `"$ac_path_GREP" --version 2>&1` in
4146
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4149
$as_echo_n 0123456789 >"conftest.in"
4152
cat "conftest.in" "conftest.in" >"conftest.tmp"
4153
mv "conftest.tmp" "conftest.in"
4154
cp "conftest.in" "conftest.nl"
4155
$as_echo 'GREP' >> "conftest.nl"
4156
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4157
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4158
as_fn_arith $ac_count + 1 && ac_count=$as_val
4159
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4160
# Best one so far, save it but keep looking for a better one
4161
ac_cv_path_GREP="$ac_path_GREP"
4162
ac_path_GREP_max=$ac_count
4164
# 10*(2^10) chars as input seems more than enough
4165
test $ac_count -gt 10 && break
4167
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4170
$ac_path_GREP_found && break 3
4175
if test -z "$ac_cv_path_GREP"; then
4176
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4179
ac_cv_path_GREP=$GREP
4183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4184
$as_echo "$ac_cv_path_GREP" >&6; }
4185
GREP="$ac_cv_path_GREP"
4188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4189
$as_echo_n "checking for egrep... " >&6; }
4190
if ${ac_cv_path_EGREP+:} false; then :
4191
$as_echo_n "(cached) " >&6
4193
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4194
then ac_cv_path_EGREP="$GREP -E"
4196
if test -z "$EGREP"; then
4197
ac_path_EGREP_found=false
4198
# Loop through the user's path and test for each of PROGNAME-LIST
4199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4203
test -z "$as_dir" && as_dir=.
4204
for ac_prog in egrep; do
4205
for ac_exec_ext in '' $ac_executable_extensions; do
4206
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4207
as_fn_executable_p "$ac_path_EGREP" || continue
4208
# Check for GNU ac_path_EGREP and select it if it is found.
4209
# Check for GNU $ac_path_EGREP
4210
case `"$ac_path_EGREP" --version 2>&1` in
4212
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4215
$as_echo_n 0123456789 >"conftest.in"
4218
cat "conftest.in" "conftest.in" >"conftest.tmp"
4219
mv "conftest.tmp" "conftest.in"
4220
cp "conftest.in" "conftest.nl"
4221
$as_echo 'EGREP' >> "conftest.nl"
4222
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4223
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4224
as_fn_arith $ac_count + 1 && ac_count=$as_val
4225
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4226
# Best one so far, save it but keep looking for a better one
4227
ac_cv_path_EGREP="$ac_path_EGREP"
4228
ac_path_EGREP_max=$ac_count
4230
# 10*(2^10) chars as input seems more than enough
4231
test $ac_count -gt 10 && break
4233
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4236
$ac_path_EGREP_found && break 3
4241
if test -z "$ac_cv_path_EGREP"; then
4242
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4245
ac_cv_path_EGREP=$EGREP
4250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4251
$as_echo "$ac_cv_path_EGREP" >&6; }
4252
EGREP="$ac_cv_path_EGREP"
4255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4256
$as_echo_n "checking for ANSI C header files... " >&6; }
4257
if ${ac_cv_header_stdc+:} false; then :
4258
$as_echo_n "(cached) " >&6
4260
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261
/* end confdefs.h. */
4275
if ac_fn_c_try_compile "$LINENO"; then :
4276
ac_cv_header_stdc=yes
4278
ac_cv_header_stdc=no
4280
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282
if test $ac_cv_header_stdc = yes; then
4283
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4284
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285
/* end confdefs.h. */
4289
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4290
$EGREP "memchr" >/dev/null 2>&1; then :
4293
ac_cv_header_stdc=no
4299
if test $ac_cv_header_stdc = yes; then
4300
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4301
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302
/* end confdefs.h. */
4306
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4307
$EGREP "free" >/dev/null 2>&1; then :
4310
ac_cv_header_stdc=no
4316
if test $ac_cv_header_stdc = yes; then
4317
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4318
if test "$cross_compiling" = yes; then :
4321
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322
/* end confdefs.h. */
4325
#if ((' ' & 0x0FF) == 0x020)
4326
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4327
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4329
# define ISLOWER(c) \
4330
(('a' <= (c) && (c) <= 'i') \
4331
|| ('j' <= (c) && (c) <= 'r') \
4332
|| ('s' <= (c) && (c) <= 'z'))
4333
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4336
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4341
for (i = 0; i < 256; i++)
4342
if (XOR (islower (i), ISLOWER (i))
4343
|| toupper (i) != TOUPPER (i))
4348
if ac_fn_c_try_run "$LINENO"; then :
4351
ac_cv_header_stdc=no
4353
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4354
conftest.$ac_objext conftest.beam conftest.$ac_ext
4359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4360
$as_echo "$ac_cv_header_stdc" >&6; }
4361
if test $ac_cv_header_stdc = yes; then
4363
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4367
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4368
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4369
inttypes.h stdint.h unistd.h
4371
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4372
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4374
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4375
cat >>confdefs.h <<_ACEOF
4376
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4388
ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4389
if test "x$ac_cv_have_decl___clang__" = xyes; then :
4395
ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4396
if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4402
ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4403
if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4417
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4418
if test -n "$ac_tool_prefix"; then
4419
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4420
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422
$as_echo_n "checking for $ac_word... " >&6; }
4423
if ${ac_cv_path_PKG_CONFIG+:} false; then :
4424
$as_echo_n "(cached) " >&6
4428
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435
test -z "$as_dir" && as_dir=.
4436
for ac_exec_ext in '' $ac_executable_extensions; do
4437
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4450
if test -n "$PKG_CONFIG"; then
4451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4452
$as_echo "$PKG_CONFIG" >&6; }
4454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455
$as_echo "no" >&6; }
4460
if test -z "$ac_cv_path_PKG_CONFIG"; then
4461
ac_pt_PKG_CONFIG=$PKG_CONFIG
4462
# Extract the first word of "pkg-config", so it can be a program name with args.
4463
set dummy pkg-config; ac_word=$2
4464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465
$as_echo_n "checking for $ac_word... " >&6; }
4466
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4467
$as_echo_n "(cached) " >&6
4469
case $ac_pt_PKG_CONFIG in
4471
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4474
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478
test -z "$as_dir" && as_dir=.
4479
for ac_exec_ext in '' $ac_executable_extensions; do
4480
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4482
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4493
if test -n "$ac_pt_PKG_CONFIG"; then
4494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4495
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498
$as_echo "no" >&6; }
4501
if test "x$ac_pt_PKG_CONFIG" = x; then
4504
case $cross_compiling:$ac_tool_warned in
4506
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4507
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4508
ac_tool_warned=yes ;;
4510
PKG_CONFIG=$ac_pt_PKG_CONFIG
4513
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4517
if test -n "$PKG_CONFIG"; then
4518
_pkg_min_version=0.9.0
4519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4520
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4521
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4523
$as_echo "yes" >&6; }
4525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4526
$as_echo "no" >&6; }
4530
# Make sure we can run config.sub.
4531
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4532
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4535
$as_echo_n "checking build system type... " >&6; }
4536
if ${ac_cv_build+:} false; then :
4537
$as_echo_n "(cached) " >&6
4539
ac_build_alias=$build_alias
4540
test "x$ac_build_alias" = x &&
4541
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4542
test "x$ac_build_alias" = x &&
4543
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4544
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4545
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4549
$as_echo "$ac_cv_build" >&6; }
4550
case $ac_cv_build in
4552
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4555
ac_save_IFS=$IFS; IFS='-'
4561
# Remember, the first character of IFS is used to create $*,
4562
# except with old shells:
4565
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4569
$as_echo_n "checking host system type... " >&6; }
4570
if ${ac_cv_host+:} false; then :
4571
$as_echo_n "(cached) " >&6
4573
if test "x$host_alias" = x; then
4574
ac_cv_host=$ac_cv_build
4576
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4577
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4581
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4582
$as_echo "$ac_cv_host" >&6; }
4585
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4588
ac_save_IFS=$IFS; IFS='-'
4594
# Remember, the first character of IFS is used to create $*,
4595
# except with old shells:
4598
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4602
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4603
if ${ac_cv_path_SED+:} false; then :
4604
$as_echo_n "(cached) " >&6
4606
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4607
for ac_i in 1 2 3 4 5 6 7; do
4608
ac_script="$ac_script$as_nl$ac_script"
4610
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4611
{ ac_script=; unset ac_script;}
4612
if test -z "$SED"; then
4613
ac_path_SED_found=false
4614
# Loop through the user's path and test for each of PROGNAME-LIST
4615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619
test -z "$as_dir" && as_dir=.
4620
for ac_prog in sed gsed; do
4621
for ac_exec_ext in '' $ac_executable_extensions; do
4622
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4623
as_fn_executable_p "$ac_path_SED" || continue
4624
# Check for GNU ac_path_SED and select it if it is found.
4625
# Check for GNU $ac_path_SED
4626
case `"$ac_path_SED" --version 2>&1` in
4628
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4631
$as_echo_n 0123456789 >"conftest.in"
4634
cat "conftest.in" "conftest.in" >"conftest.tmp"
4635
mv "conftest.tmp" "conftest.in"
4636
cp "conftest.in" "conftest.nl"
4637
$as_echo '' >> "conftest.nl"
4638
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4639
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4640
as_fn_arith $ac_count + 1 && ac_count=$as_val
4641
if test $ac_count -gt ${ac_path_SED_max-0}; then
4642
# Best one so far, save it but keep looking for a better one
4643
ac_cv_path_SED="$ac_path_SED"
4644
ac_path_SED_max=$ac_count
4646
# 10*(2^10) chars as input seems more than enough
4647
test $ac_count -gt 10 && break
4649
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4652
$ac_path_SED_found && break 3
4657
if test -z "$ac_cv_path_SED"; then
4658
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4666
$as_echo "$ac_cv_path_SED" >&6; }
4667
SED="$ac_cv_path_SED"
4675
# Check whether --enable-selective-werror was given.
4676
if test "${enable_selective_werror+set}" = set; then :
4677
enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4679
SELECTIVE_WERROR=yes
4686
# -v is too short to test reliably with XORG_TESTSET_CFLAG
4687
if test "x$SUNCC" = "xyes"; then
4693
# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4707
xorg_testset_save_CFLAGS="$CFLAGS"
4709
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4710
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4712
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4713
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4714
$as_echo_n "(cached) " >&6
4716
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717
/* end confdefs.h. */
4720
if ac_fn_c_try_compile "$LINENO"; then :
4721
xorg_cv_cc_flag_unknown_warning_option=yes
4723
xorg_cv_cc_flag_unknown_warning_option=no
4725
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4728
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4729
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4730
CFLAGS="$xorg_testset_save_CFLAGS"
4733
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4734
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4735
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4737
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4739
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4740
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4741
$as_echo_n "(cached) " >&6
4743
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744
/* end confdefs.h. */
4747
if ac_fn_c_try_compile "$LINENO"; then :
4748
xorg_cv_cc_flag_unused_command_line_argument=yes
4750
xorg_cv_cc_flag_unused_command_line_argument=no
4752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4755
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4756
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4757
CFLAGS="$xorg_testset_save_CFLAGS"
4762
if test $found = "no" ; then
4763
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4764
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4767
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4768
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4771
CFLAGS="$CFLAGS -Wall"
4773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4774
$as_echo_n "checking if $CC supports -Wall... " >&6; }
4775
cacheid=xorg_cv_cc_flag__Wall
4776
if eval \${$cacheid+:} false; then :
4777
$as_echo_n "(cached) " >&6
4779
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780
/* end confdefs.h. */
4790
if ac_fn_c_try_link "$LINENO"; then :
4795
rm -f core conftest.err conftest.$ac_objext \
4796
conftest$ac_exeext conftest.$ac_ext
4800
CFLAGS="$xorg_testset_save_CFLAGS"
4802
eval supported=\$$cacheid
4803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4804
$as_echo "$supported" >&6; }
4805
if test "$supported" = "yes" ; then
4806
BASE_CFLAGS="$BASE_CFLAGS -Wall"
4825
xorg_testset_save_CFLAGS="$CFLAGS"
4827
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4828
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4830
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4831
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4832
$as_echo_n "(cached) " >&6
4834
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835
/* end confdefs.h. */
4838
if ac_fn_c_try_compile "$LINENO"; then :
4839
xorg_cv_cc_flag_unknown_warning_option=yes
4841
xorg_cv_cc_flag_unknown_warning_option=no
4843
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4846
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4847
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4848
CFLAGS="$xorg_testset_save_CFLAGS"
4851
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4852
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4853
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4855
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4857
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4858
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4859
$as_echo_n "(cached) " >&6
4861
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862
/* end confdefs.h. */
4865
if ac_fn_c_try_compile "$LINENO"; then :
4866
xorg_cv_cc_flag_unused_command_line_argument=yes
4868
xorg_cv_cc_flag_unused_command_line_argument=no
4870
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4873
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4874
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4875
CFLAGS="$xorg_testset_save_CFLAGS"
4880
if test $found = "no" ; then
4881
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4882
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4885
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4886
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4889
CFLAGS="$CFLAGS -Wpointer-arith"
4891
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4892
$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4893
cacheid=xorg_cv_cc_flag__Wpointer_arith
4894
if eval \${$cacheid+:} false; then :
4895
$as_echo_n "(cached) " >&6
4897
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898
/* end confdefs.h. */
4908
if ac_fn_c_try_link "$LINENO"; then :
4913
rm -f core conftest.err conftest.$ac_objext \
4914
conftest$ac_exeext conftest.$ac_ext
4918
CFLAGS="$xorg_testset_save_CFLAGS"
4920
eval supported=\$$cacheid
4921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4922
$as_echo "$supported" >&6; }
4923
if test "$supported" = "yes" ; then
4924
BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4943
xorg_testset_save_CFLAGS="$CFLAGS"
4945
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4946
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4947
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4948
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4949
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4950
$as_echo_n "(cached) " >&6
4952
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953
/* end confdefs.h. */
4956
if ac_fn_c_try_compile "$LINENO"; then :
4957
xorg_cv_cc_flag_unknown_warning_option=yes
4959
xorg_cv_cc_flag_unknown_warning_option=no
4961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4964
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4965
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4966
CFLAGS="$xorg_testset_save_CFLAGS"
4969
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4970
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4971
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4973
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4975
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4976
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4977
$as_echo_n "(cached) " >&6
4979
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980
/* end confdefs.h. */
4983
if ac_fn_c_try_compile "$LINENO"; then :
4984
xorg_cv_cc_flag_unused_command_line_argument=yes
4986
xorg_cv_cc_flag_unused_command_line_argument=no
4988
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4991
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4992
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4993
CFLAGS="$xorg_testset_save_CFLAGS"
4998
if test $found = "no" ; then
4999
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5000
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5003
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5004
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5007
CFLAGS="$CFLAGS -Wmissing-declarations"
5009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5010
$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5011
cacheid=xorg_cv_cc_flag__Wmissing_declarations
5012
if eval \${$cacheid+:} false; then :
5013
$as_echo_n "(cached) " >&6
5015
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016
/* end confdefs.h. */
5026
if ac_fn_c_try_link "$LINENO"; then :
5031
rm -f core conftest.err conftest.$ac_objext \
5032
conftest$ac_exeext conftest.$ac_ext
5036
CFLAGS="$xorg_testset_save_CFLAGS"
5038
eval supported=\$$cacheid
5039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5040
$as_echo "$supported" >&6; }
5041
if test "$supported" = "yes" ; then
5042
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5061
xorg_testset_save_CFLAGS="$CFLAGS"
5063
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5064
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5066
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5067
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5068
$as_echo_n "(cached) " >&6
5070
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071
/* end confdefs.h. */
5074
if ac_fn_c_try_compile "$LINENO"; then :
5075
xorg_cv_cc_flag_unknown_warning_option=yes
5077
xorg_cv_cc_flag_unknown_warning_option=no
5079
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5082
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5083
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5084
CFLAGS="$xorg_testset_save_CFLAGS"
5087
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5088
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5089
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5091
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5093
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5094
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5095
$as_echo_n "(cached) " >&6
5097
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098
/* end confdefs.h. */
5101
if ac_fn_c_try_compile "$LINENO"; then :
5102
xorg_cv_cc_flag_unused_command_line_argument=yes
5104
xorg_cv_cc_flag_unused_command_line_argument=no
5106
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5109
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5110
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5111
CFLAGS="$xorg_testset_save_CFLAGS"
5116
if test $found = "no" ; then
5117
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5118
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5121
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5122
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5125
CFLAGS="$CFLAGS -Wformat=2"
5127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5128
$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5129
cacheid=xorg_cv_cc_flag__Wformat_2
5130
if eval \${$cacheid+:} false; then :
5131
$as_echo_n "(cached) " >&6
5133
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134
/* end confdefs.h. */
5144
if ac_fn_c_try_link "$LINENO"; then :
5149
rm -f core conftest.err conftest.$ac_objext \
5150
conftest$ac_exeext conftest.$ac_ext
5154
CFLAGS="$xorg_testset_save_CFLAGS"
5156
eval supported=\$$cacheid
5157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5158
$as_echo "$supported" >&6; }
5159
if test "$supported" = "yes" ; then
5160
BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5165
if test $found = "no" ; then
5166
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5167
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5170
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5171
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5174
CFLAGS="$CFLAGS -Wformat"
5176
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5177
$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5178
cacheid=xorg_cv_cc_flag__Wformat
5179
if eval \${$cacheid+:} false; then :
5180
$as_echo_n "(cached) " >&6
5182
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183
/* end confdefs.h. */
5193
if ac_fn_c_try_link "$LINENO"; then :
5198
rm -f core conftest.err conftest.$ac_objext \
5199
conftest$ac_exeext conftest.$ac_ext
5203
CFLAGS="$xorg_testset_save_CFLAGS"
5205
eval supported=\$$cacheid
5206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5207
$as_echo "$supported" >&6; }
5208
if test "$supported" = "yes" ; then
5209
BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5230
xorg_testset_save_CFLAGS="$CFLAGS"
5232
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5233
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5235
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5236
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5237
$as_echo_n "(cached) " >&6
5239
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240
/* end confdefs.h. */
5243
if ac_fn_c_try_compile "$LINENO"; then :
5244
xorg_cv_cc_flag_unknown_warning_option=yes
5246
xorg_cv_cc_flag_unknown_warning_option=no
5248
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5251
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5252
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5253
CFLAGS="$xorg_testset_save_CFLAGS"
5256
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5257
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5258
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5260
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5261
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5262
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5263
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5264
$as_echo_n "(cached) " >&6
5266
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267
/* end confdefs.h. */
5270
if ac_fn_c_try_compile "$LINENO"; then :
5271
xorg_cv_cc_flag_unused_command_line_argument=yes
5273
xorg_cv_cc_flag_unused_command_line_argument=no
5275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5278
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5279
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5280
CFLAGS="$xorg_testset_save_CFLAGS"
5285
if test $found = "no" ; then
5286
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5287
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5290
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5291
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5294
CFLAGS="$CFLAGS -Wstrict-prototypes"
5296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5297
$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5298
cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5299
if eval \${$cacheid+:} false; then :
5300
$as_echo_n "(cached) " >&6
5302
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303
/* end confdefs.h. */
5313
if ac_fn_c_try_link "$LINENO"; then :
5318
rm -f core conftest.err conftest.$ac_objext \
5319
conftest$ac_exeext conftest.$ac_ext
5323
CFLAGS="$xorg_testset_save_CFLAGS"
5325
eval supported=\$$cacheid
5326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5327
$as_echo "$supported" >&6; }
5328
if test "$supported" = "yes" ; then
5329
BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5348
xorg_testset_save_CFLAGS="$CFLAGS"
5350
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5351
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5353
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5354
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5355
$as_echo_n "(cached) " >&6
5357
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358
/* end confdefs.h. */
5361
if ac_fn_c_try_compile "$LINENO"; then :
5362
xorg_cv_cc_flag_unknown_warning_option=yes
5364
xorg_cv_cc_flag_unknown_warning_option=no
5366
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5369
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5370
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5371
CFLAGS="$xorg_testset_save_CFLAGS"
5374
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5375
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5376
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5378
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5380
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5381
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5382
$as_echo_n "(cached) " >&6
5384
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385
/* end confdefs.h. */
5388
if ac_fn_c_try_compile "$LINENO"; then :
5389
xorg_cv_cc_flag_unused_command_line_argument=yes
5391
xorg_cv_cc_flag_unused_command_line_argument=no
5393
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5396
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5397
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5398
CFLAGS="$xorg_testset_save_CFLAGS"
5403
if test $found = "no" ; then
5404
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5405
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5408
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5409
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5412
CFLAGS="$CFLAGS -Wmissing-prototypes"
5414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5415
$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5416
cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5417
if eval \${$cacheid+:} false; then :
5418
$as_echo_n "(cached) " >&6
5420
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421
/* end confdefs.h. */
5431
if ac_fn_c_try_link "$LINENO"; then :
5436
rm -f core conftest.err conftest.$ac_objext \
5437
conftest$ac_exeext conftest.$ac_ext
5441
CFLAGS="$xorg_testset_save_CFLAGS"
5443
eval supported=\$$cacheid
5444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5445
$as_echo "$supported" >&6; }
5446
if test "$supported" = "yes" ; then
5447
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5466
xorg_testset_save_CFLAGS="$CFLAGS"
5468
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5469
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5471
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5472
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5473
$as_echo_n "(cached) " >&6
5475
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476
/* end confdefs.h. */
5479
if ac_fn_c_try_compile "$LINENO"; then :
5480
xorg_cv_cc_flag_unknown_warning_option=yes
5482
xorg_cv_cc_flag_unknown_warning_option=no
5484
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5487
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5488
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5489
CFLAGS="$xorg_testset_save_CFLAGS"
5492
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5493
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5494
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5496
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5498
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5499
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5500
$as_echo_n "(cached) " >&6
5502
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503
/* end confdefs.h. */
5506
if ac_fn_c_try_compile "$LINENO"; then :
5507
xorg_cv_cc_flag_unused_command_line_argument=yes
5509
xorg_cv_cc_flag_unused_command_line_argument=no
5511
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5514
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5515
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5516
CFLAGS="$xorg_testset_save_CFLAGS"
5521
if test $found = "no" ; then
5522
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5523
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5526
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5527
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5530
CFLAGS="$CFLAGS -Wnested-externs"
5532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5533
$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5534
cacheid=xorg_cv_cc_flag__Wnested_externs
5535
if eval \${$cacheid+:} false; then :
5536
$as_echo_n "(cached) " >&6
5538
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539
/* end confdefs.h. */
5549
if ac_fn_c_try_link "$LINENO"; then :
5554
rm -f core conftest.err conftest.$ac_objext \
5555
conftest$ac_exeext conftest.$ac_ext
5559
CFLAGS="$xorg_testset_save_CFLAGS"
5561
eval supported=\$$cacheid
5562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5563
$as_echo "$supported" >&6; }
5564
if test "$supported" = "yes" ; then
5565
BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5584
xorg_testset_save_CFLAGS="$CFLAGS"
5586
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5587
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5589
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5590
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5591
$as_echo_n "(cached) " >&6
5593
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594
/* end confdefs.h. */
5597
if ac_fn_c_try_compile "$LINENO"; then :
5598
xorg_cv_cc_flag_unknown_warning_option=yes
5600
xorg_cv_cc_flag_unknown_warning_option=no
5602
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5605
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5606
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5607
CFLAGS="$xorg_testset_save_CFLAGS"
5610
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5611
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5612
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5614
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5616
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5617
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5618
$as_echo_n "(cached) " >&6
5620
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621
/* end confdefs.h. */
5624
if ac_fn_c_try_compile "$LINENO"; then :
5625
xorg_cv_cc_flag_unused_command_line_argument=yes
5627
xorg_cv_cc_flag_unused_command_line_argument=no
5629
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5632
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5633
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5634
CFLAGS="$xorg_testset_save_CFLAGS"
5639
if test $found = "no" ; then
5640
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5641
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5645
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5648
CFLAGS="$CFLAGS -Wbad-function-cast"
5650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5651
$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5652
cacheid=xorg_cv_cc_flag__Wbad_function_cast
5653
if eval \${$cacheid+:} false; then :
5654
$as_echo_n "(cached) " >&6
5656
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657
/* end confdefs.h. */
5667
if ac_fn_c_try_link "$LINENO"; then :
5672
rm -f core conftest.err conftest.$ac_objext \
5673
conftest$ac_exeext conftest.$ac_ext
5677
CFLAGS="$xorg_testset_save_CFLAGS"
5679
eval supported=\$$cacheid
5680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5681
$as_echo "$supported" >&6; }
5682
if test "$supported" = "yes" ; then
5683
BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5702
xorg_testset_save_CFLAGS="$CFLAGS"
5704
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5705
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5707
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5708
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5709
$as_echo_n "(cached) " >&6
5711
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712
/* end confdefs.h. */
5715
if ac_fn_c_try_compile "$LINENO"; then :
5716
xorg_cv_cc_flag_unknown_warning_option=yes
5718
xorg_cv_cc_flag_unknown_warning_option=no
5720
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5723
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5724
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5725
CFLAGS="$xorg_testset_save_CFLAGS"
5728
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5729
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5730
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5732
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5734
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5735
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5736
$as_echo_n "(cached) " >&6
5738
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739
/* end confdefs.h. */
5742
if ac_fn_c_try_compile "$LINENO"; then :
5743
xorg_cv_cc_flag_unused_command_line_argument=yes
5745
xorg_cv_cc_flag_unused_command_line_argument=no
5747
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5750
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5751
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5752
CFLAGS="$xorg_testset_save_CFLAGS"
5757
if test $found = "no" ; then
5758
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5759
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5763
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5766
CFLAGS="$CFLAGS -Wold-style-definition"
5768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5769
$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5770
cacheid=xorg_cv_cc_flag__Wold_style_definition
5771
if eval \${$cacheid+:} false; then :
5772
$as_echo_n "(cached) " >&6
5774
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775
/* end confdefs.h. */
5785
if ac_fn_c_try_link "$LINENO"; then :
5790
rm -f core conftest.err conftest.$ac_objext \
5791
conftest$ac_exeext conftest.$ac_ext
5795
CFLAGS="$xorg_testset_save_CFLAGS"
5797
eval supported=\$$cacheid
5798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5799
$as_echo "$supported" >&6; }
5800
if test "$supported" = "yes" ; then
5801
BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5820
xorg_testset_save_CFLAGS="$CFLAGS"
5822
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5823
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5825
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5826
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5827
$as_echo_n "(cached) " >&6
5829
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830
/* end confdefs.h. */
5833
if ac_fn_c_try_compile "$LINENO"; then :
5834
xorg_cv_cc_flag_unknown_warning_option=yes
5836
xorg_cv_cc_flag_unknown_warning_option=no
5838
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5841
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5842
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5843
CFLAGS="$xorg_testset_save_CFLAGS"
5846
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5847
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5848
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5850
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5852
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5853
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5854
$as_echo_n "(cached) " >&6
5856
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857
/* end confdefs.h. */
5860
if ac_fn_c_try_compile "$LINENO"; then :
5861
xorg_cv_cc_flag_unused_command_line_argument=yes
5863
xorg_cv_cc_flag_unused_command_line_argument=no
5865
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5868
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5869
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5870
CFLAGS="$xorg_testset_save_CFLAGS"
5875
if test $found = "no" ; then
5876
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5877
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5880
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5881
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5884
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5887
$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5888
cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5889
if eval \${$cacheid+:} false; then :
5890
$as_echo_n "(cached) " >&6
5892
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893
/* end confdefs.h. */
5903
if ac_fn_c_try_link "$LINENO"; then :
5908
rm -f core conftest.err conftest.$ac_objext \
5909
conftest$ac_exeext conftest.$ac_ext
5913
CFLAGS="$xorg_testset_save_CFLAGS"
5915
eval supported=\$$cacheid
5916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5917
$as_echo "$supported" >&6; }
5918
if test "$supported" = "yes" ; then
5919
BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5928
# This chunk adds additional warnings that could catch undesired effects.
5942
xorg_testset_save_CFLAGS="$CFLAGS"
5944
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5945
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5947
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5948
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5949
$as_echo_n "(cached) " >&6
5951
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952
/* end confdefs.h. */
5955
if ac_fn_c_try_compile "$LINENO"; then :
5956
xorg_cv_cc_flag_unknown_warning_option=yes
5958
xorg_cv_cc_flag_unknown_warning_option=no
5960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5963
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5964
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5965
CFLAGS="$xorg_testset_save_CFLAGS"
5968
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5969
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5970
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5972
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5974
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5975
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5976
$as_echo_n "(cached) " >&6
5978
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979
/* end confdefs.h. */
5982
if ac_fn_c_try_compile "$LINENO"; then :
5983
xorg_cv_cc_flag_unused_command_line_argument=yes
5985
xorg_cv_cc_flag_unused_command_line_argument=no
5987
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5990
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5991
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5992
CFLAGS="$xorg_testset_save_CFLAGS"
5997
if test $found = "no" ; then
5998
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5999
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6002
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6003
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6006
CFLAGS="$CFLAGS -Wunused"
6008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6009
$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6010
cacheid=xorg_cv_cc_flag__Wunused
6011
if eval \${$cacheid+:} false; then :
6012
$as_echo_n "(cached) " >&6
6014
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015
/* end confdefs.h. */
6025
if ac_fn_c_try_link "$LINENO"; then :
6030
rm -f core conftest.err conftest.$ac_objext \
6031
conftest$ac_exeext conftest.$ac_ext
6035
CFLAGS="$xorg_testset_save_CFLAGS"
6037
eval supported=\$$cacheid
6038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6039
$as_echo "$supported" >&6; }
6040
if test "$supported" = "yes" ; then
6041
BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6060
xorg_testset_save_CFLAGS="$CFLAGS"
6062
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6063
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6065
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6066
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6067
$as_echo_n "(cached) " >&6
6069
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070
/* end confdefs.h. */
6073
if ac_fn_c_try_compile "$LINENO"; then :
6074
xorg_cv_cc_flag_unknown_warning_option=yes
6076
xorg_cv_cc_flag_unknown_warning_option=no
6078
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6081
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6082
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6083
CFLAGS="$xorg_testset_save_CFLAGS"
6086
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6087
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6088
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6090
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6092
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6093
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6094
$as_echo_n "(cached) " >&6
6096
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097
/* end confdefs.h. */
6100
if ac_fn_c_try_compile "$LINENO"; then :
6101
xorg_cv_cc_flag_unused_command_line_argument=yes
6103
xorg_cv_cc_flag_unused_command_line_argument=no
6105
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6108
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6109
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6110
CFLAGS="$xorg_testset_save_CFLAGS"
6115
if test $found = "no" ; then
6116
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6117
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6120
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6121
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6124
CFLAGS="$CFLAGS -Wuninitialized"
6126
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6127
$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6128
cacheid=xorg_cv_cc_flag__Wuninitialized
6129
if eval \${$cacheid+:} false; then :
6130
$as_echo_n "(cached) " >&6
6132
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133
/* end confdefs.h. */
6143
if ac_fn_c_try_link "$LINENO"; then :
6148
rm -f core conftest.err conftest.$ac_objext \
6149
conftest$ac_exeext conftest.$ac_ext
6153
CFLAGS="$xorg_testset_save_CFLAGS"
6155
eval supported=\$$cacheid
6156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6157
$as_echo "$supported" >&6; }
6158
if test "$supported" = "yes" ; then
6159
BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6178
xorg_testset_save_CFLAGS="$CFLAGS"
6180
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6181
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6183
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6184
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6185
$as_echo_n "(cached) " >&6
6187
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188
/* end confdefs.h. */
6191
if ac_fn_c_try_compile "$LINENO"; then :
6192
xorg_cv_cc_flag_unknown_warning_option=yes
6194
xorg_cv_cc_flag_unknown_warning_option=no
6196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6199
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6200
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6201
CFLAGS="$xorg_testset_save_CFLAGS"
6204
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6205
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6206
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6208
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6210
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6211
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6212
$as_echo_n "(cached) " >&6
6214
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215
/* end confdefs.h. */
6218
if ac_fn_c_try_compile "$LINENO"; then :
6219
xorg_cv_cc_flag_unused_command_line_argument=yes
6221
xorg_cv_cc_flag_unused_command_line_argument=no
6223
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6226
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6227
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6228
CFLAGS="$xorg_testset_save_CFLAGS"
6233
if test $found = "no" ; then
6234
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6235
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6238
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6239
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6242
CFLAGS="$CFLAGS -Wshadow"
6244
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6245
$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6246
cacheid=xorg_cv_cc_flag__Wshadow
6247
if eval \${$cacheid+:} false; then :
6248
$as_echo_n "(cached) " >&6
6250
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251
/* end confdefs.h. */
6261
if ac_fn_c_try_link "$LINENO"; then :
6266
rm -f core conftest.err conftest.$ac_objext \
6267
conftest$ac_exeext conftest.$ac_ext
6271
CFLAGS="$xorg_testset_save_CFLAGS"
6273
eval supported=\$$cacheid
6274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6275
$as_echo "$supported" >&6; }
6276
if test "$supported" = "yes" ; then
6277
BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6296
xorg_testset_save_CFLAGS="$CFLAGS"
6298
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6299
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6300
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6301
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6302
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6303
$as_echo_n "(cached) " >&6
6305
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306
/* end confdefs.h. */
6309
if ac_fn_c_try_compile "$LINENO"; then :
6310
xorg_cv_cc_flag_unknown_warning_option=yes
6312
xorg_cv_cc_flag_unknown_warning_option=no
6314
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6317
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6318
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6319
CFLAGS="$xorg_testset_save_CFLAGS"
6322
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6323
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6324
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6326
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6328
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6329
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6330
$as_echo_n "(cached) " >&6
6332
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333
/* end confdefs.h. */
6336
if ac_fn_c_try_compile "$LINENO"; then :
6337
xorg_cv_cc_flag_unused_command_line_argument=yes
6339
xorg_cv_cc_flag_unused_command_line_argument=no
6341
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6344
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6345
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6346
CFLAGS="$xorg_testset_save_CFLAGS"
6351
if test $found = "no" ; then
6352
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6353
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6356
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6357
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6360
CFLAGS="$CFLAGS -Wcast-qual"
6362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6363
$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6364
cacheid=xorg_cv_cc_flag__Wcast_qual
6365
if eval \${$cacheid+:} false; then :
6366
$as_echo_n "(cached) " >&6
6368
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369
/* end confdefs.h. */
6379
if ac_fn_c_try_link "$LINENO"; then :
6384
rm -f core conftest.err conftest.$ac_objext \
6385
conftest$ac_exeext conftest.$ac_ext
6389
CFLAGS="$xorg_testset_save_CFLAGS"
6391
eval supported=\$$cacheid
6392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6393
$as_echo "$supported" >&6; }
6394
if test "$supported" = "yes" ; then
6395
BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6414
xorg_testset_save_CFLAGS="$CFLAGS"
6416
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6417
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6419
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6420
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6421
$as_echo_n "(cached) " >&6
6423
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424
/* end confdefs.h. */
6427
if ac_fn_c_try_compile "$LINENO"; then :
6428
xorg_cv_cc_flag_unknown_warning_option=yes
6430
xorg_cv_cc_flag_unknown_warning_option=no
6432
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6435
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6436
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6437
CFLAGS="$xorg_testset_save_CFLAGS"
6440
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6441
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6442
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6444
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6446
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6447
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6448
$as_echo_n "(cached) " >&6
6450
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451
/* end confdefs.h. */
6454
if ac_fn_c_try_compile "$LINENO"; then :
6455
xorg_cv_cc_flag_unused_command_line_argument=yes
6457
xorg_cv_cc_flag_unused_command_line_argument=no
6459
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6462
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6463
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6464
CFLAGS="$xorg_testset_save_CFLAGS"
6469
if test $found = "no" ; then
6470
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6471
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6474
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6475
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6478
CFLAGS="$CFLAGS -Wmissing-noreturn"
6480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6481
$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6482
cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6483
if eval \${$cacheid+:} false; then :
6484
$as_echo_n "(cached) " >&6
6486
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487
/* end confdefs.h. */
6497
if ac_fn_c_try_link "$LINENO"; then :
6502
rm -f core conftest.err conftest.$ac_objext \
6503
conftest$ac_exeext conftest.$ac_ext
6507
CFLAGS="$xorg_testset_save_CFLAGS"
6509
eval supported=\$$cacheid
6510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6511
$as_echo "$supported" >&6; }
6512
if test "$supported" = "yes" ; then
6513
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6532
xorg_testset_save_CFLAGS="$CFLAGS"
6534
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6535
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6536
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6537
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6538
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6539
$as_echo_n "(cached) " >&6
6541
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542
/* end confdefs.h. */
6545
if ac_fn_c_try_compile "$LINENO"; then :
6546
xorg_cv_cc_flag_unknown_warning_option=yes
6548
xorg_cv_cc_flag_unknown_warning_option=no
6550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6553
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6554
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6555
CFLAGS="$xorg_testset_save_CFLAGS"
6558
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6559
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6560
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6562
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6564
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6565
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6566
$as_echo_n "(cached) " >&6
6568
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569
/* end confdefs.h. */
6572
if ac_fn_c_try_compile "$LINENO"; then :
6573
xorg_cv_cc_flag_unused_command_line_argument=yes
6575
xorg_cv_cc_flag_unused_command_line_argument=no
6577
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6580
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6581
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6582
CFLAGS="$xorg_testset_save_CFLAGS"
6587
if test $found = "no" ; then
6588
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6589
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6592
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6593
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6596
CFLAGS="$CFLAGS -Wmissing-format-attribute"
6598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6599
$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6600
cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6601
if eval \${$cacheid+:} false; then :
6602
$as_echo_n "(cached) " >&6
6604
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605
/* end confdefs.h. */
6615
if ac_fn_c_try_link "$LINENO"; then :
6620
rm -f core conftest.err conftest.$ac_objext \
6621
conftest$ac_exeext conftest.$ac_ext
6625
CFLAGS="$xorg_testset_save_CFLAGS"
6627
eval supported=\$$cacheid
6628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6629
$as_echo "$supported" >&6; }
6630
if test "$supported" = "yes" ; then
6631
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6650
xorg_testset_save_CFLAGS="$CFLAGS"
6652
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6653
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6655
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6656
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6657
$as_echo_n "(cached) " >&6
6659
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660
/* end confdefs.h. */
6663
if ac_fn_c_try_compile "$LINENO"; then :
6664
xorg_cv_cc_flag_unknown_warning_option=yes
6666
xorg_cv_cc_flag_unknown_warning_option=no
6668
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6671
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6672
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6673
CFLAGS="$xorg_testset_save_CFLAGS"
6676
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6677
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6678
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6680
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6682
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6683
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6684
$as_echo_n "(cached) " >&6
6686
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687
/* end confdefs.h. */
6690
if ac_fn_c_try_compile "$LINENO"; then :
6691
xorg_cv_cc_flag_unused_command_line_argument=yes
6693
xorg_cv_cc_flag_unused_command_line_argument=no
6695
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6698
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6699
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6700
CFLAGS="$xorg_testset_save_CFLAGS"
6705
if test $found = "no" ; then
6706
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6707
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6710
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6711
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6714
CFLAGS="$CFLAGS -Wredundant-decls"
6716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6717
$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6718
cacheid=xorg_cv_cc_flag__Wredundant_decls
6719
if eval \${$cacheid+:} false; then :
6720
$as_echo_n "(cached) " >&6
6722
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723
/* end confdefs.h. */
6733
if ac_fn_c_try_link "$LINENO"; then :
6738
rm -f core conftest.err conftest.$ac_objext \
6739
conftest$ac_exeext conftest.$ac_ext
6743
CFLAGS="$xorg_testset_save_CFLAGS"
6745
eval supported=\$$cacheid
6746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6747
$as_echo "$supported" >&6; }
6748
if test "$supported" = "yes" ; then
6749
BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6756
# These are currently disabled because they are noisy. They will be enabled
6757
# in the future once the codebase is sufficiently modernized to silence
6758
# them. For now, I don't want them to drown out the other warnings.
6759
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6760
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6761
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6763
# Turn some warnings into errors, so we don't accidently get successful builds
6764
# when there are problems that should be fixed.
6766
if test "x$SELECTIVE_WERROR" = "xyes" ; then
6780
xorg_testset_save_CFLAGS="$CFLAGS"
6782
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6783
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6785
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6786
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6787
$as_echo_n "(cached) " >&6
6789
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790
/* end confdefs.h. */
6793
if ac_fn_c_try_compile "$LINENO"; then :
6794
xorg_cv_cc_flag_unknown_warning_option=yes
6796
xorg_cv_cc_flag_unknown_warning_option=no
6798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6801
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6802
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6803
CFLAGS="$xorg_testset_save_CFLAGS"
6806
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6807
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6808
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6810
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6812
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6813
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6814
$as_echo_n "(cached) " >&6
6816
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817
/* end confdefs.h. */
6820
if ac_fn_c_try_compile "$LINENO"; then :
6821
xorg_cv_cc_flag_unused_command_line_argument=yes
6823
xorg_cv_cc_flag_unused_command_line_argument=no
6825
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6828
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6829
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6830
CFLAGS="$xorg_testset_save_CFLAGS"
6835
if test $found = "no" ; then
6836
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6837
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6840
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6841
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6844
CFLAGS="$CFLAGS -Werror=implicit"
6846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6847
$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6848
cacheid=xorg_cv_cc_flag__Werror_implicit
6849
if eval \${$cacheid+:} false; then :
6850
$as_echo_n "(cached) " >&6
6852
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853
/* end confdefs.h. */
6863
if ac_fn_c_try_link "$LINENO"; then :
6868
rm -f core conftest.err conftest.$ac_objext \
6869
conftest$ac_exeext conftest.$ac_ext
6873
CFLAGS="$xorg_testset_save_CFLAGS"
6875
eval supported=\$$cacheid
6876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6877
$as_echo "$supported" >&6; }
6878
if test "$supported" = "yes" ; then
6879
BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6884
if test $found = "no" ; then
6885
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6886
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6889
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6890
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6893
CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6896
$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6897
cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6898
if eval \${$cacheid+:} false; then :
6899
$as_echo_n "(cached) " >&6
6901
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902
/* end confdefs.h. */
6912
if ac_fn_c_try_link "$LINENO"; then :
6917
rm -f core conftest.err conftest.$ac_objext \
6918
conftest$ac_exeext conftest.$ac_ext
6922
CFLAGS="$xorg_testset_save_CFLAGS"
6924
eval supported=\$$cacheid
6925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6926
$as_echo "$supported" >&6; }
6927
if test "$supported" = "yes" ; then
6928
BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6947
xorg_testset_save_CFLAGS="$CFLAGS"
6949
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6950
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6951
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6952
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6953
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6954
$as_echo_n "(cached) " >&6
6956
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957
/* end confdefs.h. */
6960
if ac_fn_c_try_compile "$LINENO"; then :
6961
xorg_cv_cc_flag_unknown_warning_option=yes
6963
xorg_cv_cc_flag_unknown_warning_option=no
6965
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6968
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6969
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6970
CFLAGS="$xorg_testset_save_CFLAGS"
6973
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6974
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6975
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6977
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6978
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6979
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6980
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6981
$as_echo_n "(cached) " >&6
6983
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984
/* end confdefs.h. */
6987
if ac_fn_c_try_compile "$LINENO"; then :
6988
xorg_cv_cc_flag_unused_command_line_argument=yes
6990
xorg_cv_cc_flag_unused_command_line_argument=no
6992
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6995
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6996
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6997
CFLAGS="$xorg_testset_save_CFLAGS"
7002
if test $found = "no" ; then
7003
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7004
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7007
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7008
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7011
CFLAGS="$CFLAGS -Werror=nonnull"
7013
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7014
$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7015
cacheid=xorg_cv_cc_flag__Werror_nonnull
7016
if eval \${$cacheid+:} false; then :
7017
$as_echo_n "(cached) " >&6
7019
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020
/* end confdefs.h. */
7030
if ac_fn_c_try_link "$LINENO"; then :
7035
rm -f core conftest.err conftest.$ac_objext \
7036
conftest$ac_exeext conftest.$ac_ext
7040
CFLAGS="$xorg_testset_save_CFLAGS"
7042
eval supported=\$$cacheid
7043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7044
$as_echo "$supported" >&6; }
7045
if test "$supported" = "yes" ; then
7046
BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7065
xorg_testset_save_CFLAGS="$CFLAGS"
7067
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7068
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7070
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7071
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7072
$as_echo_n "(cached) " >&6
7074
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075
/* end confdefs.h. */
7078
if ac_fn_c_try_compile "$LINENO"; then :
7079
xorg_cv_cc_flag_unknown_warning_option=yes
7081
xorg_cv_cc_flag_unknown_warning_option=no
7083
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7086
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7087
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7088
CFLAGS="$xorg_testset_save_CFLAGS"
7091
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7092
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7093
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7095
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7097
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7098
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7099
$as_echo_n "(cached) " >&6
7101
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102
/* end confdefs.h. */
7105
if ac_fn_c_try_compile "$LINENO"; then :
7106
xorg_cv_cc_flag_unused_command_line_argument=yes
7108
xorg_cv_cc_flag_unused_command_line_argument=no
7110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7113
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7114
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7115
CFLAGS="$xorg_testset_save_CFLAGS"
7120
if test $found = "no" ; then
7121
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7122
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7125
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7126
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7129
CFLAGS="$CFLAGS -Werror=init-self"
7131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7132
$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7133
cacheid=xorg_cv_cc_flag__Werror_init_self
7134
if eval \${$cacheid+:} false; then :
7135
$as_echo_n "(cached) " >&6
7137
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138
/* end confdefs.h. */
7148
if ac_fn_c_try_link "$LINENO"; then :
7153
rm -f core conftest.err conftest.$ac_objext \
7154
conftest$ac_exeext conftest.$ac_ext
7158
CFLAGS="$xorg_testset_save_CFLAGS"
7160
eval supported=\$$cacheid
7161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7162
$as_echo "$supported" >&6; }
7163
if test "$supported" = "yes" ; then
7164
BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7183
xorg_testset_save_CFLAGS="$CFLAGS"
7185
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7186
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7188
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7189
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7190
$as_echo_n "(cached) " >&6
7192
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193
/* end confdefs.h. */
7196
if ac_fn_c_try_compile "$LINENO"; then :
7197
xorg_cv_cc_flag_unknown_warning_option=yes
7199
xorg_cv_cc_flag_unknown_warning_option=no
7201
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7203
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7204
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7205
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7206
CFLAGS="$xorg_testset_save_CFLAGS"
7209
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7210
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7211
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7213
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7215
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7216
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7217
$as_echo_n "(cached) " >&6
7219
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220
/* end confdefs.h. */
7223
if ac_fn_c_try_compile "$LINENO"; then :
7224
xorg_cv_cc_flag_unused_command_line_argument=yes
7226
xorg_cv_cc_flag_unused_command_line_argument=no
7228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7231
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7232
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7233
CFLAGS="$xorg_testset_save_CFLAGS"
7238
if test $found = "no" ; then
7239
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7240
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7243
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7244
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7247
CFLAGS="$CFLAGS -Werror=main"
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7250
$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7251
cacheid=xorg_cv_cc_flag__Werror_main
7252
if eval \${$cacheid+:} false; then :
7253
$as_echo_n "(cached) " >&6
7255
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256
/* end confdefs.h. */
7266
if ac_fn_c_try_link "$LINENO"; then :
7271
rm -f core conftest.err conftest.$ac_objext \
7272
conftest$ac_exeext conftest.$ac_ext
7276
CFLAGS="$xorg_testset_save_CFLAGS"
7278
eval supported=\$$cacheid
7279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7280
$as_echo "$supported" >&6; }
7281
if test "$supported" = "yes" ; then
7282
BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7301
xorg_testset_save_CFLAGS="$CFLAGS"
7303
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7304
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7306
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7307
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7308
$as_echo_n "(cached) " >&6
7310
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311
/* end confdefs.h. */
7314
if ac_fn_c_try_compile "$LINENO"; then :
7315
xorg_cv_cc_flag_unknown_warning_option=yes
7317
xorg_cv_cc_flag_unknown_warning_option=no
7319
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7322
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7323
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7324
CFLAGS="$xorg_testset_save_CFLAGS"
7327
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7328
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7329
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7331
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7333
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7334
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7335
$as_echo_n "(cached) " >&6
7337
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338
/* end confdefs.h. */
7341
if ac_fn_c_try_compile "$LINENO"; then :
7342
xorg_cv_cc_flag_unused_command_line_argument=yes
7344
xorg_cv_cc_flag_unused_command_line_argument=no
7346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7349
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7350
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7351
CFLAGS="$xorg_testset_save_CFLAGS"
7356
if test $found = "no" ; then
7357
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7358
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7361
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7362
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7365
CFLAGS="$CFLAGS -Werror=missing-braces"
7367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7368
$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7369
cacheid=xorg_cv_cc_flag__Werror_missing_braces
7370
if eval \${$cacheid+:} false; then :
7371
$as_echo_n "(cached) " >&6
7373
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374
/* end confdefs.h. */
7384
if ac_fn_c_try_link "$LINENO"; then :
7389
rm -f core conftest.err conftest.$ac_objext \
7390
conftest$ac_exeext conftest.$ac_ext
7394
CFLAGS="$xorg_testset_save_CFLAGS"
7396
eval supported=\$$cacheid
7397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7398
$as_echo "$supported" >&6; }
7399
if test "$supported" = "yes" ; then
7400
BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7419
xorg_testset_save_CFLAGS="$CFLAGS"
7421
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7422
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7423
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7424
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7425
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7426
$as_echo_n "(cached) " >&6
7428
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429
/* end confdefs.h. */
7432
if ac_fn_c_try_compile "$LINENO"; then :
7433
xorg_cv_cc_flag_unknown_warning_option=yes
7435
xorg_cv_cc_flag_unknown_warning_option=no
7437
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7440
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7441
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7442
CFLAGS="$xorg_testset_save_CFLAGS"
7445
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7446
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7447
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7449
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7451
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7452
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7453
$as_echo_n "(cached) " >&6
7455
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456
/* end confdefs.h. */
7459
if ac_fn_c_try_compile "$LINENO"; then :
7460
xorg_cv_cc_flag_unused_command_line_argument=yes
7462
xorg_cv_cc_flag_unused_command_line_argument=no
7464
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7467
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7468
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7469
CFLAGS="$xorg_testset_save_CFLAGS"
7474
if test $found = "no" ; then
7475
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7476
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7479
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7480
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7483
CFLAGS="$CFLAGS -Werror=sequence-point"
7485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7486
$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7487
cacheid=xorg_cv_cc_flag__Werror_sequence_point
7488
if eval \${$cacheid+:} false; then :
7489
$as_echo_n "(cached) " >&6
7491
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492
/* end confdefs.h. */
7502
if ac_fn_c_try_link "$LINENO"; then :
7507
rm -f core conftest.err conftest.$ac_objext \
7508
conftest$ac_exeext conftest.$ac_ext
7512
CFLAGS="$xorg_testset_save_CFLAGS"
7514
eval supported=\$$cacheid
7515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7516
$as_echo "$supported" >&6; }
7517
if test "$supported" = "yes" ; then
7518
BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7537
xorg_testset_save_CFLAGS="$CFLAGS"
7539
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7540
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7542
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7543
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7544
$as_echo_n "(cached) " >&6
7546
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547
/* end confdefs.h. */
7550
if ac_fn_c_try_compile "$LINENO"; then :
7551
xorg_cv_cc_flag_unknown_warning_option=yes
7553
xorg_cv_cc_flag_unknown_warning_option=no
7555
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7558
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7559
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7560
CFLAGS="$xorg_testset_save_CFLAGS"
7563
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7564
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7565
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7567
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7569
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7570
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7571
$as_echo_n "(cached) " >&6
7573
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574
/* end confdefs.h. */
7577
if ac_fn_c_try_compile "$LINENO"; then :
7578
xorg_cv_cc_flag_unused_command_line_argument=yes
7580
xorg_cv_cc_flag_unused_command_line_argument=no
7582
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7585
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7586
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7587
CFLAGS="$xorg_testset_save_CFLAGS"
7592
if test $found = "no" ; then
7593
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7594
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7597
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7598
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7601
CFLAGS="$CFLAGS -Werror=return-type"
7603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7604
$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7605
cacheid=xorg_cv_cc_flag__Werror_return_type
7606
if eval \${$cacheid+:} false; then :
7607
$as_echo_n "(cached) " >&6
7609
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610
/* end confdefs.h. */
7620
if ac_fn_c_try_link "$LINENO"; then :
7625
rm -f core conftest.err conftest.$ac_objext \
7626
conftest$ac_exeext conftest.$ac_ext
7630
CFLAGS="$xorg_testset_save_CFLAGS"
7632
eval supported=\$$cacheid
7633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7634
$as_echo "$supported" >&6; }
7635
if test "$supported" = "yes" ; then
7636
BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7641
if test $found = "no" ; then
7642
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7643
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7646
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7647
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7650
CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7653
$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7654
cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7655
if eval \${$cacheid+:} false; then :
7656
$as_echo_n "(cached) " >&6
7658
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659
/* end confdefs.h. */
7669
if ac_fn_c_try_link "$LINENO"; then :
7674
rm -f core conftest.err conftest.$ac_objext \
7675
conftest$ac_exeext conftest.$ac_ext
7679
CFLAGS="$xorg_testset_save_CFLAGS"
7681
eval supported=\$$cacheid
7682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7683
$as_echo "$supported" >&6; }
7684
if test "$supported" = "yes" ; then
7685
BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7704
xorg_testset_save_CFLAGS="$CFLAGS"
7706
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7707
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7708
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7709
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7710
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7711
$as_echo_n "(cached) " >&6
7713
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714
/* end confdefs.h. */
7717
if ac_fn_c_try_compile "$LINENO"; then :
7718
xorg_cv_cc_flag_unknown_warning_option=yes
7720
xorg_cv_cc_flag_unknown_warning_option=no
7722
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7725
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7726
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7727
CFLAGS="$xorg_testset_save_CFLAGS"
7730
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7731
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7732
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7734
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7736
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7737
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7738
$as_echo_n "(cached) " >&6
7740
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741
/* end confdefs.h. */
7744
if ac_fn_c_try_compile "$LINENO"; then :
7745
xorg_cv_cc_flag_unused_command_line_argument=yes
7747
xorg_cv_cc_flag_unused_command_line_argument=no
7749
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7752
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7753
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7754
CFLAGS="$xorg_testset_save_CFLAGS"
7759
if test $found = "no" ; then
7760
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7761
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7764
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7765
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7768
CFLAGS="$CFLAGS -Werror=trigraphs"
7770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7771
$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7772
cacheid=xorg_cv_cc_flag__Werror_trigraphs
7773
if eval \${$cacheid+:} false; then :
7774
$as_echo_n "(cached) " >&6
7776
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777
/* end confdefs.h. */
7787
if ac_fn_c_try_link "$LINENO"; then :
7792
rm -f core conftest.err conftest.$ac_objext \
7793
conftest$ac_exeext conftest.$ac_ext
7797
CFLAGS="$xorg_testset_save_CFLAGS"
7799
eval supported=\$$cacheid
7800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7801
$as_echo "$supported" >&6; }
7802
if test "$supported" = "yes" ; then
7803
BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7822
xorg_testset_save_CFLAGS="$CFLAGS"
7824
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7825
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7827
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7828
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7829
$as_echo_n "(cached) " >&6
7831
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832
/* end confdefs.h. */
7835
if ac_fn_c_try_compile "$LINENO"; then :
7836
xorg_cv_cc_flag_unknown_warning_option=yes
7838
xorg_cv_cc_flag_unknown_warning_option=no
7840
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7843
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7844
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7845
CFLAGS="$xorg_testset_save_CFLAGS"
7848
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7849
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7850
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7852
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7854
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7855
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7856
$as_echo_n "(cached) " >&6
7858
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859
/* end confdefs.h. */
7862
if ac_fn_c_try_compile "$LINENO"; then :
7863
xorg_cv_cc_flag_unused_command_line_argument=yes
7865
xorg_cv_cc_flag_unused_command_line_argument=no
7867
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7870
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7871
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7872
CFLAGS="$xorg_testset_save_CFLAGS"
7877
if test $found = "no" ; then
7878
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7879
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7882
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7883
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7886
CFLAGS="$CFLAGS -Werror=array-bounds"
7888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7889
$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7890
cacheid=xorg_cv_cc_flag__Werror_array_bounds
7891
if eval \${$cacheid+:} false; then :
7892
$as_echo_n "(cached) " >&6
7894
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895
/* end confdefs.h. */
7905
if ac_fn_c_try_link "$LINENO"; then :
7910
rm -f core conftest.err conftest.$ac_objext \
7911
conftest$ac_exeext conftest.$ac_ext
7915
CFLAGS="$xorg_testset_save_CFLAGS"
7917
eval supported=\$$cacheid
7918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7919
$as_echo "$supported" >&6; }
7920
if test "$supported" = "yes" ; then
7921
BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7940
xorg_testset_save_CFLAGS="$CFLAGS"
7942
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7943
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7944
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7945
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7946
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7947
$as_echo_n "(cached) " >&6
7949
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950
/* end confdefs.h. */
7953
if ac_fn_c_try_compile "$LINENO"; then :
7954
xorg_cv_cc_flag_unknown_warning_option=yes
7956
xorg_cv_cc_flag_unknown_warning_option=no
7958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7961
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7962
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7963
CFLAGS="$xorg_testset_save_CFLAGS"
7966
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7967
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7968
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7970
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7972
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7973
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7974
$as_echo_n "(cached) " >&6
7976
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977
/* end confdefs.h. */
7980
if ac_fn_c_try_compile "$LINENO"; then :
7981
xorg_cv_cc_flag_unused_command_line_argument=yes
7983
xorg_cv_cc_flag_unused_command_line_argument=no
7985
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7988
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7989
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7990
CFLAGS="$xorg_testset_save_CFLAGS"
7995
if test $found = "no" ; then
7996
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7997
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8000
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8001
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8004
CFLAGS="$CFLAGS -Werror=write-strings"
8006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8007
$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8008
cacheid=xorg_cv_cc_flag__Werror_write_strings
8009
if eval \${$cacheid+:} false; then :
8010
$as_echo_n "(cached) " >&6
8012
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013
/* end confdefs.h. */
8023
if ac_fn_c_try_link "$LINENO"; then :
8028
rm -f core conftest.err conftest.$ac_objext \
8029
conftest$ac_exeext conftest.$ac_ext
8033
CFLAGS="$xorg_testset_save_CFLAGS"
8035
eval supported=\$$cacheid
8036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8037
$as_echo "$supported" >&6; }
8038
if test "$supported" = "yes" ; then
8039
BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8058
xorg_testset_save_CFLAGS="$CFLAGS"
8060
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8061
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8063
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8064
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8065
$as_echo_n "(cached) " >&6
8067
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068
/* end confdefs.h. */
8071
if ac_fn_c_try_compile "$LINENO"; then :
8072
xorg_cv_cc_flag_unknown_warning_option=yes
8074
xorg_cv_cc_flag_unknown_warning_option=no
8076
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8079
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8080
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8081
CFLAGS="$xorg_testset_save_CFLAGS"
8084
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8085
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8086
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8088
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8089
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8090
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8091
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8092
$as_echo_n "(cached) " >&6
8094
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095
/* end confdefs.h. */
8098
if ac_fn_c_try_compile "$LINENO"; then :
8099
xorg_cv_cc_flag_unused_command_line_argument=yes
8101
xorg_cv_cc_flag_unused_command_line_argument=no
8103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8106
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8107
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8108
CFLAGS="$xorg_testset_save_CFLAGS"
8113
if test $found = "no" ; then
8114
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8115
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8118
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8119
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8122
CFLAGS="$CFLAGS -Werror=address"
8124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8125
$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8126
cacheid=xorg_cv_cc_flag__Werror_address
8127
if eval \${$cacheid+:} false; then :
8128
$as_echo_n "(cached) " >&6
8130
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131
/* end confdefs.h. */
8141
if ac_fn_c_try_link "$LINENO"; then :
8146
rm -f core conftest.err conftest.$ac_objext \
8147
conftest$ac_exeext conftest.$ac_ext
8151
CFLAGS="$xorg_testset_save_CFLAGS"
8153
eval supported=\$$cacheid
8154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8155
$as_echo "$supported" >&6; }
8156
if test "$supported" = "yes" ; then
8157
BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8176
xorg_testset_save_CFLAGS="$CFLAGS"
8178
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8179
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8181
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8182
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8183
$as_echo_n "(cached) " >&6
8185
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8186
/* end confdefs.h. */
8189
if ac_fn_c_try_compile "$LINENO"; then :
8190
xorg_cv_cc_flag_unknown_warning_option=yes
8192
xorg_cv_cc_flag_unknown_warning_option=no
8194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8197
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8198
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8199
CFLAGS="$xorg_testset_save_CFLAGS"
8202
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8203
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8204
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8206
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8207
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8208
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8209
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8210
$as_echo_n "(cached) " >&6
8212
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213
/* end confdefs.h. */
8216
if ac_fn_c_try_compile "$LINENO"; then :
8217
xorg_cv_cc_flag_unused_command_line_argument=yes
8219
xorg_cv_cc_flag_unused_command_line_argument=no
8221
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8224
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8225
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8226
CFLAGS="$xorg_testset_save_CFLAGS"
8231
if test $found = "no" ; then
8232
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8233
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8236
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8237
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8240
CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8242
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8243
$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8244
cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8245
if eval \${$cacheid+:} false; then :
8246
$as_echo_n "(cached) " >&6
8248
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249
/* end confdefs.h. */
8259
if ac_fn_c_try_link "$LINENO"; then :
8264
rm -f core conftest.err conftest.$ac_objext \
8265
conftest$ac_exeext conftest.$ac_ext
8269
CFLAGS="$xorg_testset_save_CFLAGS"
8271
eval supported=\$$cacheid
8272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8273
$as_echo "$supported" >&6; }
8274
if test "$supported" = "yes" ; then
8275
BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8280
if test $found = "no" ; then
8281
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8282
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8285
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8286
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8289
CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8292
$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8293
cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8294
if eval \${$cacheid+:} false; then :
8295
$as_echo_n "(cached) " >&6
8297
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298
/* end confdefs.h. */
8308
if ac_fn_c_try_link "$LINENO"; then :
8313
rm -f core conftest.err conftest.$ac_objext \
8314
conftest$ac_exeext conftest.$ac_ext
8318
CFLAGS="$xorg_testset_save_CFLAGS"
8320
eval supported=\$$cacheid
8321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8322
$as_echo "$supported" >&6; }
8323
if test "$supported" = "yes" ; then
8324
BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8343
xorg_testset_save_CFLAGS="$CFLAGS"
8345
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8346
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8348
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8349
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8350
$as_echo_n "(cached) " >&6
8352
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353
/* end confdefs.h. */
8356
if ac_fn_c_try_compile "$LINENO"; then :
8357
xorg_cv_cc_flag_unknown_warning_option=yes
8359
xorg_cv_cc_flag_unknown_warning_option=no
8361
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8364
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8365
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8366
CFLAGS="$xorg_testset_save_CFLAGS"
8369
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8370
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8371
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8373
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8375
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8376
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8377
$as_echo_n "(cached) " >&6
8379
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380
/* end confdefs.h. */
8383
if ac_fn_c_try_compile "$LINENO"; then :
8384
xorg_cv_cc_flag_unused_command_line_argument=yes
8386
xorg_cv_cc_flag_unused_command_line_argument=no
8388
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8391
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8392
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8393
CFLAGS="$xorg_testset_save_CFLAGS"
8398
if test $found = "no" ; then
8399
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8400
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8403
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8404
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8407
CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8410
$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8411
cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8412
if eval \${$cacheid+:} false; then :
8413
$as_echo_n "(cached) " >&6
8415
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416
/* end confdefs.h. */
8426
if ac_fn_c_try_link "$LINENO"; then :
8431
rm -f core conftest.err conftest.$ac_objext \
8432
conftest$ac_exeext conftest.$ac_ext
8436
CFLAGS="$xorg_testset_save_CFLAGS"
8438
eval supported=\$$cacheid
8439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8440
$as_echo "$supported" >&6; }
8441
if test "$supported" = "yes" ; then
8442
BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8447
# Also -errwarn=E_BAD_PTR_INT_COMBINATION
8449
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8450
$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8464
xorg_testset_save_CFLAGS="$CFLAGS"
8466
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8467
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8469
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8470
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8471
$as_echo_n "(cached) " >&6
8473
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474
/* end confdefs.h. */
8477
if ac_fn_c_try_compile "$LINENO"; then :
8478
xorg_cv_cc_flag_unknown_warning_option=yes
8480
xorg_cv_cc_flag_unknown_warning_option=no
8482
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8485
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8486
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8487
CFLAGS="$xorg_testset_save_CFLAGS"
8490
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8491
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8492
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8494
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8495
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8496
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8497
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8498
$as_echo_n "(cached) " >&6
8500
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501
/* end confdefs.h. */
8504
if ac_fn_c_try_compile "$LINENO"; then :
8505
xorg_cv_cc_flag_unused_command_line_argument=yes
8507
xorg_cv_cc_flag_unused_command_line_argument=no
8509
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8512
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8513
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8514
CFLAGS="$xorg_testset_save_CFLAGS"
8519
if test $found = "no" ; then
8520
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8521
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8524
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8525
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8528
CFLAGS="$CFLAGS -Wimplicit"
8530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8531
$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8532
cacheid=xorg_cv_cc_flag__Wimplicit
8533
if eval \${$cacheid+:} false; then :
8534
$as_echo_n "(cached) " >&6
8536
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537
/* end confdefs.h. */
8547
if ac_fn_c_try_link "$LINENO"; then :
8552
rm -f core conftest.err conftest.$ac_objext \
8553
conftest$ac_exeext conftest.$ac_ext
8557
CFLAGS="$xorg_testset_save_CFLAGS"
8559
eval supported=\$$cacheid
8560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8561
$as_echo "$supported" >&6; }
8562
if test "$supported" = "yes" ; then
8563
BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8582
xorg_testset_save_CFLAGS="$CFLAGS"
8584
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8585
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8587
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8588
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8589
$as_echo_n "(cached) " >&6
8591
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592
/* end confdefs.h. */
8595
if ac_fn_c_try_compile "$LINENO"; then :
8596
xorg_cv_cc_flag_unknown_warning_option=yes
8598
xorg_cv_cc_flag_unknown_warning_option=no
8600
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8603
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8604
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8605
CFLAGS="$xorg_testset_save_CFLAGS"
8608
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8609
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8610
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8612
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8613
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8614
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8615
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8616
$as_echo_n "(cached) " >&6
8618
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619
/* end confdefs.h. */
8622
if ac_fn_c_try_compile "$LINENO"; then :
8623
xorg_cv_cc_flag_unused_command_line_argument=yes
8625
xorg_cv_cc_flag_unused_command_line_argument=no
8627
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8630
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8631
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8632
CFLAGS="$xorg_testset_save_CFLAGS"
8637
if test $found = "no" ; then
8638
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8639
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8642
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8643
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8646
CFLAGS="$CFLAGS -Wnonnull"
8648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8649
$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8650
cacheid=xorg_cv_cc_flag__Wnonnull
8651
if eval \${$cacheid+:} false; then :
8652
$as_echo_n "(cached) " >&6
8654
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655
/* end confdefs.h. */
8665
if ac_fn_c_try_link "$LINENO"; then :
8670
rm -f core conftest.err conftest.$ac_objext \
8671
conftest$ac_exeext conftest.$ac_ext
8675
CFLAGS="$xorg_testset_save_CFLAGS"
8677
eval supported=\$$cacheid
8678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8679
$as_echo "$supported" >&6; }
8680
if test "$supported" = "yes" ; then
8681
BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8700
xorg_testset_save_CFLAGS="$CFLAGS"
8702
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8703
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8705
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8706
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8707
$as_echo_n "(cached) " >&6
8709
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710
/* end confdefs.h. */
8713
if ac_fn_c_try_compile "$LINENO"; then :
8714
xorg_cv_cc_flag_unknown_warning_option=yes
8716
xorg_cv_cc_flag_unknown_warning_option=no
8718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8721
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8722
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8723
CFLAGS="$xorg_testset_save_CFLAGS"
8726
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8727
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8728
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8730
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8732
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8733
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8734
$as_echo_n "(cached) " >&6
8736
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737
/* end confdefs.h. */
8740
if ac_fn_c_try_compile "$LINENO"; then :
8741
xorg_cv_cc_flag_unused_command_line_argument=yes
8743
xorg_cv_cc_flag_unused_command_line_argument=no
8745
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8748
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8749
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8750
CFLAGS="$xorg_testset_save_CFLAGS"
8755
if test $found = "no" ; then
8756
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8757
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8760
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8761
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8764
CFLAGS="$CFLAGS -Winit-self"
8766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8767
$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8768
cacheid=xorg_cv_cc_flag__Winit_self
8769
if eval \${$cacheid+:} false; then :
8770
$as_echo_n "(cached) " >&6
8772
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773
/* end confdefs.h. */
8783
if ac_fn_c_try_link "$LINENO"; then :
8788
rm -f core conftest.err conftest.$ac_objext \
8789
conftest$ac_exeext conftest.$ac_ext
8793
CFLAGS="$xorg_testset_save_CFLAGS"
8795
eval supported=\$$cacheid
8796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8797
$as_echo "$supported" >&6; }
8798
if test "$supported" = "yes" ; then
8799
BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8818
xorg_testset_save_CFLAGS="$CFLAGS"
8820
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8821
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8822
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8823
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8824
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8825
$as_echo_n "(cached) " >&6
8827
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828
/* end confdefs.h. */
8831
if ac_fn_c_try_compile "$LINENO"; then :
8832
xorg_cv_cc_flag_unknown_warning_option=yes
8834
xorg_cv_cc_flag_unknown_warning_option=no
8836
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8839
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8840
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8841
CFLAGS="$xorg_testset_save_CFLAGS"
8844
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8845
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8846
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8848
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8849
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8850
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8851
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8852
$as_echo_n "(cached) " >&6
8854
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855
/* end confdefs.h. */
8858
if ac_fn_c_try_compile "$LINENO"; then :
8859
xorg_cv_cc_flag_unused_command_line_argument=yes
8861
xorg_cv_cc_flag_unused_command_line_argument=no
8863
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8866
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8867
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8868
CFLAGS="$xorg_testset_save_CFLAGS"
8873
if test $found = "no" ; then
8874
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8875
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8878
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8879
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8882
CFLAGS="$CFLAGS -Wmain"
8884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8885
$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8886
cacheid=xorg_cv_cc_flag__Wmain
8887
if eval \${$cacheid+:} false; then :
8888
$as_echo_n "(cached) " >&6
8890
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891
/* end confdefs.h. */
8901
if ac_fn_c_try_link "$LINENO"; then :
8906
rm -f core conftest.err conftest.$ac_objext \
8907
conftest$ac_exeext conftest.$ac_ext
8911
CFLAGS="$xorg_testset_save_CFLAGS"
8913
eval supported=\$$cacheid
8914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8915
$as_echo "$supported" >&6; }
8916
if test "$supported" = "yes" ; then
8917
BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8936
xorg_testset_save_CFLAGS="$CFLAGS"
8938
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8939
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8941
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8942
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8943
$as_echo_n "(cached) " >&6
8945
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946
/* end confdefs.h. */
8949
if ac_fn_c_try_compile "$LINENO"; then :
8950
xorg_cv_cc_flag_unknown_warning_option=yes
8952
xorg_cv_cc_flag_unknown_warning_option=no
8954
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8957
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8958
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8959
CFLAGS="$xorg_testset_save_CFLAGS"
8962
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8963
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8964
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8966
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8968
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8969
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8970
$as_echo_n "(cached) " >&6
8972
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973
/* end confdefs.h. */
8976
if ac_fn_c_try_compile "$LINENO"; then :
8977
xorg_cv_cc_flag_unused_command_line_argument=yes
8979
xorg_cv_cc_flag_unused_command_line_argument=no
8981
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8984
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8985
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8986
CFLAGS="$xorg_testset_save_CFLAGS"
8991
if test $found = "no" ; then
8992
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8993
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8996
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8997
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9000
CFLAGS="$CFLAGS -Wmissing-braces"
9002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9003
$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9004
cacheid=xorg_cv_cc_flag__Wmissing_braces
9005
if eval \${$cacheid+:} false; then :
9006
$as_echo_n "(cached) " >&6
9008
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009
/* end confdefs.h. */
9019
if ac_fn_c_try_link "$LINENO"; then :
9024
rm -f core conftest.err conftest.$ac_objext \
9025
conftest$ac_exeext conftest.$ac_ext
9029
CFLAGS="$xorg_testset_save_CFLAGS"
9031
eval supported=\$$cacheid
9032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9033
$as_echo "$supported" >&6; }
9034
if test "$supported" = "yes" ; then
9035
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9054
xorg_testset_save_CFLAGS="$CFLAGS"
9056
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9057
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9058
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9059
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9060
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9061
$as_echo_n "(cached) " >&6
9063
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064
/* end confdefs.h. */
9067
if ac_fn_c_try_compile "$LINENO"; then :
9068
xorg_cv_cc_flag_unknown_warning_option=yes
9070
xorg_cv_cc_flag_unknown_warning_option=no
9072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9075
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9076
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9077
CFLAGS="$xorg_testset_save_CFLAGS"
9080
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9081
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9082
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9084
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9086
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9087
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9088
$as_echo_n "(cached) " >&6
9090
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091
/* end confdefs.h. */
9094
if ac_fn_c_try_compile "$LINENO"; then :
9095
xorg_cv_cc_flag_unused_command_line_argument=yes
9097
xorg_cv_cc_flag_unused_command_line_argument=no
9099
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9102
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9103
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9104
CFLAGS="$xorg_testset_save_CFLAGS"
9109
if test $found = "no" ; then
9110
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9111
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9114
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9115
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9118
CFLAGS="$CFLAGS -Wsequence-point"
9120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9121
$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9122
cacheid=xorg_cv_cc_flag__Wsequence_point
9123
if eval \${$cacheid+:} false; then :
9124
$as_echo_n "(cached) " >&6
9126
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127
/* end confdefs.h. */
9137
if ac_fn_c_try_link "$LINENO"; then :
9142
rm -f core conftest.err conftest.$ac_objext \
9143
conftest$ac_exeext conftest.$ac_ext
9147
CFLAGS="$xorg_testset_save_CFLAGS"
9149
eval supported=\$$cacheid
9150
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9151
$as_echo "$supported" >&6; }
9152
if test "$supported" = "yes" ; then
9153
BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9172
xorg_testset_save_CFLAGS="$CFLAGS"
9174
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9175
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9177
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9178
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9179
$as_echo_n "(cached) " >&6
9181
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182
/* end confdefs.h. */
9185
if ac_fn_c_try_compile "$LINENO"; then :
9186
xorg_cv_cc_flag_unknown_warning_option=yes
9188
xorg_cv_cc_flag_unknown_warning_option=no
9190
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9193
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9194
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9195
CFLAGS="$xorg_testset_save_CFLAGS"
9198
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9199
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9200
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9202
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9204
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9205
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9206
$as_echo_n "(cached) " >&6
9208
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209
/* end confdefs.h. */
9212
if ac_fn_c_try_compile "$LINENO"; then :
9213
xorg_cv_cc_flag_unused_command_line_argument=yes
9215
xorg_cv_cc_flag_unused_command_line_argument=no
9217
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9220
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9221
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9222
CFLAGS="$xorg_testset_save_CFLAGS"
9227
if test $found = "no" ; then
9228
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9229
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9232
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9233
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9236
CFLAGS="$CFLAGS -Wreturn-type"
9238
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9239
$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9240
cacheid=xorg_cv_cc_flag__Wreturn_type
9241
if eval \${$cacheid+:} false; then :
9242
$as_echo_n "(cached) " >&6
9244
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9245
/* end confdefs.h. */
9255
if ac_fn_c_try_link "$LINENO"; then :
9260
rm -f core conftest.err conftest.$ac_objext \
9261
conftest$ac_exeext conftest.$ac_ext
9265
CFLAGS="$xorg_testset_save_CFLAGS"
9267
eval supported=\$$cacheid
9268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9269
$as_echo "$supported" >&6; }
9270
if test "$supported" = "yes" ; then
9271
BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9290
xorg_testset_save_CFLAGS="$CFLAGS"
9292
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9293
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9295
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9296
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9297
$as_echo_n "(cached) " >&6
9299
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300
/* end confdefs.h. */
9303
if ac_fn_c_try_compile "$LINENO"; then :
9304
xorg_cv_cc_flag_unknown_warning_option=yes
9306
xorg_cv_cc_flag_unknown_warning_option=no
9308
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9311
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9312
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9313
CFLAGS="$xorg_testset_save_CFLAGS"
9316
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9317
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9318
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9320
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9322
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9323
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9324
$as_echo_n "(cached) " >&6
9326
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327
/* end confdefs.h. */
9330
if ac_fn_c_try_compile "$LINENO"; then :
9331
xorg_cv_cc_flag_unused_command_line_argument=yes
9333
xorg_cv_cc_flag_unused_command_line_argument=no
9335
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9338
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9339
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9340
CFLAGS="$xorg_testset_save_CFLAGS"
9345
if test $found = "no" ; then
9346
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9347
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9350
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9351
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9354
CFLAGS="$CFLAGS -Wtrigraphs"
9356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9357
$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9358
cacheid=xorg_cv_cc_flag__Wtrigraphs
9359
if eval \${$cacheid+:} false; then :
9360
$as_echo_n "(cached) " >&6
9362
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363
/* end confdefs.h. */
9373
if ac_fn_c_try_link "$LINENO"; then :
9378
rm -f core conftest.err conftest.$ac_objext \
9379
conftest$ac_exeext conftest.$ac_ext
9383
CFLAGS="$xorg_testset_save_CFLAGS"
9385
eval supported=\$$cacheid
9386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9387
$as_echo "$supported" >&6; }
9388
if test "$supported" = "yes" ; then
9389
BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9408
xorg_testset_save_CFLAGS="$CFLAGS"
9410
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9411
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9412
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9413
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9414
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9415
$as_echo_n "(cached) " >&6
9417
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418
/* end confdefs.h. */
9421
if ac_fn_c_try_compile "$LINENO"; then :
9422
xorg_cv_cc_flag_unknown_warning_option=yes
9424
xorg_cv_cc_flag_unknown_warning_option=no
9426
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9429
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9430
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9431
CFLAGS="$xorg_testset_save_CFLAGS"
9434
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9435
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9436
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9438
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9440
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9441
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9442
$as_echo_n "(cached) " >&6
9444
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445
/* end confdefs.h. */
9448
if ac_fn_c_try_compile "$LINENO"; then :
9449
xorg_cv_cc_flag_unused_command_line_argument=yes
9451
xorg_cv_cc_flag_unused_command_line_argument=no
9453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9456
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9457
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9458
CFLAGS="$xorg_testset_save_CFLAGS"
9463
if test $found = "no" ; then
9464
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9465
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9468
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9469
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9472
CFLAGS="$CFLAGS -Warray-bounds"
9474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9475
$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9476
cacheid=xorg_cv_cc_flag__Warray_bounds
9477
if eval \${$cacheid+:} false; then :
9478
$as_echo_n "(cached) " >&6
9480
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481
/* end confdefs.h. */
9491
if ac_fn_c_try_link "$LINENO"; then :
9496
rm -f core conftest.err conftest.$ac_objext \
9497
conftest$ac_exeext conftest.$ac_ext
9501
CFLAGS="$xorg_testset_save_CFLAGS"
9503
eval supported=\$$cacheid
9504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9505
$as_echo "$supported" >&6; }
9506
if test "$supported" = "yes" ; then
9507
BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9526
xorg_testset_save_CFLAGS="$CFLAGS"
9528
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9529
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9531
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9532
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9533
$as_echo_n "(cached) " >&6
9535
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536
/* end confdefs.h. */
9539
if ac_fn_c_try_compile "$LINENO"; then :
9540
xorg_cv_cc_flag_unknown_warning_option=yes
9542
xorg_cv_cc_flag_unknown_warning_option=no
9544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9547
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9548
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9549
CFLAGS="$xorg_testset_save_CFLAGS"
9552
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9553
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9554
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9556
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9558
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9559
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9560
$as_echo_n "(cached) " >&6
9562
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563
/* end confdefs.h. */
9566
if ac_fn_c_try_compile "$LINENO"; then :
9567
xorg_cv_cc_flag_unused_command_line_argument=yes
9569
xorg_cv_cc_flag_unused_command_line_argument=no
9571
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9574
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9575
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9576
CFLAGS="$xorg_testset_save_CFLAGS"
9581
if test $found = "no" ; then
9582
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9583
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9586
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9587
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9590
CFLAGS="$CFLAGS -Wwrite-strings"
9592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9593
$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9594
cacheid=xorg_cv_cc_flag__Wwrite_strings
9595
if eval \${$cacheid+:} false; then :
9596
$as_echo_n "(cached) " >&6
9598
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599
/* end confdefs.h. */
9609
if ac_fn_c_try_link "$LINENO"; then :
9614
rm -f core conftest.err conftest.$ac_objext \
9615
conftest$ac_exeext conftest.$ac_ext
9619
CFLAGS="$xorg_testset_save_CFLAGS"
9621
eval supported=\$$cacheid
9622
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9623
$as_echo "$supported" >&6; }
9624
if test "$supported" = "yes" ; then
9625
BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9644
xorg_testset_save_CFLAGS="$CFLAGS"
9646
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9647
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9649
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9650
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9651
$as_echo_n "(cached) " >&6
9653
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654
/* end confdefs.h. */
9657
if ac_fn_c_try_compile "$LINENO"; then :
9658
xorg_cv_cc_flag_unknown_warning_option=yes
9660
xorg_cv_cc_flag_unknown_warning_option=no
9662
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9665
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9666
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9667
CFLAGS="$xorg_testset_save_CFLAGS"
9670
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9671
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9672
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9674
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9676
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9677
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9678
$as_echo_n "(cached) " >&6
9680
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681
/* end confdefs.h. */
9684
if ac_fn_c_try_compile "$LINENO"; then :
9685
xorg_cv_cc_flag_unused_command_line_argument=yes
9687
xorg_cv_cc_flag_unused_command_line_argument=no
9689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9692
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9693
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9694
CFLAGS="$xorg_testset_save_CFLAGS"
9699
if test $found = "no" ; then
9700
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9701
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9704
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9705
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9708
CFLAGS="$CFLAGS -Waddress"
9710
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9711
$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9712
cacheid=xorg_cv_cc_flag__Waddress
9713
if eval \${$cacheid+:} false; then :
9714
$as_echo_n "(cached) " >&6
9716
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717
/* end confdefs.h. */
9727
if ac_fn_c_try_link "$LINENO"; then :
9732
rm -f core conftest.err conftest.$ac_objext \
9733
conftest$ac_exeext conftest.$ac_ext
9737
CFLAGS="$xorg_testset_save_CFLAGS"
9739
eval supported=\$$cacheid
9740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9741
$as_echo "$supported" >&6; }
9742
if test "$supported" = "yes" ; then
9743
BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9762
xorg_testset_save_CFLAGS="$CFLAGS"
9764
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9765
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9767
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9768
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9769
$as_echo_n "(cached) " >&6
9771
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9772
/* end confdefs.h. */
9775
if ac_fn_c_try_compile "$LINENO"; then :
9776
xorg_cv_cc_flag_unknown_warning_option=yes
9778
xorg_cv_cc_flag_unknown_warning_option=no
9780
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9783
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9784
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9785
CFLAGS="$xorg_testset_save_CFLAGS"
9788
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9789
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9790
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9792
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9793
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9794
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9795
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9796
$as_echo_n "(cached) " >&6
9798
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799
/* end confdefs.h. */
9802
if ac_fn_c_try_compile "$LINENO"; then :
9803
xorg_cv_cc_flag_unused_command_line_argument=yes
9805
xorg_cv_cc_flag_unused_command_line_argument=no
9807
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9810
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9811
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9812
CFLAGS="$xorg_testset_save_CFLAGS"
9817
if test $found = "no" ; then
9818
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9819
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9822
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9823
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9826
CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9829
$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9830
cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9831
if eval \${$cacheid+:} false; then :
9832
$as_echo_n "(cached) " >&6
9834
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835
/* end confdefs.h. */
9845
if ac_fn_c_try_link "$LINENO"; then :
9850
rm -f core conftest.err conftest.$ac_objext \
9851
conftest$ac_exeext conftest.$ac_ext
9855
CFLAGS="$xorg_testset_save_CFLAGS"
9857
eval supported=\$$cacheid
9858
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9859
$as_echo "$supported" >&6; }
9860
if test "$supported" = "yes" ; then
9861
BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9880
xorg_testset_save_CFLAGS="$CFLAGS"
9882
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9883
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9885
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9886
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9887
$as_echo_n "(cached) " >&6
9889
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890
/* end confdefs.h. */
9893
if ac_fn_c_try_compile "$LINENO"; then :
9894
xorg_cv_cc_flag_unknown_warning_option=yes
9896
xorg_cv_cc_flag_unknown_warning_option=no
9898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9901
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9902
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9903
CFLAGS="$xorg_testset_save_CFLAGS"
9906
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9907
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9908
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9910
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9912
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9913
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9914
$as_echo_n "(cached) " >&6
9916
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917
/* end confdefs.h. */
9920
if ac_fn_c_try_compile "$LINENO"; then :
9921
xorg_cv_cc_flag_unused_command_line_argument=yes
9923
xorg_cv_cc_flag_unused_command_line_argument=no
9925
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9928
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9929
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9930
CFLAGS="$xorg_testset_save_CFLAGS"
9935
if test $found = "no" ; then
9936
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9937
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9940
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9941
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9944
CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9947
$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9948
cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9949
if eval \${$cacheid+:} false; then :
9950
$as_echo_n "(cached) " >&6
9952
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953
/* end confdefs.h. */
9963
if ac_fn_c_try_link "$LINENO"; then :
9968
rm -f core conftest.err conftest.$ac_objext \
9969
conftest$ac_exeext conftest.$ac_ext
9973
CFLAGS="$xorg_testset_save_CFLAGS"
9975
eval supported=\$$cacheid
9976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9977
$as_echo "$supported" >&6; }
9978
if test "$supported" = "yes" ; then
9979
BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9993
CWARNFLAGS="$BASE_CFLAGS"
9994
if test "x$GCC" = xyes ; then
9995
CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10005
# Check whether --enable-strict-compilation was given.
10006
if test "${enable_strict_compilation+set}" = set; then :
10007
enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10031
xorg_testset_save_CFLAGS="$CFLAGS"
10033
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10034
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10036
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10037
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10038
$as_echo_n "(cached) " >&6
10040
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041
/* end confdefs.h. */
10044
if ac_fn_c_try_compile "$LINENO"; then :
10045
xorg_cv_cc_flag_unknown_warning_option=yes
10047
xorg_cv_cc_flag_unknown_warning_option=no
10049
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10052
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10053
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10054
CFLAGS="$xorg_testset_save_CFLAGS"
10057
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10058
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10059
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10061
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10063
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10064
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10065
$as_echo_n "(cached) " >&6
10067
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068
/* end confdefs.h. */
10071
if ac_fn_c_try_compile "$LINENO"; then :
10072
xorg_cv_cc_flag_unused_command_line_argument=yes
10074
xorg_cv_cc_flag_unused_command_line_argument=no
10076
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10079
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10080
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10081
CFLAGS="$xorg_testset_save_CFLAGS"
10086
if test $found = "no" ; then
10087
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10088
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10091
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10092
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10095
CFLAGS="$CFLAGS -pedantic"
10097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10098
$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10099
cacheid=xorg_cv_cc_flag__pedantic
10100
if eval \${$cacheid+:} false; then :
10101
$as_echo_n "(cached) " >&6
10103
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104
/* end confdefs.h. */
10114
if ac_fn_c_try_link "$LINENO"; then :
10119
rm -f core conftest.err conftest.$ac_objext \
10120
conftest$ac_exeext conftest.$ac_ext
10124
CFLAGS="$xorg_testset_save_CFLAGS"
10126
eval supported=\$$cacheid
10127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10128
$as_echo "$supported" >&6; }
10129
if test "$supported" = "yes" ; then
10130
STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10149
xorg_testset_save_CFLAGS="$CFLAGS"
10151
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10152
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10154
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10155
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10156
$as_echo_n "(cached) " >&6
10158
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159
/* end confdefs.h. */
10162
if ac_fn_c_try_compile "$LINENO"; then :
10163
xorg_cv_cc_flag_unknown_warning_option=yes
10165
xorg_cv_cc_flag_unknown_warning_option=no
10167
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10170
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10171
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10172
CFLAGS="$xorg_testset_save_CFLAGS"
10175
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10176
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10177
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10179
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10181
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10182
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10183
$as_echo_n "(cached) " >&6
10185
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186
/* end confdefs.h. */
10189
if ac_fn_c_try_compile "$LINENO"; then :
10190
xorg_cv_cc_flag_unused_command_line_argument=yes
10192
xorg_cv_cc_flag_unused_command_line_argument=no
10194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10197
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10198
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10199
CFLAGS="$xorg_testset_save_CFLAGS"
10204
if test $found = "no" ; then
10205
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10206
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10209
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10210
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10213
CFLAGS="$CFLAGS -Werror"
10215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10216
$as_echo_n "checking if $CC supports -Werror... " >&6; }
10217
cacheid=xorg_cv_cc_flag__Werror
10218
if eval \${$cacheid+:} false; then :
10219
$as_echo_n "(cached) " >&6
10221
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222
/* end confdefs.h. */
10232
if ac_fn_c_try_link "$LINENO"; then :
10237
rm -f core conftest.err conftest.$ac_objext \
10238
conftest$ac_exeext conftest.$ac_ext
10242
CFLAGS="$xorg_testset_save_CFLAGS"
10244
eval supported=\$$cacheid
10245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10246
$as_echo "$supported" >&6; }
10247
if test "$supported" = "yes" ; then
10248
STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10253
if test $found = "no" ; then
10254
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10255
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10258
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10259
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10262
CFLAGS="$CFLAGS -errwarn"
10264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10265
$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10266
cacheid=xorg_cv_cc_flag__errwarn
10267
if eval \${$cacheid+:} false; then :
10268
$as_echo_n "(cached) " >&6
10270
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271
/* end confdefs.h. */
10281
if ac_fn_c_try_link "$LINENO"; then :
10286
rm -f core conftest.err conftest.$ac_objext \
10287
conftest$ac_exeext conftest.$ac_ext
10291
CFLAGS="$xorg_testset_save_CFLAGS"
10293
eval supported=\$$cacheid
10294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10295
$as_echo "$supported" >&6; }
10296
if test "$supported" = "yes" ; then
10297
STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10304
# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10305
# activate it with -Werror, so we add it here explicitly.
10319
xorg_testset_save_CFLAGS="$CFLAGS"
10321
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10322
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10324
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10325
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10326
$as_echo_n "(cached) " >&6
10328
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329
/* end confdefs.h. */
10332
if ac_fn_c_try_compile "$LINENO"; then :
10333
xorg_cv_cc_flag_unknown_warning_option=yes
10335
xorg_cv_cc_flag_unknown_warning_option=no
10337
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10340
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10341
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10342
CFLAGS="$xorg_testset_save_CFLAGS"
10345
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10346
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10347
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10349
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10351
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10352
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10353
$as_echo_n "(cached) " >&6
10355
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356
/* end confdefs.h. */
10359
if ac_fn_c_try_compile "$LINENO"; then :
10360
xorg_cv_cc_flag_unused_command_line_argument=yes
10362
xorg_cv_cc_flag_unused_command_line_argument=no
10364
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10367
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10368
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10369
CFLAGS="$xorg_testset_save_CFLAGS"
10374
if test $found = "no" ; then
10375
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10376
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10379
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10380
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10383
CFLAGS="$CFLAGS -Werror=attributes"
10385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10386
$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10387
cacheid=xorg_cv_cc_flag__Werror_attributes
10388
if eval \${$cacheid+:} false; then :
10389
$as_echo_n "(cached) " >&6
10391
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392
/* end confdefs.h. */
10402
if ac_fn_c_try_link "$LINENO"; then :
10407
rm -f core conftest.err conftest.$ac_objext \
10408
conftest$ac_exeext conftest.$ac_ext
10412
CFLAGS="$xorg_testset_save_CFLAGS"
10414
eval supported=\$$cacheid
10415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10416
$as_echo "$supported" >&6; }
10417
if test "$supported" = "yes" ; then
10418
STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10425
if test "x$STRICT_COMPILE" = "xyes"; then
10426
BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10427
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10435
cat >>confdefs.h <<_ACEOF
10436
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10439
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10440
if test "x$PVM" = "x"; then
10444
cat >>confdefs.h <<_ACEOF
10445
#define PACKAGE_VERSION_MINOR $PVM
10448
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10449
if test "x$PVP" = "x"; then
10453
cat >>confdefs.h <<_ACEOF
10454
#define PACKAGE_VERSION_PATCHLEVEL $PVP
10459
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10460
mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10461
|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10462
echo 'git directory not found: installing possibly empty changelog.' >&2)"
10467
macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10468
INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10469
mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10470
|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10471
echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10478
if test x$APP_MAN_SUFFIX = x ; then
10481
if test x$APP_MAN_DIR = x ; then
10482
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10485
if test x$LIB_MAN_SUFFIX = x ; then
10488
if test x$LIB_MAN_DIR = x ; then
10489
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10492
if test x$FILE_MAN_SUFFIX = x ; then
10494
solaris*) FILE_MAN_SUFFIX=4 ;;
10495
*) FILE_MAN_SUFFIX=5 ;;
10498
if test x$FILE_MAN_DIR = x ; then
10499
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10502
if test x$MISC_MAN_SUFFIX = x ; then
10504
solaris*) MISC_MAN_SUFFIX=5 ;;
10505
*) MISC_MAN_SUFFIX=7 ;;
10508
if test x$MISC_MAN_DIR = x ; then
10509
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10512
if test x$DRIVER_MAN_SUFFIX = x ; then
10514
solaris*) DRIVER_MAN_SUFFIX=7 ;;
10515
*) DRIVER_MAN_SUFFIX=4 ;;
10518
if test x$DRIVER_MAN_DIR = x ; then
10519
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10522
if test x$ADMIN_MAN_SUFFIX = x ; then
10524
solaris*) ADMIN_MAN_SUFFIX=1m ;;
10525
*) ADMIN_MAN_SUFFIX=8 ;;
10528
if test x$ADMIN_MAN_DIR = x ; then
10529
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10546
XORG_MAN_PAGE="X Version 11"
10549
-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10550
-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10551
-e 's|__xservername__|Xorg|g' \
10552
-e 's|__xconfigfile__|xorg.conf|g' \
10553
-e 's|__projectroot__|\$(prefix)|g' \
10554
-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10555
-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10556
-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10557
-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10558
-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10559
-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10560
-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10564
# Check whether --enable-silent-rules was given.
10565
if test "${enable_silent_rules+set}" = set; then :
10566
enableval=$enable_silent_rules;
10569
case $enable_silent_rules in # (((
10570
yes) AM_DEFAULT_VERBOSITY=0;;
10571
no) AM_DEFAULT_VERBOSITY=1;;
10572
*) AM_DEFAULT_VERBOSITY=0;;
10574
am_make=${MAKE-make}
10575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10576
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10577
if ${am_cv_make_support_nested_variables+:} false; then :
10578
$as_echo_n "(cached) " >&6
10580
if $as_echo 'TRUE=$(BAR$(V))
10586
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10587
am_cv_make_support_nested_variables=yes
10589
am_cv_make_support_nested_variables=no
10592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10593
$as_echo "$am_cv_make_support_nested_variables" >&6; }
10594
if test $am_cv_make_support_nested_variables = yes; then
10596
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10598
AM_V=$AM_DEFAULT_VERBOSITY
10599
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10605
# Initialize libtool
10606
# Check whether --enable-static was given.
10607
if test "${enable_static+set}" = set; then :
10608
enableval=$enable_static; p=${PACKAGE-default}
10610
yes) enable_static=yes ;;
10611
no) enable_static=no ;;
10614
# Look at the argument we got. We use all the common list separators.
10615
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10616
for pkg in $enableval; do
10618
if test "X$pkg" = "X$p"; then
10639
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10640
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10645
macro_version='2.4.2'
10646
macro_revision='1.3337'
10660
ltmain="$ac_aux_dir/ltmain.sh"
10662
# Backslashify metacharacters that are still active within
10663
# double-quoted strings.
10664
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10666
# Same as above, but do not quote variable references.
10667
double_quote_subst='s/\(["`\\]\)/\\\1/g'
10669
# Sed substitution to delay expansion of an escaped shell variable in a
10670
# double_quote_subst'ed string.
10671
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10673
# Sed substitution to delay expansion of an escaped single quote.
10674
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10676
# Sed substitution to avoid accidental globbing in evaled expressions
10677
no_glob_subst='s/\*/\\\*/g'
10679
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10680
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10681
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10684
$as_echo_n "checking how to print strings... " >&6; }
10685
# Test print first, because it will be a builtin if present.
10686
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10687
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10689
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10692
# Use this function as a fallback that always works.
10693
func_fallback_echo ()
10695
eval 'cat <<_LTECHO_EOF
10699
ECHO='func_fallback_echo'
10702
# func_echo_all arg...
10703
# Invoke $ECHO with all args, space-separated.
10710
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10711
$as_echo "printf" >&6; } ;;
10712
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10713
$as_echo "print -r" >&6; } ;;
10714
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10715
$as_echo "cat" >&6; } ;;
10731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10732
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10733
if ${ac_cv_path_SED+:} false; then :
10734
$as_echo_n "(cached) " >&6
10736
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10737
for ac_i in 1 2 3 4 5 6 7; do
10738
ac_script="$ac_script$as_nl$ac_script"
10740
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10741
{ ac_script=; unset ac_script;}
10742
if test -z "$SED"; then
10743
ac_path_SED_found=false
10744
# Loop through the user's path and test for each of PROGNAME-LIST
10745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746
for as_dir in $PATH
10749
test -z "$as_dir" && as_dir=.
10750
for ac_prog in sed gsed; do
10751
for ac_exec_ext in '' $ac_executable_extensions; do
10752
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10753
as_fn_executable_p "$ac_path_SED" || continue
10754
# Check for GNU ac_path_SED and select it if it is found.
10755
# Check for GNU $ac_path_SED
10756
case `"$ac_path_SED" --version 2>&1` in
10758
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10761
$as_echo_n 0123456789 >"conftest.in"
10764
cat "conftest.in" "conftest.in" >"conftest.tmp"
10765
mv "conftest.tmp" "conftest.in"
10766
cp "conftest.in" "conftest.nl"
10767
$as_echo '' >> "conftest.nl"
10768
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10769
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10770
as_fn_arith $ac_count + 1 && ac_count=$as_val
10771
if test $ac_count -gt ${ac_path_SED_max-0}; then
10772
# Best one so far, save it but keep looking for a better one
10773
ac_cv_path_SED="$ac_path_SED"
10774
ac_path_SED_max=$ac_count
10776
# 10*(2^10) chars as input seems more than enough
10777
test $ac_count -gt 10 && break
10779
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10782
$ac_path_SED_found && break 3
10787
if test -z "$ac_cv_path_SED"; then
10788
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10791
ac_cv_path_SED=$SED
10795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10796
$as_echo "$ac_cv_path_SED" >&6; }
10797
SED="$ac_cv_path_SED"
10800
test -z "$SED" && SED=sed
10801
Xsed="$SED -e 1s/^X//"
10813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10814
$as_echo_n "checking for fgrep... " >&6; }
10815
if ${ac_cv_path_FGREP+:} false; then :
10816
$as_echo_n "(cached) " >&6
10818
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10819
then ac_cv_path_FGREP="$GREP -F"
10821
if test -z "$FGREP"; then
10822
ac_path_FGREP_found=false
10823
# Loop through the user's path and test for each of PROGNAME-LIST
10824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10828
test -z "$as_dir" && as_dir=.
10829
for ac_prog in fgrep; do
10830
for ac_exec_ext in '' $ac_executable_extensions; do
10831
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10832
as_fn_executable_p "$ac_path_FGREP" || continue
10833
# Check for GNU ac_path_FGREP and select it if it is found.
10834
# Check for GNU $ac_path_FGREP
10835
case `"$ac_path_FGREP" --version 2>&1` in
10837
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10840
$as_echo_n 0123456789 >"conftest.in"
10843
cat "conftest.in" "conftest.in" >"conftest.tmp"
10844
mv "conftest.tmp" "conftest.in"
10845
cp "conftest.in" "conftest.nl"
10846
$as_echo 'FGREP' >> "conftest.nl"
10847
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10848
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10849
as_fn_arith $ac_count + 1 && ac_count=$as_val
10850
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10851
# Best one so far, save it but keep looking for a better one
10852
ac_cv_path_FGREP="$ac_path_FGREP"
10853
ac_path_FGREP_max=$ac_count
10855
# 10*(2^10) chars as input seems more than enough
10856
test $ac_count -gt 10 && break
10858
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10861
$ac_path_FGREP_found && break 3
10866
if test -z "$ac_cv_path_FGREP"; then
10867
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10870
ac_cv_path_FGREP=$FGREP
10875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10876
$as_echo "$ac_cv_path_FGREP" >&6; }
10877
FGREP="$ac_cv_path_FGREP"
10880
test -z "$GREP" && GREP=grep
10900
# Check whether --with-gnu-ld was given.
10901
if test "${with_gnu_ld+set}" = set; then :
10902
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10908
if test "$GCC" = yes; then
10909
# Check if gcc -print-prog-name=ld gives a path.
10910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10911
$as_echo_n "checking for ld used by $CC... " >&6; }
10914
# gcc leaves a trailing carriage return which upsets mingw
10915
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10917
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10920
# Accept absolute paths.
10922
re_direlt='/[^/][^/]*/\.\./'
10923
# Canonicalize the pathname of ld
10924
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10925
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10926
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10928
test -z "$LD" && LD="$ac_prog"
10931
# If it fails, then pretend we aren't using GCC.
10935
# If it is relative, then search for the first ld in PATH.
10936
with_gnu_ld=unknown
10939
elif test "$with_gnu_ld" = yes; then
10940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10941
$as_echo_n "checking for GNU ld... " >&6; }
10943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10944
$as_echo_n "checking for non-GNU ld... " >&6; }
10946
if ${lt_cv_path_LD+:} false; then :
10947
$as_echo_n "(cached) " >&6
10949
if test -z "$LD"; then
10950
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10951
for ac_dir in $PATH; do
10953
test -z "$ac_dir" && ac_dir=.
10954
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10955
lt_cv_path_LD="$ac_dir/$ac_prog"
10956
# Check to see if the program is GNU ld. I'd rather use --version,
10957
# but apparently some variants of GNU ld only accept -v.
10958
# Break only if it was the GNU/non-GNU ld that we prefer.
10959
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10960
*GNU* | *'with BFD'*)
10961
test "$with_gnu_ld" != no && break
10964
test "$with_gnu_ld" != yes && break
10971
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10975
LD="$lt_cv_path_LD"
10976
if test -n "$LD"; then
10977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10978
$as_echo "$LD" >&6; }
10980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981
$as_echo "no" >&6; }
10983
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10985
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10986
if ${lt_cv_prog_gnu_ld+:} false; then :
10987
$as_echo_n "(cached) " >&6
10989
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10990
case `$LD -v 2>&1 </dev/null` in
10991
*GNU* | *'with BFD'*)
10992
lt_cv_prog_gnu_ld=yes
10995
lt_cv_prog_gnu_ld=no
10999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11000
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11001
with_gnu_ld=$lt_cv_prog_gnu_ld
11011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11012
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11013
if ${lt_cv_path_NM+:} false; then :
11014
$as_echo_n "(cached) " >&6
11016
if test -n "$NM"; then
11017
# Let the user override the test.
11018
lt_cv_path_NM="$NM"
11020
lt_nm_to_check="${ac_tool_prefix}nm"
11021
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11022
lt_nm_to_check="$lt_nm_to_check nm"
11024
for lt_tmp_nm in $lt_nm_to_check; do
11025
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11026
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11028
test -z "$ac_dir" && ac_dir=.
11029
tmp_nm="$ac_dir/$lt_tmp_nm"
11030
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11031
# Check to see if the nm accepts a BSD-compat flag.
11032
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11033
# nm: unknown option "B" ignored
11034
# Tru64's nm complains that /dev/null is an invalid object file
11035
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11036
*/dev/null* | *'Invalid file or object type'*)
11037
lt_cv_path_NM="$tmp_nm -B"
11041
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11043
lt_cv_path_NM="$tmp_nm -p"
11047
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11048
continue # so that we can try to find one that supports BSD flags
11057
: ${lt_cv_path_NM=no}
11060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11061
$as_echo "$lt_cv_path_NM" >&6; }
11062
if test "$lt_cv_path_NM" != "no"; then
11063
NM="$lt_cv_path_NM"
11065
# Didn't find any BSD compatible name lister, look for dumpbin.
11066
if test -n "$DUMPBIN"; then :
11067
# Let the user override the test.
11069
if test -n "$ac_tool_prefix"; then
11070
for ac_prog in dumpbin "link -dump"
11072
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11073
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11075
$as_echo_n "checking for $ac_word... " >&6; }
11076
if ${ac_cv_prog_DUMPBIN+:} false; then :
11077
$as_echo_n "(cached) " >&6
11079
if test -n "$DUMPBIN"; then
11080
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083
for as_dir in $PATH
11086
test -z "$as_dir" && as_dir=.
11087
for ac_exec_ext in '' $ac_executable_extensions; do
11088
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11089
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11090
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11099
DUMPBIN=$ac_cv_prog_DUMPBIN
11100
if test -n "$DUMPBIN"; then
11101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11102
$as_echo "$DUMPBIN" >&6; }
11104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105
$as_echo "no" >&6; }
11109
test -n "$DUMPBIN" && break
11112
if test -z "$DUMPBIN"; then
11113
ac_ct_DUMPBIN=$DUMPBIN
11114
for ac_prog in dumpbin "link -dump"
11116
# Extract the first word of "$ac_prog", so it can be a program name with args.
11117
set dummy $ac_prog; ac_word=$2
11118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11119
$as_echo_n "checking for $ac_word... " >&6; }
11120
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11121
$as_echo_n "(cached) " >&6
11123
if test -n "$ac_ct_DUMPBIN"; then
11124
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127
for as_dir in $PATH
11130
test -z "$as_dir" && as_dir=.
11131
for ac_exec_ext in '' $ac_executable_extensions; do
11132
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11133
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11134
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11143
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11144
if test -n "$ac_ct_DUMPBIN"; then
11145
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11146
$as_echo "$ac_ct_DUMPBIN" >&6; }
11148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149
$as_echo "no" >&6; }
11153
test -n "$ac_ct_DUMPBIN" && break
11156
if test "x$ac_ct_DUMPBIN" = x; then
11159
case $cross_compiling:$ac_tool_warned in
11161
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11162
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11163
ac_tool_warned=yes ;;
11165
DUMPBIN=$ac_ct_DUMPBIN
11169
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11171
DUMPBIN="$DUMPBIN -symbols"
11179
if test "$DUMPBIN" != ":"; then
11183
test -z "$NM" && NM=nm
11190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11191
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11192
if ${lt_cv_nm_interface+:} false; then :
11193
$as_echo_n "(cached) " >&6
11195
lt_cv_nm_interface="BSD nm"
11196
echo "int some_variable = 0;" > conftest.$ac_ext
11197
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11198
(eval "$ac_compile" 2>conftest.err)
11199
cat conftest.err >&5
11200
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11201
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11202
cat conftest.err >&5
11203
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
11204
cat conftest.out >&5
11205
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11206
lt_cv_nm_interface="MS dumpbin"
11210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11211
$as_echo "$lt_cv_nm_interface" >&6; }
11213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11214
$as_echo_n "checking whether ln -s works... " >&6; }
11216
if test "$LN_S" = "ln -s"; then
11217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11218
$as_echo "yes" >&6; }
11220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11221
$as_echo "no, using $LN_S" >&6; }
11224
# find the maximum length of command line arguments
11225
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11226
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11227
if ${lt_cv_sys_max_cmd_len+:} false; then :
11228
$as_echo_n "(cached) " >&6
11235
# On DJGPP, this test can blow up pretty badly due to problems in libc
11236
# (any single argument exceeding 2000 bytes causes a buffer overrun
11237
# during glob expansion). Even if it were fixed, the result of this
11238
# check would be larger than it should be.
11239
lt_cv_sys_max_cmd_len=12288; # 12K is about right
11243
# Under GNU Hurd, this test is not required because there is
11244
# no limit to the length of command line arguments.
11245
# Libtool will interpret -1 as no limit whatsoever
11246
lt_cv_sys_max_cmd_len=-1;
11249
cygwin* | mingw* | cegcc*)
11250
# On Win9x/ME, this test blows up -- it succeeds, but takes
11251
# about 5 minutes as the teststring grows exponentially.
11252
# Worse, since 9x/ME are not pre-emptively multitasking,
11253
# you end up with a "frozen" computer, even though with patience
11254
# the test eventually succeeds (with a max line length of 256k).
11255
# Instead, let's just punt: use the minimum linelength reported by
11256
# all of the supported platforms: 8192 (on NT/2K/XP).
11257
lt_cv_sys_max_cmd_len=8192;
11261
# On MiNT this can take a long time and run out of memory.
11262
lt_cv_sys_max_cmd_len=8192;
11266
# On AmigaOS with pdksh, this test takes hours, literally.
11267
# So we just punt and use a minimum line length of 8192.
11268
lt_cv_sys_max_cmd_len=8192;
11271
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11272
# This has been around since 386BSD, at least. Likely further.
11273
if test -x /sbin/sysctl; then
11274
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11275
elif test -x /usr/sbin/sysctl; then
11276
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11278
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11280
# And add a safety zone
11281
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11282
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11286
# We know the value 262144 and hardcode it with a safety zone (like BSD)
11287
lt_cv_sys_max_cmd_len=196608
11291
# The test takes a long time on OS/2.
11292
lt_cv_sys_max_cmd_len=8192
11296
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11297
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11298
# nice to cause kernel panics so lets avoid the loop below.
11299
# First set a reasonable default.
11300
lt_cv_sys_max_cmd_len=16384
11302
if test -x /sbin/sysconfig; then
11303
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11304
*1*) lt_cv_sys_max_cmd_len=-1 ;;
11309
lt_cv_sys_max_cmd_len=102400
11311
sysv5* | sco5v6* | sysv4.2uw2*)
11312
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11313
if test -n "$kargmax"; then
11314
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11316
lt_cv_sys_max_cmd_len=32768
11320
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11321
if test -n "$lt_cv_sys_max_cmd_len" && \
11322
test undefined != "$lt_cv_sys_max_cmd_len"; then
11323
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11324
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11326
# Make teststring a little bigger before we do anything with it.
11327
# a 1K string should be a reasonable start.
11328
for i in 1 2 3 4 5 6 7 8 ; do
11329
teststring=$teststring$teststring
11331
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11332
# If test is not a shell built-in, we'll probably end up computing a
11333
# maximum length that is only half of the actual maximum length, but
11335
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11336
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
11337
test $i != 17 # 1/2 MB should be enough
11340
teststring=$teststring$teststring
11342
# Only check the string length outside the loop.
11343
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11345
# Add a significant safety factor because C++ compilers can tack on
11346
# massive amounts of additional arguments before passing them to the
11347
# linker. It appears as though 1/2 is a usable value.
11348
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11355
if test -n $lt_cv_sys_max_cmd_len ; then
11356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11357
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11360
$as_echo "none" >&6; }
11362
max_cmd_len=$lt_cv_sys_max_cmd_len
11373
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11374
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11375
# Try some XSI features
11377
( _lt_dummy="a/b/c"
11378
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11380
&& eval 'test $(( 1 + 1 )) -eq 2 \
11381
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11384
$as_echo "$xsi_shell" >&6; }
11387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11388
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11390
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11392
&& lt_shell_append=yes
11393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11394
$as_echo "$lt_shell_append" >&6; }
11397
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11407
# test EBCDIC or ASCII
11408
case `echo X|tr X '\101'` in
11409
A) # ASCII based system
11410
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11411
lt_SP2NL='tr \040 \012'
11412
lt_NL2SP='tr \015\012 \040\040'
11414
*) # EBCDIC based system
11415
lt_SP2NL='tr \100 \n'
11416
lt_NL2SP='tr \r\n \100\100'
11428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11429
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11430
if ${lt_cv_to_host_file_cmd+:} false; then :
11431
$as_echo_n "(cached) " >&6
11436
*-*-mingw* ) # actually msys
11437
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11440
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11442
* ) # otherwise, assume *nix
11443
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11449
*-*-mingw* ) # actually msys
11450
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11453
lt_cv_to_host_file_cmd=func_convert_file_noop
11455
* ) # otherwise, assume *nix
11456
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11460
* ) # unhandled hosts (and "normal" native builds)
11461
lt_cv_to_host_file_cmd=func_convert_file_noop
11467
to_host_file_cmd=$lt_cv_to_host_file_cmd
11468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11469
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11476
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11477
if ${lt_cv_to_tool_file_cmd+:} false; then :
11478
$as_echo_n "(cached) " >&6
11480
#assume ordinary cross tools, or native build.
11481
lt_cv_to_tool_file_cmd=func_convert_file_noop
11485
*-*-mingw* ) # actually msys
11486
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11494
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11496
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11503
$as_echo_n "checking for $LD option to reload object files... " >&6; }
11504
if ${lt_cv_ld_reload_flag+:} false; then :
11505
$as_echo_n "(cached) " >&6
11507
lt_cv_ld_reload_flag='-r'
11509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11510
$as_echo "$lt_cv_ld_reload_flag" >&6; }
11511
reload_flag=$lt_cv_ld_reload_flag
11512
case $reload_flag in
11514
*) reload_flag=" $reload_flag" ;;
11516
reload_cmds='$LD$reload_flag -o $output$reload_objs'
11518
cygwin* | mingw* | pw32* | cegcc*)
11519
if test "$GCC" != yes; then
11524
if test "$GCC" = yes; then
11525
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11527
reload_cmds='$LD$reload_flag -o $output$reload_objs'
11540
if test -n "$ac_tool_prefix"; then
11541
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11542
set dummy ${ac_tool_prefix}objdump; ac_word=$2
11543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544
$as_echo_n "checking for $ac_word... " >&6; }
11545
if ${ac_cv_prog_OBJDUMP+:} false; then :
11546
$as_echo_n "(cached) " >&6
11548
if test -n "$OBJDUMP"; then
11549
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552
for as_dir in $PATH
11555
test -z "$as_dir" && as_dir=.
11556
for ac_exec_ext in '' $ac_executable_extensions; do
11557
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11558
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11559
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11568
OBJDUMP=$ac_cv_prog_OBJDUMP
11569
if test -n "$OBJDUMP"; then
11570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11571
$as_echo "$OBJDUMP" >&6; }
11573
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574
$as_echo "no" >&6; }
11579
if test -z "$ac_cv_prog_OBJDUMP"; then
11580
ac_ct_OBJDUMP=$OBJDUMP
11581
# Extract the first word of "objdump", so it can be a program name with args.
11582
set dummy objdump; ac_word=$2
11583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584
$as_echo_n "checking for $ac_word... " >&6; }
11585
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11586
$as_echo_n "(cached) " >&6
11588
if test -n "$ac_ct_OBJDUMP"; then
11589
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592
for as_dir in $PATH
11595
test -z "$as_dir" && as_dir=.
11596
for ac_exec_ext in '' $ac_executable_extensions; do
11597
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11598
ac_cv_prog_ac_ct_OBJDUMP="objdump"
11599
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11609
if test -n "$ac_ct_OBJDUMP"; then
11610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11611
$as_echo "$ac_ct_OBJDUMP" >&6; }
11613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614
$as_echo "no" >&6; }
11617
if test "x$ac_ct_OBJDUMP" = x; then
11620
case $cross_compiling:$ac_tool_warned in
11622
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11623
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11624
ac_tool_warned=yes ;;
11626
OBJDUMP=$ac_ct_OBJDUMP
11629
OBJDUMP="$ac_cv_prog_OBJDUMP"
11632
test -z "$OBJDUMP" && OBJDUMP=objdump
11642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11643
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11644
if ${lt_cv_deplibs_check_method+:} false; then :
11645
$as_echo_n "(cached) " >&6
11647
lt_cv_file_magic_cmd='$MAGIC_CMD'
11648
lt_cv_file_magic_test_file=
11649
lt_cv_deplibs_check_method='unknown'
11650
# Need to set the preceding variable on all platforms that support
11651
# interlibrary dependencies.
11652
# 'none' -- dependencies not supported.
11653
# `unknown' -- same as none, but documents that we really don't know.
11654
# 'pass_all' -- all dependencies passed with no checks.
11655
# 'test_compile' -- check by making test program.
11656
# 'file_magic [[regex]]' -- check by looking for files in library path
11657
# which responds to the $file_magic_cmd with a given extended regex.
11658
# If you have `file' or equivalent on your system and you're not sure
11659
# whether `pass_all' will *always* work, you probably want this one.
11663
lt_cv_deplibs_check_method=pass_all
11667
lt_cv_deplibs_check_method=pass_all
11671
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11672
lt_cv_file_magic_cmd='/usr/bin/file -L'
11673
lt_cv_file_magic_test_file=/shlib/libc.so
11677
# func_win32_libid is a shell function defined in ltmain.sh
11678
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11679
lt_cv_file_magic_cmd='func_win32_libid'
11683
# Base MSYS/MinGW do not provide the 'file' command needed by
11684
# func_win32_libid shell function, so use a weaker test based on 'objdump',
11685
# unless we find 'file', for example because we are cross-compiling.
11686
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11687
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11688
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11689
lt_cv_file_magic_cmd='func_win32_libid'
11691
# Keep this pattern in sync with the one in func_win32_libid.
11692
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11693
lt_cv_file_magic_cmd='$OBJDUMP -f'
11698
# use the weaker test based on 'objdump'. See mingw*.
11699
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11700
lt_cv_file_magic_cmd='$OBJDUMP -f'
11703
darwin* | rhapsody*)
11704
lt_cv_deplibs_check_method=pass_all
11707
freebsd* | dragonfly*)
11708
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11711
# Not sure whether the presence of OpenBSD here was a mistake.
11712
# Let's accept both of them until this is cleared up.
11713
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11714
lt_cv_file_magic_cmd=/usr/bin/file
11715
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11719
lt_cv_deplibs_check_method=pass_all
11724
lt_cv_deplibs_check_method=pass_all
11727
hpux10.20* | hpux11*)
11728
lt_cv_file_magic_cmd=/usr/bin/file
11731
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11732
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11735
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
11736
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11739
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11740
lt_cv_file_magic_test_file=/usr/lib/libc.sl
11746
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11747
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11750
irix5* | irix6* | nonstopux*)
11752
*-32|*"-32 ") libmagic=32-bit;;
11753
*-n32|*"-n32 ") libmagic=N32;;
11754
*-64|*"-64 ") libmagic=64-bit;;
11755
*) libmagic=never-match;;
11757
lt_cv_deplibs_check_method=pass_all
11760
# This must be glibc/ELF.
11761
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11762
lt_cv_deplibs_check_method=pass_all
11765
netbsd* | netbsdelf*-gnu)
11766
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11767
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11769
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11774
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11775
lt_cv_file_magic_cmd=/usr/bin/file
11776
lt_cv_file_magic_test_file=/usr/lib/libnls.so
11780
lt_cv_deplibs_check_method=pass_all
11784
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11785
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11787
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11791
osf3* | osf4* | osf5*)
11792
lt_cv_deplibs_check_method=pass_all
11796
lt_cv_deplibs_check_method=pass_all
11800
lt_cv_deplibs_check_method=pass_all
11803
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11804
lt_cv_deplibs_check_method=pass_all
11808
case $host_vendor in
11810
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
11811
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11814
lt_cv_deplibs_check_method=pass_all
11817
lt_cv_file_magic_cmd='/bin/file'
11818
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11821
lt_cv_file_magic_cmd='/bin/file'
11822
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11823
lt_cv_file_magic_test_file=/lib/libc.so
11826
lt_cv_deplibs_check_method=pass_all
11829
lt_cv_deplibs_check_method=pass_all
11835
lt_cv_deplibs_check_method=pass_all
11840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11841
$as_echo "$lt_cv_deplibs_check_method" >&6; }
11845
if test "$build" = "$host"; then
11848
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11849
want_nocaseglob=yes
11851
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11857
file_magic_cmd=$lt_cv_file_magic_cmd
11858
deplibs_check_method=$lt_cv_deplibs_check_method
11859
test -z "$deplibs_check_method" && deplibs_check_method=unknown
11882
if test -n "$ac_tool_prefix"; then
11883
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11884
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886
$as_echo_n "checking for $ac_word... " >&6; }
11887
if ${ac_cv_prog_DLLTOOL+:} false; then :
11888
$as_echo_n "(cached) " >&6
11890
if test -n "$DLLTOOL"; then
11891
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11893
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894
for as_dir in $PATH
11897
test -z "$as_dir" && as_dir=.
11898
for ac_exec_ext in '' $ac_executable_extensions; do
11899
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11900
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11901
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11910
DLLTOOL=$ac_cv_prog_DLLTOOL
11911
if test -n "$DLLTOOL"; then
11912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11913
$as_echo "$DLLTOOL" >&6; }
11915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916
$as_echo "no" >&6; }
11921
if test -z "$ac_cv_prog_DLLTOOL"; then
11922
ac_ct_DLLTOOL=$DLLTOOL
11923
# Extract the first word of "dlltool", so it can be a program name with args.
11924
set dummy dlltool; ac_word=$2
11925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11926
$as_echo_n "checking for $ac_word... " >&6; }
11927
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11928
$as_echo_n "(cached) " >&6
11930
if test -n "$ac_ct_DLLTOOL"; then
11931
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11933
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11934
for as_dir in $PATH
11937
test -z "$as_dir" && as_dir=.
11938
for ac_exec_ext in '' $ac_executable_extensions; do
11939
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11940
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11941
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11950
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11951
if test -n "$ac_ct_DLLTOOL"; then
11952
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11953
$as_echo "$ac_ct_DLLTOOL" >&6; }
11955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956
$as_echo "no" >&6; }
11959
if test "x$ac_ct_DLLTOOL" = x; then
11962
case $cross_compiling:$ac_tool_warned in
11964
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11965
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11966
ac_tool_warned=yes ;;
11968
DLLTOOL=$ac_ct_DLLTOOL
11971
DLLTOOL="$ac_cv_prog_DLLTOOL"
11974
test -z "$DLLTOOL" && DLLTOOL=dlltool
11985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11986
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11987
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11988
$as_echo_n "(cached) " >&6
11990
lt_cv_sharedlib_from_linklib_cmd='unknown'
11993
cygwin* | mingw* | pw32* | cegcc*)
11994
# two different shell functions defined in ltmain.sh
11995
# decide which to use based on capabilities of $DLLTOOL
11996
case `$DLLTOOL --help 2>&1` in
11997
*--identify-strict*)
11998
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12001
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12006
# fallback: assume linklib IS sharedlib
12007
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12013
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12014
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12015
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12023
if test -n "$ac_tool_prefix"; then
12026
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12027
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12029
$as_echo_n "checking for $ac_word... " >&6; }
12030
if ${ac_cv_prog_AR+:} false; then :
12031
$as_echo_n "(cached) " >&6
12033
if test -n "$AR"; then
12034
ac_cv_prog_AR="$AR" # Let the user override the test.
12036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037
for as_dir in $PATH
12040
test -z "$as_dir" && as_dir=.
12041
for ac_exec_ext in '' $ac_executable_extensions; do
12042
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12043
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12044
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12054
if test -n "$AR"; then
12055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12056
$as_echo "$AR" >&6; }
12058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059
$as_echo "no" >&6; }
12063
test -n "$AR" && break
12066
if test -z "$AR"; then
12070
# Extract the first word of "$ac_prog", so it can be a program name with args.
12071
set dummy $ac_prog; ac_word=$2
12072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073
$as_echo_n "checking for $ac_word... " >&6; }
12074
if ${ac_cv_prog_ac_ct_AR+:} false; then :
12075
$as_echo_n "(cached) " >&6
12077
if test -n "$ac_ct_AR"; then
12078
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081
for as_dir in $PATH
12084
test -z "$as_dir" && as_dir=.
12085
for ac_exec_ext in '' $ac_executable_extensions; do
12086
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087
ac_cv_prog_ac_ct_AR="$ac_prog"
12088
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12097
ac_ct_AR=$ac_cv_prog_ac_ct_AR
12098
if test -n "$ac_ct_AR"; then
12099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12100
$as_echo "$ac_ct_AR" >&6; }
12102
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103
$as_echo "no" >&6; }
12107
test -n "$ac_ct_AR" && break
12110
if test "x$ac_ct_AR" = x; then
12113
case $cross_compiling:$ac_tool_warned in
12115
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12116
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12117
ac_tool_warned=yes ;;
12136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12137
$as_echo_n "checking for archiver @FILE support... " >&6; }
12138
if ${lt_cv_ar_at_file+:} false; then :
12139
$as_echo_n "(cached) " >&6
12141
lt_cv_ar_at_file=no
12142
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143
/* end confdefs.h. */
12153
if ac_fn_c_try_compile "$LINENO"; then :
12154
echo conftest.$ac_objext > conftest.lst
12155
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12156
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12157
(eval $lt_ar_try) 2>&5
12159
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12160
test $ac_status = 0; }
12161
if test "$ac_status" -eq 0; then
12162
# Ensure the archiver fails upon bogus file names.
12163
rm -f conftest.$ac_objext libconftest.a
12164
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12165
(eval $lt_ar_try) 2>&5
12167
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12168
test $ac_status = 0; }
12169
if test "$ac_status" -ne 0; then
12173
rm -f conftest.* libconftest.a
12176
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12180
$as_echo "$lt_cv_ar_at_file" >&6; }
12182
if test "x$lt_cv_ar_at_file" = xno; then
12183
archiver_list_spec=
12185
archiver_list_spec=$lt_cv_ar_at_file
12194
if test -n "$ac_tool_prefix"; then
12195
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12196
set dummy ${ac_tool_prefix}strip; ac_word=$2
12197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12198
$as_echo_n "checking for $ac_word... " >&6; }
12199
if ${ac_cv_prog_STRIP+:} false; then :
12200
$as_echo_n "(cached) " >&6
12202
if test -n "$STRIP"; then
12203
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206
for as_dir in $PATH
12209
test -z "$as_dir" && as_dir=.
12210
for ac_exec_ext in '' $ac_executable_extensions; do
12211
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12212
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12213
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12222
STRIP=$ac_cv_prog_STRIP
12223
if test -n "$STRIP"; then
12224
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12225
$as_echo "$STRIP" >&6; }
12227
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228
$as_echo "no" >&6; }
12233
if test -z "$ac_cv_prog_STRIP"; then
12235
# Extract the first word of "strip", so it can be a program name with args.
12236
set dummy strip; ac_word=$2
12237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238
$as_echo_n "checking for $ac_word... " >&6; }
12239
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12240
$as_echo_n "(cached) " >&6
12242
if test -n "$ac_ct_STRIP"; then
12243
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246
for as_dir in $PATH
12249
test -z "$as_dir" && as_dir=.
12250
for ac_exec_ext in '' $ac_executable_extensions; do
12251
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12252
ac_cv_prog_ac_ct_STRIP="strip"
12253
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12263
if test -n "$ac_ct_STRIP"; then
12264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12265
$as_echo "$ac_ct_STRIP" >&6; }
12267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268
$as_echo "no" >&6; }
12271
if test "x$ac_ct_STRIP" = x; then
12274
case $cross_compiling:$ac_tool_warned in
12276
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12277
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12278
ac_tool_warned=yes ;;
12283
STRIP="$ac_cv_prog_STRIP"
12286
test -z "$STRIP" && STRIP=:
12293
if test -n "$ac_tool_prefix"; then
12294
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12295
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12297
$as_echo_n "checking for $ac_word... " >&6; }
12298
if ${ac_cv_prog_RANLIB+:} false; then :
12299
$as_echo_n "(cached) " >&6
12301
if test -n "$RANLIB"; then
12302
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12304
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12305
for as_dir in $PATH
12308
test -z "$as_dir" && as_dir=.
12309
for ac_exec_ext in '' $ac_executable_extensions; do
12310
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12311
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12312
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12321
RANLIB=$ac_cv_prog_RANLIB
12322
if test -n "$RANLIB"; then
12323
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12324
$as_echo "$RANLIB" >&6; }
12326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327
$as_echo "no" >&6; }
12332
if test -z "$ac_cv_prog_RANLIB"; then
12333
ac_ct_RANLIB=$RANLIB
12334
# Extract the first word of "ranlib", so it can be a program name with args.
12335
set dummy ranlib; ac_word=$2
12336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12337
$as_echo_n "checking for $ac_word... " >&6; }
12338
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12339
$as_echo_n "(cached) " >&6
12341
if test -n "$ac_ct_RANLIB"; then
12342
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12344
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345
for as_dir in $PATH
12348
test -z "$as_dir" && as_dir=.
12349
for ac_exec_ext in '' $ac_executable_extensions; do
12350
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12351
ac_cv_prog_ac_ct_RANLIB="ranlib"
12352
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12362
if test -n "$ac_ct_RANLIB"; then
12363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12364
$as_echo "$ac_ct_RANLIB" >&6; }
12366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367
$as_echo "no" >&6; }
12370
if test "x$ac_ct_RANLIB" = x; then
12373
case $cross_compiling:$ac_tool_warned in
12375
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12376
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12377
ac_tool_warned=yes ;;
12379
RANLIB=$ac_ct_RANLIB
12382
RANLIB="$ac_cv_prog_RANLIB"
12385
test -z "$RANLIB" && RANLIB=:
12392
# Determine commands to create old-style static archives.
12393
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12394
old_postinstall_cmds='chmod 644 $oldlib'
12395
old_postuninstall_cmds=
12397
if test -n "$RANLIB"; then
12400
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12403
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12406
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12411
lock_old_archive_extraction=yes ;;
12413
lock_old_archive_extraction=no ;;
12454
# If no C compiler was specified, use CC.
12457
# If no C compiler flags were specified, use CFLAGS.
12458
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12460
# Allow CC to be a program name with arguments.
12464
# Check for command to grab the raw symbol name followed by C symbol from nm.
12465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12466
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12467
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12468
$as_echo_n "(cached) " >&6
12471
# These are sane defaults that work on at least a few old systems.
12472
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12474
# Character class describing NM global symbol codes.
12475
symcode='[BCDEGRST]'
12477
# Regexp to match symbols that can be accessed directly from C.
12478
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12480
# Define system-specific variables.
12485
cygwin* | mingw* | pw32* | cegcc*)
12486
symcode='[ABCDGISTW]'
12489
if test "$host_cpu" = ia64; then
12490
symcode='[ABCDEGRST]'
12493
irix* | nonstopux*)
12494
symcode='[BCDEGRST]'
12497
symcode='[BCDEGQRST]'
12508
sysv5* | sco5v6* | unixware* | OpenUNIX*)
12516
# If we're using GNU nm, then use its standard symbol codes.
12517
case `$NM -V 2>&1` in
12518
*GNU* | *'with BFD'*)
12519
symcode='[ABCDGIRSTW]' ;;
12522
# Transform an extracted symbol line into a proper C declaration.
12523
# Some systems (esp. on ia64) link data and code symbols differently,
12524
# so use this general approach.
12525
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12527
# Transform an extracted symbol line into symbol name and symbol address
12528
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12529
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
12531
# Handle CRLF in mingw tool chain
12535
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12539
# Try without a prefix underscore, then with it.
12540
for ac_symprfx in "" "_"; do
12542
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12543
symxfrm="\\1 $ac_symprfx\\2 \\2"
12545
# Write the raw and C identifiers.
12546
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12547
# Fake it for dumpbin and say T for any non-static function
12548
# and D for any global variable.
12549
# Also find C++ and __fastcall symbols from MSVC++,
12550
# which start with @ or ?.
12551
lt_cv_sys_global_symbol_pipe="$AWK '"\
12552
" {last_section=section; section=\$ 3};"\
12553
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12554
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12555
" \$ 0!~/External *\|/{next};"\
12556
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12557
" {if(hide[section]) next};"\
12558
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12559
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12560
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12561
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12562
" ' prfx=^$ac_symprfx"
12564
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12566
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12568
# Check to see that the pipe works correctly.
12572
cat > conftest.$ac_ext <<_LT_EOF
12577
void nm_test_func(void);
12578
void nm_test_func(void){}
12582
int main(){nm_test_var='a';nm_test_func();return(0);}
12585
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12586
(eval $ac_compile) 2>&5
12588
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12589
test $ac_status = 0; }; then
12590
# Now try to grab the symbols.
12592
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12593
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12595
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12596
test $ac_status = 0; } && test -s "$nlist"; then
12597
# Try sorting and uniquifying the output.
12598
if sort "$nlist" | uniq > "$nlist"T; then
12599
mv -f "$nlist"T "$nlist"
12604
# Make sure that we snagged all the symbols we need.
12605
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12606
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12607
cat <<_LT_EOF > conftest.$ac_ext
12608
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12609
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12610
/* DATA imports from DLLs on WIN32 con't be const, because runtime
12611
relocations are performed -- see ld's documentation on pseudo-relocs. */
12612
# define LT_DLSYM_CONST
12613
#elif defined(__osf__)
12614
/* This system does not cope well with relocations in const data. */
12615
# define LT_DLSYM_CONST
12617
# define LT_DLSYM_CONST const
12625
# Now generate the symbol file.
12626
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12628
cat <<_LT_EOF >> conftest.$ac_ext
12630
/* The mapping between symbol names and symbols. */
12631
LT_DLSYM_CONST struct {
12635
lt__PROGRAM__LTX_preloaded_symbols[] =
12637
{ "@PROGRAM@", (void *) 0 },
12639
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12640
cat <<\_LT_EOF >> conftest.$ac_ext
12644
/* This works around a problem in FreeBSD linker */
12645
#ifdef FREEBSD_WORKAROUND
12646
static const void *lt_preloaded_setup() {
12647
return lt__PROGRAM__LTX_preloaded_symbols;
12655
# Now try linking the two files.
12656
mv conftest.$ac_objext conftstm.$ac_objext
12657
lt_globsym_save_LIBS=$LIBS
12658
lt_globsym_save_CFLAGS=$CFLAGS
12659
LIBS="conftstm.$ac_objext"
12660
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12661
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12662
(eval $ac_link) 2>&5
12664
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12665
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12668
LIBS=$lt_globsym_save_LIBS
12669
CFLAGS=$lt_globsym_save_CFLAGS
12671
echo "cannot find nm_test_func in $nlist" >&5
12674
echo "cannot find nm_test_var in $nlist" >&5
12677
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12680
echo "$progname: failed program was:" >&5
12681
cat conftest.$ac_ext >&5
12683
rm -rf conftest* conftst*
12685
# Do not use the global_symbol_pipe unless it works.
12686
if test "$pipe_works" = yes; then
12689
lt_cv_sys_global_symbol_pipe=
12695
if test -z "$lt_cv_sys_global_symbol_pipe"; then
12696
lt_cv_sys_global_symbol_to_cdecl=
12698
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12700
$as_echo "failed" >&6; }
12702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12703
$as_echo "ok" >&6; }
12706
# Response file support.
12707
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12708
nm_file_list_spec='@'
12709
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12710
nm_file_list_spec='@'
12739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12740
$as_echo_n "checking for sysroot... " >&6; }
12742
# Check whether --with-sysroot was given.
12743
if test "${with_sysroot+set}" = set; then :
12744
withval=$with_sysroot;
12751
case ${with_sysroot} in #(
12753
if test "$GCC" = yes; then
12754
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12758
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12764
$as_echo "${with_sysroot}" >&6; }
12765
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12769
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12770
$as_echo "${lt_sysroot:-no}" >&6; }
12776
# Check whether --enable-libtool-lock was given.
12777
if test "${enable_libtool_lock+set}" = set; then :
12778
enableval=$enable_libtool_lock;
12781
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12783
# Some flags need to be propagated to the compiler or linker for good
12787
# Find out which ABI we are using.
12788
echo 'int i;' > conftest.$ac_ext
12789
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12790
(eval $ac_compile) 2>&5
12792
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12793
test $ac_status = 0; }; then
12794
case `/usr/bin/file conftest.$ac_objext` in
12796
HPUX_IA64_MODE="32"
12799
HPUX_IA64_MODE="64"
12806
# Find out which ABI we are using.
12807
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12808
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12809
(eval $ac_compile) 2>&5
12811
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12812
test $ac_status = 0; }; then
12813
if test "$lt_cv_prog_gnu_ld" = yes; then
12814
case `/usr/bin/file conftest.$ac_objext` in
12816
LD="${LD-ld} -melf32bsmip"
12819
LD="${LD-ld} -melf32bmipn32"
12822
LD="${LD-ld} -melf64bmip"
12826
case `/usr/bin/file conftest.$ac_objext` in
12842
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12843
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12844
# Find out which ABI we are using.
12845
echo 'int i;' > conftest.$ac_ext
12846
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12847
(eval $ac_compile) 2>&5
12849
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12850
test $ac_status = 0; }; then
12851
case `/usr/bin/file conftest.o` in
12854
x86_64-*kfreebsd*-gnu)
12855
LD="${LD-ld} -m elf_i386_fbsd"
12858
case `/usr/bin/file conftest.o` in
12860
LD="${LD-ld} -m elf32_x86_64"
12863
LD="${LD-ld} -m elf_i386"
12867
ppc64-*linux*|powerpc64-*linux*)
12868
LD="${LD-ld} -m elf32ppclinux"
12871
LD="${LD-ld} -m elf_s390"
12874
LD="${LD-ld} -m elf32_sparc"
12880
x86_64-*kfreebsd*-gnu)
12881
LD="${LD-ld} -m elf_x86_64_fbsd"
12884
LD="${LD-ld} -m elf_x86_64"
12886
ppc*-*linux*|powerpc*-*linux*)
12887
LD="${LD-ld} -m elf64ppc"
12889
s390*-*linux*|s390*-*tpf*)
12890
LD="${LD-ld} -m elf64_s390"
12893
LD="${LD-ld} -m elf64_sparc"
12903
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
12904
SAVE_CFLAGS="$CFLAGS"
12905
CFLAGS="$CFLAGS -belf"
12906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12907
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12908
if ${lt_cv_cc_needs_belf+:} false; then :
12909
$as_echo_n "(cached) " >&6
12912
ac_cpp='$CPP $CPPFLAGS'
12913
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12914
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12915
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12917
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918
/* end confdefs.h. */
12928
if ac_fn_c_try_link "$LINENO"; then :
12929
lt_cv_cc_needs_belf=yes
12931
lt_cv_cc_needs_belf=no
12933
rm -f core conftest.err conftest.$ac_objext \
12934
conftest$ac_exeext conftest.$ac_ext
12936
ac_cpp='$CPP $CPPFLAGS'
12937
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12943
$as_echo "$lt_cv_cc_needs_belf" >&6; }
12944
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12945
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12946
CFLAGS="$SAVE_CFLAGS"
12950
# Find out which ABI we are using.
12951
echo 'int i;' > conftest.$ac_ext
12952
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12953
(eval $ac_compile) 2>&5
12955
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12956
test $ac_status = 0; }; then
12957
case `/usr/bin/file conftest.o` in
12959
case $lt_cv_prog_gnu_ld in
12963
LD="${LD-ld} -m elf_x86_64"
12966
LD="${LD-ld} -m elf64_sparc"
12969
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12970
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12975
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12987
need_locks="$enable_libtool_lock"
12989
if test -n "$ac_tool_prefix"; then
12990
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12991
set dummy ${ac_tool_prefix}mt; ac_word=$2
12992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12993
$as_echo_n "checking for $ac_word... " >&6; }
12994
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12995
$as_echo_n "(cached) " >&6
12997
if test -n "$MANIFEST_TOOL"; then
12998
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001
for as_dir in $PATH
13004
test -z "$as_dir" && as_dir=.
13005
for ac_exec_ext in '' $ac_executable_extensions; do
13006
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13007
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13008
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13017
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13018
if test -n "$MANIFEST_TOOL"; then
13019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13020
$as_echo "$MANIFEST_TOOL" >&6; }
13022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023
$as_echo "no" >&6; }
13028
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13029
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13030
# Extract the first word of "mt", so it can be a program name with args.
13031
set dummy mt; ac_word=$2
13032
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13033
$as_echo_n "checking for $ac_word... " >&6; }
13034
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13035
$as_echo_n "(cached) " >&6
13037
if test -n "$ac_ct_MANIFEST_TOOL"; then
13038
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13041
for as_dir in $PATH
13044
test -z "$as_dir" && as_dir=.
13045
for ac_exec_ext in '' $ac_executable_extensions; do
13046
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13047
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13048
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13057
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13058
if test -n "$ac_ct_MANIFEST_TOOL"; then
13059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13060
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13063
$as_echo "no" >&6; }
13066
if test "x$ac_ct_MANIFEST_TOOL" = x; then
13069
case $cross_compiling:$ac_tool_warned in
13071
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13072
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13073
ac_tool_warned=yes ;;
13075
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13078
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13081
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13082
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13083
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13084
if ${lt_cv_path_mainfest_tool+:} false; then :
13085
$as_echo_n "(cached) " >&6
13087
lt_cv_path_mainfest_tool=no
13088
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13089
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13090
cat conftest.err >&5
13091
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13092
lt_cv_path_mainfest_tool=yes
13096
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13097
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13098
if test "x$lt_cv_path_mainfest_tool" != xyes; then
13108
rhapsody* | darwin*)
13109
if test -n "$ac_tool_prefix"; then
13110
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13111
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13113
$as_echo_n "checking for $ac_word... " >&6; }
13114
if ${ac_cv_prog_DSYMUTIL+:} false; then :
13115
$as_echo_n "(cached) " >&6
13117
if test -n "$DSYMUTIL"; then
13118
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121
for as_dir in $PATH
13124
test -z "$as_dir" && as_dir=.
13125
for ac_exec_ext in '' $ac_executable_extensions; do
13126
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13127
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13128
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13137
DSYMUTIL=$ac_cv_prog_DSYMUTIL
13138
if test -n "$DSYMUTIL"; then
13139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13140
$as_echo "$DSYMUTIL" >&6; }
13142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143
$as_echo "no" >&6; }
13148
if test -z "$ac_cv_prog_DSYMUTIL"; then
13149
ac_ct_DSYMUTIL=$DSYMUTIL
13150
# Extract the first word of "dsymutil", so it can be a program name with args.
13151
set dummy dsymutil; ac_word=$2
13152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13153
$as_echo_n "checking for $ac_word... " >&6; }
13154
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13155
$as_echo_n "(cached) " >&6
13157
if test -n "$ac_ct_DSYMUTIL"; then
13158
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161
for as_dir in $PATH
13164
test -z "$as_dir" && as_dir=.
13165
for ac_exec_ext in '' $ac_executable_extensions; do
13166
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13167
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13168
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13177
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13178
if test -n "$ac_ct_DSYMUTIL"; then
13179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13180
$as_echo "$ac_ct_DSYMUTIL" >&6; }
13182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13183
$as_echo "no" >&6; }
13186
if test "x$ac_ct_DSYMUTIL" = x; then
13189
case $cross_compiling:$ac_tool_warned in
13191
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13192
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13193
ac_tool_warned=yes ;;
13195
DSYMUTIL=$ac_ct_DSYMUTIL
13198
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13201
if test -n "$ac_tool_prefix"; then
13202
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13203
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205
$as_echo_n "checking for $ac_word... " >&6; }
13206
if ${ac_cv_prog_NMEDIT+:} false; then :
13207
$as_echo_n "(cached) " >&6
13209
if test -n "$NMEDIT"; then
13210
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213
for as_dir in $PATH
13216
test -z "$as_dir" && as_dir=.
13217
for ac_exec_ext in '' $ac_executable_extensions; do
13218
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13219
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13220
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13229
NMEDIT=$ac_cv_prog_NMEDIT
13230
if test -n "$NMEDIT"; then
13231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13232
$as_echo "$NMEDIT" >&6; }
13234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13235
$as_echo "no" >&6; }
13240
if test -z "$ac_cv_prog_NMEDIT"; then
13241
ac_ct_NMEDIT=$NMEDIT
13242
# Extract the first word of "nmedit", so it can be a program name with args.
13243
set dummy nmedit; ac_word=$2
13244
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13245
$as_echo_n "checking for $ac_word... " >&6; }
13246
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13247
$as_echo_n "(cached) " >&6
13249
if test -n "$ac_ct_NMEDIT"; then
13250
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253
for as_dir in $PATH
13256
test -z "$as_dir" && as_dir=.
13257
for ac_exec_ext in '' $ac_executable_extensions; do
13258
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13259
ac_cv_prog_ac_ct_NMEDIT="nmedit"
13260
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13269
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13270
if test -n "$ac_ct_NMEDIT"; then
13271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13272
$as_echo "$ac_ct_NMEDIT" >&6; }
13274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13275
$as_echo "no" >&6; }
13278
if test "x$ac_ct_NMEDIT" = x; then
13281
case $cross_compiling:$ac_tool_warned in
13283
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13284
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13285
ac_tool_warned=yes ;;
13287
NMEDIT=$ac_ct_NMEDIT
13290
NMEDIT="$ac_cv_prog_NMEDIT"
13293
if test -n "$ac_tool_prefix"; then
13294
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13295
set dummy ${ac_tool_prefix}lipo; ac_word=$2
13296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297
$as_echo_n "checking for $ac_word... " >&6; }
13298
if ${ac_cv_prog_LIPO+:} false; then :
13299
$as_echo_n "(cached) " >&6
13301
if test -n "$LIPO"; then
13302
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13304
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305
for as_dir in $PATH
13308
test -z "$as_dir" && as_dir=.
13309
for ac_exec_ext in '' $ac_executable_extensions; do
13310
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13311
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13312
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321
LIPO=$ac_cv_prog_LIPO
13322
if test -n "$LIPO"; then
13323
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13324
$as_echo "$LIPO" >&6; }
13326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327
$as_echo "no" >&6; }
13332
if test -z "$ac_cv_prog_LIPO"; then
13334
# Extract the first word of "lipo", so it can be a program name with args.
13335
set dummy lipo; ac_word=$2
13336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337
$as_echo_n "checking for $ac_word... " >&6; }
13338
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13339
$as_echo_n "(cached) " >&6
13341
if test -n "$ac_ct_LIPO"; then
13342
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13344
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345
for as_dir in $PATH
13348
test -z "$as_dir" && as_dir=.
13349
for ac_exec_ext in '' $ac_executable_extensions; do
13350
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13351
ac_cv_prog_ac_ct_LIPO="lipo"
13352
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13362
if test -n "$ac_ct_LIPO"; then
13363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13364
$as_echo "$ac_ct_LIPO" >&6; }
13366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367
$as_echo "no" >&6; }
13370
if test "x$ac_ct_LIPO" = x; then
13373
case $cross_compiling:$ac_tool_warned in
13375
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13376
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13377
ac_tool_warned=yes ;;
13382
LIPO="$ac_cv_prog_LIPO"
13385
if test -n "$ac_tool_prefix"; then
13386
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13387
set dummy ${ac_tool_prefix}otool; ac_word=$2
13388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13389
$as_echo_n "checking for $ac_word... " >&6; }
13390
if ${ac_cv_prog_OTOOL+:} false; then :
13391
$as_echo_n "(cached) " >&6
13393
if test -n "$OTOOL"; then
13394
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13396
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13397
for as_dir in $PATH
13400
test -z "$as_dir" && as_dir=.
13401
for ac_exec_ext in '' $ac_executable_extensions; do
13402
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13403
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13404
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13413
OTOOL=$ac_cv_prog_OTOOL
13414
if test -n "$OTOOL"; then
13415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13416
$as_echo "$OTOOL" >&6; }
13418
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419
$as_echo "no" >&6; }
13424
if test -z "$ac_cv_prog_OTOOL"; then
13426
# Extract the first word of "otool", so it can be a program name with args.
13427
set dummy otool; ac_word=$2
13428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13429
$as_echo_n "checking for $ac_word... " >&6; }
13430
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13431
$as_echo_n "(cached) " >&6
13433
if test -n "$ac_ct_OTOOL"; then
13434
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13436
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13437
for as_dir in $PATH
13440
test -z "$as_dir" && as_dir=.
13441
for ac_exec_ext in '' $ac_executable_extensions; do
13442
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13443
ac_cv_prog_ac_ct_OTOOL="otool"
13444
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13453
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13454
if test -n "$ac_ct_OTOOL"; then
13455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13456
$as_echo "$ac_ct_OTOOL" >&6; }
13458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13459
$as_echo "no" >&6; }
13462
if test "x$ac_ct_OTOOL" = x; then
13465
case $cross_compiling:$ac_tool_warned in
13467
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13468
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13469
ac_tool_warned=yes ;;
13474
OTOOL="$ac_cv_prog_OTOOL"
13477
if test -n "$ac_tool_prefix"; then
13478
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13479
set dummy ${ac_tool_prefix}otool64; ac_word=$2
13480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481
$as_echo_n "checking for $ac_word... " >&6; }
13482
if ${ac_cv_prog_OTOOL64+:} false; then :
13483
$as_echo_n "(cached) " >&6
13485
if test -n "$OTOOL64"; then
13486
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13488
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13489
for as_dir in $PATH
13492
test -z "$as_dir" && as_dir=.
13493
for ac_exec_ext in '' $ac_executable_extensions; do
13494
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13495
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13496
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13505
OTOOL64=$ac_cv_prog_OTOOL64
13506
if test -n "$OTOOL64"; then
13507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13508
$as_echo "$OTOOL64" >&6; }
13510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511
$as_echo "no" >&6; }
13516
if test -z "$ac_cv_prog_OTOOL64"; then
13517
ac_ct_OTOOL64=$OTOOL64
13518
# Extract the first word of "otool64", so it can be a program name with args.
13519
set dummy otool64; ac_word=$2
13520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521
$as_echo_n "checking for $ac_word... " >&6; }
13522
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13523
$as_echo_n "(cached) " >&6
13525
if test -n "$ac_ct_OTOOL64"; then
13526
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529
for as_dir in $PATH
13532
test -z "$as_dir" && as_dir=.
13533
for ac_exec_ext in '' $ac_executable_extensions; do
13534
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13535
ac_cv_prog_ac_ct_OTOOL64="otool64"
13536
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13545
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13546
if test -n "$ac_ct_OTOOL64"; then
13547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13548
$as_echo "$ac_ct_OTOOL64" >&6; }
13550
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551
$as_echo "no" >&6; }
13554
if test "x$ac_ct_OTOOL64" = x; then
13557
case $cross_compiling:$ac_tool_warned in
13559
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13560
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13561
ac_tool_warned=yes ;;
13563
OTOOL64=$ac_ct_OTOOL64
13566
OTOOL64="$ac_cv_prog_OTOOL64"
13595
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13596
$as_echo_n "checking for -single_module linker flag... " >&6; }
13597
if ${lt_cv_apple_cc_single_mod+:} false; then :
13598
$as_echo_n "(cached) " >&6
13600
lt_cv_apple_cc_single_mod=no
13601
if test -z "${LT_MULTI_MODULE}"; then
13602
# By default we will add the -single_module flag. You can override
13603
# by either setting the environment variable LT_MULTI_MODULE
13604
# non-empty at configure time, or by adding -multi_module to the
13606
rm -rf libconftest.dylib*
13607
echo "int foo(void){return 1;}" > conftest.c
13608
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13609
-dynamiclib -Wl,-single_module conftest.c" >&5
13610
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13611
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13613
# If there is a non-empty error log, and "single_module"
13614
# appears in it, assume the flag caused a linker warning
13615
if test -s conftest.err && $GREP single_module conftest.err; then
13616
cat conftest.err >&5
13617
# Otherwise, if the output was created with a 0 exit code from
13618
# the compiler, it worked.
13619
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13620
lt_cv_apple_cc_single_mod=yes
13622
cat conftest.err >&5
13624
rm -rf libconftest.dylib*
13628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13629
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13632
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13633
if ${lt_cv_ld_exported_symbols_list+:} false; then :
13634
$as_echo_n "(cached) " >&6
13636
lt_cv_ld_exported_symbols_list=no
13637
save_LDFLAGS=$LDFLAGS
13638
echo "_main" > conftest.sym
13639
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13640
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641
/* end confdefs.h. */
13651
if ac_fn_c_try_link "$LINENO"; then :
13652
lt_cv_ld_exported_symbols_list=yes
13654
lt_cv_ld_exported_symbols_list=no
13656
rm -f core conftest.err conftest.$ac_objext \
13657
conftest$ac_exeext conftest.$ac_ext
13658
LDFLAGS="$save_LDFLAGS"
13661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13662
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13665
$as_echo_n "checking for -force_load linker flag... " >&6; }
13666
if ${lt_cv_ld_force_load+:} false; then :
13667
$as_echo_n "(cached) " >&6
13669
lt_cv_ld_force_load=no
13670
cat > conftest.c << _LT_EOF
13671
int forced_loaded() { return 2;}
13673
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13674
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13675
echo "$AR cru libconftest.a conftest.o" >&5
13676
$AR cru libconftest.a conftest.o 2>&5
13677
echo "$RANLIB libconftest.a" >&5
13678
$RANLIB libconftest.a 2>&5
13679
cat > conftest.c << _LT_EOF
13680
int main() { return 0;}
13682
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13683
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13685
if test -s conftest.err && $GREP force_load conftest.err; then
13686
cat conftest.err >&5
13687
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13688
lt_cv_ld_force_load=yes
13690
cat conftest.err >&5
13692
rm -f conftest.err libconftest.a conftest conftest.c
13693
rm -rf conftest.dSYM
13696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13697
$as_echo "$lt_cv_ld_force_load" >&6; }
13699
rhapsody* | darwin1.[012])
13700
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13702
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13703
darwin*) # darwin 5.x on
13704
# if running on 10.5 or later, the deployment target defaults
13705
# to the OS version, if on x86, and 10.4, the deployment
13706
# target defaults to 10.4. Don't you love it?
13707
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13708
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13709
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13711
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13713
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13717
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13718
_lt_dar_single_mod='$single_module'
13720
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13721
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13723
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13725
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13726
_lt_dsymutil='~$DSYMUTIL $lib || :'
13733
for ac_header in dlfcn.h
13735
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13737
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13738
cat >>confdefs.h <<_ACEOF
13739
#define HAVE_DLFCN_H 1
13757
enable_win32_dll=no
13760
# Check whether --enable-shared was given.
13761
if test "${enable_shared+set}" = set; then :
13762
enableval=$enable_shared; p=${PACKAGE-default}
13764
yes) enable_shared=yes ;;
13765
no) enable_shared=no ;;
13768
# Look at the argument we got. We use all the common list separators.
13769
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13770
for pkg in $enableval; do
13772
if test "X$pkg" = "X$p"; then
13793
# Check whether --with-pic was given.
13794
if test "${with_pic+set}" = set; then :
13795
withval=$with_pic; lt_p=${PACKAGE-default}
13797
yes|no) pic_mode=$withval ;;
13800
# Look at the argument we got. We use all the common list separators.
13801
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13802
for lt_pkg in $withval; do
13804
if test "X$lt_pkg" = "X$lt_p"; then
13816
test -z "$pic_mode" && pic_mode=default
13824
# Check whether --enable-fast-install was given.
13825
if test "${enable_fast_install+set}" = set; then :
13826
enableval=$enable_fast_install; p=${PACKAGE-default}
13828
yes) enable_fast_install=yes ;;
13829
no) enable_fast_install=no ;;
13831
enable_fast_install=no
13832
# Look at the argument we got. We use all the common list separators.
13833
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13834
for pkg in $enableval; do
13836
if test "X$pkg" = "X$p"; then
13837
enable_fast_install=yes
13844
enable_fast_install=yes
13857
# This can be used to rebuild libtool when needed
13858
LIBTOOL_DEPS="$ltmain"
13860
# Always use our own libtool.
13861
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13892
test -z "$LN_S" && LN_S="ln -s"
13907
if test -n "${ZSH_VERSION+set}" ; then
13908
setopt NO_GLOB_SUBST
13911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13912
$as_echo_n "checking for objdir... " >&6; }
13913
if ${lt_cv_objdir+:} false; then :
13914
$as_echo_n "(cached) " >&6
13916
rm -f .libs 2>/dev/null
13917
mkdir .libs 2>/dev/null
13918
if test -d .libs; then
13921
# MS-DOS does not allow filenames that begin with a dot.
13924
rmdir .libs 2>/dev/null
13926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13927
$as_echo "$lt_cv_objdir" >&6; }
13928
objdir=$lt_cv_objdir
13934
cat >>confdefs.h <<_ACEOF
13935
#define LT_OBJDIR "$lt_cv_objdir/"
13943
# AIX sometimes has problems with the GCC collect2 program. For some
13944
# reason, if we set the COLLECT_NAMES environment variable, the problems
13945
# vanish in a puff of smoke.
13946
if test "X${COLLECT_NAMES+set}" != Xset; then
13948
export COLLECT_NAMES
13953
# Global variables:
13955
can_build_shared=yes
13957
# All known linkers require a `.a' archive for static linking (except MSVC,
13958
# which needs '.lib').
13961
with_gnu_ld="$lt_cv_prog_gnu_ld"
13964
old_CFLAGS="$CFLAGS"
13966
# Set sane defaults for various variables
13967
test -z "$CC" && CC=cc
13968
test -z "$LTCC" && LTCC=$CC
13969
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13970
test -z "$LD" && LD=ld
13971
test -z "$ac_objext" && ac_objext=o
13973
for cc_temp in $compiler""; do
13975
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13976
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13981
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13984
# Only perform the check for file, if the check method requires it
13985
test -z "$MAGIC_CMD" && MAGIC_CMD=file
13986
case $deplibs_check_method in
13988
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13989
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13990
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13991
if ${lt_cv_path_MAGIC_CMD+:} false; then :
13992
$as_echo_n "(cached) " >&6
13996
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13999
lt_save_MAGIC_CMD="$MAGIC_CMD"
14000
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14001
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14002
for ac_dir in $ac_dummy; do
14004
test -z "$ac_dir" && ac_dir=.
14005
if test -f $ac_dir/${ac_tool_prefix}file; then
14006
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14007
if test -n "$file_magic_test_file"; then
14008
case $deplibs_check_method in
14010
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14011
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14012
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14013
$EGREP "$file_magic_regex" > /dev/null; then
14018
*** Warning: the command libtool uses to detect shared libraries,
14019
*** $file_magic_cmd, produces output that libtool cannot recognize.
14020
*** The result is that libtool may fail to recognize shared libraries
14021
*** as such. This will affect the creation of libtool libraries that
14022
*** depend on shared libraries, but programs linked with such libtool
14023
*** libraries will work regardless of this problem. Nevertheless, you
14024
*** may want to report the problem to your system manager and/or to
14025
*** bug-libtool@gnu.org
14035
MAGIC_CMD="$lt_save_MAGIC_CMD"
14040
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14041
if test -n "$MAGIC_CMD"; then
14042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14043
$as_echo "$MAGIC_CMD" >&6; }
14045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046
$as_echo "no" >&6; }
14053
if test -z "$lt_cv_path_MAGIC_CMD"; then
14054
if test -n "$ac_tool_prefix"; then
14055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14056
$as_echo_n "checking for file... " >&6; }
14057
if ${lt_cv_path_MAGIC_CMD+:} false; then :
14058
$as_echo_n "(cached) " >&6
14062
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14065
lt_save_MAGIC_CMD="$MAGIC_CMD"
14066
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14067
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14068
for ac_dir in $ac_dummy; do
14070
test -z "$ac_dir" && ac_dir=.
14071
if test -f $ac_dir/file; then
14072
lt_cv_path_MAGIC_CMD="$ac_dir/file"
14073
if test -n "$file_magic_test_file"; then
14074
case $deplibs_check_method in
14076
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14077
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14078
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14079
$EGREP "$file_magic_regex" > /dev/null; then
14084
*** Warning: the command libtool uses to detect shared libraries,
14085
*** $file_magic_cmd, produces output that libtool cannot recognize.
14086
*** The result is that libtool may fail to recognize shared libraries
14087
*** as such. This will affect the creation of libtool libraries that
14088
*** depend on shared libraries, but programs linked with such libtool
14089
*** libraries will work regardless of this problem. Nevertheless, you
14090
*** may want to report the problem to your system manager and/or to
14091
*** bug-libtool@gnu.org
14101
MAGIC_CMD="$lt_save_MAGIC_CMD"
14106
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14107
if test -n "$MAGIC_CMD"; then
14108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14109
$as_echo "$MAGIC_CMD" >&6; }
14111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14112
$as_echo "no" >&6; }
14125
# Use C for the default configuration in the libtool script
14129
ac_cpp='$CPP $CPPFLAGS'
14130
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14131
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14132
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14135
# Source file extension for C test sources.
14138
# Object file extension for compiled C test sources.
14142
# Code to be used in simple compile tests
14143
lt_simple_compile_test_code="int some_variable = 0;"
14145
# Code to be used in simple link tests
14146
lt_simple_link_test_code='int main(){return(0);}'
14154
# If no C compiler was specified, use CC.
14157
# If no C compiler flags were specified, use CFLAGS.
14158
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14160
# Allow CC to be a program name with arguments.
14163
# Save the default compiler, since it gets overwritten when the other
14164
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14165
compiler_DEFAULT=$CC
14167
# save warnings/boilerplate of simple test code
14168
ac_outfile=conftest.$ac_objext
14169
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14170
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14171
_lt_compiler_boilerplate=`cat conftest.err`
14174
ac_outfile=conftest.$ac_objext
14175
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14176
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14177
_lt_linker_boilerplate=`cat conftest.err`
14181
if test -n "$compiler"; then
14183
lt_prog_compiler_no_builtin_flag=
14185
if test "$GCC" = yes; then
14186
case $cc_basename in
14188
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14190
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14194
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14195
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14196
$as_echo_n "(cached) " >&6
14198
lt_cv_prog_compiler_rtti_exceptions=no
14199
ac_outfile=conftest.$ac_objext
14200
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14201
lt_compiler_flag="-fno-rtti -fno-exceptions"
14202
# Insert the option either (1) after the last *FLAGS variable, or
14203
# (2) before a word containing "conftest.", or (3) at the end.
14204
# Note that $ac_compile itself does not contain backslashes and begins
14205
# with a dollar sign (not a hyphen), so the echo should work correctly.
14206
# The option is referenced via a variable to avoid confusing sed.
14207
lt_compile=`echo "$ac_compile" | $SED \
14208
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14209
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14210
-e 's:$: $lt_compiler_flag:'`
14211
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14212
(eval "$lt_compile" 2>conftest.err)
14214
cat conftest.err >&5
14215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216
if (exit $ac_status) && test -s "$ac_outfile"; then
14217
# The compiler can only warn and ignore the option if not recognized
14218
# So say no if there are warnings other than the usual output.
14219
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14220
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14221
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14222
lt_cv_prog_compiler_rtti_exceptions=yes
14228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14229
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14231
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14232
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14244
lt_prog_compiler_wl=
14245
lt_prog_compiler_pic=
14246
lt_prog_compiler_static=
14249
if test "$GCC" = yes; then
14250
lt_prog_compiler_wl='-Wl,'
14251
lt_prog_compiler_static='-static'
14255
# All AIX code is PIC.
14256
if test "$host_cpu" = ia64; then
14257
# AIX 5 now supports IA64 processor
14258
lt_prog_compiler_static='-Bstatic'
14265
# see comment about AmigaOS4 .so support
14266
lt_prog_compiler_pic='-fPIC'
14269
# FIXME: we need at least 68020 code to build shared libraries, but
14270
# adding the `-m68020' flag to GCC prevents building anything better,
14272
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14277
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14278
# PIC is the default for these OSes.
14281
mingw* | cygwin* | pw32* | os2* | cegcc*)
14282
# This hack is so that the source file can tell whether it is being
14283
# built for inclusion in a dll (and should export symbols for example).
14284
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14285
# (--disable-auto-import) libraries
14286
lt_prog_compiler_pic='-DDLL_EXPORT'
14289
darwin* | rhapsody*)
14290
# PIC is the default on this platform
14291
# Common symbols not allowed in MH_DYLIB files
14292
lt_prog_compiler_pic='-fno-common'
14296
# PIC is the default for Haiku.
14297
# The "-static" flag exists, but is broken.
14298
lt_prog_compiler_static=
14302
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14303
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14304
# sets the default TLS model and affects inlining.
14310
lt_prog_compiler_pic='-fPIC'
14316
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14317
# Instead, we relocate shared libraries at runtime.
14321
# Just because we use GCC doesn't mean we suddenly get shared libraries
14322
# on systems that don't support them.
14323
lt_prog_compiler_can_build_shared=no
14328
# QNX uses GNU C++, but need to define -shared option too, otherwise
14329
# it will coredump.
14330
lt_prog_compiler_pic='-fPIC -shared'
14334
if test -d /usr/nec; then
14335
lt_prog_compiler_pic=-Kconform_pic
14340
lt_prog_compiler_pic='-fPIC'
14344
case $cc_basename in
14345
nvcc*) # Cuda Compiler Driver 2.2
14346
lt_prog_compiler_wl='-Xlinker '
14347
if test -n "$lt_prog_compiler_pic"; then
14348
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14353
# PORTME Check for flag to pass linker flags through the system compiler.
14356
lt_prog_compiler_wl='-Wl,'
14357
if test "$host_cpu" = ia64; then
14358
# AIX 5 now supports IA64 processor
14359
lt_prog_compiler_static='-Bstatic'
14361
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14365
mingw* | cygwin* | pw32* | os2* | cegcc*)
14366
# This hack is so that the source file can tell whether it is being
14367
# built for inclusion in a dll (and should export symbols for example).
14368
lt_prog_compiler_pic='-DDLL_EXPORT'
14371
hpux9* | hpux10* | hpux11*)
14372
lt_prog_compiler_wl='-Wl,'
14373
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14374
# not for PA HP-UX.
14380
lt_prog_compiler_pic='+Z'
14383
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14384
lt_prog_compiler_static='${wl}-a ${wl}archive'
14387
irix5* | irix6* | nonstopux*)
14388
lt_prog_compiler_wl='-Wl,'
14389
# PIC (with -KPIC) is the default.
14390
lt_prog_compiler_static='-non_shared'
14393
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14394
case $cc_basename in
14395
# old Intel for x86_64 which still supported -KPIC.
14397
lt_prog_compiler_wl='-Wl,'
14398
lt_prog_compiler_pic='-KPIC'
14399
lt_prog_compiler_static='-static'
14401
# icc used to be incompatible with GCC.
14402
# ICC 10 doesn't accept -KPIC any more.
14404
lt_prog_compiler_wl='-Wl,'
14405
lt_prog_compiler_pic='-fPIC'
14406
lt_prog_compiler_static='-static'
14408
# Lahey Fortran 8.1.
14410
lt_prog_compiler_wl='-Wl,'
14411
lt_prog_compiler_pic='--shared'
14412
lt_prog_compiler_static='--static'
14415
# NAG Fortran compiler
14416
lt_prog_compiler_wl='-Wl,-Wl,,'
14417
lt_prog_compiler_pic='-PIC'
14418
lt_prog_compiler_static='-Bstatic'
14420
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14421
# Portland Group compilers (*not* the Pentium gcc compiler,
14422
# which looks to be a dead project)
14423
lt_prog_compiler_wl='-Wl,'
14424
lt_prog_compiler_pic='-fpic'
14425
lt_prog_compiler_static='-Bstatic'
14428
lt_prog_compiler_wl='-Wl,'
14429
# All Alpha code is PIC.
14430
lt_prog_compiler_static='-non_shared'
14432
xl* | bgxl* | bgf* | mpixl*)
14433
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14434
lt_prog_compiler_wl='-Wl,'
14435
lt_prog_compiler_pic='-qpic'
14436
lt_prog_compiler_static='-qstaticlink'
14439
case `$CC -V 2>&1 | sed 5q` in
14440
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14441
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14442
lt_prog_compiler_pic='-KPIC'
14443
lt_prog_compiler_static='-Bstatic'
14444
lt_prog_compiler_wl=''
14446
*Sun\ F* | *Sun*Fortran*)
14447
lt_prog_compiler_pic='-KPIC'
14448
lt_prog_compiler_static='-Bstatic'
14449
lt_prog_compiler_wl='-Qoption ld '
14453
lt_prog_compiler_pic='-KPIC'
14454
lt_prog_compiler_static='-Bstatic'
14455
lt_prog_compiler_wl='-Wl,'
14457
*Intel*\ [CF]*Compiler*)
14458
lt_prog_compiler_wl='-Wl,'
14459
lt_prog_compiler_pic='-fPIC'
14460
lt_prog_compiler_static='-static'
14463
lt_prog_compiler_wl='-Wl,'
14464
lt_prog_compiler_pic='-fpic'
14465
lt_prog_compiler_static='-Bstatic'
14473
lt_prog_compiler_pic='-KPIC'
14474
lt_prog_compiler_static='-Bstatic'
14478
# QNX uses GNU C++, but need to define -shared option too, otherwise
14479
# it will coredump.
14480
lt_prog_compiler_pic='-fPIC -shared'
14483
osf3* | osf4* | osf5*)
14484
lt_prog_compiler_wl='-Wl,'
14485
# All OSF/1 code is PIC.
14486
lt_prog_compiler_static='-non_shared'
14490
lt_prog_compiler_static='-non_shared'
14494
lt_prog_compiler_pic='-KPIC'
14495
lt_prog_compiler_static='-Bstatic'
14496
case $cc_basename in
14497
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14498
lt_prog_compiler_wl='-Qoption ld ';;
14500
lt_prog_compiler_wl='-Wl,';;
14505
lt_prog_compiler_wl='-Qoption ld '
14506
lt_prog_compiler_pic='-PIC'
14507
lt_prog_compiler_static='-Bstatic'
14510
sysv4 | sysv4.2uw2* | sysv4.3*)
14511
lt_prog_compiler_wl='-Wl,'
14512
lt_prog_compiler_pic='-KPIC'
14513
lt_prog_compiler_static='-Bstatic'
14517
if test -d /usr/nec ;then
14518
lt_prog_compiler_pic='-Kconform_pic'
14519
lt_prog_compiler_static='-Bstatic'
14523
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14524
lt_prog_compiler_wl='-Wl,'
14525
lt_prog_compiler_pic='-KPIC'
14526
lt_prog_compiler_static='-Bstatic'
14530
lt_prog_compiler_wl='-Wl,'
14531
lt_prog_compiler_can_build_shared=no
14535
lt_prog_compiler_pic='-pic'
14536
lt_prog_compiler_static='-Bstatic'
14540
lt_prog_compiler_can_build_shared=no
14546
# For platforms which do not support PIC, -DPIC is meaningless:
14548
lt_prog_compiler_pic=
14551
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14555
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14556
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14557
if ${lt_cv_prog_compiler_pic+:} false; then :
14558
$as_echo_n "(cached) " >&6
14560
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14563
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14564
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14567
# Check to make sure the PIC flag actually works.
14569
if test -n "$lt_prog_compiler_pic"; then
14570
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14571
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14572
if ${lt_cv_prog_compiler_pic_works+:} false; then :
14573
$as_echo_n "(cached) " >&6
14575
lt_cv_prog_compiler_pic_works=no
14576
ac_outfile=conftest.$ac_objext
14577
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14578
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14579
# Insert the option either (1) after the last *FLAGS variable, or
14580
# (2) before a word containing "conftest.", or (3) at the end.
14581
# Note that $ac_compile itself does not contain backslashes and begins
14582
# with a dollar sign (not a hyphen), so the echo should work correctly.
14583
# The option is referenced via a variable to avoid confusing sed.
14584
lt_compile=`echo "$ac_compile" | $SED \
14585
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14586
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14587
-e 's:$: $lt_compiler_flag:'`
14588
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14589
(eval "$lt_compile" 2>conftest.err)
14591
cat conftest.err >&5
14592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593
if (exit $ac_status) && test -s "$ac_outfile"; then
14594
# The compiler can only warn and ignore the option if not recognized
14595
# So say no if there are warnings other than the usual output.
14596
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14597
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14598
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14599
lt_cv_prog_compiler_pic_works=yes
14605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14606
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14608
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14609
case $lt_prog_compiler_pic in
14611
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14614
lt_prog_compiler_pic=
14615
lt_prog_compiler_can_build_shared=no
14631
# Check to make sure the static flag actually works.
14633
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14634
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14635
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14636
if ${lt_cv_prog_compiler_static_works+:} false; then :
14637
$as_echo_n "(cached) " >&6
14639
lt_cv_prog_compiler_static_works=no
14640
save_LDFLAGS="$LDFLAGS"
14641
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14642
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14643
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14644
# The linker can only warn and ignore the option if not recognized
14645
# So say no if there are warnings
14646
if test -s conftest.err; then
14647
# Append any errors to the config.log.
14648
cat conftest.err 1>&5
14649
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14650
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14651
if diff conftest.exp conftest.er2 >/dev/null; then
14652
lt_cv_prog_compiler_static_works=yes
14655
lt_cv_prog_compiler_static_works=yes
14659
LDFLAGS="$save_LDFLAGS"
14662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14663
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14665
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14668
lt_prog_compiler_static=
14677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14678
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14679
if ${lt_cv_prog_compiler_c_o+:} false; then :
14680
$as_echo_n "(cached) " >&6
14682
lt_cv_prog_compiler_c_o=no
14683
$RM -r conftest 2>/dev/null
14687
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14689
lt_compiler_flag="-o out/conftest2.$ac_objext"
14690
# Insert the option either (1) after the last *FLAGS variable, or
14691
# (2) before a word containing "conftest.", or (3) at the end.
14692
# Note that $ac_compile itself does not contain backslashes and begins
14693
# with a dollar sign (not a hyphen), so the echo should work correctly.
14694
lt_compile=`echo "$ac_compile" | $SED \
14695
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14696
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14697
-e 's:$: $lt_compiler_flag:'`
14698
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14699
(eval "$lt_compile" 2>out/conftest.err)
14701
cat out/conftest.err >&5
14702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14705
# The compiler can only warn and ignore the option if not recognized
14706
# So say no if there are warnings
14707
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14708
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14709
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14710
lt_cv_prog_compiler_c_o=yes
14715
# SGI C++ compiler will create directory out/ii_files/ for
14716
# template instantiation
14717
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14718
$RM out/* && rmdir out
14724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14725
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14733
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14734
if ${lt_cv_prog_compiler_c_o+:} false; then :
14735
$as_echo_n "(cached) " >&6
14737
lt_cv_prog_compiler_c_o=no
14738
$RM -r conftest 2>/dev/null
14742
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14744
lt_compiler_flag="-o out/conftest2.$ac_objext"
14745
# Insert the option either (1) after the last *FLAGS variable, or
14746
# (2) before a word containing "conftest.", or (3) at the end.
14747
# Note that $ac_compile itself does not contain backslashes and begins
14748
# with a dollar sign (not a hyphen), so the echo should work correctly.
14749
lt_compile=`echo "$ac_compile" | $SED \
14750
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14751
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14752
-e 's:$: $lt_compiler_flag:'`
14753
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14754
(eval "$lt_compile" 2>out/conftest.err)
14756
cat out/conftest.err >&5
14757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14760
# The compiler can only warn and ignore the option if not recognized
14761
# So say no if there are warnings
14762
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14763
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14764
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14765
lt_cv_prog_compiler_c_o=yes
14770
# SGI C++ compiler will create directory out/ii_files/ for
14771
# template instantiation
14772
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14773
$RM out/* && rmdir out
14779
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14780
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14785
hard_links="nottested"
14786
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14787
# do not overwrite the value of need_locks provided by the user
14788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14789
$as_echo_n "checking if we can lock with hard links... " >&6; }
14792
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14794
ln conftest.a conftest.b 2>&5 || hard_links=no
14795
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14797
$as_echo "$hard_links" >&6; }
14798
if test "$hard_links" = no; then
14799
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14800
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14813
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14816
allow_undefined_flag=
14817
always_export_symbols=no
14819
archive_expsym_cmds=
14820
compiler_needs_object=no
14821
enable_shared_with_static_runtimes=no
14822
export_dynamic_flag_spec=
14823
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14824
hardcode_automatic=no
14826
hardcode_direct_absolute=no
14827
hardcode_libdir_flag_spec=
14828
hardcode_libdir_separator=
14829
hardcode_minus_L=no
14830
hardcode_shlibpath_var=unsupported
14832
link_all_deplibs=unknown
14834
module_expsym_cmds=
14835
old_archive_from_new_cmds=
14836
old_archive_from_expsyms_cmds=
14837
thread_safe_flag_spec=
14838
whole_archive_flag_spec=
14839
# include_expsyms should be a list of space-separated symbols to be *always*
14840
# included in the symbol list
14842
# exclude_expsyms can be an extended regexp of symbols to exclude
14843
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14844
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14845
# as well as any symbol that contains `d'.
14846
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14847
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14848
# platforms (ab)use it in PIC code, but their linkers get confused if
14849
# the symbol is explicitly referenced. Since portable code cannot
14850
# rely on this symbol name, it's probably fine to never include it in
14851
# preloaded symbol tables.
14852
# Exclude shared library initialization/finalization symbols.
14853
extract_expsyms_cmds=
14856
cygwin* | mingw* | pw32* | cegcc*)
14857
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14858
# When not using gcc, we currently assume that we are using
14859
# Microsoft Visual C++.
14860
if test "$GCC" != yes; then
14865
# we just hope/assume this is gcc and not c89 (= MSVC++)
14871
linux* | k*bsd*-gnu | gnu*)
14872
link_all_deplibs=no
14878
# On some targets, GNU ld is compatible enough with the native linker
14879
# that we're better off using the native interface for both.
14880
lt_use_gnu_ld_interface=no
14881
if test "$with_gnu_ld" = yes; then
14884
# The AIX port of GNU ld has always aspired to compatibility
14885
# with the native linker. However, as the warning in the GNU ld
14886
# block says, versions before 2.19.5* couldn't really create working
14887
# shared libraries, regardless of the interface used.
14888
case `$LD -v 2>&1` in
14889
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14890
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14891
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
14893
lt_use_gnu_ld_interface=yes
14898
lt_use_gnu_ld_interface=yes
14903
if test "$lt_use_gnu_ld_interface" = yes; then
14904
# If archive_cmds runs LD, not CC, wlarc should be empty
14907
# Set some defaults for GNU ld with shared library support. These
14908
# are reset later if shared libraries are not supported. Putting them
14909
# here allows them to be overridden if necessary.
14910
runpath_var=LD_RUN_PATH
14911
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14912
export_dynamic_flag_spec='${wl}--export-dynamic'
14913
# ancient GNU ld didn't support --whole-archive et. al.
14914
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14915
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14917
whole_archive_flag_spec=
14919
supports_anon_versioning=no
14920
case `$LD -v 2>&1` in
14921
*GNU\ gold*) supports_anon_versioning=yes ;;
14922
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14923
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14924
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14925
*\ 2.11.*) ;; # other 2.11 versions
14926
*) supports_anon_versioning=yes ;;
14929
# See if GNU ld supports shared libraries.
14932
# On AIX/PPC, the GNU linker is very broken
14933
if test "$host_cpu" != ia64; then
14937
*** Warning: the GNU linker, at least up to release 2.19, is reported
14938
*** to be unable to reliably create shared libraries on AIX.
14939
*** Therefore, libtool is disabling shared libraries support. If you
14940
*** really care for shared libraries, you may want to install binutils
14941
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14942
*** You will then need to restart the configuration process.
14951
# see comment about AmigaOS4 .so support
14952
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14953
archive_expsym_cmds=''
14956
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14957
hardcode_libdir_flag_spec='-L$libdir'
14958
hardcode_minus_L=yes
14964
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14965
allow_undefined_flag=unsupported
14966
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14967
# support --undefined. This deserves some investigation. FIXME
14968
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14974
cygwin* | mingw* | pw32* | cegcc*)
14975
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14976
# as there is no search path for DLLs.
14977
hardcode_libdir_flag_spec='-L$libdir'
14978
export_dynamic_flag_spec='${wl}--export-all-symbols'
14979
allow_undefined_flag=unsupported
14980
always_export_symbols=no
14981
enable_shared_with_static_runtimes=yes
14982
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14983
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14985
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14986
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14987
# If the export-symbols file already is a .def file (1st line
14988
# is EXPORTS), use it as is; otherwise, prepend...
14989
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14990
cp $export_symbols $output_objdir/$soname.def;
14992
echo EXPORTS > $output_objdir/$soname.def;
14993
cat $export_symbols >> $output_objdir/$soname.def;
14995
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15002
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15003
link_all_deplibs=yes
15008
hardcode_shlibpath_var=no
15009
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15010
export_dynamic_flag_spec='${wl}-E'
15011
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15012
# Instead, shared libraries are loaded at an image base (0x10000000 by
15013
# default) and relocated if they conflict, which is a slow very memory
15014
# consuming and fragmenting process. To avoid this, we pick a random,
15015
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15016
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15017
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15018
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15021
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15023
if test "$host_os" = linux-dietlibc; then
15024
case $cc_basename in
15025
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15028
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15029
&& test "$tmp_diet" = no
15031
tmp_addflag=' $pic_flag'
15032
tmp_sharedflag='-shared'
15033
case $cc_basename,$host_cpu in
15034
pgcc*) # Portland Group C compiler
15035
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15036
tmp_addflag=' $pic_flag'
15038
pgf77* | pgf90* | pgf95* | pgfortran*)
15039
# Portland Group f77 and f90 compilers
15040
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15041
tmp_addflag=' $pic_flag -Mnomain' ;;
15042
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15043
tmp_addflag=' -i_dynamic' ;;
15044
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15045
tmp_addflag=' -i_dynamic -nofor_main' ;;
15046
ifc* | ifort*) # Intel Fortran compiler
15047
tmp_addflag=' -nofor_main' ;;
15048
lf95*) # Lahey Fortran 8.1
15049
whole_archive_flag_spec=
15050
tmp_sharedflag='--shared' ;;
15051
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15052
tmp_sharedflag='-qmkshrobj'
15054
nvcc*) # Cuda Compiler Driver 2.2
15055
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15056
compiler_needs_object=yes
15059
case `$CC -V 2>&1 | sed 5q` in
15060
*Sun\ C*) # Sun C 5.9
15061
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15062
compiler_needs_object=yes
15063
tmp_sharedflag='-G' ;;
15064
*Sun\ F*) # Sun Fortran 8.3
15065
tmp_sharedflag='-G' ;;
15067
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15069
if test "x$supports_anon_versioning" = xyes; then
15070
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15071
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15072
echo "local: *; };" >> $output_objdir/$libname.ver~
15073
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15076
case $cc_basename in
15077
xlf* | bgf* | bgxlf* | mpixlf*)
15078
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15079
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15080
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15081
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15082
if test "x$supports_anon_versioning" = xyes; then
15083
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15084
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15085
echo "local: *; };" >> $output_objdir/$libname.ver~
15086
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15095
netbsd* | netbsdelf*-gnu)
15096
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15097
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15100
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15101
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15106
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15110
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15111
*** create shared libraries on Solaris systems. Therefore, libtool
15112
*** is disabling shared libraries support. We urge you to upgrade GNU
15113
*** binutils to release 2.9.1 or newer. Another option is to modify
15114
*** your PATH or compiler configuration so that the native linker is
15115
*** used, and then restart.
15118
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15119
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15120
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15126
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15127
case `$LD -v 2>&1` in
15128
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15132
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15133
*** reliably create shared libraries on SCO systems. Therefore, libtool
15134
*** is disabling shared libraries support. We urge you to upgrade GNU
15135
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15136
*** your PATH or compiler configuration so that the native linker is
15137
*** used, and then restart.
15142
# For security reasons, it is highly recommended that you always
15143
# use absolute paths for naming shared libraries, and exclude the
15144
# DT_RUNPATH tag from executables and libraries. But doing so
15145
# requires that you compile everything twice, which is a pain.
15146
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15147
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15148
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15149
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15158
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15160
hardcode_direct=yes
15161
hardcode_shlibpath_var=no
15165
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15166
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15167
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15174
if test "$ld_shlibs" = no; then
15176
hardcode_libdir_flag_spec=
15177
export_dynamic_flag_spec=
15178
whole_archive_flag_spec=
15181
# PORTME fill in a description of your system's linker (not GNU ld)
15184
allow_undefined_flag=unsupported
15185
always_export_symbols=yes
15186
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15187
# Note: this linker hardcodes the directories in LIBPATH if there
15188
# are no directories specified by -L.
15189
hardcode_minus_L=yes
15190
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15191
# Neither direct hardcoding nor static linking is supported with a
15193
hardcode_direct=unsupported
15198
if test "$host_cpu" = ia64; then
15199
# On IA64, the linker does run time linking by default, so we don't
15200
# have to do anything special.
15201
aix_use_runtimelinking=no
15202
exp_sym_flag='-Bexport'
15205
# If we're using GNU nm, then we don't want the "-C" option.
15206
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15207
# Also, AIX nm treats weak defined symbols like other global
15208
# defined symbols, whereas GNU nm marks them as "W".
15209
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15210
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15212
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15214
aix_use_runtimelinking=no
15216
# Test if we are trying to use run time linking or normal
15217
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15218
# need to do runtime linking.
15219
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15220
for ld_flag in $LDFLAGS; do
15221
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15222
aix_use_runtimelinking=yes
15229
exp_sym_flag='-bexport'
15230
no_entry_flag='-bnoentry'
15233
# When large executables or shared objects are built, AIX ld can
15234
# have problems creating the table of contents. If linking a library
15235
# or program results in "error TOC overflow" add -mminimal-toc to
15236
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15237
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15240
hardcode_direct=yes
15241
hardcode_direct_absolute=yes
15242
hardcode_libdir_separator=':'
15243
link_all_deplibs=yes
15244
file_list_spec='${wl}-f,'
15246
if test "$GCC" = yes; then
15247
case $host_os in aix4.[012]|aix4.[012].*)
15248
# We only want to do this on AIX 4.2 and lower, the check
15249
# below for broken collect2 doesn't work under 4.3+
15250
collect2name=`${CC} -print-prog-name=collect2`
15251
if test -f "$collect2name" &&
15252
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15254
# We have reworked collect2
15257
# We have old collect2
15258
hardcode_direct=unsupported
15259
# It fails to find uninstalled libraries when the uninstalled
15260
# path is not listed in the libpath. Setting hardcode_minus_L
15261
# to unsupported forces relinking
15262
hardcode_minus_L=yes
15263
hardcode_libdir_flag_spec='-L$libdir'
15264
hardcode_libdir_separator=
15268
shared_flag='-shared'
15269
if test "$aix_use_runtimelinking" = yes; then
15270
shared_flag="$shared_flag "'${wl}-G'
15272
link_all_deplibs=no
15275
if test "$host_cpu" = ia64; then
15276
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15277
# chokes on -Wl,-G. The following line is correct:
15280
if test "$aix_use_runtimelinking" = yes; then
15281
shared_flag='${wl}-G'
15283
shared_flag='${wl}-bM:SRE'
15288
export_dynamic_flag_spec='${wl}-bexpall'
15289
# It seems that -bexpall does not export symbols beginning with
15290
# underscore (_), so it is better to generate a list of symbols to export.
15291
always_export_symbols=yes
15292
if test "$aix_use_runtimelinking" = yes; then
15293
# Warning - without using the other runtime loading flags (-brtl),
15294
# -berok will link without error, but may produce a broken library.
15295
allow_undefined_flag='-berok'
15296
# Determine the default libpath from the value encoded in an
15297
# empty executable.
15298
if test "${lt_cv_aix_libpath+set}" = set; then
15299
aix_libpath=$lt_cv_aix_libpath
15301
if ${lt_cv_aix_libpath_+:} false; then :
15302
$as_echo_n "(cached) " >&6
15304
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305
/* end confdefs.h. */
15315
if ac_fn_c_try_link "$LINENO"; then :
15317
lt_aix_libpath_sed='
15318
/Import File Strings/,/^$/ {
15320
s/^0 *\([^ ]*\) *$/\1/
15324
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15325
# Check for a 64-bit object if we didn't find anything.
15326
if test -z "$lt_cv_aix_libpath_"; then
15327
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15330
rm -f core conftest.err conftest.$ac_objext \
15331
conftest$ac_exeext conftest.$ac_ext
15332
if test -z "$lt_cv_aix_libpath_"; then
15333
lt_cv_aix_libpath_="/usr/lib:/lib"
15338
aix_libpath=$lt_cv_aix_libpath_
15341
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15342
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15344
if test "$host_cpu" = ia64; then
15345
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15346
allow_undefined_flag="-z nodefs"
15347
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15349
# Determine the default libpath from the value encoded in an
15350
# empty executable.
15351
if test "${lt_cv_aix_libpath+set}" = set; then
15352
aix_libpath=$lt_cv_aix_libpath
15354
if ${lt_cv_aix_libpath_+:} false; then :
15355
$as_echo_n "(cached) " >&6
15357
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358
/* end confdefs.h. */
15368
if ac_fn_c_try_link "$LINENO"; then :
15370
lt_aix_libpath_sed='
15371
/Import File Strings/,/^$/ {
15373
s/^0 *\([^ ]*\) *$/\1/
15377
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15378
# Check for a 64-bit object if we didn't find anything.
15379
if test -z "$lt_cv_aix_libpath_"; then
15380
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15383
rm -f core conftest.err conftest.$ac_objext \
15384
conftest$ac_exeext conftest.$ac_ext
15385
if test -z "$lt_cv_aix_libpath_"; then
15386
lt_cv_aix_libpath_="/usr/lib:/lib"
15391
aix_libpath=$lt_cv_aix_libpath_
15394
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15395
# Warning - without using the other run time loading flags,
15396
# -berok will link without error, but may produce a broken library.
15397
no_undefined_flag=' ${wl}-bernotok'
15398
allow_undefined_flag=' ${wl}-berok'
15399
if test "$with_gnu_ld" = yes; then
15400
# We only use this code for GNU lds that support --whole-archive.
15401
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15403
# Exported symbols can be pulled into shared objects from archives
15404
whole_archive_flag_spec='$convenience'
15406
archive_cmds_need_lc=yes
15407
# This is similar to how AIX traditionally builds its shared libraries.
15408
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15416
# see comment about AmigaOS4 .so support
15417
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15418
archive_expsym_cmds=''
15421
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15422
hardcode_libdir_flag_spec='-L$libdir'
15423
hardcode_minus_L=yes
15429
export_dynamic_flag_spec=-rdynamic
15432
cygwin* | mingw* | pw32* | cegcc*)
15433
# When not using gcc, we currently assume that we are using
15434
# Microsoft Visual C++.
15435
# hardcode_libdir_flag_spec is actually meaningless, as there is
15436
# no search path for DLLs.
15437
case $cc_basename in
15440
hardcode_libdir_flag_spec=' '
15441
allow_undefined_flag=unsupported
15442
always_export_symbols=yes
15444
# Tell ltmain to make .lib files, not .a files.
15446
# Tell ltmain to make .dll files, not .so files.
15448
# FIXME: Setting linknames here is a bad hack.
15449
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15450
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15451
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15453
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15455
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15457
# The linker will not automatically build a static lib if we build a DLL.
15458
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15459
enable_shared_with_static_runtimes=yes
15460
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15461
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15463
old_postinstall_cmds='chmod 644 $oldlib'
15464
postlink_cmds='lt_outputfile="@OUTPUT@"~
15465
lt_tool_outputfile="@TOOL_OUTPUT@"~
15466
case $lt_outputfile in
15469
lt_outputfile="$lt_outputfile.exe"
15470
lt_tool_outputfile="$lt_tool_outputfile.exe"
15473
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15474
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15475
$RM "$lt_outputfile.manifest";
15479
# Assume MSVC wrapper
15480
hardcode_libdir_flag_spec=' '
15481
allow_undefined_flag=unsupported
15482
# Tell ltmain to make .lib files, not .a files.
15484
# Tell ltmain to make .dll files, not .so files.
15486
# FIXME: Setting linknames here is a bad hack.
15487
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15488
# The linker will automatically build a .lib file if we build a DLL.
15489
old_archive_from_new_cmds='true'
15490
# FIXME: Should let the user specify the lib program.
15491
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15492
enable_shared_with_static_runtimes=yes
15497
darwin* | rhapsody*)
15500
archive_cmds_need_lc=no
15502
hardcode_automatic=yes
15503
hardcode_shlibpath_var=unsupported
15504
if test "$lt_cv_ld_force_load" = "yes"; then
15505
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15508
whole_archive_flag_spec=''
15510
link_all_deplibs=yes
15511
allow_undefined_flag="$_lt_dar_allow_undefined"
15512
case $cc_basename in
15513
ifort*) _lt_dar_can_shared=yes ;;
15514
*) _lt_dar_can_shared=$GCC ;;
15516
if test "$_lt_dar_can_shared" = "yes"; then
15517
output_verbose_link_cmd=func_echo_all
15518
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15519
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15520
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15521
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15530
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15531
hardcode_libdir_flag_spec='-L$libdir'
15532
hardcode_shlibpath_var=no
15535
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15536
# support. Future versions do this automatically, but an explicit c++rt0.o
15537
# does not break anything, and helps significantly (at the cost of a little
15540
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15541
hardcode_libdir_flag_spec='-R$libdir'
15542
hardcode_direct=yes
15543
hardcode_shlibpath_var=no
15546
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15548
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15549
hardcode_direct=yes
15550
hardcode_minus_L=yes
15551
hardcode_shlibpath_var=no
15554
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15555
freebsd* | dragonfly*)
15556
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15557
hardcode_libdir_flag_spec='-R$libdir'
15558
hardcode_direct=yes
15559
hardcode_shlibpath_var=no
15563
if test "$GCC" = yes; then
15564
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15566
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15568
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15569
hardcode_libdir_separator=:
15570
hardcode_direct=yes
15572
# hardcode_minus_L: Not really in the search PATH,
15573
# but as the default location of the library.
15574
hardcode_minus_L=yes
15575
export_dynamic_flag_spec='${wl}-E'
15579
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15580
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15582
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15584
if test "$with_gnu_ld" = no; then
15585
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15586
hardcode_libdir_separator=:
15587
hardcode_direct=yes
15588
hardcode_direct_absolute=yes
15589
export_dynamic_flag_spec='${wl}-E'
15590
# hardcode_minus_L: Not really in the search PATH,
15591
# but as the default location of the library.
15592
hardcode_minus_L=yes
15597
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15600
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15603
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15606
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15612
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15615
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15619
# Older versions of the 11.00 compiler do not understand -b yet
15620
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15622
$as_echo_n "checking if $CC understands -b... " >&6; }
15623
if ${lt_cv_prog_compiler__b+:} false; then :
15624
$as_echo_n "(cached) " >&6
15626
lt_cv_prog_compiler__b=no
15627
save_LDFLAGS="$LDFLAGS"
15628
LDFLAGS="$LDFLAGS -b"
15629
echo "$lt_simple_link_test_code" > conftest.$ac_ext
15630
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15631
# The linker can only warn and ignore the option if not recognized
15632
# So say no if there are warnings
15633
if test -s conftest.err; then
15634
# Append any errors to the config.log.
15635
cat conftest.err 1>&5
15636
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15637
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15638
if diff conftest.exp conftest.er2 >/dev/null; then
15639
lt_cv_prog_compiler__b=yes
15642
lt_cv_prog_compiler__b=yes
15646
LDFLAGS="$save_LDFLAGS"
15649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15650
$as_echo "$lt_cv_prog_compiler__b" >&6; }
15652
if test x"$lt_cv_prog_compiler__b" = xyes; then
15653
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15655
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15661
if test "$with_gnu_ld" = no; then
15662
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15663
hardcode_libdir_separator=:
15668
hardcode_shlibpath_var=no
15671
hardcode_direct=yes
15672
hardcode_direct_absolute=yes
15673
export_dynamic_flag_spec='${wl}-E'
15675
# hardcode_minus_L: Not really in the search PATH,
15676
# but as the default location of the library.
15677
hardcode_minus_L=yes
15683
irix5* | irix6* | nonstopux*)
15684
if test "$GCC" = yes; then
15685
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15686
# Try to use the -exported_symbol ld option, if it does not
15687
# work, assume that -exports_file does not work either and
15688
# implicitly export all symbols.
15689
# This should be the same for all languages, so no per-tag cache variable.
15690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15691
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15692
if ${lt_cv_irix_exported_symbol+:} false; then :
15693
$as_echo_n "(cached) " >&6
15695
save_LDFLAGS="$LDFLAGS"
15696
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15697
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15698
/* end confdefs.h. */
15699
int foo (void) { return 0; }
15701
if ac_fn_c_try_link "$LINENO"; then :
15702
lt_cv_irix_exported_symbol=yes
15704
lt_cv_irix_exported_symbol=no
15706
rm -f core conftest.err conftest.$ac_objext \
15707
conftest$ac_exeext conftest.$ac_ext
15708
LDFLAGS="$save_LDFLAGS"
15710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15711
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15712
if test "$lt_cv_irix_exported_symbol" = yes; then
15713
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
15716
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15717
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
15719
archive_cmds_need_lc='no'
15720
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15721
hardcode_libdir_separator=:
15723
link_all_deplibs=yes
15726
netbsd* | netbsdelf*-gnu)
15727
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15728
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15730
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15732
hardcode_libdir_flag_spec='-R$libdir'
15733
hardcode_direct=yes
15734
hardcode_shlibpath_var=no
15738
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15739
hardcode_direct=yes
15740
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15741
hardcode_libdir_separator=:
15742
hardcode_shlibpath_var=no
15749
if test -f /usr/libexec/ld.so; then
15750
hardcode_direct=yes
15751
hardcode_shlibpath_var=no
15752
hardcode_direct_absolute=yes
15753
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15754
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15755
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15756
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15757
export_dynamic_flag_spec='${wl}-E'
15760
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15761
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15762
hardcode_libdir_flag_spec='-R$libdir'
15765
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15766
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15776
hardcode_libdir_flag_spec='-L$libdir'
15777
hardcode_minus_L=yes
15778
allow_undefined_flag=unsupported
15779
archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15780
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15784
if test "$GCC" = yes; then
15785
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15786
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15788
allow_undefined_flag=' -expect_unresolved \*'
15789
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15791
archive_cmds_need_lc='no'
15792
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15793
hardcode_libdir_separator=:
15796
osf4* | osf5*) # as osf3* with the addition of -msym flag
15797
if test "$GCC" = yes; then
15798
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15799
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15800
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15802
allow_undefined_flag=' -expect_unresolved \*'
15803
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15804
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
15805
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
15807
# Both c and cxx compiler support -rpath directly
15808
hardcode_libdir_flag_spec='-rpath $libdir'
15810
archive_cmds_need_lc='no'
15811
hardcode_libdir_separator=:
15815
no_undefined_flag=' -z defs'
15816
if test "$GCC" = yes; then
15818
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15819
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15820
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15822
case `$CC -V 2>&1` in
15825
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15826
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15827
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15831
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15832
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15833
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15837
hardcode_libdir_flag_spec='-R$libdir'
15838
hardcode_shlibpath_var=no
15840
solaris2.[0-5] | solaris2.[0-5].*) ;;
15842
# The compiler driver will combine and reorder linker options,
15843
# but understands `-z linker_flag'. GCC discards it without `$wl',
15844
# but is careful enough not to reorder.
15845
# Supported since Solaris 2.6 (maybe 2.5.1?)
15846
if test "$GCC" = yes; then
15847
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15849
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15853
link_all_deplibs=yes
15857
if test "x$host_vendor" = xsequent; then
15858
# Use $CC to link under sequent, because it throws in some extra .o
15859
# files that make .init and .fini sections work.
15860
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15862
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15864
hardcode_libdir_flag_spec='-L$libdir'
15865
hardcode_direct=yes
15866
hardcode_minus_L=yes
15867
hardcode_shlibpath_var=no
15871
case $host_vendor in
15873
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15874
hardcode_direct=yes # is this really true???
15877
## LD is ld it makes a PLAMLIB
15878
## CC just makes a GrossModule.
15879
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15880
reload_cmds='$CC -r -o $output$reload_objs'
15884
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15885
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15888
runpath_var='LD_RUN_PATH'
15889
hardcode_shlibpath_var=no
15893
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15894
hardcode_shlibpath_var=no
15895
export_dynamic_flag_spec='-Bexport'
15899
if test -d /usr/nec; then
15900
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15901
hardcode_shlibpath_var=no
15902
runpath_var=LD_RUN_PATH
15903
hardcode_runpath_var=yes
15908
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15909
no_undefined_flag='${wl}-z,text'
15910
archive_cmds_need_lc=no
15911
hardcode_shlibpath_var=no
15912
runpath_var='LD_RUN_PATH'
15914
if test "$GCC" = yes; then
15915
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15916
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15918
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15919
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15923
sysv5* | sco3.2v5* | sco5v6*)
15924
# Note: We can NOT use -z defs as we might desire, because we do not
15925
# link with -lc, and that would cause any symbols used from libc to
15926
# always be unresolved, which means just about no library would
15927
# ever link correctly. If we're not using GNU ld we use -z text
15928
# though, which does catch some bad symbols but isn't as heavy-handed
15930
no_undefined_flag='${wl}-z,text'
15931
allow_undefined_flag='${wl}-z,nodefs'
15932
archive_cmds_need_lc=no
15933
hardcode_shlibpath_var=no
15934
hardcode_libdir_flag_spec='${wl}-R,$libdir'
15935
hardcode_libdir_separator=':'
15936
link_all_deplibs=yes
15937
export_dynamic_flag_spec='${wl}-Bexport'
15938
runpath_var='LD_RUN_PATH'
15940
if test "$GCC" = yes; then
15941
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15942
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15944
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15945
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15950
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15951
hardcode_libdir_flag_spec='-L$libdir'
15952
hardcode_shlibpath_var=no
15960
if test x$host_vendor = xsni; then
15962
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15963
export_dynamic_flag_spec='${wl}-Blargedynsym'
15969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15970
$as_echo "$ld_shlibs" >&6; }
15971
test "$ld_shlibs" = no && can_build_shared=no
15973
with_gnu_ld=$with_gnu_ld
15990
# Do we need to explicitly link libc?
15992
case "x$archive_cmds_need_lc" in
15994
# Assume -lc should be added
15995
archive_cmds_need_lc=yes
15997
if test "$enable_shared" = yes && test "$GCC" = yes; then
15998
case $archive_cmds in
16000
# FIXME: we may have to deal with multi-command sequences.
16003
# Test whether the compiler implicitly links with -lc since on some
16004
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16005
# to ld, don't add -lc before -lgcc.
16006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16007
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16008
if ${lt_cv_archive_cmds_need_lc+:} false; then :
16009
$as_echo_n "(cached) " >&6
16012
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16014
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16015
(eval $ac_compile) 2>&5
16017
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16018
test $ac_status = 0; } 2>conftest.err; then
16021
libobjs=conftest.$ac_objext
16023
wl=$lt_prog_compiler_wl
16024
pic_flag=$lt_prog_compiler_pic
16030
lt_save_allow_undefined_flag=$allow_undefined_flag
16031
allow_undefined_flag=
16032
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16033
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16035
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16036
test $ac_status = 0; }
16038
lt_cv_archive_cmds_need_lc=no
16040
lt_cv_archive_cmds_need_lc=yes
16042
allow_undefined_flag=$lt_save_allow_undefined_flag
16044
cat conftest.err 1>&5
16049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16050
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16051
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16210
$as_echo_n "checking dynamic linker characteristics... " >&6; }
16212
if test "$GCC" = yes; then
16214
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16215
*) lt_awk_arg="/^libraries:/" ;;
16218
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16219
*) lt_sed_strip_eq="s,=/,/,g" ;;
16221
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16222
case $lt_search_path_spec in
16224
# if the path contains ";" then we assume it to be the separator
16225
# otherwise default to the standard path separator (i.e. ":") - it is
16226
# assumed that no part of a normal pathname contains ";" but that should
16227
# okay in the real world where ";" in dirpaths is itself problematic.
16228
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16231
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16234
# Ok, now we have the path, separated by spaces, we can step through it
16235
# and add multilib dir if necessary.
16236
lt_tmp_lt_search_path_spec=
16237
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16238
for lt_sys_path in $lt_search_path_spec; do
16239
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16240
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16242
test -d "$lt_sys_path" && \
16243
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16246
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16247
BEGIN {RS=" "; FS="/|\n";} {
16250
for (lt_i = NF; lt_i > 0; lt_i--) {
16251
if ($lt_i != "" && $lt_i != ".") {
16252
if ($lt_i == "..") {
16255
if (lt_count == 0) {
16256
lt_foo="/" $lt_i lt_foo;
16263
if (lt_foo != "") { lt_freq[lt_foo]++; }
16264
if (lt_freq[lt_foo] == 1) { print lt_foo; }
16266
# AWK program above erroneously prepends '/' to C:/dos/paths
16269
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16270
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
16272
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16274
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16276
library_names_spec=
16277
libname_spec='lib$name'
16281
postuninstall_cmds=
16285
shlibpath_overrides_runpath=unknown
16287
dynamic_linker="$host_os ld.so"
16288
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16289
need_lib_prefix=unknown
16290
hardcode_into_libs=no
16292
# when you set need_version to no, make sure it does not cause -set_version
16293
# flags to be left without arguments
16294
need_version=unknown
16298
version_type=linux # correct to gnu/linux during the next big refactor
16299
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16300
shlibpath_var=LIBPATH
16302
# AIX 3 has no versioning support, so we append a major version to the name.
16303
soname_spec='${libname}${release}${shared_ext}$major'
16307
version_type=linux # correct to gnu/linux during the next big refactor
16310
hardcode_into_libs=yes
16311
if test "$host_cpu" = ia64; then
16312
# AIX 5 supports IA64
16313
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16314
shlibpath_var=LD_LIBRARY_PATH
16316
# With GCC up to 2.95.x, collect2 would create an import file
16317
# for dependence libraries. The import file would start with
16318
# the line `#! .'. This would cause the generated library to
16319
# depend on `.', always an invalid library. This was fixed in
16320
# development snapshots of GCC prior to 3.0.
16322
aix4 | aix4.[01] | aix4.[01].*)
16323
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16325
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16328
can_build_shared=no
16332
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16333
# soname into executable. Probably we can add versioning support to
16334
# collect2, so additional links can be useful in future.
16335
if test "$aix_use_runtimelinking" = yes; then
16336
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16337
# instead of lib<name>.a to let people know that these are not
16338
# typical AIX shared libraries.
16339
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16341
# We preserve .a as extension for shared libraries through AIX4.2
16342
# and later when we are not doing run time linking.
16343
library_names_spec='${libname}${release}.a $libname.a'
16344
soname_spec='${libname}${release}${shared_ext}$major'
16346
shlibpath_var=LIBPATH
16353
# Since July 2007 AmigaOS4 officially supports .so libraries.
16354
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16355
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358
library_names_spec='$libname.ixlibrary $libname.a'
16359
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16360
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16366
library_names_spec='${libname}${shared_ext}'
16367
dynamic_linker="$host_os ld.so"
16368
shlibpath_var=LIBRARY_PATH
16372
version_type=linux # correct to gnu/linux during the next big refactor
16374
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16375
soname_spec='${libname}${release}${shared_ext}$major'
16376
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16377
shlibpath_var=LD_LIBRARY_PATH
16378
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16379
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16380
# the default ld.so.conf also contains /usr/contrib/lib and
16381
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16382
# libtool to hard-code these into programs
16385
cygwin* | mingw* | pw32* | cegcc*)
16386
version_type=windows
16391
case $GCC,$cc_basename in
16394
library_names_spec='$libname.dll.a'
16395
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16396
postinstall_cmds='base_file=`basename \${file}`~
16397
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16398
dldir=$destdir/`dirname \$dlpath`~
16399
test -d \$dldir || mkdir -p \$dldir~
16400
$install_prog $dir/$dlname \$dldir/$dlname~
16401
chmod a+x \$dldir/$dlname~
16402
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16403
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16405
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16406
dlpath=$dir/\$dldll~
16408
shlibpath_overrides_runpath=yes
16412
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16413
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16415
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16418
# MinGW DLLs use traditional 'lib' prefix
16419
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16422
# pw32 DLLs use 'pw' prefix rather than 'lib'
16423
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16426
dynamic_linker='Win32 ld.exe'
16431
libname_spec='$name'
16432
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16433
library_names_spec='${libname}.dll.lib'
16437
sys_lib_search_path_spec=
16440
for lt_path in $LIB
16443
# Let DOS variable expansion print the short 8.3 style file name.
16444
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16445
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16448
# Convert to MSYS style.
16449
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16452
# Convert to unix form, then to dos form, then back to unix form
16453
# but this time dos style (no spaces!) so that the unix form looks
16454
# like /cygdrive/c/PROGRA~1:/cygdr...
16455
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16456
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16457
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16460
sys_lib_search_path_spec="$LIB"
16461
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16462
# It is most probably a Windows format PATH.
16463
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16465
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16467
# FIXME: find the short name or the path components, as spaces are
16468
# common. (e.g. "Program Files" -> "PROGRA~1")
16472
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16473
postinstall_cmds='base_file=`basename \${file}`~
16474
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16475
dldir=$destdir/`dirname \$dlpath`~
16476
test -d \$dldir || mkdir -p \$dldir~
16477
$install_prog $dir/$dlname \$dldir/$dlname'
16478
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16479
dlpath=$dir/\$dldll~
16481
shlibpath_overrides_runpath=yes
16482
dynamic_linker='Win32 link.exe'
16486
# Assume MSVC wrapper
16487
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16488
dynamic_linker='Win32 ld.exe'
16491
# FIXME: first we should search . and the directory the executable is in
16495
darwin* | rhapsody*)
16496
dynamic_linker="$host_os dyld"
16497
version_type=darwin
16500
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16501
soname_spec='${libname}${release}${major}$shared_ext'
16502
shlibpath_overrides_runpath=yes
16503
shlibpath_var=DYLD_LIBRARY_PATH
16504
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16506
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16507
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16511
version_type=linux # correct to gnu/linux during the next big refactor
16514
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16515
soname_spec='${libname}${release}${shared_ext}$major'
16516
shlibpath_var=LD_LIBRARY_PATH
16519
freebsd* | dragonfly*)
16520
# DragonFly does not have aout. When/if they implement a new
16521
# versioning mechanism, adjust this.
16522
if test -x /usr/bin/objformat; then
16523
objformat=`/usr/bin/objformat`
16526
freebsd[23].*) objformat=aout ;;
16527
*) objformat=elf ;;
16530
version_type=freebsd-$objformat
16531
case $version_type in
16533
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16538
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16542
shlibpath_var=LD_LIBRARY_PATH
16545
shlibpath_overrides_runpath=yes
16547
freebsd3.[01]* | freebsdelf3.[01]*)
16548
shlibpath_overrides_runpath=yes
16549
hardcode_into_libs=yes
16551
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16552
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16553
shlibpath_overrides_runpath=no
16554
hardcode_into_libs=yes
16556
*) # from 4.6 on, and DragonFly
16557
shlibpath_overrides_runpath=yes
16558
hardcode_into_libs=yes
16564
version_type=linux # correct to gnu/linux during the next big refactor
16567
dynamic_linker="$host_os runtime_loader"
16568
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16569
soname_spec='${libname}${release}${shared_ext}$major'
16570
shlibpath_var=LIBRARY_PATH
16571
shlibpath_overrides_runpath=yes
16572
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16573
hardcode_into_libs=yes
16576
hpux9* | hpux10* | hpux11*)
16577
# Give a soname corresponding to the major version so that dld.sl refuses to
16578
# link against other versions.
16585
hardcode_into_libs=yes
16586
dynamic_linker="$host_os dld.so"
16587
shlibpath_var=LD_LIBRARY_PATH
16588
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16589
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16590
soname_spec='${libname}${release}${shared_ext}$major'
16591
if test "X$HPUX_IA64_MODE" = X32; then
16592
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16594
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16596
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16600
hardcode_into_libs=yes
16601
dynamic_linker="$host_os dld.sl"
16602
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16603
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16604
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16605
soname_spec='${libname}${release}${shared_ext}$major'
16606
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16607
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16611
dynamic_linker="$host_os dld.sl"
16612
shlibpath_var=SHLIB_PATH
16613
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16615
soname_spec='${libname}${release}${shared_ext}$major'
16618
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16619
postinstall_cmds='chmod 555 $lib'
16620
# or fails outright, so override atomically:
16621
install_override_mode=555
16625
version_type=linux # correct to gnu/linux during the next big refactor
16628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16629
soname_spec='${libname}${release}${shared_ext}$major'
16630
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16631
shlibpath_var=LD_LIBRARY_PATH
16632
shlibpath_overrides_runpath=no
16633
hardcode_into_libs=yes
16636
irix5* | irix6* | nonstopux*)
16638
nonstopux*) version_type=nonstopux ;;
16640
if test "$lt_cv_prog_gnu_ld" = yes; then
16641
version_type=linux # correct to gnu/linux during the next big refactor
16648
soname_spec='${libname}${release}${shared_ext}$major'
16649
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16651
irix5* | nonstopux*)
16652
libsuff= shlibsuff=
16655
case $LD in # libtool.m4 will add one of these switches to LD
16656
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16657
libsuff= shlibsuff= libmagic=32-bit;;
16658
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16659
libsuff=32 shlibsuff=N32 libmagic=N32;;
16660
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16661
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16662
*) libsuff= shlibsuff= libmagic=never-match;;
16666
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16667
shlibpath_overrides_runpath=no
16668
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16669
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16670
hardcode_into_libs=yes
16673
# No shared lib support for Linux oldld, aout, or coff.
16674
linux*oldld* | linux*aout* | linux*coff*)
16678
# This must be glibc/ELF.
16679
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16680
version_type=linux # correct to gnu/linux during the next big refactor
16683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16684
soname_spec='${libname}${release}${shared_ext}$major'
16685
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16686
shlibpath_var=LD_LIBRARY_PATH
16687
shlibpath_overrides_runpath=no
16689
# Some binutils ld are patched to set DT_RUNPATH
16690
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16691
$as_echo_n "(cached) " >&6
16693
lt_cv_shlibpath_overrides_runpath=no
16694
save_LDFLAGS=$LDFLAGS
16695
save_libdir=$libdir
16696
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16697
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16698
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699
/* end confdefs.h. */
16709
if ac_fn_c_try_link "$LINENO"; then :
16710
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16711
lt_cv_shlibpath_overrides_runpath=yes
16714
rm -f core conftest.err conftest.$ac_objext \
16715
conftest$ac_exeext conftest.$ac_ext
16716
LDFLAGS=$save_LDFLAGS
16717
libdir=$save_libdir
16721
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16723
# This implies no fast_install, which is unacceptable.
16724
# Some rework will be needed to allow for fast_install
16725
# before this can be enabled.
16726
hardcode_into_libs=yes
16728
# Append ld.so.conf contents to the search path
16729
if test -f /etc/ld.so.conf; then
16730
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16731
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16734
# We used to test for /lib/ld.so.1 and disable shared libraries on
16735
# powerpc, because MkLinux only supported shared libraries with the
16736
# GNU dynamic linker. Since this was broken with cross compilers,
16737
# most powerpc-linux boxes support dynamic linking these days and
16738
# people can always --disable-shared, the test was removed, and we
16739
# assume the GNU/Linux dynamic linker is in use.
16740
dynamic_linker='GNU/Linux ld.so'
16747
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16748
soname_spec='${libname}${release}${shared_ext}$major'
16749
shlibpath_var=LD_LIBRARY_PATH
16750
shlibpath_overrides_runpath=no
16751
hardcode_into_libs=yes
16752
dynamic_linker='NetBSD ld.elf_so'
16759
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16760
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16761
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16762
dynamic_linker='NetBSD (a.out) ld.so'
16764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16765
soname_spec='${libname}${release}${shared_ext}$major'
16766
dynamic_linker='NetBSD ld.elf_so'
16768
shlibpath_var=LD_LIBRARY_PATH
16769
shlibpath_overrides_runpath=yes
16770
hardcode_into_libs=yes
16774
version_type=linux # correct to gnu/linux during the next big refactor
16775
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16776
shlibpath_var=LD_LIBRARY_PATH
16777
shlibpath_overrides_runpath=yes
16784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16785
soname_spec='${libname}${release}${shared_ext}$major'
16786
shlibpath_var=LD_LIBRARY_PATH
16787
shlibpath_overrides_runpath=no
16788
hardcode_into_libs=yes
16789
dynamic_linker='ldqnx.so'
16794
sys_lib_dlsearch_path_spec="/usr/lib"
16796
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16798
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16799
*) need_version=no ;;
16801
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16802
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16803
shlibpath_var=LD_LIBRARY_PATH
16804
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16806
openbsd2.[89] | openbsd2.[89].*)
16807
shlibpath_overrides_runpath=no
16810
shlibpath_overrides_runpath=yes
16814
shlibpath_overrides_runpath=yes
16819
libname_spec='$name'
16822
library_names_spec='$libname${shared_ext} $libname.a'
16823
dynamic_linker='OS/2 ld.exe'
16824
shlibpath_var=LIBPATH
16827
osf3* | osf4* | osf5*)
16831
soname_spec='${libname}${release}${shared_ext}$major'
16832
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833
shlibpath_var=LD_LIBRARY_PATH
16834
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16835
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16843
version_type=linux # correct to gnu/linux during the next big refactor
16846
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16847
soname_spec='${libname}${release}${shared_ext}$major'
16848
shlibpath_var=LD_LIBRARY_PATH
16849
shlibpath_overrides_runpath=yes
16850
hardcode_into_libs=yes
16851
# ldd complains unless libraries are executable
16852
postinstall_cmds='chmod +x $lib'
16857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16858
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16859
shlibpath_var=LD_LIBRARY_PATH
16860
shlibpath_overrides_runpath=yes
16861
if test "$with_gnu_ld" = yes; then
16868
version_type=linux # correct to gnu/linux during the next big refactor
16869
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16870
soname_spec='${libname}${release}${shared_ext}$major'
16871
shlibpath_var=LD_LIBRARY_PATH
16872
case $host_vendor in
16874
shlibpath_overrides_runpath=no
16876
runpath_var=LD_RUN_PATH
16884
shlibpath_overrides_runpath=no
16885
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16891
if test -d /usr/nec ;then
16892
version_type=linux # correct to gnu/linux during the next big refactor
16893
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16894
soname_spec='$libname${shared_ext}.$major'
16895
shlibpath_var=LD_LIBRARY_PATH
16899
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16900
version_type=freebsd-elf
16903
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16904
soname_spec='${libname}${release}${shared_ext}$major'
16905
shlibpath_var=LD_LIBRARY_PATH
16906
shlibpath_overrides_runpath=yes
16907
hardcode_into_libs=yes
16908
if test "$with_gnu_ld" = yes; then
16909
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16911
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16914
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16918
sys_lib_dlsearch_path_spec='/usr/lib'
16922
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16923
version_type=linux # correct to gnu/linux during the next big refactor
16926
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927
shlibpath_var=LD_LIBRARY_PATH
16928
shlibpath_overrides_runpath=no
16929
hardcode_into_libs=yes
16933
version_type=linux # correct to gnu/linux during the next big refactor
16934
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16935
soname_spec='${libname}${release}${shared_ext}$major'
16936
shlibpath_var=LD_LIBRARY_PATH
16943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16944
$as_echo "$dynamic_linker" >&6; }
16945
test "$dynamic_linker" = no && can_build_shared=no
16947
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16948
if test "$GCC" = yes; then
16949
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16952
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16953
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16955
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16956
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17050
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17051
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17053
if test -n "$hardcode_libdir_flag_spec" ||
17054
test -n "$runpath_var" ||
17055
test "X$hardcode_automatic" = "Xyes" ; then
17057
# We can hardcode non-existent directories.
17058
if test "$hardcode_direct" != no &&
17059
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17060
# have to relink, otherwise we might link with an installed library
17061
# when we should be linking with a yet-to-be-installed one
17062
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17063
test "$hardcode_minus_L" != no; then
17064
# Linking always hardcodes the temporary library directory.
17065
hardcode_action=relink
17067
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17068
hardcode_action=immediate
17071
# We cannot hardcode anything, or else we can only hardcode existing
17073
hardcode_action=unsupported
17075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17076
$as_echo "$hardcode_action" >&6; }
17078
if test "$hardcode_action" = relink ||
17079
test "$inherit_rpath" = yes; then
17080
# Fast installation is not supported
17081
enable_fast_install=no
17082
elif test "$shlibpath_overrides_runpath" = yes ||
17083
test "$enable_shared" = no; then
17084
# Fast installation is not necessary
17085
enable_fast_install=needless
17093
if test "x$enable_dlopen" != xyes; then
17094
enable_dlopen=unknown
17095
enable_dlopen_self=unknown
17096
enable_dlopen_self_static=unknown
17103
lt_cv_dlopen="load_add_on"
17105
lt_cv_dlopen_self=yes
17108
mingw* | pw32* | cegcc*)
17109
lt_cv_dlopen="LoadLibrary"
17114
lt_cv_dlopen="dlopen"
17119
# if libdl is installed we need to link against it
17120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17121
$as_echo_n "checking for dlopen in -ldl... " >&6; }
17122
if ${ac_cv_lib_dl_dlopen+:} false; then :
17123
$as_echo_n "(cached) " >&6
17125
ac_check_lib_save_LIBS=$LIBS
17127
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128
/* end confdefs.h. */
17130
/* Override any GCC internal prototype to avoid an error.
17131
Use char because int might match the return type of a GCC
17132
builtin and then its argument prototype would still apply. */
17145
if ac_fn_c_try_link "$LINENO"; then :
17146
ac_cv_lib_dl_dlopen=yes
17148
ac_cv_lib_dl_dlopen=no
17150
rm -f core conftest.err conftest.$ac_objext \
17151
conftest$ac_exeext conftest.$ac_ext
17152
LIBS=$ac_check_lib_save_LIBS
17154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17155
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17156
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17157
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17160
lt_cv_dlopen="dyld"
17162
lt_cv_dlopen_self=yes
17169
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17170
if test "x$ac_cv_func_shl_load" = xyes; then :
17171
lt_cv_dlopen="shl_load"
17173
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17174
$as_echo_n "checking for shl_load in -ldld... " >&6; }
17175
if ${ac_cv_lib_dld_shl_load+:} false; then :
17176
$as_echo_n "(cached) " >&6
17178
ac_check_lib_save_LIBS=$LIBS
17180
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17181
/* end confdefs.h. */
17183
/* Override any GCC internal prototype to avoid an error.
17184
Use char because int might match the return type of a GCC
17185
builtin and then its argument prototype would still apply. */
17193
return shl_load ();
17198
if ac_fn_c_try_link "$LINENO"; then :
17199
ac_cv_lib_dld_shl_load=yes
17201
ac_cv_lib_dld_shl_load=no
17203
rm -f core conftest.err conftest.$ac_objext \
17204
conftest$ac_exeext conftest.$ac_ext
17205
LIBS=$ac_check_lib_save_LIBS
17207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17208
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17209
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17210
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17212
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17213
if test "x$ac_cv_func_dlopen" = xyes; then :
17214
lt_cv_dlopen="dlopen"
17216
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17217
$as_echo_n "checking for dlopen in -ldl... " >&6; }
17218
if ${ac_cv_lib_dl_dlopen+:} false; then :
17219
$as_echo_n "(cached) " >&6
17221
ac_check_lib_save_LIBS=$LIBS
17223
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17224
/* end confdefs.h. */
17226
/* Override any GCC internal prototype to avoid an error.
17227
Use char because int might match the return type of a GCC
17228
builtin and then its argument prototype would still apply. */
17241
if ac_fn_c_try_link "$LINENO"; then :
17242
ac_cv_lib_dl_dlopen=yes
17244
ac_cv_lib_dl_dlopen=no
17246
rm -f core conftest.err conftest.$ac_objext \
17247
conftest$ac_exeext conftest.$ac_ext
17248
LIBS=$ac_check_lib_save_LIBS
17250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17251
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17252
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17253
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17256
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17257
if ${ac_cv_lib_svld_dlopen+:} false; then :
17258
$as_echo_n "(cached) " >&6
17260
ac_check_lib_save_LIBS=$LIBS
17261
LIBS="-lsvld $LIBS"
17262
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17263
/* end confdefs.h. */
17265
/* Override any GCC internal prototype to avoid an error.
17266
Use char because int might match the return type of a GCC
17267
builtin and then its argument prototype would still apply. */
17280
if ac_fn_c_try_link "$LINENO"; then :
17281
ac_cv_lib_svld_dlopen=yes
17283
ac_cv_lib_svld_dlopen=no
17285
rm -f core conftest.err conftest.$ac_objext \
17286
conftest$ac_exeext conftest.$ac_ext
17287
LIBS=$ac_check_lib_save_LIBS
17289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17290
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17291
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17292
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17295
$as_echo_n "checking for dld_link in -ldld... " >&6; }
17296
if ${ac_cv_lib_dld_dld_link+:} false; then :
17297
$as_echo_n "(cached) " >&6
17299
ac_check_lib_save_LIBS=$LIBS
17301
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302
/* end confdefs.h. */
17304
/* Override any GCC internal prototype to avoid an error.
17305
Use char because int might match the return type of a GCC
17306
builtin and then its argument prototype would still apply. */
17314
return dld_link ();
17319
if ac_fn_c_try_link "$LINENO"; then :
17320
ac_cv_lib_dld_dld_link=yes
17322
ac_cv_lib_dld_dld_link=no
17324
rm -f core conftest.err conftest.$ac_objext \
17325
conftest$ac_exeext conftest.$ac_ext
17326
LIBS=$ac_check_lib_save_LIBS
17328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17329
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17330
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17331
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17352
if test "x$lt_cv_dlopen" != xno; then
17358
case $lt_cv_dlopen in
17360
save_CPPFLAGS="$CPPFLAGS"
17361
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17363
save_LDFLAGS="$LDFLAGS"
17364
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17367
LIBS="$lt_cv_dlopen_libs $LIBS"
17369
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17370
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17371
if ${lt_cv_dlopen_self+:} false; then :
17372
$as_echo_n "(cached) " >&6
17374
if test "$cross_compiling" = yes; then :
17375
lt_cv_dlopen_self=cross
17377
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17378
lt_status=$lt_dlunknown
17379
cat > conftest.$ac_ext <<_LT_EOF
17380
#line $LINENO "configure"
17381
#include "confdefs.h"
17390
# define LT_DLGLOBAL RTLD_GLOBAL
17393
# define LT_DLGLOBAL DL_GLOBAL
17395
# define LT_DLGLOBAL 0
17399
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17400
find out it does not work in some platform. */
17401
#ifndef LT_DLLAZY_OR_NOW
17403
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17406
# define LT_DLLAZY_OR_NOW DL_LAZY
17409
# define LT_DLLAZY_OR_NOW RTLD_NOW
17412
# define LT_DLLAZY_OR_NOW DL_NOW
17414
# define LT_DLLAZY_OR_NOW 0
17421
/* When -fvisbility=hidden is used, assume the code has been annotated
17422
correspondingly for the symbols needed. */
17423
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17424
int fnord () __attribute__((visibility("default")));
17427
int fnord () { return 42; }
17430
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17431
int status = $lt_dlunknown;
17435
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17438
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17439
else puts (dlerror ());
17441
/* dlclose (self); */
17449
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17450
(eval $ac_link) 2>&5
17452
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17453
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17454
(./conftest; exit; ) >&5 2>/dev/null
17456
case x$lt_status in
17457
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17458
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17459
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17462
# compilation failed
17463
lt_cv_dlopen_self=no
17470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17471
$as_echo "$lt_cv_dlopen_self" >&6; }
17473
if test "x$lt_cv_dlopen_self" = xyes; then
17474
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17476
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17477
if ${lt_cv_dlopen_self_static+:} false; then :
17478
$as_echo_n "(cached) " >&6
17480
if test "$cross_compiling" = yes; then :
17481
lt_cv_dlopen_self_static=cross
17483
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17484
lt_status=$lt_dlunknown
17485
cat > conftest.$ac_ext <<_LT_EOF
17486
#line $LINENO "configure"
17487
#include "confdefs.h"
17496
# define LT_DLGLOBAL RTLD_GLOBAL
17499
# define LT_DLGLOBAL DL_GLOBAL
17501
# define LT_DLGLOBAL 0
17505
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17506
find out it does not work in some platform. */
17507
#ifndef LT_DLLAZY_OR_NOW
17509
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17512
# define LT_DLLAZY_OR_NOW DL_LAZY
17515
# define LT_DLLAZY_OR_NOW RTLD_NOW
17518
# define LT_DLLAZY_OR_NOW DL_NOW
17520
# define LT_DLLAZY_OR_NOW 0
17527
/* When -fvisbility=hidden is used, assume the code has been annotated
17528
correspondingly for the symbols needed. */
17529
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17530
int fnord () __attribute__((visibility("default")));
17533
int fnord () { return 42; }
17536
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17537
int status = $lt_dlunknown;
17541
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17544
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17545
else puts (dlerror ());
17547
/* dlclose (self); */
17555
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17556
(eval $ac_link) 2>&5
17558
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17559
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17560
(./conftest; exit; ) >&5 2>/dev/null
17562
case x$lt_status in
17563
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17564
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17565
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17568
# compilation failed
17569
lt_cv_dlopen_self_static=no
17576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17577
$as_echo "$lt_cv_dlopen_self_static" >&6; }
17580
CPPFLAGS="$save_CPPFLAGS"
17581
LDFLAGS="$save_LDFLAGS"
17586
case $lt_cv_dlopen_self in
17587
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17588
*) enable_dlopen_self=unknown ;;
17591
case $lt_cv_dlopen_self_static in
17592
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17593
*) enable_dlopen_self_static=unknown ;;
17615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17616
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17617
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17618
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17619
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17620
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17621
$as_echo "yes" >&6; }
17623
# FIXME - insert some real tests, host_os isn't really good enough
17626
if test -n "$STRIP" ; then
17627
striplib="$STRIP -x"
17628
old_striplib="$STRIP -S"
17629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17630
$as_echo "yes" >&6; }
17632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17633
$as_echo "no" >&6; }
17637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17638
$as_echo "no" >&6; }
17654
# Report which library types will actually be built
17655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17656
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17658
$as_echo "$can_build_shared" >&6; }
17660
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17661
$as_echo_n "checking whether to build shared libraries... " >&6; }
17662
test "$can_build_shared" = "no" && enable_shared=no
17664
# On AIX, shared libraries and static libraries use the same namespace, and
17665
# are all built from PIC.
17668
test "$enable_shared" = yes && enable_static=no
17669
if test -n "$RANLIB"; then
17670
archive_cmds="$archive_cmds~\$RANLIB \$lib"
17671
postinstall_cmds='$RANLIB $lib'
17676
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17677
test "$enable_shared" = yes && enable_static=no
17681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17682
$as_echo "$enable_shared" >&6; }
17684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17685
$as_echo_n "checking whether to build static libraries... " >&6; }
17686
# Make sure either enable_shared or enable_static is yes.
17687
test "$enable_shared" = yes || enable_static=yes
17688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17689
$as_echo "$enable_static" >&6; }
17696
ac_cpp='$CPP $CPPFLAGS'
17697
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17698
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17699
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17717
ac_config_commands="$ac_config_commands libtool"
17722
# Only expand once:
17728
# Define a configure option for an alternate module directory
17729
# Check whether --enable-dga was given.
17730
if test "${enable_dga+set}" = set; then :
17731
enableval=$enable_dga; DGA=$enableval
17737
# Check whether --with-xorg-module-dir was given.
17738
if test "${with_xorg_module_dir+set}" = set; then :
17739
withval=$with_xorg_module_dir; moduledir="$withval"
17741
moduledir="$libdir/xorg/modules"
17747
# Store the list of server defined optional extensions in REQUIRED_MODULES
17750
SAVE_CFLAGS="$CFLAGS"
17751
CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17752
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753
/* end confdefs.h. */
17755
#include "xorg-server.h"
17757
#error RANDR not defined
17768
if ac_fn_c_try_compile "$LINENO"; then :
17773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17774
CFLAGS="$SAVE_CFLAGS"
17775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17776
$as_echo_n "checking if RANDR is defined... " >&6; }
17777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17778
$as_echo "$_EXT_CHECK" >&6; }
17779
if test "$_EXT_CHECK" != no; then
17780
REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17785
SAVE_CFLAGS="$CFLAGS"
17786
CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17787
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788
/* end confdefs.h. */
17790
#include "xorg-server.h"
17791
#if !defined RENDER
17792
#error RENDER not defined
17803
if ac_fn_c_try_compile "$LINENO"; then :
17808
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17809
CFLAGS="$SAVE_CFLAGS"
17810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17811
$as_echo_n "checking if RENDER is defined... " >&6; }
17812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17813
$as_echo "$_EXT_CHECK" >&6; }
17814
if test "$_EXT_CHECK" != no; then
17815
REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17820
SAVE_CFLAGS="$CFLAGS"
17821
CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17822
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17823
/* end confdefs.h. */
17825
#include "xorg-server.h"
17827
#error XV not defined
17838
if ac_fn_c_try_compile "$LINENO"; then :
17843
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17844
CFLAGS="$SAVE_CFLAGS"
17845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17846
$as_echo_n "checking if XV is defined... " >&6; }
17847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17848
$as_echo "$_EXT_CHECK" >&6; }
17849
if test "$_EXT_CHECK" != no; then
17850
REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17854
if test "x$DGA" = xyes; then
17857
SAVE_CFLAGS="$CFLAGS"
17858
CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17859
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17860
/* end confdefs.h. */
17862
#include "xorg-server.h"
17863
#if !defined XFreeXDGA
17864
#error XFreeXDGA not defined
17875
if ac_fn_c_try_compile "$LINENO"; then :
17880
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17881
CFLAGS="$SAVE_CFLAGS"
17882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XFreeXDGA is defined" >&5
17883
$as_echo_n "checking if XFreeXDGA is defined... " >&6; }
17884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17885
$as_echo "$_EXT_CHECK" >&6; }
17886
if test "$_EXT_CHECK" != no; then
17887
REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto"
17891
$as_echo "#define USE_DGA 1" >>confdefs.h
17895
if test "x$DGA" = xyes; then
17904
# Obtain compiler/linker options for the driver dependencies
17907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17908
$as_echo_n "checking for XORG... " >&6; }
17910
if test -n "$XORG_CFLAGS"; then
17911
pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17912
elif test -n "$PKG_CONFIG"; then
17913
if test -n "$PKG_CONFIG" && \
17914
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17915
($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17917
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17918
test $ac_status = 0; }; then
17919
pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17920
test "x$?" != "x0" && pkg_failed=yes
17927
if test -n "$XORG_LIBS"; then
17928
pkg_cv_XORG_LIBS="$XORG_LIBS"
17929
elif test -n "$PKG_CONFIG"; then
17930
if test -n "$PKG_CONFIG" && \
17931
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17932
($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17934
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17935
test $ac_status = 0; }; then
17936
pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17937
test "x$?" != "x0" && pkg_failed=yes
17947
if test $pkg_failed = yes; then
17948
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17949
$as_echo "no" >&6; }
17951
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17952
_pkg_short_errors_supported=yes
17954
_pkg_short_errors_supported=no
17956
if test $_pkg_short_errors_supported = yes; then
17957
XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17959
XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17961
# Put the nasty error message in config.log where it belongs
17962
echo "$XORG_PKG_ERRORS" >&5
17964
as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
17968
Consider adjusting the PKG_CONFIG_PATH environment variable if you
17969
installed software in a non-standard prefix.
17971
Alternatively, you may set the environment variables XORG_CFLAGS
17972
and XORG_LIBS to avoid the need to call pkg-config.
17973
See the pkg-config man page for more details." "$LINENO" 5
17974
elif test $pkg_failed = untried; then
17975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17976
$as_echo "no" >&6; }
17977
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17978
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17979
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17980
is in your PATH or set the PKG_CONFIG environment variable to the full
17981
path to pkg-config.
17983
Alternatively, you may set the environment variables XORG_CFLAGS
17984
and XORG_LIBS to avoid the need to call pkg-config.
17985
See the pkg-config man page for more details.
17987
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17988
See \`config.log' for more details" "$LINENO" 5; }
17990
XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17991
XORG_LIBS=$pkg_cv_XORG_LIBS
17992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17993
$as_echo "yes" >&6; }
17997
# Checks for libraries.
18003
ac_config_files="$ac_config_files Makefile src/Makefile"
18005
cat >confcache <<\_ACEOF
18006
# This file is a shell script that caches the results of configure
18007
# tests run on this system so they can be shared between configure
18008
# scripts and configure runs, see configure's option --config-cache.
18009
# It is not useful on other systems. If it contains results you don't
18010
# want to keep, you may remove or edit it.
18012
# config.status only pays attention to the cache file if you give it
18013
# the --recheck option to rerun configure.
18015
# `ac_cv_env_foo' variables (set or unset) will be overridden when
18016
# loading this file, other *unset* `ac_cv_foo' will be assigned the
18017
# following values.
18021
# The following way of writing the cache mishandles newlines in values,
18022
# but we know of no workaround that is simple, portable, and efficient.
18023
# So, we kill variables containing newlines.
18024
# Ultrix sh set writes to stderr and can't be redirected directly,
18025
# and sets the high bit in the cache file unless we assign to the vars.
18027
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18028
eval ac_val=\$$ac_var
18032
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18033
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18036
_ | IFS | as_nl) ;; #(
18037
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18038
*) { eval $ac_var=; unset $ac_var;} ;;
18044
case $as_nl`(ac_space=' '; set) 2>&1` in #(
18045
*${as_nl}ac_space=\ *)
18046
# `set' does not quote correctly, so add quotes: double-quote
18047
# substitution turns \\\\ into \\, and sed turns \\ into \.
18050
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18053
# `set' quotes correctly as required by POSIX, so do not add quotes.
18054
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18063
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18065
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18067
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18068
if test -w "$cache_file"; then
18069
if test "x$cache_file" != "x/dev/null"; then
18070
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18071
$as_echo "$as_me: updating cache $cache_file" >&6;}
18072
if test ! -f "$cache_file" || test -h "$cache_file"; then
18073
cat confcache >"$cache_file"
18075
case $cache_file in #(
18077
mv -f confcache "$cache_file"$$ &&
18078
mv -f "$cache_file"$$ "$cache_file" ;; #(
18080
mv -f confcache "$cache_file" ;;
18085
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18086
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18091
test "x$prefix" = xNONE && prefix=$ac_default_prefix
18092
# Let make expand exec_prefix.
18093
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18095
DEFS=-DHAVE_CONFIG_H
18100
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18101
# 1. Remove the extension, and $U if already installed.
18102
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18103
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18104
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18105
# will be set to the directory where LIBOBJS objects are built.
18106
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18107
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18109
LIBOBJS=$ac_libobjs
18111
LTLIBOBJS=$ac_ltlibobjs
18114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18115
$as_echo_n "checking that generated files are newer than configure... " >&6; }
18116
if test -n "$am_sleep_pid"; then
18117
# Hide warnings about reused PIDs.
18118
wait $am_sleep_pid 2>/dev/null
18120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18121
$as_echo "done" >&6; }
18122
if test -n "$EXEEXT"; then
18124
am__EXEEXT_FALSE='#'
18126
am__EXEEXT_TRUE='#'
18130
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18131
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18132
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18134
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18135
as_fn_error $? "conditional \"AMDEP\" was never defined.
18136
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18138
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18139
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18140
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18142
if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
18143
as_fn_error $? "conditional \"DGA\" was never defined.
18144
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18147
: "${CONFIG_STATUS=./config.status}"
18149
ac_clean_files_save=$ac_clean_files
18150
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18151
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18152
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18154
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18156
# Generated by $as_me.
18157
# Run this file to recreate the current configuration.
18158
# Compiler output produced by configure, useful for debugging
18159
# configure, is in config.log if it exists.
18162
ac_cs_recheck=false
18165
SHELL=\${CONFIG_SHELL-$SHELL}
18168
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18169
## -------------------- ##
18170
## M4sh Initialization. ##
18171
## -------------------- ##
18173
# Be more Bourne compatible
18174
DUALCASE=1; export DUALCASE # for MKS sh
18175
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18178
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18179
# is contrary to our usage. Disable this feature.
18180
alias -g '${1+"$@"}'='"$@"'
18181
setopt NO_GLOB_SUBST
18183
case `(set -o) 2>/dev/null` in #(
18195
# Printing a long string crashes Solaris 7 /usr/bin/printf.
18196
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18197
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18198
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18199
# Prefer a ksh shell builtin over an external printf program on Solaris,
18200
# but without wasting forks for bash or zsh.
18201
if test -z "$BASH_VERSION$ZSH_VERSION" \
18202
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18203
as_echo='print -r --'
18204
as_echo_n='print -rn --'
18205
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18206
as_echo='printf %s\n'
18207
as_echo_n='printf %s'
18209
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18210
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18211
as_echo_n='/usr/ucb/echo -n'
18213
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18214
as_echo_n_body='eval
18218
expr "X$arg" : "X\\(.*\\)$as_nl";
18219
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18221
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18223
export as_echo_n_body
18224
as_echo_n='sh -c $as_echo_n_body as_echo'
18226
export as_echo_body
18227
as_echo='sh -c $as_echo_body as_echo'
18230
# The user is always right.
18231
if test "${PATH_SEPARATOR+set}" != set; then
18233
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18234
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18241
# We need space, tab and new line, in precisely that order. Quoting is
18242
# there to prevent editors from complaining about space-tab.
18243
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18244
# splitting by setting IFS to empty value.)
18247
# Find who we are. Look in the path if we contain no directory separator.
18250
*[\\/]* ) as_myself=$0 ;;
18251
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18252
for as_dir in $PATH
18255
test -z "$as_dir" && as_dir=.
18256
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18262
# We did not find ourselves, most probably we were run as `sh COMMAND'
18263
# in which case we are not to be found in the path.
18264
if test "x$as_myself" = x; then
18267
if test ! -f "$as_myself"; then
18268
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18272
# Unset variables that we do not need and which cause bugs (e.g. in
18273
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18274
# suppresses any "Segmentation fault" message there. '((' could
18275
# trigger a bug in pdksh 5.2.14.
18276
for as_var in BASH_ENV ENV MAIL MAILPATH
18277
do eval test x\${$as_var+set} = xset \
18278
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18291
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18294
# as_fn_error STATUS ERROR [LINENO LOG_FD]
18295
# ----------------------------------------
18296
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18297
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18298
# script with STATUS, using 1 if that was 0.
18301
as_status=$1; test $as_status -eq 0 && as_status=1
18303
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18304
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18306
$as_echo "$as_me: error: $2" >&2
18307
as_fn_exit $as_status
18311
# as_fn_set_status STATUS
18312
# -----------------------
18313
# Set $? to STATUS, without forking.
18314
as_fn_set_status ()
18317
} # as_fn_set_status
18319
# as_fn_exit STATUS
18320
# -----------------
18321
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18325
as_fn_set_status $1
18331
# Portably unset VAR.
18334
{ eval $1=; unset $1;}
18336
as_unset=as_fn_unset
18337
# as_fn_append VAR VALUE
18338
# ----------------------
18339
# Append the text in VALUE to the end of the definition contained in VAR. Take
18340
# advantage of any shell optimizations that allow amortized linear growth over
18341
# repeated appends, instead of the typical quadratic growth present in naive
18343
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18344
eval 'as_fn_append ()
18355
# as_fn_arith ARG...
18356
# ------------------
18357
# Perform arithmetic evaluation on the ARGs, and store the result in the
18358
# global $as_val. Take advantage of shells that can avoid forks. The arguments
18359
# must be portable across $(()) and expr.
18360
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18361
eval 'as_fn_arith ()
18368
as_val=`expr "$@" || test $? -eq 1`
18373
if expr a : '\(a\)' >/dev/null 2>&1 &&
18374
test "X`expr 00001 : '.*\(...\)'`" = X001; then
18380
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18381
as_basename=basename
18386
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18392
as_me=`$as_basename -- "$0" ||
18393
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18394
X"$0" : 'X\(//\)$' \| \
18395
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18397
sed '/^.*\/\([^/][^/]*\)\/*$/{
18411
# Avoid depending upon Character Ranges.
18412
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18413
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18414
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18415
as_cr_digits='0123456789'
18416
as_cr_alnum=$as_cr_Letters$as_cr_digits
18418
ECHO_C= ECHO_N= ECHO_T=
18419
case `echo -n x` in #(((((
18421
case `echo 'xy\c'` in
18422
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
18424
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18431
rm -f conf$$ conf$$.exe conf$$.file
18432
if test -d conf$$.dir; then
18433
rm -f conf$$.dir/conf$$.file
18436
mkdir conf$$.dir 2>/dev/null
18438
if (echo >conf$$.file) 2>/dev/null; then
18439
if ln -s conf$$.file conf$$ 2>/dev/null; then
18441
# ... but there are two gotchas:
18442
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18443
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18444
# In both cases, we have to default to `cp -pR'.
18445
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18447
elif ln conf$$.file conf$$ 2>/dev/null; then
18455
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18456
rmdir conf$$.dir 2>/dev/null
18461
# Create "$as_dir" as a directory, including parents if necessary.
18466
-*) as_dir=./$as_dir;;
18468
test -d "$as_dir" || eval $as_mkdir_p || {
18472
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18473
*) as_qdir=$as_dir;;
18475
as_dirs="'$as_qdir' $as_dirs"
18476
as_dir=`$as_dirname -- "$as_dir" ||
18477
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18478
X"$as_dir" : 'X\(//\)[^/]' \| \
18479
X"$as_dir" : 'X\(//\)$' \| \
18480
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18481
$as_echo X"$as_dir" |
18482
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18486
/^X\(\/\/\)[^/].*/{
18499
test -d "$as_dir" && break
18501
test -z "$as_dirs" || eval "mkdir $as_dirs"
18502
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18506
if mkdir -p . 2>/dev/null; then
18507
as_mkdir_p='mkdir -p "$as_dir"'
18509
test -d ./-p && rmdir ./-p
18514
# as_fn_executable_p FILE
18515
# -----------------------
18516
# Test if FILE is an executable regular file.
18517
as_fn_executable_p ()
18519
test -f "$1" && test -x "$1"
18520
} # as_fn_executable_p
18521
as_test_x='test -x'
18522
as_executable_p=as_fn_executable_p
18524
# Sed expression to map a string onto a valid CPP name.
18525
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18527
# Sed expression to map a string onto a valid variable name.
18528
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18532
## ----------------------------------- ##
18533
## Main body of $CONFIG_STATUS script. ##
18534
## ----------------------------------- ##
18536
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18538
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18539
# Save the log message, to keep $0 and so on meaningful, and to
18540
# report actual input values of CONFIG_FILES etc. instead of their
18541
# values after options handling.
18543
This file was extended by xf86-video-dummy $as_me 0.3.7, which was
18544
generated by GNU Autoconf 2.69. Invocation command line was
18546
CONFIG_FILES = $CONFIG_FILES
18547
CONFIG_HEADERS = $CONFIG_HEADERS
18548
CONFIG_LINKS = $CONFIG_LINKS
18549
CONFIG_COMMANDS = $CONFIG_COMMANDS
18552
on `(hostname || uname -n) 2>/dev/null | sed 1q`
18557
case $ac_config_files in *"
18558
"*) set x $ac_config_files; shift; ac_config_files=$*;;
18561
case $ac_config_headers in *"
18562
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18566
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18567
# Files that config.status was made for.
18568
config_files="$ac_config_files"
18569
config_headers="$ac_config_headers"
18570
config_commands="$ac_config_commands"
18574
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18576
\`$as_me' instantiates files and other configuration actions
18577
from templates according to the current configuration. Unless the files
18578
and actions are specified as TAGs, all are instantiated by default.
18580
Usage: $0 [OPTION]... [TAG]...
18582
-h, --help print this help, then exit
18583
-V, --version print version number and configuration settings, then exit
18584
--config print configuration, then exit
18585
-q, --quiet, --silent
18586
do not print progress messages
18587
-d, --debug don't remove temporary files
18588
--recheck update $as_me by reconfiguring in the same conditions
18589
--file=FILE[:TEMPLATE]
18590
instantiate the configuration file FILE
18591
--header=FILE[:TEMPLATE]
18592
instantiate the configuration header FILE
18594
Configuration files:
18597
Configuration headers:
18600
Configuration commands:
18603
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18606
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18607
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18609
xf86-video-dummy config.status 0.3.7
18610
configured by $0, generated by GNU Autoconf 2.69,
18611
with options \\"\$ac_cs_config\\"
18613
Copyright (C) 2012 Free Software Foundation, Inc.
18614
This config.status script is free software; the Free Software Foundation
18615
gives unlimited permission to copy, distribute and modify it."
18622
test -n "\$AWK" || AWK=awk
18625
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18626
# The default lists apply if the user does not specify any file.
18632
ac_option=`expr "X$1" : 'X\([^=]*\)='`
18633
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18637
ac_option=`expr "X$1" : 'X\([^=]*\)='`
18649
# Handling of the options.
18650
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18652
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18653
$as_echo "$ac_cs_version"; exit ;;
18654
--config | --confi | --conf | --con | --co | --c )
18655
$as_echo "$ac_cs_config"; exit ;;
18656
--debug | --debu | --deb | --de | --d | -d )
18658
--file | --fil | --fi | --f )
18661
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18662
'') as_fn_error $? "missing file argument" ;;
18664
as_fn_append CONFIG_FILES " '$ac_optarg'"
18665
ac_need_defaults=false;;
18666
--header | --heade | --head | --hea )
18669
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18671
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18672
ac_need_defaults=false;;
18674
# Conflict between --help and --header
18675
as_fn_error $? "ambiguous option: \`$1'
18676
Try \`$0 --help' for more information.";;
18677
--help | --hel | -h )
18678
$as_echo "$ac_cs_usage"; exit ;;
18679
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
18680
| -silent | --silent | --silen | --sile | --sil | --si | --s)
18683
# This is an error.
18684
-*) as_fn_error $? "unrecognized option: \`$1'
18685
Try \`$0 --help' for more information." ;;
18687
*) as_fn_append ac_config_targets " $1"
18688
ac_need_defaults=false ;;
18694
ac_configure_extra_args=
18696
if $ac_cs_silent; then
18698
ac_configure_extra_args="$ac_configure_extra_args --silent"
18702
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18703
if \$ac_cs_recheck; then
18704
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18706
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18707
CONFIG_SHELL='$SHELL'
18708
export CONFIG_SHELL
18713
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18717
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18718
## Running $as_me. ##
18724
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18728
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18731
# The HP-UX ksh and POSIX shell print the target directory to stdout
18732
# if CDPATH is set.
18733
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18735
sed_quote_subst='$sed_quote_subst'
18736
double_quote_subst='$double_quote_subst'
18737
delay_variable_subst='$delay_variable_subst'
18738
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18739
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18740
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18741
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18742
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18743
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18744
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18745
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18746
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18747
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18748
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18749
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18750
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18751
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18752
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18753
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18754
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18755
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18756
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18757
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18758
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18759
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18760
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18761
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18762
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18763
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18764
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18765
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18766
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18767
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18768
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18769
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18770
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18771
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18772
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18773
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18774
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18775
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18776
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18777
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18778
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18779
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18780
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18781
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18782
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18783
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18784
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18785
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18786
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18787
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18788
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18789
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18790
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18791
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18792
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18793
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18794
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18795
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18796
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18797
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18798
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18799
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18800
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18801
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18802
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18803
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18804
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18805
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18806
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18807
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18808
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18809
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18810
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18811
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18812
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18813
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18814
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18815
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18816
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18817
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18818
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18819
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18820
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18821
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18822
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18823
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18824
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18825
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18826
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18827
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18828
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18829
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18830
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18831
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18832
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18833
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18834
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18835
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18836
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18837
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18838
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18839
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18840
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18841
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18842
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18843
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18844
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18845
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18846
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18847
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18848
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18849
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18850
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18851
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18852
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18853
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18854
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18855
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18856
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18857
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18858
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18859
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18860
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18861
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18862
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18863
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18864
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18865
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18866
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18867
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18870
LTCFLAGS='$LTCFLAGS'
18871
compiler='$compiler_DEFAULT'
18873
# A function that is used when there is no print builtin or printf.
18874
func_fallback_echo ()
18876
eval 'cat <<_LTECHO_EOF
18881
# Quote evaled strings.
18896
deplibs_check_method \
18901
sharedlib_from_linklib_cmd \
18904
archiver_list_spec \
18910
lt_cv_sys_global_symbol_pipe \
18911
lt_cv_sys_global_symbol_to_cdecl \
18912
lt_cv_sys_global_symbol_to_c_name_address \
18913
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18914
nm_file_list_spec \
18915
lt_prog_compiler_no_builtin_flag \
18916
lt_prog_compiler_pic \
18917
lt_prog_compiler_wl \
18918
lt_prog_compiler_static \
18919
lt_cv_prog_compiler_c_o \
18928
export_dynamic_flag_spec \
18929
whole_archive_flag_spec \
18930
compiler_needs_object \
18932
allow_undefined_flag \
18933
no_undefined_flag \
18934
hardcode_libdir_flag_spec \
18935
hardcode_libdir_separator \
18939
variables_saved_for_relink \
18941
library_names_spec \
18943
install_override_mode \
18947
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18948
*[\\\\\\\`\\"\\\$]*)
18949
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18952
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18957
# Double-quote double-evaled strings.
18958
for var in reload_cmds \
18959
old_postinstall_cmds \
18960
old_postuninstall_cmds \
18962
extract_expsyms_cmds \
18963
old_archive_from_new_cmds \
18964
old_archive_from_expsyms_cmds \
18966
archive_expsym_cmds \
18968
module_expsym_cmds \
18969
export_symbols_cmds \
18973
postuninstall_cmds \
18975
sys_lib_search_path_spec \
18976
sys_lib_dlsearch_path_spec; do
18977
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18978
*[\\\\\\\`\\"\\\$]*)
18979
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18982
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18987
ac_aux_dir='$ac_aux_dir'
18988
xsi_shell='$xsi_shell'
18989
lt_shell_append='$lt_shell_append'
18991
# See if we are running on zsh, and set the options which allow our
18992
# commands through without removal of \ escapes INIT.
18993
if test -n "\${ZSH_VERSION+set}" ; then
18994
setopt NO_GLOB_SUBST
19000
TIMESTAMP='$TIMESTAMP'
19009
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19011
# Handling of arguments.
19012
for ac_config_target in $ac_config_targets
19014
case $ac_config_target in
19015
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19016
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19017
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19018
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19019
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19021
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19026
# If the user did not use the arguments to specify the items to instantiate,
19027
# then the envvar interface is used. Set only those that are not.
19028
# We use the long form for the default assignment because of an extremely
19029
# bizarre bug on SunOS 4.1.3.
19030
if $ac_need_defaults; then
19031
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19032
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19033
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19036
# Have a temporary directory for convenience. Make it in the build tree
19037
# simply because there is no reason against having it here, and in addition,
19038
# creating and moving files from /tmp can sometimes cause problems.
19039
# Hook for its removal unless debugging.
19040
# Note that there is a small window in which the directory will not be cleaned:
19041
# after its creation but before its name has been assigned to `$tmp'.
19045
trap 'exit_status=$?
19046
: "${ac_tmp:=$tmp}"
19047
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19049
trap 'as_fn_exit 1' 1 2 13 15
19051
# Create a (secure) tmp directory for tmp files.
19054
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19058
tmp=./conf$$-$RANDOM
19059
(umask 077 && mkdir "$tmp")
19060
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19063
# Set up the scripts for CONFIG_FILES section.
19064
# No need to generate them if there are no CONFIG_FILES.
19065
# This happens for instance with `./config.status config.h'.
19066
if test -n "$CONFIG_FILES"; then
19069
ac_cr=`echo X | tr X '\015'`
19070
# On cygwin, bash can eat \r inside `` if the user requested igncr.
19071
# But we know of no other shell where ac_cr would be empty at this
19072
# point, so we can use a bashism as a fallback.
19073
if test "x$ac_cr" = x; then
19074
eval ac_cr=\$\'\\r\'
19076
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19077
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19080
ac_cs_awk_cr=$ac_cr
19083
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19088
echo "cat >conf$$subs.awk <<_ACEOF" &&
19089
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19091
} >conf$$subs.sh ||
19092
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19093
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19095
for ac_last_try in false false false false false :; do
19096
. ./conf$$subs.sh ||
19097
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19099
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19100
if test $ac_delim_n = $ac_delim_num; then
19102
elif $ac_last_try; then
19103
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19105
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19108
rm -f conf$$subs.sh
19110
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19111
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19115
s/^/S["/; s/!.*/"]=/
19125
s/\(.\{148\}\)..*/\1/
19127
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19132
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19139
s/\(.\{148\}\)..*/\1/
19141
s/["\\]/\\&/g; s/^/"/; s/$/"/
19145
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19150
' <conf$$subs.awk | sed '
19155
' >>$CONFIG_STATUS || ac_write_fail=1
19156
rm -f conf$$subs.awk
19157
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19159
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19160
for (key in S) S_is_set[key] = 1
19166
nfields = split(line, field, "@")
19168
len = length(field[1])
19169
for (i = 2; i < nfields; i++) {
19171
keylen = length(key)
19172
if (S_is_set[key]) {
19174
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19175
len += length(value) + length(field[++i])
19186
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19187
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19188
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19191
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19192
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19195
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19196
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19197
# trailing colons and then remove the whole line if VPATH becomes empty
19198
# (actually we leave an empty line to preserve line numbers).
19199
if test "x$srcdir" = x.; then
19200
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19218
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19219
fi # test -n "$CONFIG_FILES"
19221
# Set up the scripts for CONFIG_HEADERS section.
19222
# No need to generate them if there are no CONFIG_HEADERS.
19223
# This happens for instance with `./config.status Makefile'.
19224
if test -n "$CONFIG_HEADERS"; then
19225
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19229
# Transform confdefs.h into an awk script `defines.awk', embedded as
19230
# here-document in config.status, that substitutes the proper values into
19231
# config.h.in to produce config.h.
19233
# Create a delimiter string that does not exist in confdefs.h, to ease
19234
# handling of long lines.
19236
for ac_last_try in false false :; do
19237
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19238
if test -z "$ac_tt"; then
19240
elif $ac_last_try; then
19241
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19243
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19247
# For the awk script, D is an array of macro values keyed by name,
19248
# likewise P contains macro parameters if any. Preserve backslash
19249
# newline sequences.
19251
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19253
s/.\{148\}/&'"$ac_delim"'/g
19256
s/^[ ]*#[ ]*define[ ][ ]*/ /
19263
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19265
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19269
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19270
D["\1"]=" \3\\\\\\n"\\/p
19272
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19277
s/.\{148\}/&'"$ac_delim"'/g
19282
s/["\\]/\\&/g; s/^/"/; s/$/"/p
19285
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19287
' <confdefs.h | sed '
19288
s/'"$ac_delim"'/"\\\
19289
"/g' >>$CONFIG_STATUS || ac_write_fail=1
19291
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19292
for (key in D) D_is_set[key] = 1
19295
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19297
split(line, arg, " ")
19298
if (arg[1] == "#") {
19302
defundef = substr(arg[1], 2)
19305
split(mac1, mac2, "(") #)
19307
prefix = substr(line, 1, index(line, defundef) - 1)
19308
if (D_is_set[macro]) {
19309
# Preserve the white space surrounding the "#".
19310
print prefix "define", macro P[macro] D[macro]
19313
# Replace #undef with comments. This is necessary, for example,
19314
# in the case of _POSIX_SOURCE, which is predefined and required
19315
# on some systems where configure will not decide to define it.
19316
if (defundef == "undef") {
19317
print "/*", prefix defundef, macro, "*/"
19325
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19326
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19327
fi # test -n "$CONFIG_HEADERS"
19330
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19335
:[FHLC]) ac_mode=$ac_tag; continue;;
19337
case $ac_mode$ac_tag in
19339
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19340
:[FH]-) ac_tag=-:-;;
19341
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19358
-) ac_f="$ac_tmp/stdin";;
19359
*) # Look for the file first in the build tree, then in the source tree
19360
# (if the path is not absolute). The absolute path cannot be DOS-style,
19361
# because $ac_f cannot contain `:'.
19365
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19367
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19369
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19370
as_fn_append ac_file_inputs " '$ac_f'"
19373
# Let's still pretend it is `configure' which instantiates (i.e., don't
19374
# use $as_me), people would be surprised to read:
19375
# /* config.h. Generated by config.status. */
19376
configure_input='Generated from '`
19377
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19379
if test x"$ac_file" != x-; then
19380
configure_input="$ac_file. $configure_input"
19381
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19382
$as_echo "$as_me: creating $ac_file" >&6;}
19384
# Neutralize special characters interpreted by sed in replacement strings.
19385
case $configure_input in #(
19386
*\&* | *\|* | *\\* )
19387
ac_sed_conf_input=`$as_echo "$configure_input" |
19388
sed 's/[\\\\&|]/\\\\&/g'`;; #(
19389
*) ac_sed_conf_input=$configure_input;;
19393
*:-:* | *:-) cat >"$ac_tmp/stdin" \
19394
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19399
ac_dir=`$as_dirname -- "$ac_file" ||
19400
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19401
X"$ac_file" : 'X\(//\)[^/]' \| \
19402
X"$ac_file" : 'X\(//\)$' \| \
19403
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19404
$as_echo X"$ac_file" |
19405
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19409
/^X\(\/\/\)[^/].*/{
19422
as_dir="$ac_dir"; as_fn_mkdir_p
19426
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19428
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19429
# A ".." for each directory in $ac_dir_suffix.
19430
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19431
case $ac_top_builddir_sub in
19432
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19433
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19436
ac_abs_top_builddir=$ac_pwd
19437
ac_abs_builddir=$ac_pwd$ac_dir_suffix
19438
# for backward compatibility:
19439
ac_top_builddir=$ac_top_build_prefix
19442
.) # We are building in place.
19444
ac_top_srcdir=$ac_top_builddir_sub
19445
ac_abs_top_srcdir=$ac_pwd ;;
19446
[\\/]* | ?:[\\/]* ) # Absolute name.
19447
ac_srcdir=$srcdir$ac_dir_suffix;
19448
ac_top_srcdir=$srcdir
19449
ac_abs_top_srcdir=$srcdir ;;
19450
*) # Relative name.
19451
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19452
ac_top_srcdir=$ac_top_build_prefix$srcdir
19453
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19455
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19465
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19466
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19468
ac_MKDIR_P=$MKDIR_P
19470
[\\/$]* | ?:[\\/]* ) ;;
19471
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19475
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19476
# If the template does not know about datarootdir, expand it.
19477
# FIXME: This hack should be removed a few years after 2.60.
19478
ac_datarootdir_hack=; ac_datarootdir_seen=
19489
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19490
*datarootdir*) ac_datarootdir_seen=yes;;
19491
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19492
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19493
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19495
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19496
ac_datarootdir_hack='
19497
s&@datadir@&$datadir&g
19498
s&@docdir@&$docdir&g
19499
s&@infodir@&$infodir&g
19500
s&@localedir@&$localedir&g
19501
s&@mandir@&$mandir&g
19502
s&\\\${datarootdir}&$datarootdir&g' ;;
19506
# Neutralize VPATH when `$srcdir' = `.'.
19507
# Shell code in configure.ac might set extrasub.
19508
# FIXME: do we really want to maintain this feature?
19509
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19510
ac_sed_extra="$ac_vpsub
19513
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19515
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19516
s|@configure_input@|$ac_sed_conf_input|;t t
19517
s&@top_builddir@&$ac_top_builddir_sub&;t t
19518
s&@top_build_prefix@&$ac_top_build_prefix&;t t
19519
s&@srcdir@&$ac_srcdir&;t t
19520
s&@abs_srcdir@&$ac_abs_srcdir&;t t
19521
s&@top_srcdir@&$ac_top_srcdir&;t t
19522
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19523
s&@builddir@&$ac_builddir&;t t
19524
s&@abs_builddir@&$ac_abs_builddir&;t t
19525
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19526
s&@INSTALL@&$ac_INSTALL&;t t
19527
s&@MKDIR_P@&$ac_MKDIR_P&;t t
19528
$ac_datarootdir_hack
19530
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19531
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19533
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19534
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19535
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19536
"$ac_tmp/out"`; test -z "$ac_out"; } &&
19537
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19538
which seems to be undefined. Please make sure it is defined" >&5
19539
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19540
which seems to be undefined. Please make sure it is defined" >&2;}
19542
rm -f "$ac_tmp/stdin"
19544
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19545
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19547
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19553
if test x"$ac_file" != x-; then
19555
$as_echo "/* $configure_input */" \
19556
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19557
} >"$ac_tmp/config.h" \
19558
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19559
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19560
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19561
$as_echo "$as_me: $ac_file is unchanged" >&6;}
19564
mv "$ac_tmp/config.h" "$ac_file" \
19565
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19568
$as_echo "/* $configure_input */" \
19569
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19570
|| as_fn_error $? "could not create -" "$LINENO" 5
19572
# Compute "$ac_file"'s index in $config_headers.
19575
for _am_header in $config_headers :; do
19576
case $_am_header in
19577
$_am_arg | $_am_arg:* )
19580
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
19583
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19584
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19585
X"$_am_arg" : 'X\(//\)[^/]' \| \
19586
X"$_am_arg" : 'X\(//\)$' \| \
19587
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19588
$as_echo X"$_am_arg" |
19589
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19593
/^X\(\/\/\)[^/].*/{
19605
s/.*/./; q'`/stamp-h$_am_stamp_count
19608
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19609
$as_echo "$as_me: executing $ac_file commands" >&6;}
19614
case $ac_file$ac_mode in
19615
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19616
# Older Autoconf quotes --file arguments for eval, but not when files
19617
# are listed without --file. Let's play safe and only enable the eval
19618
# if we detect the quoting.
19619
case $CONFIG_FILES in
19620
*\'*) eval set x "$CONFIG_FILES" ;;
19621
*) set x $CONFIG_FILES ;;
19626
# Strip MF so we end up with the name of the file.
19627
mf=`echo "$mf" | sed -e 's/:.*$//'`
19628
# Check whether this is an Automake generated Makefile or not.
19629
# We used to match only the files named 'Makefile.in', but
19630
# some people rename them; so instead we look at the file content.
19631
# Grep'ing the first line is not enough: some people post-process
19632
# each Makefile.in and add a new line on top of each file to say so.
19633
# Grep'ing the whole file is not good either: AIX grep has a line
19634
# limit of 2048, but all sed's we know have understand at least 4000.
19635
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19636
dirpart=`$as_dirname -- "$mf" ||
19637
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19638
X"$mf" : 'X\(//\)[^/]' \| \
19639
X"$mf" : 'X\(//\)$' \| \
19640
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19642
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19646
/^X\(\/\/\)[^/].*/{
19662
# Extract the definition of DEPDIR, am__include, and am__quote
19663
# from the Makefile without running 'make'.
19664
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19665
test -z "$DEPDIR" && continue
19666
am__include=`sed -n 's/^am__include = //p' < "$mf"`
19667
test -z "$am__include" && continue
19668
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19669
# Find all dependency output files, they are included files with
19670
# $(DEPDIR) in their names. We invoke sed twice because it is the
19671
# simplest approach to changing $(DEPDIR) to its actual value in the
19673
for file in `sed -n "
19674
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19675
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19676
# Make sure the directory exists.
19677
test -f "$dirpart/$file" && continue
19678
fdir=`$as_dirname -- "$file" ||
19679
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19680
X"$file" : 'X\(//\)[^/]' \| \
19681
X"$file" : 'X\(//\)$' \| \
19682
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19683
$as_echo X"$file" |
19684
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19688
/^X\(\/\/\)[^/].*/{
19701
as_dir=$dirpart/$fdir; as_fn_mkdir_p
19702
# echo "creating $dirpart/$file"
19703
echo '# dummy' > "$dirpart/$file"
19710
# See if we are running on zsh, and set the options which allow our
19711
# commands through without removal of \ escapes.
19712
if test -n "${ZSH_VERSION+set}" ; then
19713
setopt NO_GLOB_SUBST
19716
cfgfile="${ofile}T"
19717
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19720
cat <<_LT_EOF >> "$cfgfile"
19723
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19724
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19725
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19726
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19728
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19729
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19731
# Written by Gordon Matzigkeit, 1996
19733
# This file is part of GNU Libtool.
19735
# GNU Libtool is free software; you can redistribute it and/or
19736
# modify it under the terms of the GNU General Public License as
19737
# published by the Free Software Foundation; either version 2 of
19738
# the License, or (at your option) any later version.
19740
# As a special exception to the GNU General Public License,
19741
# if you distribute this file as part of a program or library that
19742
# is built using GNU Libtool, you may include this file under the
19743
# same distribution terms that you use for the rest of that program.
19745
# GNU Libtool is distributed in the hope that it will be useful,
19746
# but WITHOUT ANY WARRANTY; without even the implied warranty of
19747
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19748
# GNU General Public License for more details.
19750
# You should have received a copy of the GNU General Public License
19751
# along with GNU Libtool; see the file COPYING. If not, a copy
19752
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19753
# obtained by writing to the Free Software Foundation, Inc.,
19754
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19757
# The names of the tagged configurations supported by this script.
19760
# ### BEGIN LIBTOOL CONFIG
19762
# Whether or not to build static libraries.
19763
build_old_libs=$enable_static
19765
# Which release of libtool.m4 was used?
19766
macro_version=$macro_version
19767
macro_revision=$macro_revision
19769
# Whether or not to build shared libraries.
19770
build_libtool_libs=$enable_shared
19772
# What type of objects to build.
19775
# Whether or not to optimize for fast installation.
19776
fast_install=$enable_fast_install
19778
# Shell to use when invoking shell scripts.
19781
# An echo program that protects backslashes.
19784
# The PATH separator for the build system.
19785
PATH_SEPARATOR=$lt_PATH_SEPARATOR
19788
host_alias=$host_alias
19792
# The build system.
19793
build_alias=$build_alias
19797
# A sed program that does not truncate output.
19800
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19801
Xsed="\$SED -e 1s/^X//"
19803
# A grep program that handles long lines.
19809
# A literal string matcher.
19812
# A BSD- or MS-compatible name lister.
19815
# Whether we need soft or hard links.
19818
# What is the maximum length of a command?
19819
max_cmd_len=$max_cmd_len
19821
# Object file suffix (normally "o").
19824
# Executable file suffix (normally "").
19827
# whether the shell understands "unset".
19830
# turn spaces into newlines.
19833
# turn newlines into spaces.
19836
# convert \$build file names to \$host format.
19837
to_host_file_cmd=$lt_cv_to_host_file_cmd
19839
# convert \$build files to toolchain format.
19840
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19842
# An object symbol dumper.
19843
OBJDUMP=$lt_OBJDUMP
19845
# Method to check whether dependent libraries are shared objects.
19846
deplibs_check_method=$lt_deplibs_check_method
19848
# Command to use when deplibs_check_method = "file_magic".
19849
file_magic_cmd=$lt_file_magic_cmd
19851
# How to find potential files when deplibs_check_method = "file_magic".
19852
file_magic_glob=$lt_file_magic_glob
19854
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19855
want_nocaseglob=$lt_want_nocaseglob
19857
# DLL creation program.
19858
DLLTOOL=$lt_DLLTOOL
19860
# Command to associate shared and link libraries.
19861
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19866
# Flags to create an archive.
19867
AR_FLAGS=$lt_AR_FLAGS
19869
# How to feed a file listing to the archiver.
19870
archiver_list_spec=$lt_archiver_list_spec
19872
# A symbol stripping program.
19875
# Commands used to install an old-style archive.
19877
old_postinstall_cmds=$lt_old_postinstall_cmds
19878
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19880
# Whether to use a lock for old archive extraction.
19881
lock_old_archive_extraction=$lock_old_archive_extraction
19886
# LTCC compiler flags.
19887
LTCFLAGS=$lt_CFLAGS
19889
# Take the output of nm and produce a listing of raw symbols and C names.
19890
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19892
# Transform the output of nm in a proper C declaration.
19893
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19895
# Transform the output of nm in a C name address pair.
19896
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19898
# Transform the output of nm in a C name address pair when lib prefix is needed.
19899
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19901
# Specify filename containing input files for \$NM.
19902
nm_file_list_spec=$lt_nm_file_list_spec
19904
# The root where to search for dependent libraries,and in which our libraries should be installed.
19905
lt_sysroot=$lt_sysroot
19907
# The name of the directory that contains temporary libtool files.
19910
# Used to examine libraries when file_magic_cmd begins with "file".
19911
MAGIC_CMD=$MAGIC_CMD
19913
# Must we lock files when doing compilation?
19914
need_locks=$lt_need_locks
19917
MANIFEST_TOOL=$lt_MANIFEST_TOOL
19919
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19920
DSYMUTIL=$lt_DSYMUTIL
19922
# Tool to change global to local symbols on Mac OS X.
19925
# Tool to manipulate fat objects and archives on Mac OS X.
19928
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19931
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19932
OTOOL64=$lt_OTOOL64
19934
# Old archive suffix (normally "a").
19937
# Shared library suffix (normally ".so").
19938
shrext_cmds=$lt_shrext_cmds
19940
# The commands to extract the exported symbol list from a shared archive.
19941
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19943
# Variables whose values should be saved in libtool wrapper scripts and
19944
# restored at link time.
19945
variables_saved_for_relink=$lt_variables_saved_for_relink
19947
# Do we need the "lib" prefix for modules?
19948
need_lib_prefix=$need_lib_prefix
19950
# Do we need a version for libraries?
19951
need_version=$need_version
19953
# Library versioning type.
19954
version_type=$version_type
19956
# Shared library runtime path variable.
19957
runpath_var=$runpath_var
19959
# Shared library path variable.
19960
shlibpath_var=$shlibpath_var
19962
# Is shlibpath searched before the hard-coded library search path?
19963
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19965
# Format of library name prefix.
19966
libname_spec=$lt_libname_spec
19968
# List of archive names. First name is the real one, the rest are links.
19969
# The last name is the one that the linker finds with -lNAME
19970
library_names_spec=$lt_library_names_spec
19972
# The coded name of the library, if different from the real name.
19973
soname_spec=$lt_soname_spec
19975
# Permission mode override for installation of shared libraries.
19976
install_override_mode=$lt_install_override_mode
19978
# Command to use after installation of a shared archive.
19979
postinstall_cmds=$lt_postinstall_cmds
19981
# Command to use after uninstallation of a shared archive.
19982
postuninstall_cmds=$lt_postuninstall_cmds
19984
# Commands used to finish a libtool library installation in a directory.
19985
finish_cmds=$lt_finish_cmds
19987
# As "finish_cmds", except a single script fragment to be evaled but
19989
finish_eval=$lt_finish_eval
19991
# Whether we should hardcode library paths into libraries.
19992
hardcode_into_libs=$hardcode_into_libs
19994
# Compile-time system search path for libraries.
19995
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19997
# Run-time system search path for libraries.
19998
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20000
# Whether dlopen is supported.
20001
dlopen_support=$enable_dlopen
20003
# Whether dlopen of programs is supported.
20004
dlopen_self=$enable_dlopen_self
20006
# Whether dlopen of statically linked programs is supported.
20007
dlopen_self_static=$enable_dlopen_self_static
20009
# Commands to strip libraries.
20010
old_striplib=$lt_old_striplib
20011
striplib=$lt_striplib
20014
# The linker used to build libraries.
20017
# How to create reloadable object files.
20018
reload_flag=$lt_reload_flag
20019
reload_cmds=$lt_reload_cmds
20021
# Commands used to build an old-style archive.
20022
old_archive_cmds=$lt_old_archive_cmds
20024
# A language specific compiler.
20027
# Is the compiler the GNU compiler?
20030
# Compiler flag to turn off builtin functions.
20031
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20033
# Additional compiler flags for building library objects.
20034
pic_flag=$lt_lt_prog_compiler_pic
20036
# How to pass a linker flag through the compiler.
20037
wl=$lt_lt_prog_compiler_wl
20039
# Compiler flag to prevent dynamic linking.
20040
link_static_flag=$lt_lt_prog_compiler_static
20042
# Does compiler simultaneously support -c and -o options?
20043
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20045
# Whether or not to add -lc for building shared libraries.
20046
build_libtool_need_lc=$archive_cmds_need_lc
20048
# Whether or not to disallow shared libs when runtime libs are static.
20049
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20051
# Compiler flag to allow reflexive dlopens.
20052
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20054
# Compiler flag to generate shared objects directly from archives.
20055
whole_archive_flag_spec=$lt_whole_archive_flag_spec
20057
# Whether the compiler copes with passing no objects directly.
20058
compiler_needs_object=$lt_compiler_needs_object
20060
# Create an old-style archive from a shared archive.
20061
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20063
# Create a temporary old-style archive to link instead of a shared archive.
20064
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20066
# Commands used to build a shared archive.
20067
archive_cmds=$lt_archive_cmds
20068
archive_expsym_cmds=$lt_archive_expsym_cmds
20070
# Commands used to build a loadable module if different from building
20071
# a shared archive.
20072
module_cmds=$lt_module_cmds
20073
module_expsym_cmds=$lt_module_expsym_cmds
20075
# Whether we are building with GNU ld or not.
20076
with_gnu_ld=$lt_with_gnu_ld
20078
# Flag that allows shared libraries with undefined symbols to be built.
20079
allow_undefined_flag=$lt_allow_undefined_flag
20081
# Flag that enforces no undefined symbols.
20082
no_undefined_flag=$lt_no_undefined_flag
20084
# Flag to hardcode \$libdir into a binary during linking.
20085
# This must work even if \$libdir does not exist
20086
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20088
# Whether we need a single "-rpath" flag with a separated argument.
20089
hardcode_libdir_separator=$lt_hardcode_libdir_separator
20091
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20092
# DIR into the resulting binary.
20093
hardcode_direct=$hardcode_direct
20095
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20096
# DIR into the resulting binary and the resulting library dependency is
20097
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20098
# library is relocated.
20099
hardcode_direct_absolute=$hardcode_direct_absolute
20101
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20102
# into the resulting binary.
20103
hardcode_minus_L=$hardcode_minus_L
20105
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20106
# into the resulting binary.
20107
hardcode_shlibpath_var=$hardcode_shlibpath_var
20109
# Set to "yes" if building a shared library automatically hardcodes DIR
20110
# into the library and all subsequent libraries and executables linked
20112
hardcode_automatic=$hardcode_automatic
20114
# Set to yes if linker adds runtime paths of dependent libraries
20115
# to runtime path list.
20116
inherit_rpath=$inherit_rpath
20118
# Whether libtool must link a program against all its dependency libraries.
20119
link_all_deplibs=$link_all_deplibs
20121
# Set to "yes" if exported symbols are required.
20122
always_export_symbols=$always_export_symbols
20124
# The commands to list exported symbols.
20125
export_symbols_cmds=$lt_export_symbols_cmds
20127
# Symbols that should not be listed in the preloaded symbols.
20128
exclude_expsyms=$lt_exclude_expsyms
20130
# Symbols that must always be exported.
20131
include_expsyms=$lt_include_expsyms
20133
# Commands necessary for linking programs (against libraries) with templates.
20134
prelink_cmds=$lt_prelink_cmds
20136
# Commands necessary for finishing linking programs.
20137
postlink_cmds=$lt_postlink_cmds
20139
# Specify filename containing input files.
20140
file_list_spec=$lt_file_list_spec
20142
# How to hardcode a shared library path into an executable.
20143
hardcode_action=$hardcode_action
20145
# ### END LIBTOOL CONFIG
20151
cat <<\_LT_EOF >> "$cfgfile"
20152
# AIX sometimes has problems with the GCC collect2 program. For some
20153
# reason, if we set the COLLECT_NAMES environment variable, the problems
20154
# vanish in a puff of smoke.
20155
if test "X${COLLECT_NAMES+set}" != Xset; then
20157
export COLLECT_NAMES
20164
ltmain="$ac_aux_dir/ltmain.sh"
20167
# We use sed instead of cat because bash on DJGPP gets confused if
20168
# if finds mixed CR/LF and LF-only lines. Since sed operates in
20169
# text mode, it properly converts lines to CR/LF. This bash problem
20170
# is reportedly fixed, but why not run on old versions too?
20171
sed '$q' "$ltmain" >> "$cfgfile" \
20172
|| (rm -f "$cfgfile"; exit 1)
20174
if test x"$xsi_shell" = xyes; then
20175
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20179
\ */*) func_dirname_result="${1%/*}${2}" ;;\
20180
\ * ) func_dirname_result="${3}" ;;\
20182
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20183
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20184
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20185
test 0 -eq $? || _lt_function_replace_fail=:
20188
sed -e '/^func_basename ()$/,/^} # func_basename /c\
20191
\ func_basename_result="${1##*/}"\
20192
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20193
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20194
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20195
test 0 -eq $? || _lt_function_replace_fail=:
20198
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20199
func_dirname_and_basename ()\
20202
\ */*) func_dirname_result="${1%/*}${2}" ;;\
20203
\ * ) func_dirname_result="${3}" ;;\
20205
\ func_basename_result="${1##*/}"\
20206
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20207
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20208
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20209
test 0 -eq $? || _lt_function_replace_fail=:
20212
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20215
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20216
\ # positional parameters, so assign one to ordinary parameter first.\
20217
\ func_stripname_result=${3}\
20218
\ func_stripname_result=${func_stripname_result#"${1}"}\
20219
\ func_stripname_result=${func_stripname_result%"${2}"}\
20220
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20221
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20222
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20223
test 0 -eq $? || _lt_function_replace_fail=:
20226
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20227
func_split_long_opt ()\
20229
\ func_split_long_opt_name=${1%%=*}\
20230
\ func_split_long_opt_arg=${1#*=}\
20231
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20232
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20233
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20234
test 0 -eq $? || _lt_function_replace_fail=:
20237
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20238
func_split_short_opt ()\
20240
\ func_split_short_opt_arg=${1#??}\
20241
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20242
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20243
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20244
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20245
test 0 -eq $? || _lt_function_replace_fail=:
20248
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20252
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20253
\ *) func_lo2o_result=${1} ;;\
20255
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20256
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20257
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20258
test 0 -eq $? || _lt_function_replace_fail=:
20261
sed -e '/^func_xform ()$/,/^} # func_xform /c\
20264
func_xform_result=${1%.*}.lo\
20265
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20266
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20267
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20268
test 0 -eq $? || _lt_function_replace_fail=:
20271
sed -e '/^func_arith ()$/,/^} # func_arith /c\
20274
func_arith_result=$(( $* ))\
20275
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20276
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20277
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20278
test 0 -eq $? || _lt_function_replace_fail=:
20281
sed -e '/^func_len ()$/,/^} # func_len /c\
20284
func_len_result=${#1}\
20285
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20286
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20287
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20288
test 0 -eq $? || _lt_function_replace_fail=:
20292
if test x"$lt_shell_append" = xyes; then
20293
sed -e '/^func_append ()$/,/^} # func_append /c\
20296
eval "${1}+=\\${2}"\
20297
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20298
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20299
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20300
test 0 -eq $? || _lt_function_replace_fail=:
20303
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20304
func_append_quoted ()\
20306
\ func_quote_for_eval "${2}"\
20307
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20308
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20309
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20310
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20311
test 0 -eq $? || _lt_function_replace_fail=:
20314
# Save a `func_append' function call where possible by direct use of '+='
20315
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20316
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20317
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20318
test 0 -eq $? || _lt_function_replace_fail=:
20320
# Save a `func_append' function call even when '+=' is not available
20321
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20322
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20323
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20324
test 0 -eq $? || _lt_function_replace_fail=:
20327
if test x"$_lt_function_replace_fail" = x":"; then
20328
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20329
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20333
mv -f "$cfgfile" "$ofile" ||
20334
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20345
ac_clean_files=$ac_clean_files_save
20347
test $ac_write_fail = 0 ||
20348
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20351
# configure is writing to config.log, and then calls config.status.
20352
# config.status does its own redirection, appending to config.log.
20353
# Unfortunately, on DOS this fails, as config.log is still kept open
20354
# by configure, so config.status won't be able to write to it; its
20355
# output is simply discarded. So we exec the FD to /dev/null,
20356
# effectively closing config.log, so it can be properly (re)opened and
20357
# appended to by config.status. When coming back to configure, we
20358
# need to make the FD available again.
20359
if test "$no_create" != yes; then
20361
ac_config_status_args=
20362
test "$silent" = yes &&
20363
ac_config_status_args="$ac_config_status_args --quiet"
20365
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20367
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
20368
# would make configure fail if this is the last instruction.
20369
$ac_cs_success || as_fn_exit 1
20371
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20372
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20373
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}