fix build: update SOURCE0 consists of name and version macro
[adaptation/xorg-x11-drv-synaptics.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66 for xf86-input-synaptics 1.4.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185   if (eval "$as_required") 2>/dev/null; then :
186   as_have_required=yes
187 else
188   as_have_required=no
189 fi
190   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192 else
193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 do
197   IFS=$as_save_IFS
198   test -z "$as_dir" && as_dir=.
199   as_found=:
200   case $as_dir in #(
201          /*)
202            for as_base in sh bash ksh sh5; do
203              # Try only shells that exist, to save several forks.
204              as_shell=$as_dir/$as_base
205              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   CONFIG_SHELL=$as_shell as_have_required=yes
208                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209   break 2
210 fi
211 fi
212            done;;
213        esac
214   as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218   CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
221
222
223       if test "x$CONFIG_SHELL" != x; then :
224   # We cannot yet assume a decent shell, so we have to provide a
225         # neutralization value for shells without unset; and this also
226         # works around shells that cannot unset nonexistent variables.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247   fi
248   exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266   { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275   return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283   set +e
284   as_fn_set_status $1
285   exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294   case $as_dir in #(
295   -*) as_dir=./$as_dir;;
296   esac
297   test -d "$as_dir" || eval $as_mkdir_p || {
298     as_dirs=
299     while :; do
300       case $as_dir in #(
301       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302       *) as_qdir=$as_dir;;
303       esac
304       as_dirs="'$as_qdir' $as_dirs"
305       as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307          X"$as_dir" : 'X\(//\)[^/]' \| \
308          X"$as_dir" : 'X\(//\)$' \| \
309          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)[^/].*/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\).*/{
324             s//\1/
325             q
326           }
327           s/.*/./; q'`
328       test -d "$as_dir" && break
329     done
330     test -z "$as_dirs" || eval "mkdir $as_dirs"
331   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342   eval 'as_fn_append ()
343   {
344     eval $1+=\$2
345   }'
346 else
347   as_fn_append ()
348   {
349     eval $1=\$$1\$2
350   }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359   eval 'as_fn_arith ()
360   {
361     as_val=$(( $* ))
362   }'
363 else
364   as_fn_arith ()
365   {
366     as_val=`expr "$@" || test $? -eq 1`
367   }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378   as_status=$1; test $as_status -eq 0 && as_status=1
379   if test "$4"; then
380     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382   fi
383   $as_echo "$as_me: error: $2" >&2
384   as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388    test "X`expr 00001 : '.*\(...\)'`" = X001; then
389   as_expr=expr
390 else
391   as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395   as_basename=basename
396 else
397   as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401   as_dirname=dirname
402 else
403   as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408          X"$0" : 'X\(//\)$' \| \
409          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411     sed '/^.*\/\([^/][^/]*\)\/*$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\/\)$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\).*/{
420             s//\1/
421             q
422           }
423           s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433   as_lineno_1=$LINENO as_lineno_1a=$LINENO
434   as_lineno_2=$LINENO as_lineno_2a=$LINENO
435   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456   # Don't try to exec as it changes $[0], causing all sort of problems
457   # (the dirname of $[0] is not the place where we might find the
458   # original and so on.  Autoconf is especially sensitive to this).
459   . "./$as_me.lineno"
460   # Exit status is that of the last command.
461   exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467   case `echo 'xy\c'` in
468   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
469   xy)  ECHO_C='\c';;
470   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471        ECHO_T=' ';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479   rm -f conf$$.dir/conf$$.file
480 else
481   rm -f conf$$.dir
482   mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485   if ln -s conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s='ln -s'
487     # ... but there are two gotchas:
488     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490     # In both cases, we have to default to `cp -p'.
491     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492       as_ln_s='cp -p'
493   elif ln conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s=ln
495   else
496     as_ln_s='cp -p'
497   fi
498 else
499   as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505   as_mkdir_p='mkdir -p "$as_dir"'
506 else
507   test -d ./-p && rmdir ./-p
508   as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512   as_test_x='test -x'
513 else
514   if ls -dL / >/dev/null 2>&1; then
515     as_ls_L_option=L
516   else
517     as_ls_L_option=
518   fi
519   as_test_x='
520     eval sh -c '\''
521       if test -d "$1"; then
522         test -d "$1/.";
523       else
524         case $1 in #(
525         -*)set "./$1";;
526         esac;
527         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528         ???[sx]*):;;*)false;;esac;fi
529     '\'' sh
530   '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540 SHELL=${CONFIG_SHELL-/bin/sh}
541
542
543 test -n "$DJDIR" || exec 7<&0 </dev/null
544 exec 6>&1
545
546 # Name of the host.
547 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
548 # so uname gets run too.
549 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550
551 #
552 # Initializations.
553 #
554 ac_default_prefix=/usr/local
555 ac_clean_files=
556 ac_config_libobj_dir=.
557 LIBOBJS=
558 cross_compiling=no
559 subdirs=
560 MFLAGS=
561 MAKEFLAGS=
562
563 # Identity of this package.
564 PACKAGE_NAME='xf86-input-synaptics'
565 PACKAGE_TARNAME='xf86-input-synaptics'
566 PACKAGE_VERSION='1.4.0'
567 PACKAGE_STRING='xf86-input-synaptics 1.4.0'
568 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
569 PACKAGE_URL=''
570
571 ac_unique_file="Makefile.am"
572 # Factoring default headers for most tests.
573 ac_includes_default="\
574 #include <stdio.h>
575 #ifdef HAVE_SYS_TYPES_H
576 # include <sys/types.h>
577 #endif
578 #ifdef HAVE_SYS_STAT_H
579 # include <sys/stat.h>
580 #endif
581 #ifdef STDC_HEADERS
582 # include <stdlib.h>
583 # include <stddef.h>
584 #else
585 # ifdef HAVE_STDLIB_H
586 #  include <stdlib.h>
587 # endif
588 #endif
589 #ifdef HAVE_STRING_H
590 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591 #  include <memory.h>
592 # endif
593 # include <string.h>
594 #endif
595 #ifdef HAVE_STRINGS_H
596 # include <strings.h>
597 #endif
598 #ifdef HAVE_INTTYPES_H
599 # include <inttypes.h>
600 #endif
601 #ifdef HAVE_STDINT_H
602 # include <stdint.h>
603 #endif
604 #ifdef HAVE_UNISTD_H
605 # include <unistd.h>
606 #endif"
607
608 ac_subst_vars='am__EXEEXT_FALSE
609 am__EXEEXT_TRUE
610 LTLIBOBJS
611 LIBOBJS
612 XTST_LIBS
613 XTST_CFLAGS
614 XI_LIBS
615 XI_CFLAGS
616 BUILD_PSMCOMM_FALSE
617 BUILD_PSMCOMM_TRUE
618 BUILD_EVENTCOMM_FALSE
619 BUILD_EVENTCOMM_TRUE
620 DEBUG_FALSE
621 DEBUG_TRUE
622 HAS_XORG_CONF_DIR_FALSE
623 HAS_XORG_CONF_DIR_TRUE
624 configdir
625 inputdir
626 DRIVER_NAME
627 sdkdir
628 XORG_LIBS
629 XORG_CFLAGS
630 AM_BACKSLASH
631 AM_DEFAULT_VERBOSITY
632 MAN_SUBSTS
633 XORG_MAN_PAGE
634 ADMIN_MAN_DIR
635 DRIVER_MAN_DIR
636 MISC_MAN_DIR
637 FILE_MAN_DIR
638 LIB_MAN_DIR
639 APP_MAN_DIR
640 ADMIN_MAN_SUFFIX
641 DRIVER_MAN_SUFFIX
642 MISC_MAN_SUFFIX
643 FILE_MAN_SUFFIX
644 LIB_MAN_SUFFIX
645 APP_MAN_SUFFIX
646 INSTALL_CMD
647 PKG_CONFIG_LIBDIR
648 PKG_CONFIG_PATH
649 PKG_CONFIG
650 CHANGELOG_CMD
651 CWARNFLAGS
652 CPP
653 OTOOL64
654 OTOOL
655 LIPO
656 NMEDIT
657 DSYMUTIL
658 RANLIB
659 AR
660 OBJDUMP
661 LN_S
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 EGREP
668 GREP
669 SED
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 AMDEPBACKSLASH
674 AMDEP_FALSE
675 AMDEP_TRUE
676 am__quote
677 am__include
678 DEPDIR
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 LIBTOOL
695 MAINT
696 MAINTAINER_MODE_FALSE
697 MAINTAINER_MODE_TRUE
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
703 AWK
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_maintainer_mode
763 enable_static
764 enable_shared
765 with_pic
766 enable_fast_install
767 enable_dependency_tracking
768 with_gnu_ld
769 enable_libtool_lock
770 enable_strict_compilation
771 enable_silent_rules
772 with_xorg_module_dir
773 with_xorg_conf_dir
774 enable_debug
775 '
776       ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 CC
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
784 CPP
785 PKG_CONFIG
786 PKG_CONFIG_PATH
787 PKG_CONFIG_LIBDIR
788 XORG_CFLAGS
789 XORG_LIBS
790 XI_CFLAGS
791 XI_LIBS
792 XTST_CFLAGS
793 XTST_LIBS'
794
795
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 ac_unrecognized_opts=
800 ac_unrecognized_sep=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
817
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835 infodir='${datarootdir}/info'
836 htmldir='${docdir}'
837 dvidir='${docdir}'
838 pdfdir='${docdir}'
839 psdir='${docdir}'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
843
844 ac_prev=
845 ac_dashdash=
846 for ac_option
847 do
848   # If the previous option needs an argument, assign it.
849   if test -n "$ac_prev"; then
850     eval $ac_prev=\$ac_option
851     ac_prev=
852     continue
853   fi
854
855   case $ac_option in
856   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857   *)    ac_optarg=yes ;;
858   esac
859
860   # Accept the important Cygnus configure options, so we can diagnose typos.
861
862   case $ac_dashdash$ac_option in
863   --)
864     ac_dashdash=yes ;;
865
866   -bindir | --bindir | --bindi | --bind | --bin | --bi)
867     ac_prev=bindir ;;
868   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869     bindir=$ac_optarg ;;
870
871   -build | --build | --buil | --bui | --bu)
872     ac_prev=build_alias ;;
873   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874     build_alias=$ac_optarg ;;
875
876   -cache-file | --cache-file | --cache-fil | --cache-fi \
877   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878     ac_prev=cache_file ;;
879   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881     cache_file=$ac_optarg ;;
882
883   --config-cache | -C)
884     cache_file=config.cache ;;
885
886   -datadir | --datadir | --datadi | --datad)
887     ac_prev=datadir ;;
888   -datadir=* | --datadir=* | --datadi=* | --datad=*)
889     datadir=$ac_optarg ;;
890
891   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892   | --dataroo | --dataro | --datar)
893     ac_prev=datarootdir ;;
894   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896     datarootdir=$ac_optarg ;;
897
898   -disable-* | --disable-*)
899     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900     # Reject names that are not valid shell variable names.
901     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902       as_fn_error $? "invalid feature name: $ac_useropt"
903     ac_useropt_orig=$ac_useropt
904     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905     case $ac_user_opts in
906       *"
907 "enable_$ac_useropt"
908 "*) ;;
909       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910          ac_unrecognized_sep=', ';;
911     esac
912     eval enable_$ac_useropt=no ;;
913
914   -docdir | --docdir | --docdi | --doc | --do)
915     ac_prev=docdir ;;
916   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917     docdir=$ac_optarg ;;
918
919   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920     ac_prev=dvidir ;;
921   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922     dvidir=$ac_optarg ;;
923
924   -enable-* | --enable-*)
925     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928       as_fn_error $? "invalid feature name: $ac_useropt"
929     ac_useropt_orig=$ac_useropt
930     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931     case $ac_user_opts in
932       *"
933 "enable_$ac_useropt"
934 "*) ;;
935       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936          ac_unrecognized_sep=', ';;
937     esac
938     eval enable_$ac_useropt=\$ac_optarg ;;
939
940   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942   | --exec | --exe | --ex)
943     ac_prev=exec_prefix ;;
944   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946   | --exec=* | --exe=* | --ex=*)
947     exec_prefix=$ac_optarg ;;
948
949   -gas | --gas | --ga | --g)
950     # Obsolete; use --with-gas.
951     with_gas=yes ;;
952
953   -help | --help | --hel | --he | -h)
954     ac_init_help=long ;;
955   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956     ac_init_help=recursive ;;
957   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958     ac_init_help=short ;;
959
960   -host | --host | --hos | --ho)
961     ac_prev=host_alias ;;
962   -host=* | --host=* | --hos=* | --ho=*)
963     host_alias=$ac_optarg ;;
964
965   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966     ac_prev=htmldir ;;
967   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968   | --ht=*)
969     htmldir=$ac_optarg ;;
970
971   -includedir | --includedir | --includedi | --included | --include \
972   | --includ | --inclu | --incl | --inc)
973     ac_prev=includedir ;;
974   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975   | --includ=* | --inclu=* | --incl=* | --inc=*)
976     includedir=$ac_optarg ;;
977
978   -infodir | --infodir | --infodi | --infod | --info | --inf)
979     ac_prev=infodir ;;
980   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981     infodir=$ac_optarg ;;
982
983   -libdir | --libdir | --libdi | --libd)
984     ac_prev=libdir ;;
985   -libdir=* | --libdir=* | --libdi=* | --libd=*)
986     libdir=$ac_optarg ;;
987
988   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989   | --libexe | --libex | --libe)
990     ac_prev=libexecdir ;;
991   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992   | --libexe=* | --libex=* | --libe=*)
993     libexecdir=$ac_optarg ;;
994
995   -localedir | --localedir | --localedi | --localed | --locale)
996     ac_prev=localedir ;;
997   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998     localedir=$ac_optarg ;;
999
1000   -localstatedir | --localstatedir | --localstatedi | --localstated \
1001   | --localstate | --localstat | --localsta | --localst | --locals)
1002     ac_prev=localstatedir ;;
1003   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005     localstatedir=$ac_optarg ;;
1006
1007   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008     ac_prev=mandir ;;
1009   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010     mandir=$ac_optarg ;;
1011
1012   -nfp | --nfp | --nf)
1013     # Obsolete; use --without-fp.
1014     with_fp=no ;;
1015
1016   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017   | --no-cr | --no-c | -n)
1018     no_create=yes ;;
1019
1020   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022     no_recursion=yes ;;
1023
1024   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026   | --oldin | --oldi | --old | --ol | --o)
1027     ac_prev=oldincludedir ;;
1028   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031     oldincludedir=$ac_optarg ;;
1032
1033   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034     ac_prev=prefix ;;
1035   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036     prefix=$ac_optarg ;;
1037
1038   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039   | --program-pre | --program-pr | --program-p)
1040     ac_prev=program_prefix ;;
1041   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043     program_prefix=$ac_optarg ;;
1044
1045   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046   | --program-suf | --program-su | --program-s)
1047     ac_prev=program_suffix ;;
1048   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050     program_suffix=$ac_optarg ;;
1051
1052   -program-transform-name | --program-transform-name \
1053   | --program-transform-nam | --program-transform-na \
1054   | --program-transform-n | --program-transform- \
1055   | --program-transform | --program-transfor \
1056   | --program-transfo | --program-transf \
1057   | --program-trans | --program-tran \
1058   | --progr-tra | --program-tr | --program-t)
1059     ac_prev=program_transform_name ;;
1060   -program-transform-name=* | --program-transform-name=* \
1061   | --program-transform-nam=* | --program-transform-na=* \
1062   | --program-transform-n=* | --program-transform-=* \
1063   | --program-transform=* | --program-transfor=* \
1064   | --program-transfo=* | --program-transf=* \
1065   | --program-trans=* | --program-tran=* \
1066   | --progr-tra=* | --program-tr=* | --program-t=*)
1067     program_transform_name=$ac_optarg ;;
1068
1069   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070     ac_prev=pdfdir ;;
1071   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072     pdfdir=$ac_optarg ;;
1073
1074   -psdir | --psdir | --psdi | --psd | --ps)
1075     ac_prev=psdir ;;
1076   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077     psdir=$ac_optarg ;;
1078
1079   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080   | -silent | --silent | --silen | --sile | --sil)
1081     silent=yes ;;
1082
1083   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084     ac_prev=sbindir ;;
1085   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086   | --sbi=* | --sb=*)
1087     sbindir=$ac_optarg ;;
1088
1089   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091   | --sharedst | --shareds | --shared | --share | --shar \
1092   | --sha | --sh)
1093     ac_prev=sharedstatedir ;;
1094   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097   | --sha=* | --sh=*)
1098     sharedstatedir=$ac_optarg ;;
1099
1100   -site | --site | --sit)
1101     ac_prev=site ;;
1102   -site=* | --site=* | --sit=*)
1103     site=$ac_optarg ;;
1104
1105   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106     ac_prev=srcdir ;;
1107   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108     srcdir=$ac_optarg ;;
1109
1110   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111   | --syscon | --sysco | --sysc | --sys | --sy)
1112     ac_prev=sysconfdir ;;
1113   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115     sysconfdir=$ac_optarg ;;
1116
1117   -target | --target | --targe | --targ | --tar | --ta | --t)
1118     ac_prev=target_alias ;;
1119   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120     target_alias=$ac_optarg ;;
1121
1122   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123     verbose=yes ;;
1124
1125   -version | --version | --versio | --versi | --vers | -V)
1126     ac_init_version=: ;;
1127
1128   -with-* | --with-*)
1129     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132       as_fn_error $? "invalid package name: $ac_useropt"
1133     ac_useropt_orig=$ac_useropt
1134     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135     case $ac_user_opts in
1136       *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140          ac_unrecognized_sep=', ';;
1141     esac
1142     eval with_$ac_useropt=\$ac_optarg ;;
1143
1144   -without-* | --without-*)
1145     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148       as_fn_error $? "invalid package name: $ac_useropt"
1149     ac_useropt_orig=$ac_useropt
1150     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151     case $ac_user_opts in
1152       *"
1153 "with_$ac_useropt"
1154 "*) ;;
1155       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156          ac_unrecognized_sep=', ';;
1157     esac
1158     eval with_$ac_useropt=no ;;
1159
1160   --x)
1161     # Obsolete; use --with-x.
1162     with_x=yes ;;
1163
1164   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165   | --x-incl | --x-inc | --x-in | --x-i)
1166     ac_prev=x_includes ;;
1167   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169     x_includes=$ac_optarg ;;
1170
1171   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173     ac_prev=x_libraries ;;
1174   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176     x_libraries=$ac_optarg ;;
1177
1178   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1180     ;;
1181
1182   *=*)
1183     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184     # Reject names that are not valid shell variable names.
1185     case $ac_envvar in #(
1186       '' | [0-9]* | *[!_$as_cr_alnum]* )
1187       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188     esac
1189     eval $ac_envvar=\$ac_optarg
1190     export $ac_envvar ;;
1191
1192   *)
1193     # FIXME: should be removed in autoconf 3.0.
1194     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198     ;;
1199
1200   esac
1201 done
1202
1203 if test -n "$ac_prev"; then
1204   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205   as_fn_error $? "missing argument to $ac_option"
1206 fi
1207
1208 if test -n "$ac_unrecognized_opts"; then
1209   case $enable_option_checking in
1210     no) ;;
1211     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213   esac
1214 fi
1215
1216 # Check all directory arguments for consistency.
1217 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218                 datadir sysconfdir sharedstatedir localstatedir includedir \
1219                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220                 libdir localedir mandir
1221 do
1222   eval ac_val=\$$ac_var
1223   # Remove trailing slashes.
1224   case $ac_val in
1225     */ )
1226       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227       eval $ac_var=\$ac_val;;
1228   esac
1229   # Be sure to have absolute directory names.
1230   case $ac_val in
1231     [\\/$]* | ?:[\\/]* )  continue;;
1232     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233   esac
1234   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235 done
1236
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1240 build=$build_alias
1241 host=$host_alias
1242 target=$target_alias
1243
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246   if test "x$build_alias" = x; then
1247     cross_compiling=maybe
1248     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1249     If a cross compiler is detected then cross compile mode will be used" >&2
1250   elif test "x$build_alias" != "x$host_alias"; then
1251     cross_compiling=yes
1252   fi
1253 fi
1254
1255 ac_tool_prefix=
1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258 test "$silent" = yes && exec 6>/dev/null
1259
1260
1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262 ac_ls_di=`ls -di .` &&
1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264   as_fn_error $? "working directory cannot be determined"
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266   as_fn_error $? "pwd does not report name of working directory"
1267
1268
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271   ac_srcdir_defaulted=yes
1272   # Try the directory containing this script, then the parent directory.
1273   ac_confdir=`$as_dirname -- "$as_myself" ||
1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275          X"$as_myself" : 'X\(//\)[^/]' \| \
1276          X"$as_myself" : 'X\(//\)$' \| \
1277          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278 $as_echo X"$as_myself" |
1279     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\/\)[^/].*/{
1284             s//\1/
1285             q
1286           }
1287           /^X\(\/\/\)$/{
1288             s//\1/
1289             q
1290           }
1291           /^X\(\/\).*/{
1292             s//\1/
1293             q
1294           }
1295           s/.*/./; q'`
1296   srcdir=$ac_confdir
1297   if test ! -r "$srcdir/$ac_unique_file"; then
1298     srcdir=..
1299   fi
1300 else
1301   ac_srcdir_defaulted=no
1302 fi
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306 fi
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 ac_abs_confdir=`(
1309         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310         pwd)`
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313   srcdir=.
1314 fi
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1318 case $srcdir in
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 esac
1321 for ac_var in $ac_precious_vars; do
1322   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323   eval ac_env_${ac_var}_value=\$${ac_var}
1324   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 done
1327
1328 #
1329 # Report the --help message.
1330 #
1331 if test "$ac_init_help" = "long"; then
1332   # Omit some internal or obsolete options to make the list less imposing.
1333   # This message is too long to be a string in the A/UX 3.1 sh.
1334   cat <<_ACEOF
1335 \`configure' configures xf86-input-synaptics 1.4.0 to adapt to many kinds of systems.
1336
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE.  See below for descriptions of some of the useful variables.
1341
1342 Defaults for the options are specified in brackets.
1343
1344 Configuration:
1345   -h, --help              display this help and exit
1346       --help=short        display options specific to this package
1347       --help=recursive    display the short help of all the included packages
1348   -V, --version           display version information and exit
1349   -q, --quiet, --silent   do not print \`checking ...' messages
1350       --cache-file=FILE   cache test results in FILE [disabled]
1351   -C, --config-cache      alias for \`--cache-file=config.cache'
1352   -n, --no-create         do not create output files
1353       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1354
1355 Installation directories:
1356   --prefix=PREFIX         install architecture-independent files in PREFIX
1357                           [$ac_default_prefix]
1358   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1359                           [PREFIX]
1360
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1365
1366 For better control, use the options below.
1367
1368 Fine tuning of the installation directories:
1369   --bindir=DIR            user executables [EPREFIX/bin]
1370   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1371   --libexecdir=DIR        program executables [EPREFIX/libexec]
1372   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1373   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1374   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1375   --libdir=DIR            object code libraries [EPREFIX/lib]
1376   --includedir=DIR        C header files [PREFIX/include]
1377   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1378   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1379   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1380   --infodir=DIR           info documentation [DATAROOTDIR/info]
1381   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1382   --mandir=DIR            man documentation [DATAROOTDIR/man]
1383   --docdir=DIR            documentation root
1384                           [DATAROOTDIR/doc/xf86-input-synaptics]
1385   --htmldir=DIR           html documentation [DOCDIR]
1386   --dvidir=DIR            dvi documentation [DOCDIR]
1387   --pdfdir=DIR            pdf documentation [DOCDIR]
1388   --psdir=DIR             ps documentation [DOCDIR]
1389 _ACEOF
1390
1391   cat <<\_ACEOF
1392
1393 Program names:
1394   --program-prefix=PREFIX            prepend PREFIX to installed program names
1395   --program-suffix=SUFFIX            append SUFFIX to installed program names
1396   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1397
1398 System types:
1399   --build=BUILD     configure for building on BUILD [guessed]
1400   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1401 _ACEOF
1402 fi
1403
1404 if test -n "$ac_init_help"; then
1405   case $ac_init_help in
1406      short | recursive ) echo "Configuration of xf86-input-synaptics 1.4.0:";;
1407    esac
1408   cat <<\_ACEOF
1409
1410 Optional Features:
1411   --disable-option-checking  ignore unrecognized --enable/--with options
1412   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1413   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1414   --enable-maintainer-mode  enable make rules and dependencies not useful
1415                           (and sometimes confusing) to the casual installer
1416   --enable-static[=PKGS]  build static libraries [default=no]
1417   --enable-shared[=PKGS]  build shared libraries [default=yes]
1418   --enable-fast-install[=PKGS]
1419                           optimize for fast installation [default=yes]
1420   --disable-dependency-tracking  speeds up one-time build
1421   --enable-dependency-tracking   do not reject slow dependency extractors
1422   --disable-libtool-lock  avoid locking (might break parallel builds)
1423   --enable-strict-compilation
1424                           Enable all warnings from compiler and make them
1425                           errors (default: disabled)
1426   --enable-silent-rules          less verbose build output (undo: `make V=1')
1427   --disable-silent-rules         verbose build output (undo: `make V=0')
1428   --enable-debug          Enable debugging (default: disabled)
1429
1430 Optional Packages:
1431   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1432   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1433   --with-pic              try to use only PIC/non-PIC objects [default=use
1434                           both]
1435   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1436   --with-xorg-module-dir=DIR
1437                           Default xorg module directory
1438                           [[default=$libdir/xorg/modules]]
1439   --with-xorg-conf-dir=DIR
1440                           Default xorg.conf.d directory [[default=from
1441                           $PKG_CONFIG xorg-server]]
1442
1443 Some influential environment variables:
1444   CC          C compiler command
1445   CFLAGS      C compiler flags
1446   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1447               nonstandard directory <lib dir>
1448   LIBS        libraries to pass to the linker, e.g. -l<library>
1449   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450               you have headers in a nonstandard directory <include dir>
1451   CPP         C preprocessor
1452   PKG_CONFIG  path to pkg-config utility
1453   PKG_CONFIG_PATH
1454               directories to add to pkg-config's search path
1455   PKG_CONFIG_LIBDIR
1456               path overriding pkg-config's built-in search path
1457   XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1458   XORG_LIBS   linker flags for XORG, overriding pkg-config
1459   XI_CFLAGS   C compiler flags for XI, overriding pkg-config
1460   XI_LIBS     linker flags for XI, overriding pkg-config
1461   XTST_CFLAGS C compiler flags for XTST, overriding pkg-config
1462   XTST_LIBS   linker flags for XTST, overriding pkg-config
1463
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1466
1467 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1468 _ACEOF
1469 ac_status=$?
1470 fi
1471
1472 if test "$ac_init_help" = "recursive"; then
1473   # If there are subdirs, report their specific --help.
1474   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475     test -d "$ac_dir" ||
1476       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477       continue
1478     ac_builddir=.
1479
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *)
1483   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484   # A ".." for each directory in $ac_dir_suffix.
1485   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486   case $ac_top_builddir_sub in
1487   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489   esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1495
1496 case $srcdir in
1497   .)  # We are building in place.
1498     ac_srcdir=.
1499     ac_top_srcdir=$ac_top_builddir_sub
1500     ac_abs_top_srcdir=$ac_pwd ;;
1501   [\\/]* | ?:[\\/]* )  # Absolute name.
1502     ac_srcdir=$srcdir$ac_dir_suffix;
1503     ac_top_srcdir=$srcdir
1504     ac_abs_top_srcdir=$srcdir ;;
1505   *) # Relative name.
1506     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507     ac_top_srcdir=$ac_top_build_prefix$srcdir
1508     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512     cd "$ac_dir" || { ac_status=$?; continue; }
1513     # Check for guested configure.
1514     if test -f "$ac_srcdir/configure.gnu"; then
1515       echo &&
1516       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517     elif test -f "$ac_srcdir/configure"; then
1518       echo &&
1519       $SHELL "$ac_srcdir/configure" --help=recursive
1520     else
1521       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522     fi || ac_status=$?
1523     cd "$ac_pwd" || { ac_status=$?; break; }
1524   done
1525 fi
1526
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1529   cat <<\_ACEOF
1530 xf86-input-synaptics configure 1.4.0
1531 generated by GNU Autoconf 2.66
1532
1533 Copyright (C) 2010 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1536 _ACEOF
1537   exit
1538 fi
1539
1540 ## ------------------------ ##
1541 ## Autoconf initialization. ##
1542 ## ------------------------ ##
1543
1544 # ac_fn_c_try_compile LINENO
1545 # --------------------------
1546 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_compile ()
1548 {
1549   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550   rm -f conftest.$ac_objext
1551   if { { ac_try="$ac_compile"
1552 case "(($ac_try" in
1553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554   *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558   (eval "$ac_compile") 2>conftest.err
1559   ac_status=$?
1560   if test -s conftest.err; then
1561     grep -v '^ *+' conftest.err >conftest.er1
1562     cat conftest.er1 >&5
1563     mv -f conftest.er1 conftest.err
1564   fi
1565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566   test $ac_status = 0; } && {
1567          test -z "$ac_c_werror_flag" ||
1568          test ! -s conftest.err
1569        } && test -s conftest.$ac_objext; then :
1570   ac_retval=0
1571 else
1572   $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1574
1575         ac_retval=1
1576 fi
1577   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1578   as_fn_set_status $ac_retval
1579
1580 } # ac_fn_c_try_compile
1581
1582 # ac_fn_c_try_link LINENO
1583 # -----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_link ()
1586 {
1587   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588   rm -f conftest.$ac_objext conftest$ac_exeext
1589   if { { ac_try="$ac_link"
1590 case "(($ac_try" in
1591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592   *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596   (eval "$ac_link") 2>conftest.err
1597   ac_status=$?
1598   if test -s conftest.err; then
1599     grep -v '^ *+' conftest.err >conftest.er1
1600     cat conftest.er1 >&5
1601     mv -f conftest.er1 conftest.err
1602   fi
1603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604   test $ac_status = 0; } && {
1605          test -z "$ac_c_werror_flag" ||
1606          test ! -s conftest.err
1607        } && test -s conftest$ac_exeext && {
1608          test "$cross_compiling" = yes ||
1609          $as_test_x conftest$ac_exeext
1610        }; then :
1611   ac_retval=0
1612 else
1613   $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616         ac_retval=1
1617 fi
1618   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620   # interfere with the next link command; also delete a directory that is
1621   # left behind by Apple's compiler.  We do this before executing the actions.
1622   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624   as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_link
1627
1628 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629 # -------------------------------------------------------
1630 # Tests whether HEADER exists and can be compiled using the include files in
1631 # INCLUDES, setting the cache variable VAR accordingly.
1632 ac_fn_c_check_header_compile ()
1633 {
1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval "test \"\${$3+set}\"" = set; then :
1638   $as_echo_n "(cached) " >&6
1639 else
1640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h.  */
1642 $4
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"; then :
1646   eval "$3=yes"
1647 else
1648   eval "$3=no"
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651 fi
1652 eval ac_res=\$$3
1653                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656
1657 } # ac_fn_c_check_header_compile
1658
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_cpp ()
1663 {
1664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665   if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 case "(($ac_try" in
1667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668   *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673   ac_status=$?
1674   if test -s conftest.err; then
1675     grep -v '^ *+' conftest.err >conftest.er1
1676     cat conftest.er1 >&5
1677     mv -f conftest.er1 conftest.err
1678   fi
1679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680   test $ac_status = 0; } >/dev/null && {
1681          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682          test ! -s conftest.err
1683        }; then :
1684   ac_retval=0
1685 else
1686   $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689     ac_retval=1
1690 fi
1691   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692   as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_cpp
1695
1696 # ac_fn_c_try_run LINENO
1697 # ----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699 # that executables *can* be run.
1700 ac_fn_c_try_run ()
1701 {
1702   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703   if { { ac_try="$ac_link"
1704 case "(($ac_try" in
1705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706   *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710   (eval "$ac_link") 2>&5
1711   ac_status=$?
1712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714   { { case "(($ac_try" in
1715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716   *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720   (eval "$ac_try") 2>&5
1721   ac_status=$?
1722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723   test $ac_status = 0; }; }; then :
1724   ac_retval=0
1725 else
1726   $as_echo "$as_me: program exited with status $ac_status" >&5
1727        $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730        ac_retval=$ac_status
1731 fi
1732   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734   as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_run
1737
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval "test \"\${$3+set}\"" = set; then :
1747   $as_echo_n "(cached) " >&6
1748 else
1749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h.  */
1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1753 #define $2 innocuous_$2
1754
1755 /* System header to define __stub macros and hopefully few prototypes,
1756     which can conflict with char $2 (); below.
1757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758     <limits.h> exists even on freestanding compilers.  */
1759
1760 #ifdef __STDC__
1761 # include <limits.h>
1762 #else
1763 # include <assert.h>
1764 #endif
1765
1766 #undef $2
1767
1768 /* Override any GCC internal prototype to avoid an error.
1769    Use char because int might match the return type of a GCC
1770    builtin and then its argument prototype would still apply.  */
1771 #ifdef __cplusplus
1772 extern "C"
1773 #endif
1774 char $2 ();
1775 /* The GNU C library defines this for functions which it implements
1776     to always fail with ENOSYS.  Some functions are actually named
1777     something starting with __ and the normal name is an alias.  */
1778 #if defined __stub_$2 || defined __stub___$2
1779 choke me
1780 #endif
1781
1782 int
1783 main ()
1784 {
1785 return $2 ();
1786   ;
1787   return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_link "$LINENO"; then :
1791   eval "$3=yes"
1792 else
1793   eval "$3=no"
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext \
1796     conftest$ac_exeext conftest.$ac_ext
1797 fi
1798 eval ac_res=\$$3
1799                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802
1803 } # ac_fn_c_check_func
1804
1805 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1806 # ---------------------------------------------
1807 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1808 # accordingly.
1809 ac_fn_c_check_decl ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   as_decl_name=`echo $2|sed 's/ *(.*//'`
1813   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1815 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1816 if eval "test \"\${$3+set}\"" = set; then :
1817   $as_echo_n "(cached) " >&6
1818 else
1819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h.  */
1821 $4
1822 int
1823 main ()
1824 {
1825 #ifndef $as_decl_name
1826 #ifdef __cplusplus
1827   (void) $as_decl_use;
1828 #else
1829   (void) $as_decl_name;
1830 #endif
1831 #endif
1832
1833   ;
1834   return 0;
1835 }
1836 _ACEOF
1837 if ac_fn_c_try_compile "$LINENO"; then :
1838   eval "$3=yes"
1839 else
1840   eval "$3=no"
1841 fi
1842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843 fi
1844 eval ac_res=\$$3
1845                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848
1849 } # ac_fn_c_check_decl
1850 cat >config.log <<_ACEOF
1851 This file contains any messages produced by compilers while
1852 running configure, to aid debugging if configure makes a mistake.
1853
1854 It was created by xf86-input-synaptics $as_me 1.4.0, which was
1855 generated by GNU Autoconf 2.66.  Invocation command line was
1856
1857   $ $0 $@
1858
1859 _ACEOF
1860 exec 5>>config.log
1861 {
1862 cat <<_ASUNAME
1863 ## --------- ##
1864 ## Platform. ##
1865 ## --------- ##
1866
1867 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1872
1873 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1875
1876 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1877 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1878 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1880 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1881 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1882 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1883
1884 _ASUNAME
1885
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889   IFS=$as_save_IFS
1890   test -z "$as_dir" && as_dir=.
1891     $as_echo "PATH: $as_dir"
1892   done
1893 IFS=$as_save_IFS
1894
1895 } >&5
1896
1897 cat >&5 <<_ACEOF
1898
1899
1900 ## ----------- ##
1901 ## Core tests. ##
1902 ## ----------- ##
1903
1904 _ACEOF
1905
1906
1907 # Keep a trace of the command line.
1908 # Strip out --no-create and --no-recursion so they do not pile up.
1909 # Strip out --silent because we don't want to record it for future runs.
1910 # Also quote any args containing shell meta-characters.
1911 # Make two passes to allow for proper duplicate-argument suppression.
1912 ac_configure_args=
1913 ac_configure_args0=
1914 ac_configure_args1=
1915 ac_must_keep_next=false
1916 for ac_pass in 1 2
1917 do
1918   for ac_arg
1919   do
1920     case $ac_arg in
1921     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923     | -silent | --silent | --silen | --sile | --sil)
1924       continue ;;
1925     *\'*)
1926       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927     esac
1928     case $ac_pass in
1929     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1930     2)
1931       as_fn_append ac_configure_args1 " '$ac_arg'"
1932       if test $ac_must_keep_next = true; then
1933         ac_must_keep_next=false # Got value, back to normal.
1934       else
1935         case $ac_arg in
1936           *=* | --config-cache | -C | -disable-* | --disable-* \
1937           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939           | -with-* | --with-* | -without-* | --without-* | --x)
1940             case "$ac_configure_args0 " in
1941               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942             esac
1943             ;;
1944           -* ) ac_must_keep_next=true ;;
1945         esac
1946       fi
1947       as_fn_append ac_configure_args " '$ac_arg'"
1948       ;;
1949     esac
1950   done
1951 done
1952 { ac_configure_args0=; unset ac_configure_args0;}
1953 { ac_configure_args1=; unset ac_configure_args1;}
1954
1955 # When interrupted or exit'd, cleanup temporary files, and complete
1956 # config.log.  We remove comments because anyway the quotes in there
1957 # would cause problems or look ugly.
1958 # WARNING: Use '\'' to represent an apostrophe within the trap.
1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960 trap 'exit_status=$?
1961   # Save into config.log some information that might help in debugging.
1962   {
1963     echo
1964
1965     $as_echo "## ---------------- ##
1966 ## Cache variables. ##
1967 ## ---------------- ##"
1968     echo
1969     # The following way of writing the cache mishandles newlines in values,
1970 (
1971   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1972     eval ac_val=\$$ac_var
1973     case $ac_val in #(
1974     *${as_nl}*)
1975       case $ac_var in #(
1976       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1978       esac
1979       case $ac_var in #(
1980       _ | IFS | as_nl) ;; #(
1981       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1982       *) { eval $ac_var=; unset $ac_var;} ;;
1983       esac ;;
1984     esac
1985   done
1986   (set) 2>&1 |
1987     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1988     *${as_nl}ac_space=\ *)
1989       sed -n \
1990         "s/'\''/'\''\\\\'\'''\''/g;
1991           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1992       ;; #(
1993     *)
1994       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1995       ;;
1996     esac |
1997     sort
1998 )
1999     echo
2000
2001     $as_echo "## ----------------- ##
2002 ## Output variables. ##
2003 ## ----------------- ##"
2004     echo
2005     for ac_var in $ac_subst_vars
2006     do
2007       eval ac_val=\$$ac_var
2008       case $ac_val in
2009       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010       esac
2011       $as_echo "$ac_var='\''$ac_val'\''"
2012     done | sort
2013     echo
2014
2015     if test -n "$ac_subst_files"; then
2016       $as_echo "## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##"
2019       echo
2020       for ac_var in $ac_subst_files
2021       do
2022         eval ac_val=\$$ac_var
2023         case $ac_val in
2024         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025         esac
2026         $as_echo "$ac_var='\''$ac_val'\''"
2027       done | sort
2028       echo
2029     fi
2030
2031     if test -s confdefs.h; then
2032       $as_echo "## ----------- ##
2033 ## confdefs.h. ##
2034 ## ----------- ##"
2035       echo
2036       cat confdefs.h
2037       echo
2038     fi
2039     test "$ac_signal" != 0 &&
2040       $as_echo "$as_me: caught signal $ac_signal"
2041     $as_echo "$as_me: exit $exit_status"
2042   } >&5
2043   rm -f core *.core core.conftest.* &&
2044     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2045     exit $exit_status
2046 ' 0
2047 for ac_signal in 1 2 13 15; do
2048   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2049 done
2050 ac_signal=0
2051
2052 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2053 rm -f -r conftest* confdefs.h
2054
2055 $as_echo "/* confdefs.h */" > confdefs.h
2056
2057 # Predefined preprocessor variables.
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_NAME "$PACKAGE_NAME"
2061 _ACEOF
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2065 _ACEOF
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2069 _ACEOF
2070
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_STRING "$PACKAGE_STRING"
2073 _ACEOF
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2077 _ACEOF
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_URL "$PACKAGE_URL"
2081 _ACEOF
2082
2083
2084 # Let the site file select an alternate cache file if it wants to.
2085 # Prefer an explicitly selected file to automatically selected ones.
2086 ac_site_file1=NONE
2087 ac_site_file2=NONE
2088 if test -n "$CONFIG_SITE"; then
2089   # We do not want a PATH search for config.site.
2090   case $CONFIG_SITE in #((
2091     -*)  ac_site_file1=./$CONFIG_SITE;;
2092     */*) ac_site_file1=$CONFIG_SITE;;
2093     *)   ac_site_file1=./$CONFIG_SITE;;
2094   esac
2095 elif test "x$prefix" != xNONE; then
2096   ac_site_file1=$prefix/share/config.site
2097   ac_site_file2=$prefix/etc/config.site
2098 else
2099   ac_site_file1=$ac_default_prefix/share/config.site
2100   ac_site_file2=$ac_default_prefix/etc/config.site
2101 fi
2102 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2103 do
2104   test "x$ac_site_file" = xNONE && continue
2105   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2106     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2108     sed 's/^/| /' "$ac_site_file" >&5
2109     . "$ac_site_file" \
2110       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2112 as_fn_error $? "failed to load site script $ac_site_file
2113 See \`config.log' for more details" "$LINENO" 5; }
2114   fi
2115 done
2116
2117 if test -r "$cache_file"; then
2118   # Some versions of bash will fail to source /dev/null (special files
2119   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2120   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2121     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2122 $as_echo "$as_me: loading cache $cache_file" >&6;}
2123     case $cache_file in
2124       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2125       *)                      . "./$cache_file";;
2126     esac
2127   fi
2128 else
2129   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2130 $as_echo "$as_me: creating cache $cache_file" >&6;}
2131   >$cache_file
2132 fi
2133
2134 # Check that the precious variables saved in the cache have kept the same
2135 # value.
2136 ac_cache_corrupted=false
2137 for ac_var in $ac_precious_vars; do
2138   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2139   eval ac_new_set=\$ac_env_${ac_var}_set
2140   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2141   eval ac_new_val=\$ac_env_${ac_var}_value
2142   case $ac_old_set,$ac_new_set in
2143     set,)
2144       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2145 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2146       ac_cache_corrupted=: ;;
2147     ,set)
2148       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2149 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2150       ac_cache_corrupted=: ;;
2151     ,);;
2152     *)
2153       if test "x$ac_old_val" != "x$ac_new_val"; then
2154         # differences in whitespace do not lead to failure.
2155         ac_old_val_w=`echo x $ac_old_val`
2156         ac_new_val_w=`echo x $ac_new_val`
2157         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2158           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2159 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2160           ac_cache_corrupted=:
2161         else
2162           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2163 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2164           eval $ac_var=\$ac_old_val
2165         fi
2166         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2167 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2168         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2169 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2170       fi;;
2171   esac
2172   # Pass precious variables to config.status.
2173   if test "$ac_new_set" = set; then
2174     case $ac_new_val in
2175     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2176     *) ac_arg=$ac_var=$ac_new_val ;;
2177     esac
2178     case " $ac_configure_args " in
2179       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2180       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2181     esac
2182   fi
2183 done
2184 if $ac_cache_corrupted; then
2185   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2187   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2188 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2189   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2190 fi
2191 ## -------------------- ##
2192 ## Main body of script. ##
2193 ## -------------------- ##
2194
2195 ac_ext=c
2196 ac_cpp='$CPP $CPPFLAGS'
2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200
2201
2202
2203 ac_config_headers="$ac_config_headers config.h"
2204
2205 ac_aux_dir=
2206 for ac_dir in . "$srcdir"/.; do
2207   if test -f "$ac_dir/install-sh"; then
2208     ac_aux_dir=$ac_dir
2209     ac_install_sh="$ac_aux_dir/install-sh -c"
2210     break
2211   elif test -f "$ac_dir/install.sh"; then
2212     ac_aux_dir=$ac_dir
2213     ac_install_sh="$ac_aux_dir/install.sh -c"
2214     break
2215   elif test -f "$ac_dir/shtool"; then
2216     ac_aux_dir=$ac_dir
2217     ac_install_sh="$ac_aux_dir/shtool install -c"
2218     break
2219   fi
2220 done
2221 if test -z "$ac_aux_dir"; then
2222   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2223 fi
2224
2225 # These three variables are undocumented and unsupported,
2226 # and are intended to be withdrawn in a future Autoconf release.
2227 # They can cause serious problems if a builder's source tree is in a directory
2228 # whose full name contains unusual characters.
2229 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2230 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2231 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2232
2233
2234
2235 # Initialize Automake
2236 am__api_version='1.11'
2237
2238 # Find a good install program.  We prefer a C program (faster),
2239 # so one script is as good as another.  But avoid the broken or
2240 # incompatible versions:
2241 # SysV /etc/install, /usr/sbin/install
2242 # SunOS /usr/etc/install
2243 # IRIX /sbin/install
2244 # AIX /bin/install
2245 # AmigaOS /C/install, which installs bootblocks on floppy discs
2246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2249 # OS/2's system install, which has a completely different semantic
2250 # ./install, which can be erroneously created by make from ./install.sh.
2251 # Reject install programs that cannot install multiple files.
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2253 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2254 if test -z "$INSTALL"; then
2255 if test "${ac_cv_path_install+set}" = set; then :
2256   $as_echo_n "(cached) " >&6
2257 else
2258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 for as_dir in $PATH
2260 do
2261   IFS=$as_save_IFS
2262   test -z "$as_dir" && as_dir=.
2263     # Account for people who put trailing slashes in PATH elements.
2264 case $as_dir/ in #((
2265   ./ | .// | /[cC]/* | \
2266   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2267   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2268   /usr/ucb/* ) ;;
2269   *)
2270     # OSF1 and SCO ODT 3.0 have their own names for install.
2271     # Don't use installbsd from OSF since it installs stuff as root
2272     # by default.
2273     for ac_prog in ginstall scoinst install; do
2274       for ac_exec_ext in '' $ac_executable_extensions; do
2275         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2276           if test $ac_prog = install &&
2277             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278             # AIX install.  It has an incompatible calling convention.
2279             :
2280           elif test $ac_prog = install &&
2281             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2282             # program-specific install script used by HP pwplus--don't use.
2283             :
2284           else
2285             rm -rf conftest.one conftest.two conftest.dir
2286             echo one > conftest.one
2287             echo two > conftest.two
2288             mkdir conftest.dir
2289             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2290               test -s conftest.one && test -s conftest.two &&
2291               test -s conftest.dir/conftest.one &&
2292               test -s conftest.dir/conftest.two
2293             then
2294               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2295               break 3
2296             fi
2297           fi
2298         fi
2299       done
2300     done
2301     ;;
2302 esac
2303
2304   done
2305 IFS=$as_save_IFS
2306
2307 rm -rf conftest.one conftest.two conftest.dir
2308
2309 fi
2310   if test "${ac_cv_path_install+set}" = set; then
2311     INSTALL=$ac_cv_path_install
2312   else
2313     # As a last resort, use the slow shell script.  Don't cache a
2314     # value for INSTALL within a source directory, because that will
2315     # break other packages using the cache if that directory is
2316     # removed, or if the value is a relative name.
2317     INSTALL=$ac_install_sh
2318   fi
2319 fi
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2321 $as_echo "$INSTALL" >&6; }
2322
2323 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2324 # It thinks the first close brace ends the variable substitution.
2325 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2326
2327 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2328
2329 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2330
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2332 $as_echo_n "checking whether build environment is sane... " >&6; }
2333 # Just in case
2334 sleep 1
2335 echo timestamp > conftest.file
2336 # Reject unsafe characters in $srcdir or the absolute working directory
2337 # name.  Accept space and tab only in the latter.
2338 am_lf='
2339 '
2340 case `pwd` in
2341   *[\\\"\#\$\&\'\`$am_lf]*)
2342     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2343 esac
2344 case $srcdir in
2345   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2346     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2347 esac
2348
2349 # Do `set' in a subshell so we don't clobber the current shell's
2350 # arguments.  Must try -L first in case configure is actually a
2351 # symlink; some systems play weird games with the mod time of symlinks
2352 # (eg FreeBSD returns the mod time of the symlink's containing
2353 # directory).
2354 if (
2355    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2356    if test "$*" = "X"; then
2357       # -L didn't work.
2358       set X `ls -t "$srcdir/configure" conftest.file`
2359    fi
2360    rm -f conftest.file
2361    if test "$*" != "X $srcdir/configure conftest.file" \
2362       && test "$*" != "X conftest.file $srcdir/configure"; then
2363
2364       # If neither matched, then we have a broken ls.  This can happen
2365       # if, for instance, CONFIG_SHELL is bash and it inherits a
2366       # broken ls alias from the environment.  This has actually
2367       # happened.  Such a system could not be considered "sane".
2368       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2369 alias in your environment" "$LINENO" 5
2370    fi
2371
2372    test "$2" = conftest.file
2373    )
2374 then
2375    # Ok.
2376    :
2377 else
2378    as_fn_error $? "newly created file is older than distributed files!
2379 Check your system clock" "$LINENO" 5
2380 fi
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2382 $as_echo "yes" >&6; }
2383 test "$program_prefix" != NONE &&
2384   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2385 # Use a double $ so make ignores it.
2386 test "$program_suffix" != NONE &&
2387   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2388 # Double any \ or $.
2389 # By default was `s,x,x', remove it if useless.
2390 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2391 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2392
2393 # expand $ac_aux_dir to an absolute path
2394 am_aux_dir=`cd $ac_aux_dir && pwd`
2395
2396 if test x"${MISSING+set}" != xset; then
2397   case $am_aux_dir in
2398   *\ * | *\     *)
2399     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2400   *)
2401     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2402   esac
2403 fi
2404 # Use eval to expand $SHELL
2405 if eval "$MISSING --run true"; then
2406   am_missing_run="$MISSING --run "
2407 else
2408   am_missing_run=
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2410 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2411 fi
2412
2413 if test x"${install_sh}" != xset; then
2414   case $am_aux_dir in
2415   *\ * | *\     *)
2416     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2417   *)
2418     install_sh="\${SHELL} $am_aux_dir/install-sh"
2419   esac
2420 fi
2421
2422 # Installed binaries are usually stripped using `strip' when the user
2423 # run `make install-strip'.  However `strip' might not be the right
2424 # tool to use in cross-compilation environments, therefore Automake
2425 # will honor the `STRIP' environment variable to overrule this program.
2426 if test "$cross_compiling" != no; then
2427   if test -n "$ac_tool_prefix"; then
2428   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}strip; ac_word=$2
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2431 $as_echo_n "checking for $ac_word... " >&6; }
2432 if test "${ac_cv_prog_STRIP+set}" = set; then :
2433   $as_echo_n "(cached) " >&6
2434 else
2435   if test -n "$STRIP"; then
2436   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2440 do
2441   IFS=$as_save_IFS
2442   test -z "$as_dir" && as_dir=.
2443     for ac_exec_ext in '' $ac_executable_extensions; do
2444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2447     break 2
2448   fi
2449 done
2450   done
2451 IFS=$as_save_IFS
2452
2453 fi
2454 fi
2455 STRIP=$ac_cv_prog_STRIP
2456 if test -n "$STRIP"; then
2457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2458 $as_echo "$STRIP" >&6; }
2459 else
2460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461 $as_echo "no" >&6; }
2462 fi
2463
2464
2465 fi
2466 if test -z "$ac_cv_prog_STRIP"; then
2467   ac_ct_STRIP=$STRIP
2468   # Extract the first word of "strip", so it can be a program name with args.
2469 set dummy strip; ac_word=$2
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2473   $as_echo_n "(cached) " >&6
2474 else
2475   if test -n "$ac_ct_STRIP"; then
2476   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481   IFS=$as_save_IFS
2482   test -z "$as_dir" && as_dir=.
2483     for ac_exec_ext in '' $ac_executable_extensions; do
2484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485     ac_cv_prog_ac_ct_STRIP="strip"
2486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487     break 2
2488   fi
2489 done
2490   done
2491 IFS=$as_save_IFS
2492
2493 fi
2494 fi
2495 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2496 if test -n "$ac_ct_STRIP"; then
2497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2498 $as_echo "$ac_ct_STRIP" >&6; }
2499 else
2500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501 $as_echo "no" >&6; }
2502 fi
2503
2504   if test "x$ac_ct_STRIP" = x; then
2505     STRIP=":"
2506   else
2507     case $cross_compiling:$ac_tool_warned in
2508 yes:)
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2511 ac_tool_warned=yes ;;
2512 esac
2513     STRIP=$ac_ct_STRIP
2514   fi
2515 else
2516   STRIP="$ac_cv_prog_STRIP"
2517 fi
2518
2519 fi
2520 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2521
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2523 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2524 if test -z "$MKDIR_P"; then
2525   if test "${ac_cv_path_mkdir+set}" = set; then :
2526   $as_echo_n "(cached) " >&6
2527 else
2528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2530 do
2531   IFS=$as_save_IFS
2532   test -z "$as_dir" && as_dir=.
2533     for ac_prog in mkdir gmkdir; do
2534          for ac_exec_ext in '' $ac_executable_extensions; do
2535            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2536            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2537              'mkdir (GNU coreutils) '* | \
2538              'mkdir (coreutils) '* | \
2539              'mkdir (fileutils) '4.1*)
2540                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2541                break 3;;
2542            esac
2543          done
2544        done
2545   done
2546 IFS=$as_save_IFS
2547
2548 fi
2549
2550   test -d ./--version && rmdir ./--version
2551   if test "${ac_cv_path_mkdir+set}" = set; then
2552     MKDIR_P="$ac_cv_path_mkdir -p"
2553   else
2554     # As a last resort, use the slow shell script.  Don't cache a
2555     # value for MKDIR_P within a source directory, because that will
2556     # break other packages using the cache if that directory is
2557     # removed, or if the value is a relative name.
2558     MKDIR_P="$ac_install_sh -d"
2559   fi
2560 fi
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2562 $as_echo "$MKDIR_P" >&6; }
2563
2564 mkdir_p="$MKDIR_P"
2565 case $mkdir_p in
2566   [\\/$]* | ?:[\\/]*) ;;
2567   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2568 esac
2569
2570 for ac_prog in gawk mawk nawk awk
2571 do
2572   # Extract the first word of "$ac_prog", so it can be a program name with args.
2573 set dummy $ac_prog; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if test "${ac_cv_prog_AWK+set}" = set; then :
2577   $as_echo_n "(cached) " >&6
2578 else
2579   if test -n "$AWK"; then
2580   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585   IFS=$as_save_IFS
2586   test -z "$as_dir" && as_dir=.
2587     for ac_exec_ext in '' $ac_executable_extensions; do
2588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2589     ac_cv_prog_AWK="$ac_prog"
2590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591     break 2
2592   fi
2593 done
2594   done
2595 IFS=$as_save_IFS
2596
2597 fi
2598 fi
2599 AWK=$ac_cv_prog_AWK
2600 if test -n "$AWK"; then
2601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2602 $as_echo "$AWK" >&6; }
2603 else
2604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606 fi
2607
2608
2609   test -n "$AWK" && break
2610 done
2611
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2613 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2614 set x ${MAKE-make}
2615 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2616 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2617   $as_echo_n "(cached) " >&6
2618 else
2619   cat >conftest.make <<\_ACEOF
2620 SHELL = /bin/sh
2621 all:
2622         @echo '@@@%%%=$(MAKE)=@@@%%%'
2623 _ACEOF
2624 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2625 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2626   *@@@%%%=?*=@@@%%%*)
2627     eval ac_cv_prog_make_${ac_make}_set=yes;;
2628   *)
2629     eval ac_cv_prog_make_${ac_make}_set=no;;
2630 esac
2631 rm -f conftest.make
2632 fi
2633 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2636   SET_MAKE=
2637 else
2638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2640   SET_MAKE="MAKE=${MAKE-make}"
2641 fi
2642
2643 rm -rf .tst 2>/dev/null
2644 mkdir .tst 2>/dev/null
2645 if test -d .tst; then
2646   am__leading_dot=.
2647 else
2648   am__leading_dot=_
2649 fi
2650 rmdir .tst 2>/dev/null
2651
2652 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2653   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2654   # is not polluted with repeated "-I."
2655   am__isrc=' -I$(srcdir)'
2656   # test to see if srcdir already configured
2657   if test -f $srcdir/config.status; then
2658     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2659   fi
2660 fi
2661
2662 # test whether we have cygpath
2663 if test -z "$CYGPATH_W"; then
2664   if (cygpath --version) >/dev/null 2>/dev/null; then
2665     CYGPATH_W='cygpath -w'
2666   else
2667     CYGPATH_W=echo
2668   fi
2669 fi
2670
2671
2672 # Define the identity of the package.
2673  PACKAGE='xf86-input-synaptics'
2674  VERSION='1.4.0'
2675
2676
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE "$PACKAGE"
2679 _ACEOF
2680
2681
2682 cat >>confdefs.h <<_ACEOF
2683 #define VERSION "$VERSION"
2684 _ACEOF
2685
2686 # Some tools Automake needs.
2687
2688 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2689
2690
2691 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2692
2693
2694 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2695
2696
2697 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2698
2699
2700 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2701
2702 # We need awk for the "check" target.  The system "awk" is bad on
2703 # some platforms.
2704 # Always define AMTAR for backward compatibility.
2705
2706 AMTAR=${AMTAR-"${am_missing_run}tar"}
2707
2708 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2709
2710
2711
2712
2713
2714
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2716 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2717     # Check whether --enable-maintainer-mode was given.
2718 if test "${enable_maintainer_mode+set}" = set; then :
2719   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2720 else
2721   USE_MAINTAINER_MODE=no
2722 fi
2723
2724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2725 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2726    if test $USE_MAINTAINER_MODE = yes; then
2727   MAINTAINER_MODE_TRUE=
2728   MAINTAINER_MODE_FALSE='#'
2729 else
2730   MAINTAINER_MODE_TRUE='#'
2731   MAINTAINER_MODE_FALSE=
2732 fi
2733
2734   MAINT=$MAINTAINER_MODE_TRUE
2735
2736
2737
2738 # Initialize libtool
2739 # Check whether --enable-static was given.
2740 if test "${enable_static+set}" = set; then :
2741   enableval=$enable_static; p=${PACKAGE-default}
2742     case $enableval in
2743     yes) enable_static=yes ;;
2744     no) enable_static=no ;;
2745     *)
2746      enable_static=no
2747       # Look at the argument we got.  We use all the common list separators.
2748       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2749       for pkg in $enableval; do
2750         IFS="$lt_save_ifs"
2751         if test "X$pkg" = "X$p"; then
2752           enable_static=yes
2753         fi
2754       done
2755       IFS="$lt_save_ifs"
2756       ;;
2757     esac
2758 else
2759   enable_static=no
2760 fi
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770 case `pwd` in
2771   *\ * | *\     *)
2772     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2773 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2774 esac
2775
2776
2777
2778 macro_version='2.2.10'
2779 macro_revision='1.3175'
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793 ltmain="$ac_aux_dir/ltmain.sh"
2794
2795 # Make sure we can run config.sub.
2796 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2797   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2798
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2800 $as_echo_n "checking build system type... " >&6; }
2801 if test "${ac_cv_build+set}" = set; then :
2802   $as_echo_n "(cached) " >&6
2803 else
2804   ac_build_alias=$build_alias
2805 test "x$ac_build_alias" = x &&
2806   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2807 test "x$ac_build_alias" = x &&
2808   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2809 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2810   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2811
2812 fi
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2814 $as_echo "$ac_cv_build" >&6; }
2815 case $ac_cv_build in
2816 *-*-*) ;;
2817 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2818 esac
2819 build=$ac_cv_build
2820 ac_save_IFS=$IFS; IFS='-'
2821 set x $ac_cv_build
2822 shift
2823 build_cpu=$1
2824 build_vendor=$2
2825 shift; shift
2826 # Remember, the first character of IFS is used to create $*,
2827 # except with old shells:
2828 build_os=$*
2829 IFS=$ac_save_IFS
2830 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2831
2832
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2834 $as_echo_n "checking host system type... " >&6; }
2835 if test "${ac_cv_host+set}" = set; then :
2836   $as_echo_n "(cached) " >&6
2837 else
2838   if test "x$host_alias" = x; then
2839   ac_cv_host=$ac_cv_build
2840 else
2841   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2842     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2843 fi
2844
2845 fi
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2847 $as_echo "$ac_cv_host" >&6; }
2848 case $ac_cv_host in
2849 *-*-*) ;;
2850 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2851 esac
2852 host=$ac_cv_host
2853 ac_save_IFS=$IFS; IFS='-'
2854 set x $ac_cv_host
2855 shift
2856 host_cpu=$1
2857 host_vendor=$2
2858 shift; shift
2859 # Remember, the first character of IFS is used to create $*,
2860 # except with old shells:
2861 host_os=$*
2862 IFS=$ac_save_IFS
2863 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2864
2865
2866 # Backslashify metacharacters that are still active within
2867 # double-quoted strings.
2868 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2869
2870 # Same as above, but do not quote variable references.
2871 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2872
2873 # Sed substitution to delay expansion of an escaped shell variable in a
2874 # double_quote_subst'ed string.
2875 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2876
2877 # Sed substitution to delay expansion of an escaped single quote.
2878 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2879
2880 # Sed substitution to avoid accidental globbing in evaled expressions
2881 no_glob_subst='s/\*/\\\*/g'
2882
2883 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2884 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2885 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2886
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2888 $as_echo_n "checking how to print strings... " >&6; }
2889 # Test print first, because it will be a builtin if present.
2890 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2891    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2892   ECHO='print -r --'
2893 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2894   ECHO='printf %s\n'
2895 else
2896   # Use this function as a fallback that always works.
2897   func_fallback_echo ()
2898   {
2899     eval 'cat <<_LTECHO_EOF
2900 $1
2901 _LTECHO_EOF'
2902   }
2903   ECHO='func_fallback_echo'
2904 fi
2905
2906 # func_echo_all arg...
2907 # Invoke $ECHO with all args, space-separated.
2908 func_echo_all ()
2909 {
2910     $ECHO ""
2911 }
2912
2913 case "$ECHO" in
2914   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2915 $as_echo "printf" >&6; } ;;
2916   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2917 $as_echo "print -r" >&6; } ;;
2918   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2919 $as_echo "cat" >&6; } ;;
2920 esac
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935 DEPDIR="${am__leading_dot}deps"
2936
2937 ac_config_commands="$ac_config_commands depfiles"
2938
2939
2940 am_make=${MAKE-make}
2941 cat > confinc << 'END'
2942 am__doit:
2943         @echo this is the am__doit target
2944 .PHONY: am__doit
2945 END
2946 # If we don't find an include directive, just comment out the code.
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2948 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2949 am__include="#"
2950 am__quote=
2951 _am_result=none
2952 # First try GNU make style include.
2953 echo "include confinc" > confmf
2954 # Ignore all kinds of additional output from `make'.
2955 case `$am_make -s -f confmf 2> /dev/null` in #(
2956 *the\ am__doit\ target*)
2957   am__include=include
2958   am__quote=
2959   _am_result=GNU
2960   ;;
2961 esac
2962 # Now try BSD make style include.
2963 if test "$am__include" = "#"; then
2964    echo '.include "confinc"' > confmf
2965    case `$am_make -s -f confmf 2> /dev/null` in #(
2966    *the\ am__doit\ target*)
2967      am__include=.include
2968      am__quote="\""
2969      _am_result=BSD
2970      ;;
2971    esac
2972 fi
2973
2974
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2976 $as_echo "$_am_result" >&6; }
2977 rm -f confinc confmf
2978
2979 # Check whether --enable-dependency-tracking was given.
2980 if test "${enable_dependency_tracking+set}" = set; then :
2981   enableval=$enable_dependency_tracking;
2982 fi
2983
2984 if test "x$enable_dependency_tracking" != xno; then
2985   am_depcomp="$ac_aux_dir/depcomp"
2986   AMDEPBACKSLASH='\'
2987 fi
2988  if test "x$enable_dependency_tracking" != xno; then
2989   AMDEP_TRUE=
2990   AMDEP_FALSE='#'
2991 else
2992   AMDEP_TRUE='#'
2993   AMDEP_FALSE=
2994 fi
2995
2996
2997 ac_ext=c
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002 if test -n "$ac_tool_prefix"; then
3003   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if test "${ac_cv_prog_CC+set}" = set; then :
3008   $as_echo_n "(cached) " >&6
3009 else
3010   if test -n "$CC"; then
3011   ac_cv_prog_CC="$CC" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016   IFS=$as_save_IFS
3017   test -z "$as_dir" && as_dir=.
3018     for ac_exec_ext in '' $ac_executable_extensions; do
3019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022     break 2
3023   fi
3024 done
3025   done
3026 IFS=$as_save_IFS
3027
3028 fi
3029 fi
3030 CC=$ac_cv_prog_CC
3031 if test -n "$CC"; then
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3033 $as_echo "$CC" >&6; }
3034 else
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 fi
3038
3039
3040 fi
3041 if test -z "$ac_cv_prog_CC"; then
3042   ac_ct_CC=$CC
3043   # Extract the first word of "gcc", so it can be a program name with args.
3044 set dummy gcc; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3048   $as_echo_n "(cached) " >&6
3049 else
3050   if test -n "$ac_ct_CC"; then
3051   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056   IFS=$as_save_IFS
3057   test -z "$as_dir" && as_dir=.
3058     for ac_exec_ext in '' $ac_executable_extensions; do
3059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060     ac_cv_prog_ac_ct_CC="gcc"
3061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062     break 2
3063   fi
3064 done
3065   done
3066 IFS=$as_save_IFS
3067
3068 fi
3069 fi
3070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3071 if test -n "$ac_ct_CC"; then
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3073 $as_echo "$ac_ct_CC" >&6; }
3074 else
3075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3077 fi
3078
3079   if test "x$ac_ct_CC" = x; then
3080     CC=""
3081   else
3082     case $cross_compiling:$ac_tool_warned in
3083 yes:)
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3086 ac_tool_warned=yes ;;
3087 esac
3088     CC=$ac_ct_CC
3089   fi
3090 else
3091   CC="$ac_cv_prog_CC"
3092 fi
3093
3094 if test -z "$CC"; then
3095           if test -n "$ac_tool_prefix"; then
3096     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3097 set dummy ${ac_tool_prefix}cc; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_CC+set}" = set; then :
3101   $as_echo_n "(cached) " >&6
3102 else
3103   if test -n "$CC"; then
3104   ac_cv_prog_CC="$CC" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3108 do
3109   IFS=$as_save_IFS
3110   test -z "$as_dir" && as_dir=.
3111     for ac_exec_ext in '' $ac_executable_extensions; do
3112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113     ac_cv_prog_CC="${ac_tool_prefix}cc"
3114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115     break 2
3116   fi
3117 done
3118   done
3119 IFS=$as_save_IFS
3120
3121 fi
3122 fi
3123 CC=$ac_cv_prog_CC
3124 if test -n "$CC"; then
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3126 $as_echo "$CC" >&6; }
3127 else
3128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3130 fi
3131
3132
3133   fi
3134 fi
3135 if test -z "$CC"; then
3136   # Extract the first word of "cc", so it can be a program name with args.
3137 set dummy cc; ac_word=$2
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if test "${ac_cv_prog_CC+set}" = set; then :
3141   $as_echo_n "(cached) " >&6
3142 else
3143   if test -n "$CC"; then
3144   ac_cv_prog_CC="$CC" # Let the user override the test.
3145 else
3146   ac_prog_rejected=no
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150   IFS=$as_save_IFS
3151   test -z "$as_dir" && as_dir=.
3152     for ac_exec_ext in '' $ac_executable_extensions; do
3153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3155        ac_prog_rejected=yes
3156        continue
3157      fi
3158     ac_cv_prog_CC="cc"
3159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160     break 2
3161   fi
3162 done
3163   done
3164 IFS=$as_save_IFS
3165
3166 if test $ac_prog_rejected = yes; then
3167   # We found a bogon in the path, so make sure we never use it.
3168   set dummy $ac_cv_prog_CC
3169   shift
3170   if test $# != 0; then
3171     # We chose a different compiler from the bogus one.
3172     # However, it has the same basename, so the bogon will be chosen
3173     # first if we set CC to just the basename; use the full file name.
3174     shift
3175     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3176   fi
3177 fi
3178 fi
3179 fi
3180 CC=$ac_cv_prog_CC
3181 if test -n "$CC"; then
3182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3183 $as_echo "$CC" >&6; }
3184 else
3185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3187 fi
3188
3189
3190 fi
3191 if test -z "$CC"; then
3192   if test -n "$ac_tool_prefix"; then
3193   for ac_prog in cl.exe
3194   do
3195     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if test "${ac_cv_prog_CC+set}" = set; then :
3200   $as_echo_n "(cached) " >&6
3201 else
3202   if test -n "$CC"; then
3203   ac_cv_prog_CC="$CC" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208   IFS=$as_save_IFS
3209   test -z "$as_dir" && as_dir=.
3210     for ac_exec_ext in '' $ac_executable_extensions; do
3211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3212     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214     break 2
3215   fi
3216 done
3217   done
3218 IFS=$as_save_IFS
3219
3220 fi
3221 fi
3222 CC=$ac_cv_prog_CC
3223 if test -n "$CC"; then
3224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3225 $as_echo "$CC" >&6; }
3226 else
3227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3229 fi
3230
3231
3232     test -n "$CC" && break
3233   done
3234 fi
3235 if test -z "$CC"; then
3236   ac_ct_CC=$CC
3237   for ac_prog in cl.exe
3238 do
3239   # Extract the first word of "$ac_prog", so it can be a program name with args.
3240 set dummy $ac_prog; ac_word=$2
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3244   $as_echo_n "(cached) " >&6
3245 else
3246   if test -n "$ac_ct_CC"; then
3247   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3248 else
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3251 do
3252   IFS=$as_save_IFS
3253   test -z "$as_dir" && as_dir=.
3254     for ac_exec_ext in '' $ac_executable_extensions; do
3255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256     ac_cv_prog_ac_ct_CC="$ac_prog"
3257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258     break 2
3259   fi
3260 done
3261   done
3262 IFS=$as_save_IFS
3263
3264 fi
3265 fi
3266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3267 if test -n "$ac_ct_CC"; then
3268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3269 $as_echo "$ac_ct_CC" >&6; }
3270 else
3271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 fi
3274
3275
3276   test -n "$ac_ct_CC" && break
3277 done
3278
3279   if test "x$ac_ct_CC" = x; then
3280     CC=""
3281   else
3282     case $cross_compiling:$ac_tool_warned in
3283 yes:)
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3286 ac_tool_warned=yes ;;
3287 esac
3288     CC=$ac_ct_CC
3289   fi
3290 fi
3291
3292 fi
3293
3294
3295 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $? "no acceptable C compiler found in \$PATH
3298 See \`config.log' for more details" "$LINENO" 5; }
3299
3300 # Provide some information about the compiler.
3301 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3302 set X $ac_compile
3303 ac_compiler=$2
3304 for ac_option in --version -v -V -qversion; do
3305   { { ac_try="$ac_compiler $ac_option >&5"
3306 case "(($ac_try" in
3307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308   *) ac_try_echo=$ac_try;;
3309 esac
3310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311 $as_echo "$ac_try_echo"; } >&5
3312   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3313   ac_status=$?
3314   if test -s conftest.err; then
3315     sed '10a\
3316 ... rest of stderr output deleted ...
3317          10q' conftest.err >conftest.er1
3318     cat conftest.er1 >&5
3319   fi
3320   rm -f conftest.er1 conftest.err
3321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322   test $ac_status = 0; }
3323 done
3324
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h.  */
3327
3328 int
3329 main ()
3330 {
3331
3332   ;
3333   return 0;
3334 }
3335 _ACEOF
3336 ac_clean_files_save=$ac_clean_files
3337 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3338 # Try to create an executable without -o first, disregard a.out.
3339 # It will help us diagnose broken compilers, and finding out an intuition
3340 # of exeext.
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3342 $as_echo_n "checking whether the C compiler works... " >&6; }
3343 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3344
3345 # The possible output files:
3346 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3347
3348 ac_rmfiles=
3349 for ac_file in $ac_files
3350 do
3351   case $ac_file in
3352     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3353     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3354   esac
3355 done
3356 rm -f $ac_rmfiles
3357
3358 if { { ac_try="$ac_link_default"
3359 case "(($ac_try" in
3360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361   *) ac_try_echo=$ac_try;;
3362 esac
3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364 $as_echo "$ac_try_echo"; } >&5
3365   (eval "$ac_link_default") 2>&5
3366   ac_status=$?
3367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368   test $ac_status = 0; }; then :
3369   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3370 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3371 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3372 # so that the user can short-circuit this test for compilers unknown to
3373 # Autoconf.
3374 for ac_file in $ac_files ''
3375 do
3376   test -f "$ac_file" || continue
3377   case $ac_file in
3378     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3379         ;;
3380     [ab].out )
3381         # We found the default executable, but exeext='' is most
3382         # certainly right.
3383         break;;
3384     *.* )
3385         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3386         then :; else
3387            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3388         fi
3389         # We set ac_cv_exeext here because the later test for it is not
3390         # safe: cross compilers may not add the suffix if given an `-o'
3391         # argument, so we may need to know it at that point already.
3392         # Even if this section looks crufty: it has the advantage of
3393         # actually working.
3394         break;;
3395     * )
3396         break;;
3397   esac
3398 done
3399 test "$ac_cv_exeext" = no && ac_cv_exeext=
3400
3401 else
3402   ac_file=''
3403 fi
3404 if test -z "$ac_file"; then :
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3407 $as_echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error 77 "C compiler cannot create executables
3413 See \`config.log' for more details" "$LINENO" 5; }
3414 else
3415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3416 $as_echo "yes" >&6; }
3417 fi
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3419 $as_echo_n "checking for C compiler default output file name... " >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3421 $as_echo "$ac_file" >&6; }
3422 ac_exeext=$ac_cv_exeext
3423
3424 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3425 ac_clean_files=$ac_clean_files_save
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3427 $as_echo_n "checking for suffix of executables... " >&6; }
3428 if { { ac_try="$ac_link"
3429 case "(($ac_try" in
3430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431   *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435   (eval "$ac_link") 2>&5
3436   ac_status=$?
3437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438   test $ac_status = 0; }; then :
3439   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3440 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3441 # work properly (i.e., refer to `conftest.exe'), while it won't with
3442 # `rm'.
3443 for ac_file in conftest.exe conftest conftest.*; do
3444   test -f "$ac_file" || continue
3445   case $ac_file in
3446     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3447     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3448           break;;
3449     * ) break;;
3450   esac
3451 done
3452 else
3453   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3456 See \`config.log' for more details" "$LINENO" 5; }
3457 fi
3458 rm -f conftest conftest$ac_cv_exeext
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3460 $as_echo "$ac_cv_exeext" >&6; }
3461
3462 rm -f conftest.$ac_ext
3463 EXEEXT=$ac_cv_exeext
3464 ac_exeext=$EXEEXT
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h.  */
3467 #include <stdio.h>
3468 int
3469 main ()
3470 {
3471 FILE *f = fopen ("conftest.out", "w");
3472  return ferror (f) || fclose (f) != 0;
3473
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 ac_clean_files="$ac_clean_files conftest.out"
3479 # Check that the compiler produces executables we can run.  If not, either
3480 # the compiler is broken, or we cross compile.
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3482 $as_echo_n "checking whether we are cross compiling... " >&6; }
3483 if test "$cross_compiling" != yes; then
3484   { { ac_try="$ac_link"
3485 case "(($ac_try" in
3486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487   *) ac_try_echo=$ac_try;;
3488 esac
3489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490 $as_echo "$ac_try_echo"; } >&5
3491   (eval "$ac_link") 2>&5
3492   ac_status=$?
3493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494   test $ac_status = 0; }
3495   if { ac_try='./conftest$ac_cv_exeext'
3496   { { case "(($ac_try" in
3497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498   *) ac_try_echo=$ac_try;;
3499 esac
3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502   (eval "$ac_try") 2>&5
3503   ac_status=$?
3504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505   test $ac_status = 0; }; }; then
3506     cross_compiling=no
3507   else
3508     if test "$cross_compiling" = maybe; then
3509         cross_compiling=yes
3510     else
3511         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 as_fn_error $? "cannot run C compiled programs.
3514 If you meant to cross compile, use \`--host'.
3515 See \`config.log' for more details" "$LINENO" 5; }
3516     fi
3517   fi
3518 fi
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3520 $as_echo "$cross_compiling" >&6; }
3521
3522 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3523 ac_clean_files=$ac_clean_files_save
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3525 $as_echo_n "checking for suffix of object files... " >&6; }
3526 if test "${ac_cv_objext+set}" = set; then :
3527   $as_echo_n "(cached) " >&6
3528 else
3529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h.  */
3531
3532 int
3533 main ()
3534 {
3535
3536   ;
3537   return 0;
3538 }
3539 _ACEOF
3540 rm -f conftest.o conftest.obj
3541 if { { ac_try="$ac_compile"
3542 case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548   (eval "$ac_compile") 2>&5
3549   ac_status=$?
3550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551   test $ac_status = 0; }; then :
3552   for ac_file in conftest.o conftest.obj conftest.*; do
3553   test -f "$ac_file" || continue;
3554   case $ac_file in
3555     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3556     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3557        break;;
3558   esac
3559 done
3560 else
3561   $as_echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 as_fn_error $? "cannot compute suffix of object files: cannot compile
3567 See \`config.log' for more details" "$LINENO" 5; }
3568 fi
3569 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3570 fi
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3572 $as_echo "$ac_cv_objext" >&6; }
3573 OBJEXT=$ac_cv_objext
3574 ac_objext=$OBJEXT
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3576 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3577 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3578   $as_echo_n "(cached) " >&6
3579 else
3580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h.  */
3582
3583 int
3584 main ()
3585 {
3586 #ifndef __GNUC__
3587        choke me
3588 #endif
3589
3590   ;
3591   return 0;
3592 }
3593 _ACEOF
3594 if ac_fn_c_try_compile "$LINENO"; then :
3595   ac_compiler_gnu=yes
3596 else
3597   ac_compiler_gnu=no
3598 fi
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3601
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3604 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3605 if test $ac_compiler_gnu = yes; then
3606   GCC=yes
3607 else
3608   GCC=
3609 fi
3610 ac_test_CFLAGS=${CFLAGS+set}
3611 ac_save_CFLAGS=$CFLAGS
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3613 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3614 if test "${ac_cv_prog_cc_g+set}" = set; then :
3615   $as_echo_n "(cached) " >&6
3616 else
3617   ac_save_c_werror_flag=$ac_c_werror_flag
3618    ac_c_werror_flag=yes
3619    ac_cv_prog_cc_g=no
3620    CFLAGS="-g"
3621    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h.  */
3623
3624 int
3625 main ()
3626 {
3627
3628   ;
3629   return 0;
3630 }
3631 _ACEOF
3632 if ac_fn_c_try_compile "$LINENO"; then :
3633   ac_cv_prog_cc_g=yes
3634 else
3635   CFLAGS=""
3636       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h.  */
3638
3639 int
3640 main ()
3641 {
3642
3643   ;
3644   return 0;
3645 }
3646 _ACEOF
3647 if ac_fn_c_try_compile "$LINENO"; then :
3648
3649 else
3650   ac_c_werror_flag=$ac_save_c_werror_flag
3651          CFLAGS="-g"
3652          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h.  */
3654
3655 int
3656 main ()
3657 {
3658
3659   ;
3660   return 0;
3661 }
3662 _ACEOF
3663 if ac_fn_c_try_compile "$LINENO"; then :
3664   ac_cv_prog_cc_g=yes
3665 fi
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 fi
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 fi
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671    ac_c_werror_flag=$ac_save_c_werror_flag
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3674 $as_echo "$ac_cv_prog_cc_g" >&6; }
3675 if test "$ac_test_CFLAGS" = set; then
3676   CFLAGS=$ac_save_CFLAGS
3677 elif test $ac_cv_prog_cc_g = yes; then
3678   if test "$GCC" = yes; then
3679     CFLAGS="-g -O2"
3680   else
3681     CFLAGS="-g"
3682   fi
3683 else
3684   if test "$GCC" = yes; then
3685     CFLAGS="-O2"
3686   else
3687     CFLAGS=
3688   fi
3689 fi
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3691 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3692 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3693   $as_echo_n "(cached) " >&6
3694 else
3695   ac_cv_prog_cc_c89=no
3696 ac_save_CC=$CC
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h.  */
3699 #include <stdarg.h>
3700 #include <stdio.h>
3701 #include <sys/types.h>
3702 #include <sys/stat.h>
3703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3704 struct buf { int x; };
3705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3706 static char *e (p, i)
3707      char **p;
3708      int i;
3709 {
3710   return p[i];
3711 }
3712 static char *f (char * (*g) (char **, int), char **p, ...)
3713 {
3714   char *s;
3715   va_list v;
3716   va_start (v,p);
3717   s = g (p, va_arg (v,int));
3718   va_end (v);
3719   return s;
3720 }
3721
3722 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3723    function prototypes and stuff, but not '\xHH' hex character constants.
3724    These don't provoke an error unfortunately, instead are silently treated
3725    as 'x'.  The following induces an error, until -std is added to get
3726    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3727    array size at least.  It's necessary to write '\x00'==0 to get something
3728    that's true only with -std.  */
3729 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3730
3731 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3732    inside strings and character constants.  */
3733 #define FOO(x) 'x'
3734 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3735
3736 int test (int i, double x);
3737 struct s1 {int (*f) (int a);};
3738 struct s2 {int (*f) (double a);};
3739 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3740 int argc;
3741 char **argv;
3742 int
3743 main ()
3744 {
3745 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3746   ;
3747   return 0;
3748 }
3749 _ACEOF
3750 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3751         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3752 do
3753   CC="$ac_save_CC $ac_arg"
3754   if ac_fn_c_try_compile "$LINENO"; then :
3755   ac_cv_prog_cc_c89=$ac_arg
3756 fi
3757 rm -f core conftest.err conftest.$ac_objext
3758   test "x$ac_cv_prog_cc_c89" != "xno" && break
3759 done
3760 rm -f conftest.$ac_ext
3761 CC=$ac_save_CC
3762
3763 fi
3764 # AC_CACHE_VAL
3765 case "x$ac_cv_prog_cc_c89" in
3766   x)
3767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3768 $as_echo "none needed" >&6; } ;;
3769   xno)
3770     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3771 $as_echo "unsupported" >&6; } ;;
3772   *)
3773     CC="$CC $ac_cv_prog_cc_c89"
3774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3775 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3776 esac
3777 if test "x$ac_cv_prog_cc_c89" != xno; then :
3778
3779 fi
3780
3781 ac_ext=c
3782 ac_cpp='$CPP $CPPFLAGS'
3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786
3787 depcc="$CC"   am_compiler_list=
3788
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3790 $as_echo_n "checking dependency style of $depcc... " >&6; }
3791 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3792   $as_echo_n "(cached) " >&6
3793 else
3794   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3795   # We make a subdir and do the tests there.  Otherwise we can end up
3796   # making bogus files that we don't know about and never remove.  For
3797   # instance it was reported that on HP-UX the gcc test will end up
3798   # making a dummy file named `D' -- because `-MD' means `put the output
3799   # in D'.
3800   mkdir conftest.dir
3801   # Copy depcomp to subdir because otherwise we won't find it if we're
3802   # using a relative directory.
3803   cp "$am_depcomp" conftest.dir
3804   cd conftest.dir
3805   # We will build objects and dependencies in a subdirectory because
3806   # it helps to detect inapplicable dependency modes.  For instance
3807   # both Tru64's cc and ICC support -MD to output dependencies as a
3808   # side effect of compilation, but ICC will put the dependencies in
3809   # the current directory while Tru64 will put them in the object
3810   # directory.
3811   mkdir sub
3812
3813   am_cv_CC_dependencies_compiler_type=none
3814   if test "$am_compiler_list" = ""; then
3815      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3816   fi
3817   am__universal=false
3818   case " $depcc " in #(
3819      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3820      esac
3821
3822   for depmode in $am_compiler_list; do
3823     # Setup a source with many dependencies, because some compilers
3824     # like to wrap large dependency lists on column 80 (with \), and
3825     # we should not choose a depcomp mode which is confused by this.
3826     #
3827     # We need to recreate these files for each test, as the compiler may
3828     # overwrite some of them when testing with obscure command lines.
3829     # This happens at least with the AIX C compiler.
3830     : > sub/conftest.c
3831     for i in 1 2 3 4 5 6; do
3832       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3833       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3834       # Solaris 8's {/usr,}/bin/sh.
3835       touch sub/conftst$i.h
3836     done
3837     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3838
3839     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3840     # mode.  It turns out that the SunPro C++ compiler does not properly
3841     # handle `-M -o', and we need to detect this.  Also, some Intel
3842     # versions had trouble with output in subdirs
3843     am__obj=sub/conftest.${OBJEXT-o}
3844     am__minus_obj="-o $am__obj"
3845     case $depmode in
3846     gcc)
3847       # This depmode causes a compiler race in universal mode.
3848       test "$am__universal" = false || continue
3849       ;;
3850     nosideeffect)
3851       # after this tag, mechanisms are not by side-effect, so they'll
3852       # only be used when explicitly requested
3853       if test "x$enable_dependency_tracking" = xyes; then
3854         continue
3855       else
3856         break
3857       fi
3858       ;;
3859     msvisualcpp | msvcmsys)
3860       # This compiler won't grok `-c -o', but also, the minuso test has
3861       # not run yet.  These depmodes are late enough in the game, and
3862       # so weak that their functioning should not be impacted.
3863       am__obj=conftest.${OBJEXT-o}
3864       am__minus_obj=
3865       ;;
3866     none) break ;;
3867     esac
3868     if depmode=$depmode \
3869        source=sub/conftest.c object=$am__obj \
3870        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3871        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3872          >/dev/null 2>conftest.err &&
3873        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3874        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3875        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3876        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3877       # icc doesn't choke on unknown options, it will just issue warnings
3878       # or remarks (even with -Werror).  So we grep stderr for any message
3879       # that says an option was ignored or not supported.
3880       # When given -MP, icc 7.0 and 7.1 complain thusly:
3881       #   icc: Command line warning: ignoring option '-M'; no argument required
3882       # The diagnosis changed in icc 8.0:
3883       #   icc: Command line remark: option '-MP' not supported
3884       if (grep 'ignoring option' conftest.err ||
3885           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3886         am_cv_CC_dependencies_compiler_type=$depmode
3887         break
3888       fi
3889     fi
3890   done
3891
3892   cd ..
3893   rm -rf conftest.dir
3894 else
3895   am_cv_CC_dependencies_compiler_type=none
3896 fi
3897
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3900 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3901 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3902
3903  if
3904   test "x$enable_dependency_tracking" != xno \
3905   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3906   am__fastdepCC_TRUE=
3907   am__fastdepCC_FALSE='#'
3908 else
3909   am__fastdepCC_TRUE='#'
3910   am__fastdepCC_FALSE=
3911 fi
3912
3913
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3915 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3916 if test "${ac_cv_path_SED+set}" = set; then :
3917   $as_echo_n "(cached) " >&6
3918 else
3919             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3920      for ac_i in 1 2 3 4 5 6 7; do
3921        ac_script="$ac_script$as_nl$ac_script"
3922      done
3923      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3924      { ac_script=; unset ac_script;}
3925      if test -z "$SED"; then
3926   ac_path_SED_found=false
3927   # Loop through the user's path and test for each of PROGNAME-LIST
3928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931   IFS=$as_save_IFS
3932   test -z "$as_dir" && as_dir=.
3933     for ac_prog in sed gsed; do
3934     for ac_exec_ext in '' $ac_executable_extensions; do
3935       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3936       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3937 # Check for GNU ac_path_SED and select it if it is found.
3938   # Check for GNU $ac_path_SED
3939 case `"$ac_path_SED" --version 2>&1` in
3940 *GNU*)
3941   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3942 *)
3943   ac_count=0
3944   $as_echo_n 0123456789 >"conftest.in"
3945   while :
3946   do
3947     cat "conftest.in" "conftest.in" >"conftest.tmp"
3948     mv "conftest.tmp" "conftest.in"
3949     cp "conftest.in" "conftest.nl"
3950     $as_echo '' >> "conftest.nl"
3951     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3952     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3953     as_fn_arith $ac_count + 1 && ac_count=$as_val
3954     if test $ac_count -gt ${ac_path_SED_max-0}; then
3955       # Best one so far, save it but keep looking for a better one
3956       ac_cv_path_SED="$ac_path_SED"
3957       ac_path_SED_max=$ac_count
3958     fi
3959     # 10*(2^10) chars as input seems more than enough
3960     test $ac_count -gt 10 && break
3961   done
3962   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3963 esac
3964
3965       $ac_path_SED_found && break 3
3966     done
3967   done
3968   done
3969 IFS=$as_save_IFS
3970   if test -z "$ac_cv_path_SED"; then
3971     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3972   fi
3973 else
3974   ac_cv_path_SED=$SED
3975 fi
3976
3977 fi
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3979 $as_echo "$ac_cv_path_SED" >&6; }
3980  SED="$ac_cv_path_SED"
3981   rm -f conftest.sed
3982
3983 test -z "$SED" && SED=sed
3984 Xsed="$SED -e 1s/^X//"
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3997 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3998 if test "${ac_cv_path_GREP+set}" = set; then :
3999   $as_echo_n "(cached) " >&6
4000 else
4001   if test -z "$GREP"; then
4002   ac_path_GREP_found=false
4003   # Loop through the user's path and test for each of PROGNAME-LIST
4004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4006 do
4007   IFS=$as_save_IFS
4008   test -z "$as_dir" && as_dir=.
4009     for ac_prog in grep ggrep; do
4010     for ac_exec_ext in '' $ac_executable_extensions; do
4011       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4012       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4013 # Check for GNU ac_path_GREP and select it if it is found.
4014   # Check for GNU $ac_path_GREP
4015 case `"$ac_path_GREP" --version 2>&1` in
4016 *GNU*)
4017   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4018 *)
4019   ac_count=0
4020   $as_echo_n 0123456789 >"conftest.in"
4021   while :
4022   do
4023     cat "conftest.in" "conftest.in" >"conftest.tmp"
4024     mv "conftest.tmp" "conftest.in"
4025     cp "conftest.in" "conftest.nl"
4026     $as_echo 'GREP' >> "conftest.nl"
4027     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4028     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4029     as_fn_arith $ac_count + 1 && ac_count=$as_val
4030     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4031       # Best one so far, save it but keep looking for a better one
4032       ac_cv_path_GREP="$ac_path_GREP"
4033       ac_path_GREP_max=$ac_count
4034     fi
4035     # 10*(2^10) chars as input seems more than enough
4036     test $ac_count -gt 10 && break
4037   done
4038   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4039 esac
4040
4041       $ac_path_GREP_found && break 3
4042     done
4043   done
4044   done
4045 IFS=$as_save_IFS
4046   if test -z "$ac_cv_path_GREP"; then
4047     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4048   fi
4049 else
4050   ac_cv_path_GREP=$GREP
4051 fi
4052
4053 fi
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4055 $as_echo "$ac_cv_path_GREP" >&6; }
4056  GREP="$ac_cv_path_GREP"
4057
4058
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4060 $as_echo_n "checking for egrep... " >&6; }
4061 if test "${ac_cv_path_EGREP+set}" = set; then :
4062   $as_echo_n "(cached) " >&6
4063 else
4064   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4065    then ac_cv_path_EGREP="$GREP -E"
4066    else
4067      if test -z "$EGREP"; then
4068   ac_path_EGREP_found=false
4069   # Loop through the user's path and test for each of PROGNAME-LIST
4070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4072 do
4073   IFS=$as_save_IFS
4074   test -z "$as_dir" && as_dir=.
4075     for ac_prog in egrep; do
4076     for ac_exec_ext in '' $ac_executable_extensions; do
4077       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4078       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4079 # Check for GNU ac_path_EGREP and select it if it is found.
4080   # Check for GNU $ac_path_EGREP
4081 case `"$ac_path_EGREP" --version 2>&1` in
4082 *GNU*)
4083   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4084 *)
4085   ac_count=0
4086   $as_echo_n 0123456789 >"conftest.in"
4087   while :
4088   do
4089     cat "conftest.in" "conftest.in" >"conftest.tmp"
4090     mv "conftest.tmp" "conftest.in"
4091     cp "conftest.in" "conftest.nl"
4092     $as_echo 'EGREP' >> "conftest.nl"
4093     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4094     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4095     as_fn_arith $ac_count + 1 && ac_count=$as_val
4096     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4097       # Best one so far, save it but keep looking for a better one
4098       ac_cv_path_EGREP="$ac_path_EGREP"
4099       ac_path_EGREP_max=$ac_count
4100     fi
4101     # 10*(2^10) chars as input seems more than enough
4102     test $ac_count -gt 10 && break
4103   done
4104   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4105 esac
4106
4107       $ac_path_EGREP_found && break 3
4108     done
4109   done
4110   done
4111 IFS=$as_save_IFS
4112   if test -z "$ac_cv_path_EGREP"; then
4113     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4114   fi
4115 else
4116   ac_cv_path_EGREP=$EGREP
4117 fi
4118
4119    fi
4120 fi
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4122 $as_echo "$ac_cv_path_EGREP" >&6; }
4123  EGREP="$ac_cv_path_EGREP"
4124
4125
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4127 $as_echo_n "checking for fgrep... " >&6; }
4128 if test "${ac_cv_path_FGREP+set}" = set; then :
4129   $as_echo_n "(cached) " >&6
4130 else
4131   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4132    then ac_cv_path_FGREP="$GREP -F"
4133    else
4134      if test -z "$FGREP"; then
4135   ac_path_FGREP_found=false
4136   # Loop through the user's path and test for each of PROGNAME-LIST
4137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4139 do
4140   IFS=$as_save_IFS
4141   test -z "$as_dir" && as_dir=.
4142     for ac_prog in fgrep; do
4143     for ac_exec_ext in '' $ac_executable_extensions; do
4144       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4145       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4146 # Check for GNU ac_path_FGREP and select it if it is found.
4147   # Check for GNU $ac_path_FGREP
4148 case `"$ac_path_FGREP" --version 2>&1` in
4149 *GNU*)
4150   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4151 *)
4152   ac_count=0
4153   $as_echo_n 0123456789 >"conftest.in"
4154   while :
4155   do
4156     cat "conftest.in" "conftest.in" >"conftest.tmp"
4157     mv "conftest.tmp" "conftest.in"
4158     cp "conftest.in" "conftest.nl"
4159     $as_echo 'FGREP' >> "conftest.nl"
4160     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4161     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4162     as_fn_arith $ac_count + 1 && ac_count=$as_val
4163     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4164       # Best one so far, save it but keep looking for a better one
4165       ac_cv_path_FGREP="$ac_path_FGREP"
4166       ac_path_FGREP_max=$ac_count
4167     fi
4168     # 10*(2^10) chars as input seems more than enough
4169     test $ac_count -gt 10 && break
4170   done
4171   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4172 esac
4173
4174       $ac_path_FGREP_found && break 3
4175     done
4176   done
4177   done
4178 IFS=$as_save_IFS
4179   if test -z "$ac_cv_path_FGREP"; then
4180     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4181   fi
4182 else
4183   ac_cv_path_FGREP=$FGREP
4184 fi
4185
4186    fi
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4189 $as_echo "$ac_cv_path_FGREP" >&6; }
4190  FGREP="$ac_cv_path_FGREP"
4191
4192
4193 test -z "$GREP" && GREP=grep
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213 # Check whether --with-gnu-ld was given.
4214 if test "${with_gnu_ld+set}" = set; then :
4215   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4216 else
4217   with_gnu_ld=no
4218 fi
4219
4220 ac_prog=ld
4221 if test "$GCC" = yes; then
4222   # Check if gcc -print-prog-name=ld gives a path.
4223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4224 $as_echo_n "checking for ld used by $CC... " >&6; }
4225   case $host in
4226   *-*-mingw*)
4227     # gcc leaves a trailing carriage return which upsets mingw
4228     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4229   *)
4230     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4231   esac
4232   case $ac_prog in
4233     # Accept absolute paths.
4234     [\\/]* | ?:[\\/]*)
4235       re_direlt='/[^/][^/]*/\.\./'
4236       # Canonicalize the pathname of ld
4237       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4238       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4239         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4240       done
4241       test -z "$LD" && LD="$ac_prog"
4242       ;;
4243   "")
4244     # If it fails, then pretend we aren't using GCC.
4245     ac_prog=ld
4246     ;;
4247   *)
4248     # If it is relative, then search for the first ld in PATH.
4249     with_gnu_ld=unknown
4250     ;;
4251   esac
4252 elif test "$with_gnu_ld" = yes; then
4253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4254 $as_echo_n "checking for GNU ld... " >&6; }
4255 else
4256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4257 $as_echo_n "checking for non-GNU ld... " >&6; }
4258 fi
4259 if test "${lt_cv_path_LD+set}" = set; then :
4260   $as_echo_n "(cached) " >&6
4261 else
4262   if test -z "$LD"; then
4263   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4264   for ac_dir in $PATH; do
4265     IFS="$lt_save_ifs"
4266     test -z "$ac_dir" && ac_dir=.
4267     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4268       lt_cv_path_LD="$ac_dir/$ac_prog"
4269       # Check to see if the program is GNU ld.  I'd rather use --version,
4270       # but apparently some variants of GNU ld only accept -v.
4271       # Break only if it was the GNU/non-GNU ld that we prefer.
4272       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4273       *GNU* | *'with BFD'*)
4274         test "$with_gnu_ld" != no && break
4275         ;;
4276       *)
4277         test "$with_gnu_ld" != yes && break
4278         ;;
4279       esac
4280     fi
4281   done
4282   IFS="$lt_save_ifs"
4283 else
4284   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4285 fi
4286 fi
4287
4288 LD="$lt_cv_path_LD"
4289 if test -n "$LD"; then
4290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4291 $as_echo "$LD" >&6; }
4292 else
4293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4295 fi
4296 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4298 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4299 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4300   $as_echo_n "(cached) " >&6
4301 else
4302   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4303 case `$LD -v 2>&1 </dev/null` in
4304 *GNU* | *'with BFD'*)
4305   lt_cv_prog_gnu_ld=yes
4306   ;;
4307 *)
4308   lt_cv_prog_gnu_ld=no
4309   ;;
4310 esac
4311 fi
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4313 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4314 with_gnu_ld=$lt_cv_prog_gnu_ld
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4325 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4326 if test "${lt_cv_path_NM+set}" = set; then :
4327   $as_echo_n "(cached) " >&6
4328 else
4329   if test -n "$NM"; then
4330   # Let the user override the test.
4331   lt_cv_path_NM="$NM"
4332 else
4333   lt_nm_to_check="${ac_tool_prefix}nm"
4334   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4335     lt_nm_to_check="$lt_nm_to_check nm"
4336   fi
4337   for lt_tmp_nm in $lt_nm_to_check; do
4338     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4339     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4340       IFS="$lt_save_ifs"
4341       test -z "$ac_dir" && ac_dir=.
4342       tmp_nm="$ac_dir/$lt_tmp_nm"
4343       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4344         # Check to see if the nm accepts a BSD-compat flag.
4345         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4346         #   nm: unknown option "B" ignored
4347         # Tru64's nm complains that /dev/null is an invalid object file
4348         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4349         */dev/null* | *'Invalid file or object type'*)
4350           lt_cv_path_NM="$tmp_nm -B"
4351           break
4352           ;;
4353         *)
4354           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4355           */dev/null*)
4356             lt_cv_path_NM="$tmp_nm -p"
4357             break
4358             ;;
4359           *)
4360             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4361             continue # so that we can try to find one that supports BSD flags
4362             ;;
4363           esac
4364           ;;
4365         esac
4366       fi
4367     done
4368     IFS="$lt_save_ifs"
4369   done
4370   : ${lt_cv_path_NM=no}
4371 fi
4372 fi
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4374 $as_echo "$lt_cv_path_NM" >&6; }
4375 if test "$lt_cv_path_NM" != "no"; then
4376   NM="$lt_cv_path_NM"
4377 else
4378   # Didn't find any BSD compatible name lister, look for dumpbin.
4379   if test -n "$DUMPBIN"; then :
4380     # Let the user override the test.
4381   else
4382     if test -n "$ac_tool_prefix"; then
4383   for ac_prog in dumpbin "link -dump"
4384   do
4385     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4390   $as_echo_n "(cached) " >&6
4391 else
4392   if test -n "$DUMPBIN"; then
4393   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398   IFS=$as_save_IFS
4399   test -z "$as_dir" && as_dir=.
4400     for ac_exec_ext in '' $ac_executable_extensions; do
4401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404     break 2
4405   fi
4406 done
4407   done
4408 IFS=$as_save_IFS
4409
4410 fi
4411 fi
4412 DUMPBIN=$ac_cv_prog_DUMPBIN
4413 if test -n "$DUMPBIN"; then
4414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4415 $as_echo "$DUMPBIN" >&6; }
4416 else
4417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4419 fi
4420
4421
4422     test -n "$DUMPBIN" && break
4423   done
4424 fi
4425 if test -z "$DUMPBIN"; then
4426   ac_ct_DUMPBIN=$DUMPBIN
4427   for ac_prog in dumpbin "link -dump"
4428 do
4429   # Extract the first word of "$ac_prog", so it can be a program name with args.
4430 set dummy $ac_prog; ac_word=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436   if test -n "$ac_ct_DUMPBIN"; then
4437   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444     for ac_exec_ext in '' $ac_executable_extensions; do
4445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4446     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448     break 2
4449   fi
4450 done
4451   done
4452 IFS=$as_save_IFS
4453
4454 fi
4455 fi
4456 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4457 if test -n "$ac_ct_DUMPBIN"; then
4458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4459 $as_echo "$ac_ct_DUMPBIN" >&6; }
4460 else
4461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4463 fi
4464
4465
4466   test -n "$ac_ct_DUMPBIN" && break
4467 done
4468
4469   if test "x$ac_ct_DUMPBIN" = x; then
4470     DUMPBIN=":"
4471   else
4472     case $cross_compiling:$ac_tool_warned in
4473 yes:)
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4476 ac_tool_warned=yes ;;
4477 esac
4478     DUMPBIN=$ac_ct_DUMPBIN
4479   fi
4480 fi
4481
4482     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4483     *COFF*)
4484       DUMPBIN="$DUMPBIN -symbols"
4485       ;;
4486     *)
4487       DUMPBIN=:
4488       ;;
4489     esac
4490   fi
4491
4492   if test "$DUMPBIN" != ":"; then
4493     NM="$DUMPBIN"
4494   fi
4495 fi
4496 test -z "$NM" && NM=nm
4497
4498
4499
4500
4501
4502
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4504 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4505 if test "${lt_cv_nm_interface+set}" = set; then :
4506   $as_echo_n "(cached) " >&6
4507 else
4508   lt_cv_nm_interface="BSD nm"
4509   echo "int some_variable = 0;" > conftest.$ac_ext
4510   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4511   (eval "$ac_compile" 2>conftest.err)
4512   cat conftest.err >&5
4513   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4514   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4515   cat conftest.err >&5
4516   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4517   cat conftest.out >&5
4518   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4519     lt_cv_nm_interface="MS dumpbin"
4520   fi
4521   rm -f conftest*
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4524 $as_echo "$lt_cv_nm_interface" >&6; }
4525
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4527 $as_echo_n "checking whether ln -s works... " >&6; }
4528 LN_S=$as_ln_s
4529 if test "$LN_S" = "ln -s"; then
4530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4531 $as_echo "yes" >&6; }
4532 else
4533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4534 $as_echo "no, using $LN_S" >&6; }
4535 fi
4536
4537 # find the maximum length of command line arguments
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4539 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4540 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4541   $as_echo_n "(cached) " >&6
4542 else
4543     i=0
4544   teststring="ABCD"
4545
4546   case $build_os in
4547   msdosdjgpp*)
4548     # On DJGPP, this test can blow up pretty badly due to problems in libc
4549     # (any single argument exceeding 2000 bytes causes a buffer overrun
4550     # during glob expansion).  Even if it were fixed, the result of this
4551     # check would be larger than it should be.
4552     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4553     ;;
4554
4555   gnu*)
4556     # Under GNU Hurd, this test is not required because there is
4557     # no limit to the length of command line arguments.
4558     # Libtool will interpret -1 as no limit whatsoever
4559     lt_cv_sys_max_cmd_len=-1;
4560     ;;
4561
4562   cygwin* | mingw* | cegcc*)
4563     # On Win9x/ME, this test blows up -- it succeeds, but takes
4564     # about 5 minutes as the teststring grows exponentially.
4565     # Worse, since 9x/ME are not pre-emptively multitasking,
4566     # you end up with a "frozen" computer, even though with patience
4567     # the test eventually succeeds (with a max line length of 256k).
4568     # Instead, let's just punt: use the minimum linelength reported by
4569     # all of the supported platforms: 8192 (on NT/2K/XP).
4570     lt_cv_sys_max_cmd_len=8192;
4571     ;;
4572
4573   mint*)
4574     # On MiNT this can take a long time and run out of memory.
4575     lt_cv_sys_max_cmd_len=8192;
4576     ;;
4577
4578   amigaos*)
4579     # On AmigaOS with pdksh, this test takes hours, literally.
4580     # So we just punt and use a minimum line length of 8192.
4581     lt_cv_sys_max_cmd_len=8192;
4582     ;;
4583
4584   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4585     # This has been around since 386BSD, at least.  Likely further.
4586     if test -x /sbin/sysctl; then
4587       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4588     elif test -x /usr/sbin/sysctl; then
4589       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4590     else
4591       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4592     fi
4593     # And add a safety zone
4594     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4595     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4596     ;;
4597
4598   interix*)
4599     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4600     lt_cv_sys_max_cmd_len=196608
4601     ;;
4602
4603   osf*)
4604     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4605     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4606     # nice to cause kernel panics so lets avoid the loop below.
4607     # First set a reasonable default.
4608     lt_cv_sys_max_cmd_len=16384
4609     #
4610     if test -x /sbin/sysconfig; then
4611       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4612         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4613       esac
4614     fi
4615     ;;
4616   sco3.2v5*)
4617     lt_cv_sys_max_cmd_len=102400
4618     ;;
4619   sysv5* | sco5v6* | sysv4.2uw2*)
4620     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4621     if test -n "$kargmax"; then
4622       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4623     else
4624       lt_cv_sys_max_cmd_len=32768
4625     fi
4626     ;;
4627   *)
4628     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4629     if test -n "$lt_cv_sys_max_cmd_len"; then
4630       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4631       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4632     else
4633       # Make teststring a little bigger before we do anything with it.
4634       # a 1K string should be a reasonable start.
4635       for i in 1 2 3 4 5 6 7 8 ; do
4636         teststring=$teststring$teststring
4637       done
4638       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4639       # If test is not a shell built-in, we'll probably end up computing a
4640       # maximum length that is only half of the actual maximum length, but
4641       # we can't tell.
4642       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4643                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4644               test $i != 17 # 1/2 MB should be enough
4645       do
4646         i=`expr $i + 1`
4647         teststring=$teststring$teststring
4648       done
4649       # Only check the string length outside the loop.
4650       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4651       teststring=
4652       # Add a significant safety factor because C++ compilers can tack on
4653       # massive amounts of additional arguments before passing them to the
4654       # linker.  It appears as though 1/2 is a usable value.
4655       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4656     fi
4657     ;;
4658   esac
4659
4660 fi
4661
4662 if test -n $lt_cv_sys_max_cmd_len ; then
4663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4664 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4665 else
4666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4667 $as_echo "none" >&6; }
4668 fi
4669 max_cmd_len=$lt_cv_sys_max_cmd_len
4670
4671
4672
4673
4674
4675
4676 : ${CP="cp -f"}
4677 : ${MV="mv -f"}
4678 : ${RM="rm -f"}
4679
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4681 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4682 # Try some XSI features
4683 xsi_shell=no
4684 ( _lt_dummy="a/b/c"
4685   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4686       = c,a/b,, \
4687     && eval 'test $(( 1 + 1 )) -eq 2 \
4688     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4689   && xsi_shell=yes
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4691 $as_echo "$xsi_shell" >&6; }
4692
4693
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4695 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4696 lt_shell_append=no
4697 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4698     >/dev/null 2>&1 \
4699   && lt_shell_append=yes
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4701 $as_echo "$lt_shell_append" >&6; }
4702
4703
4704 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4705   lt_unset=unset
4706 else
4707   lt_unset=false
4708 fi
4709
4710
4711
4712
4713
4714 # test EBCDIC or ASCII
4715 case `echo X|tr X '\101'` in
4716  A) # ASCII based system
4717     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4718   lt_SP2NL='tr \040 \012'
4719   lt_NL2SP='tr \015\012 \040\040'
4720   ;;
4721  *) # EBCDIC based system
4722   lt_SP2NL='tr \100 \n'
4723   lt_NL2SP='tr \r\n \100\100'
4724   ;;
4725 esac
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4736 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4737 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4738   $as_echo_n "(cached) " >&6
4739 else
4740   lt_cv_ld_reload_flag='-r'
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4743 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4744 reload_flag=$lt_cv_ld_reload_flag
4745 case $reload_flag in
4746 "" | " "*) ;;
4747 *) reload_flag=" $reload_flag" ;;
4748 esac
4749 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4750 case $host_os in
4751   darwin*)
4752     if test "$GCC" = yes; then
4753       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4754     else
4755       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4756     fi
4757     ;;
4758 esac
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768 if test -n "$ac_tool_prefix"; then
4769   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4770 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4774   $as_echo_n "(cached) " >&6
4775 else
4776   if test -n "$OBJDUMP"; then
4777   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782   IFS=$as_save_IFS
4783   test -z "$as_dir" && as_dir=.
4784     for ac_exec_ext in '' $ac_executable_extensions; do
4785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788     break 2
4789   fi
4790 done
4791   done
4792 IFS=$as_save_IFS
4793
4794 fi
4795 fi
4796 OBJDUMP=$ac_cv_prog_OBJDUMP
4797 if test -n "$OBJDUMP"; then
4798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4799 $as_echo "$OBJDUMP" >&6; }
4800 else
4801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4803 fi
4804
4805
4806 fi
4807 if test -z "$ac_cv_prog_OBJDUMP"; then
4808   ac_ct_OBJDUMP=$OBJDUMP
4809   # Extract the first word of "objdump", so it can be a program name with args.
4810 set dummy objdump; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4814   $as_echo_n "(cached) " >&6
4815 else
4816   if test -n "$ac_ct_OBJDUMP"; then
4817   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824     for ac_exec_ext in '' $ac_executable_extensions; do
4825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828     break 2
4829   fi
4830 done
4831   done
4832 IFS=$as_save_IFS
4833
4834 fi
4835 fi
4836 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4837 if test -n "$ac_ct_OBJDUMP"; then
4838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4839 $as_echo "$ac_ct_OBJDUMP" >&6; }
4840 else
4841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4843 fi
4844
4845   if test "x$ac_ct_OBJDUMP" = x; then
4846     OBJDUMP="false"
4847   else
4848     case $cross_compiling:$ac_tool_warned in
4849 yes:)
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4852 ac_tool_warned=yes ;;
4853 esac
4854     OBJDUMP=$ac_ct_OBJDUMP
4855   fi
4856 else
4857   OBJDUMP="$ac_cv_prog_OBJDUMP"
4858 fi
4859
4860 test -z "$OBJDUMP" && OBJDUMP=objdump
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4871 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4872 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4873   $as_echo_n "(cached) " >&6
4874 else
4875   lt_cv_file_magic_cmd='$MAGIC_CMD'
4876 lt_cv_file_magic_test_file=
4877 lt_cv_deplibs_check_method='unknown'
4878 # Need to set the preceding variable on all platforms that support
4879 # interlibrary dependencies.
4880 # 'none' -- dependencies not supported.
4881 # `unknown' -- same as none, but documents that we really don't know.
4882 # 'pass_all' -- all dependencies passed with no checks.
4883 # 'test_compile' -- check by making test program.
4884 # 'file_magic [[regex]]' -- check by looking for files in library path
4885 # which responds to the $file_magic_cmd with a given extended regex.
4886 # If you have `file' or equivalent on your system and you're not sure
4887 # whether `pass_all' will *always* work, you probably want this one.
4888
4889 case $host_os in
4890 aix[4-9]*)
4891   lt_cv_deplibs_check_method=pass_all
4892   ;;
4893
4894 beos*)
4895   lt_cv_deplibs_check_method=pass_all
4896   ;;
4897
4898 bsdi[45]*)
4899   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4900   lt_cv_file_magic_cmd='/usr/bin/file -L'
4901   lt_cv_file_magic_test_file=/shlib/libc.so
4902   ;;
4903
4904 cygwin*)
4905   # func_win32_libid is a shell function defined in ltmain.sh
4906   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4907   lt_cv_file_magic_cmd='func_win32_libid'
4908   ;;
4909
4910 mingw* | pw32*)
4911   # Base MSYS/MinGW do not provide the 'file' command needed by
4912   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4913   # unless we find 'file', for example because we are cross-compiling.
4914   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4915   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4916     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4917     lt_cv_file_magic_cmd='func_win32_libid'
4918   else
4919     # Keep this pattern in sync with the one in func_win32_libid.
4920     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4921     lt_cv_file_magic_cmd='$OBJDUMP -f'
4922   fi
4923   ;;
4924
4925 cegcc*)
4926   # use the weaker test based on 'objdump'. See mingw*.
4927   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4928   lt_cv_file_magic_cmd='$OBJDUMP -f'
4929   ;;
4930
4931 darwin* | rhapsody*)
4932   lt_cv_deplibs_check_method=pass_all
4933   ;;
4934
4935 freebsd* | dragonfly*)
4936   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4937     case $host_cpu in
4938     i*86 )
4939       # Not sure whether the presence of OpenBSD here was a mistake.
4940       # Let's accept both of them until this is cleared up.
4941       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4942       lt_cv_file_magic_cmd=/usr/bin/file
4943       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4944       ;;
4945     esac
4946   else
4947     lt_cv_deplibs_check_method=pass_all
4948   fi
4949   ;;
4950
4951 gnu*)
4952   lt_cv_deplibs_check_method=pass_all
4953   ;;
4954
4955 haiku*)
4956   lt_cv_deplibs_check_method=pass_all
4957   ;;
4958
4959 hpux10.20* | hpux11*)
4960   lt_cv_file_magic_cmd=/usr/bin/file
4961   case $host_cpu in
4962   ia64*)
4963     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4964     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4965     ;;
4966   hppa*64*)
4967     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]'
4968     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4969     ;;
4970   *)
4971     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4972     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4973     ;;
4974   esac
4975   ;;
4976
4977 interix[3-9]*)
4978   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4979   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4980   ;;
4981
4982 irix5* | irix6* | nonstopux*)
4983   case $LD in
4984   *-32|*"-32 ") libmagic=32-bit;;
4985   *-n32|*"-n32 ") libmagic=N32;;
4986   *-64|*"-64 ") libmagic=64-bit;;
4987   *) libmagic=never-match;;
4988   esac
4989   lt_cv_deplibs_check_method=pass_all
4990   ;;
4991
4992 # This must be Linux ELF.
4993 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4994   lt_cv_deplibs_check_method=pass_all
4995   ;;
4996
4997 netbsd*)
4998   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4999     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5000   else
5001     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5002   fi
5003   ;;
5004
5005 newos6*)
5006   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5007   lt_cv_file_magic_cmd=/usr/bin/file
5008   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5009   ;;
5010
5011 *nto* | *qnx*)
5012   lt_cv_deplibs_check_method=pass_all
5013   ;;
5014
5015 openbsd*)
5016   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5017     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5018   else
5019     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5020   fi
5021   ;;
5022
5023 osf3* | osf4* | osf5*)
5024   lt_cv_deplibs_check_method=pass_all
5025   ;;
5026
5027 rdos*)
5028   lt_cv_deplibs_check_method=pass_all
5029   ;;
5030
5031 solaris*)
5032   lt_cv_deplibs_check_method=pass_all
5033   ;;
5034
5035 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5036   lt_cv_deplibs_check_method=pass_all
5037   ;;
5038
5039 sysv4 | sysv4.3*)
5040   case $host_vendor in
5041   motorola)
5042     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]'
5043     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5044     ;;
5045   ncr)
5046     lt_cv_deplibs_check_method=pass_all
5047     ;;
5048   sequent)
5049     lt_cv_file_magic_cmd='/bin/file'
5050     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5051     ;;
5052   sni)
5053     lt_cv_file_magic_cmd='/bin/file'
5054     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5055     lt_cv_file_magic_test_file=/lib/libc.so
5056     ;;
5057   siemens)
5058     lt_cv_deplibs_check_method=pass_all
5059     ;;
5060   pc)
5061     lt_cv_deplibs_check_method=pass_all
5062     ;;
5063   esac
5064   ;;
5065
5066 tpf*)
5067   lt_cv_deplibs_check_method=pass_all
5068   ;;
5069 esac
5070
5071 fi
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5073 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5074 file_magic_cmd=$lt_cv_file_magic_cmd
5075 deplibs_check_method=$lt_cv_deplibs_check_method
5076 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089 if test -n "$ac_tool_prefix"; then
5090   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5091 set dummy ${ac_tool_prefix}ar; ac_word=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if test "${ac_cv_prog_AR+set}" = set; then :
5095   $as_echo_n "(cached) " >&6
5096 else
5097   if test -n "$AR"; then
5098   ac_cv_prog_AR="$AR" # Let the user override the test.
5099 else
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103   IFS=$as_save_IFS
5104   test -z "$as_dir" && as_dir=.
5105     for ac_exec_ext in '' $ac_executable_extensions; do
5106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107     ac_cv_prog_AR="${ac_tool_prefix}ar"
5108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109     break 2
5110   fi
5111 done
5112   done
5113 IFS=$as_save_IFS
5114
5115 fi
5116 fi
5117 AR=$ac_cv_prog_AR
5118 if test -n "$AR"; then
5119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5120 $as_echo "$AR" >&6; }
5121 else
5122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5124 fi
5125
5126
5127 fi
5128 if test -z "$ac_cv_prog_AR"; then
5129   ac_ct_AR=$AR
5130   # Extract the first word of "ar", so it can be a program name with args.
5131 set dummy ar; ac_word=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5135   $as_echo_n "(cached) " >&6
5136 else
5137   if test -n "$ac_ct_AR"; then
5138   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5142 do
5143   IFS=$as_save_IFS
5144   test -z "$as_dir" && as_dir=.
5145     for ac_exec_ext in '' $ac_executable_extensions; do
5146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147     ac_cv_prog_ac_ct_AR="ar"
5148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149     break 2
5150   fi
5151 done
5152   done
5153 IFS=$as_save_IFS
5154
5155 fi
5156 fi
5157 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5158 if test -n "$ac_ct_AR"; then
5159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5160 $as_echo "$ac_ct_AR" >&6; }
5161 else
5162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5164 fi
5165
5166   if test "x$ac_ct_AR" = x; then
5167     AR="false"
5168   else
5169     case $cross_compiling:$ac_tool_warned in
5170 yes:)
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5173 ac_tool_warned=yes ;;
5174 esac
5175     AR=$ac_ct_AR
5176   fi
5177 else
5178   AR="$ac_cv_prog_AR"
5179 fi
5180
5181 test -z "$AR" && AR=ar
5182 test -z "$AR_FLAGS" && AR_FLAGS=cru
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194 if test -n "$ac_tool_prefix"; then
5195   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5196 set dummy ${ac_tool_prefix}strip; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if test "${ac_cv_prog_STRIP+set}" = set; then :
5200   $as_echo_n "(cached) " >&6
5201 else
5202   if test -n "$STRIP"; then
5203   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208   IFS=$as_save_IFS
5209   test -z "$as_dir" && as_dir=.
5210     for ac_exec_ext in '' $ac_executable_extensions; do
5211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214     break 2
5215   fi
5216 done
5217   done
5218 IFS=$as_save_IFS
5219
5220 fi
5221 fi
5222 STRIP=$ac_cv_prog_STRIP
5223 if test -n "$STRIP"; then
5224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5225 $as_echo "$STRIP" >&6; }
5226 else
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5230
5231
5232 fi
5233 if test -z "$ac_cv_prog_STRIP"; then
5234   ac_ct_STRIP=$STRIP
5235   # Extract the first word of "strip", so it can be a program name with args.
5236 set dummy strip; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5240   $as_echo_n "(cached) " >&6
5241 else
5242   if test -n "$ac_ct_STRIP"; then
5243   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248   IFS=$as_save_IFS
5249   test -z "$as_dir" && as_dir=.
5250     for ac_exec_ext in '' $ac_executable_extensions; do
5251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5252     ac_cv_prog_ac_ct_STRIP="strip"
5253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254     break 2
5255   fi
5256 done
5257   done
5258 IFS=$as_save_IFS
5259
5260 fi
5261 fi
5262 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5263 if test -n "$ac_ct_STRIP"; then
5264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5265 $as_echo "$ac_ct_STRIP" >&6; }
5266 else
5267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5269 fi
5270
5271   if test "x$ac_ct_STRIP" = x; then
5272     STRIP=":"
5273   else
5274     case $cross_compiling:$ac_tool_warned in
5275 yes:)
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5278 ac_tool_warned=yes ;;
5279 esac
5280     STRIP=$ac_ct_STRIP
5281   fi
5282 else
5283   STRIP="$ac_cv_prog_STRIP"
5284 fi
5285
5286 test -z "$STRIP" && STRIP=:
5287
5288
5289
5290
5291
5292
5293 if test -n "$ac_tool_prefix"; then
5294   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5295 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5299   $as_echo_n "(cached) " >&6
5300 else
5301   if test -n "$RANLIB"; then
5302   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307   IFS=$as_save_IFS
5308   test -z "$as_dir" && as_dir=.
5309     for ac_exec_ext in '' $ac_executable_extensions; do
5310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313     break 2
5314   fi
5315 done
5316   done
5317 IFS=$as_save_IFS
5318
5319 fi
5320 fi
5321 RANLIB=$ac_cv_prog_RANLIB
5322 if test -n "$RANLIB"; then
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5324 $as_echo "$RANLIB" >&6; }
5325 else
5326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5328 fi
5329
5330
5331 fi
5332 if test -z "$ac_cv_prog_RANLIB"; then
5333   ac_ct_RANLIB=$RANLIB
5334   # Extract the first word of "ranlib", so it can be a program name with args.
5335 set dummy ranlib; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5339   $as_echo_n "(cached) " >&6
5340 else
5341   if test -n "$ac_ct_RANLIB"; then
5342   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347   IFS=$as_save_IFS
5348   test -z "$as_dir" && as_dir=.
5349     for ac_exec_ext in '' $ac_executable_extensions; do
5350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351     ac_cv_prog_ac_ct_RANLIB="ranlib"
5352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353     break 2
5354   fi
5355 done
5356   done
5357 IFS=$as_save_IFS
5358
5359 fi
5360 fi
5361 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5362 if test -n "$ac_ct_RANLIB"; then
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5364 $as_echo "$ac_ct_RANLIB" >&6; }
5365 else
5366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368 fi
5369
5370   if test "x$ac_ct_RANLIB" = x; then
5371     RANLIB=":"
5372   else
5373     case $cross_compiling:$ac_tool_warned in
5374 yes:)
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5377 ac_tool_warned=yes ;;
5378 esac
5379     RANLIB=$ac_ct_RANLIB
5380   fi
5381 else
5382   RANLIB="$ac_cv_prog_RANLIB"
5383 fi
5384
5385 test -z "$RANLIB" && RANLIB=:
5386
5387
5388
5389
5390
5391
5392 # Determine commands to create old-style static archives.
5393 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5394 old_postinstall_cmds='chmod 644 $oldlib'
5395 old_postuninstall_cmds=
5396
5397 if test -n "$RANLIB"; then
5398   case $host_os in
5399   openbsd*)
5400     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5401     ;;
5402   *)
5403     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5404     ;;
5405   esac
5406   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5407 fi
5408
5409 case $host_os in
5410   darwin*)
5411     lock_old_archive_extraction=yes ;;
5412   *)
5413     lock_old_archive_extraction=no ;;
5414 esac
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454 # If no C compiler was specified, use CC.
5455 LTCC=${LTCC-"$CC"}
5456
5457 # If no C compiler flags were specified, use CFLAGS.
5458 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5459
5460 # Allow CC to be a program name with arguments.
5461 compiler=$CC
5462
5463
5464 # Check for command to grab the raw symbol name followed by C symbol from nm.
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5466 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5467 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5468   $as_echo_n "(cached) " >&6
5469 else
5470
5471 # These are sane defaults that work on at least a few old systems.
5472 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5473
5474 # Character class describing NM global symbol codes.
5475 symcode='[BCDEGRST]'
5476
5477 # Regexp to match symbols that can be accessed directly from C.
5478 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5479
5480 # Define system-specific variables.
5481 case $host_os in
5482 aix*)
5483   symcode='[BCDT]'
5484   ;;
5485 cygwin* | mingw* | pw32* | cegcc*)
5486   symcode='[ABCDGISTW]'
5487   ;;
5488 hpux*)
5489   if test "$host_cpu" = ia64; then
5490     symcode='[ABCDEGRST]'
5491   fi
5492   ;;
5493 irix* | nonstopux*)
5494   symcode='[BCDEGRST]'
5495   ;;
5496 osf*)
5497   symcode='[BCDEGQRST]'
5498   ;;
5499 solaris*)
5500   symcode='[BDRT]'
5501   ;;
5502 sco3.2v5*)
5503   symcode='[DT]'
5504   ;;
5505 sysv4.2uw2*)
5506   symcode='[DT]'
5507   ;;
5508 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5509   symcode='[ABDT]'
5510   ;;
5511 sysv4)
5512   symcode='[DFNSTU]'
5513   ;;
5514 esac
5515
5516 # If we're using GNU nm, then use its standard symbol codes.
5517 case `$NM -V 2>&1` in
5518 *GNU* | *'with BFD'*)
5519   symcode='[ABCDGIRSTW]' ;;
5520 esac
5521
5522 # Transform an extracted symbol line into a proper C declaration.
5523 # Some systems (esp. on ia64) link data and code symbols differently,
5524 # so use this general approach.
5525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5526
5527 # Transform an extracted symbol line into symbol name and symbol address
5528 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5529 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'"
5530
5531 # Handle CRLF in mingw tool chain
5532 opt_cr=
5533 case $build_os in
5534 mingw*)
5535   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5536   ;;
5537 esac
5538
5539 # Try without a prefix underscore, then with it.
5540 for ac_symprfx in "" "_"; do
5541
5542   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5543   symxfrm="\\1 $ac_symprfx\\2 \\2"
5544
5545   # Write the raw and C identifiers.
5546   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5547     # Fake it for dumpbin and say T for any non-static function
5548     # and D for any global variable.
5549     # Also find C++ and __fastcall symbols from MSVC++,
5550     # which start with @ or ?.
5551     lt_cv_sys_global_symbol_pipe="$AWK '"\
5552 "     {last_section=section; section=\$ 3};"\
5553 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5554 "     \$ 0!~/External *\|/{next};"\
5555 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5556 "     {if(hide[section]) next};"\
5557 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5558 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5559 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5560 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5561 "     ' prfx=^$ac_symprfx"
5562   else
5563     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5564   fi
5565
5566   # Check to see that the pipe works correctly.
5567   pipe_works=no
5568
5569   rm -f conftest*
5570   cat > conftest.$ac_ext <<_LT_EOF
5571 #ifdef __cplusplus
5572 extern "C" {
5573 #endif
5574 char nm_test_var;
5575 void nm_test_func(void);
5576 void nm_test_func(void){}
5577 #ifdef __cplusplus
5578 }
5579 #endif
5580 int main(){nm_test_var='a';nm_test_func();return(0);}
5581 _LT_EOF
5582
5583   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5584   (eval $ac_compile) 2>&5
5585   ac_status=$?
5586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5587   test $ac_status = 0; }; then
5588     # Now try to grab the symbols.
5589     nlist=conftest.nm
5590     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5591   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5592   ac_status=$?
5593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5594   test $ac_status = 0; } && test -s "$nlist"; then
5595       # Try sorting and uniquifying the output.
5596       if sort "$nlist" | uniq > "$nlist"T; then
5597         mv -f "$nlist"T "$nlist"
5598       else
5599         rm -f "$nlist"T
5600       fi
5601
5602       # Make sure that we snagged all the symbols we need.
5603       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5604         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5605           cat <<_LT_EOF > conftest.$ac_ext
5606 #ifdef __cplusplus
5607 extern "C" {
5608 #endif
5609
5610 _LT_EOF
5611           # Now generate the symbol file.
5612           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5613
5614           cat <<_LT_EOF >> conftest.$ac_ext
5615
5616 /* The mapping between symbol names and symbols.  */
5617 const struct {
5618   const char *name;
5619   void       *address;
5620 }
5621 lt__PROGRAM__LTX_preloaded_symbols[] =
5622 {
5623   { "@PROGRAM@", (void *) 0 },
5624 _LT_EOF
5625           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5626           cat <<\_LT_EOF >> conftest.$ac_ext
5627   {0, (void *) 0}
5628 };
5629
5630 /* This works around a problem in FreeBSD linker */
5631 #ifdef FREEBSD_WORKAROUND
5632 static const void *lt_preloaded_setup() {
5633   return lt__PROGRAM__LTX_preloaded_symbols;
5634 }
5635 #endif
5636
5637 #ifdef __cplusplus
5638 }
5639 #endif
5640 _LT_EOF
5641           # Now try linking the two files.
5642           mv conftest.$ac_objext conftstm.$ac_objext
5643           lt_save_LIBS="$LIBS"
5644           lt_save_CFLAGS="$CFLAGS"
5645           LIBS="conftstm.$ac_objext"
5646           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5647           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5648   (eval $ac_link) 2>&5
5649   ac_status=$?
5650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5651   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5652             pipe_works=yes
5653           fi
5654           LIBS="$lt_save_LIBS"
5655           CFLAGS="$lt_save_CFLAGS"
5656         else
5657           echo "cannot find nm_test_func in $nlist" >&5
5658         fi
5659       else
5660         echo "cannot find nm_test_var in $nlist" >&5
5661       fi
5662     else
5663       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5664     fi
5665   else
5666     echo "$progname: failed program was:" >&5
5667     cat conftest.$ac_ext >&5
5668   fi
5669   rm -rf conftest* conftst*
5670
5671   # Do not use the global_symbol_pipe unless it works.
5672   if test "$pipe_works" = yes; then
5673     break
5674   else
5675     lt_cv_sys_global_symbol_pipe=
5676   fi
5677 done
5678
5679 fi
5680
5681 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5682   lt_cv_sys_global_symbol_to_cdecl=
5683 fi
5684 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5686 $as_echo "failed" >&6; }
5687 else
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5689 $as_echo "ok" >&6; }
5690 fi
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714 # Check whether --enable-libtool-lock was given.
5715 if test "${enable_libtool_lock+set}" = set; then :
5716   enableval=$enable_libtool_lock;
5717 fi
5718
5719 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5720
5721 # Some flags need to be propagated to the compiler or linker for good
5722 # libtool support.
5723 case $host in
5724 ia64-*-hpux*)
5725   # Find out which ABI we are using.
5726   echo 'int i;' > conftest.$ac_ext
5727   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5728   (eval $ac_compile) 2>&5
5729   ac_status=$?
5730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731   test $ac_status = 0; }; then
5732     case `/usr/bin/file conftest.$ac_objext` in
5733       *ELF-32*)
5734         HPUX_IA64_MODE="32"
5735         ;;
5736       *ELF-64*)
5737         HPUX_IA64_MODE="64"
5738         ;;
5739     esac
5740   fi
5741   rm -rf conftest*
5742   ;;
5743 *-*-irix6*)
5744   # Find out which ABI we are using.
5745   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5746   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5747   (eval $ac_compile) 2>&5
5748   ac_status=$?
5749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5750   test $ac_status = 0; }; then
5751     if test "$lt_cv_prog_gnu_ld" = yes; then
5752       case `/usr/bin/file conftest.$ac_objext` in
5753         *32-bit*)
5754           LD="${LD-ld} -melf32bsmip"
5755           ;;
5756         *N32*)
5757           LD="${LD-ld} -melf32bmipn32"
5758           ;;
5759         *64-bit*)
5760           LD="${LD-ld} -melf64bmip"
5761         ;;
5762       esac
5763     else
5764       case `/usr/bin/file conftest.$ac_objext` in
5765         *32-bit*)
5766           LD="${LD-ld} -32"
5767           ;;
5768         *N32*)
5769           LD="${LD-ld} -n32"
5770           ;;
5771         *64-bit*)
5772           LD="${LD-ld} -64"
5773           ;;
5774       esac
5775     fi
5776   fi
5777   rm -rf conftest*
5778   ;;
5779
5780 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5781 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5782   # Find out which ABI we are using.
5783   echo 'int i;' > conftest.$ac_ext
5784   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5785   (eval $ac_compile) 2>&5
5786   ac_status=$?
5787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5788   test $ac_status = 0; }; then
5789     case `/usr/bin/file conftest.o` in
5790       *32-bit*)
5791         case $host in
5792           x86_64-*kfreebsd*-gnu)
5793             LD="${LD-ld} -m elf_i386_fbsd"
5794             ;;
5795           x86_64-*linux*)
5796             LD="${LD-ld} -m elf_i386"
5797             ;;
5798           ppc64-*linux*|powerpc64-*linux*)
5799             LD="${LD-ld} -m elf32ppclinux"
5800             ;;
5801           s390x-*linux*)
5802             LD="${LD-ld} -m elf_s390"
5803             ;;
5804           sparc64-*linux*)
5805             LD="${LD-ld} -m elf32_sparc"
5806             ;;
5807         esac
5808         ;;
5809       *64-bit*)
5810         case $host in
5811           x86_64-*kfreebsd*-gnu)
5812             LD="${LD-ld} -m elf_x86_64_fbsd"
5813             ;;
5814           x86_64-*linux*)
5815             LD="${LD-ld} -m elf_x86_64"
5816             ;;
5817           ppc*-*linux*|powerpc*-*linux*)
5818             LD="${LD-ld} -m elf64ppc"
5819             ;;
5820           s390*-*linux*|s390*-*tpf*)
5821             LD="${LD-ld} -m elf64_s390"
5822             ;;
5823           sparc*-*linux*)
5824             LD="${LD-ld} -m elf64_sparc"
5825             ;;
5826         esac
5827         ;;
5828     esac
5829   fi
5830   rm -rf conftest*
5831   ;;
5832
5833 *-*-sco3.2v5*)
5834   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5835   SAVE_CFLAGS="$CFLAGS"
5836   CFLAGS="$CFLAGS -belf"
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5838 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5839 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5840   $as_echo_n "(cached) " >&6
5841 else
5842   ac_ext=c
5843 ac_cpp='$CPP $CPPFLAGS'
5844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5847
5848      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h.  */
5850
5851 int
5852 main ()
5853 {
5854
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 if ac_fn_c_try_link "$LINENO"; then :
5860   lt_cv_cc_needs_belf=yes
5861 else
5862   lt_cv_cc_needs_belf=no
5863 fi
5864 rm -f core conftest.err conftest.$ac_objext \
5865     conftest$ac_exeext conftest.$ac_ext
5866      ac_ext=c
5867 ac_cpp='$CPP $CPPFLAGS'
5868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5871
5872 fi
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5874 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5875   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5876     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5877     CFLAGS="$SAVE_CFLAGS"
5878   fi
5879   ;;
5880 sparc*-*solaris*)
5881   # Find out which ABI we are using.
5882   echo 'int i;' > conftest.$ac_ext
5883   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5884   (eval $ac_compile) 2>&5
5885   ac_status=$?
5886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5887   test $ac_status = 0; }; then
5888     case `/usr/bin/file conftest.o` in
5889     *64-bit*)
5890       case $lt_cv_prog_gnu_ld in
5891       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5892       *)
5893         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5894           LD="${LD-ld} -64"
5895         fi
5896         ;;
5897       esac
5898       ;;
5899     esac
5900   fi
5901   rm -rf conftest*
5902   ;;
5903 esac
5904
5905 need_locks="$enable_libtool_lock"
5906
5907
5908   case $host_os in
5909     rhapsody* | darwin*)
5910     if test -n "$ac_tool_prefix"; then
5911   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5912 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5916   $as_echo_n "(cached) " >&6
5917 else
5918   if test -n "$DSYMUTIL"; then
5919   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924   IFS=$as_save_IFS
5925   test -z "$as_dir" && as_dir=.
5926     for ac_exec_ext in '' $ac_executable_extensions; do
5927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5928     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930     break 2
5931   fi
5932 done
5933   done
5934 IFS=$as_save_IFS
5935
5936 fi
5937 fi
5938 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5939 if test -n "$DSYMUTIL"; then
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5941 $as_echo "$DSYMUTIL" >&6; }
5942 else
5943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5945 fi
5946
5947
5948 fi
5949 if test -z "$ac_cv_prog_DSYMUTIL"; then
5950   ac_ct_DSYMUTIL=$DSYMUTIL
5951   # Extract the first word of "dsymutil", so it can be a program name with args.
5952 set dummy dsymutil; ac_word=$2
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 $as_echo_n "checking for $ac_word... " >&6; }
5955 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5956   $as_echo_n "(cached) " >&6
5957 else
5958   if test -n "$ac_ct_DSYMUTIL"; then
5959   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964   IFS=$as_save_IFS
5965   test -z "$as_dir" && as_dir=.
5966     for ac_exec_ext in '' $ac_executable_extensions; do
5967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5968     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970     break 2
5971   fi
5972 done
5973   done
5974 IFS=$as_save_IFS
5975
5976 fi
5977 fi
5978 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5979 if test -n "$ac_ct_DSYMUTIL"; then
5980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5981 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5982 else
5983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5985 fi
5986
5987   if test "x$ac_ct_DSYMUTIL" = x; then
5988     DSYMUTIL=":"
5989   else
5990     case $cross_compiling:$ac_tool_warned in
5991 yes:)
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994 ac_tool_warned=yes ;;
5995 esac
5996     DSYMUTIL=$ac_ct_DSYMUTIL
5997   fi
5998 else
5999   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6000 fi
6001
6002     if test -n "$ac_tool_prefix"; then
6003   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6004 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6008   $as_echo_n "(cached) " >&6
6009 else
6010   if test -n "$NMEDIT"; then
6011   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016   IFS=$as_save_IFS
6017   test -z "$as_dir" && as_dir=.
6018     for ac_exec_ext in '' $ac_executable_extensions; do
6019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022     break 2
6023   fi
6024 done
6025   done
6026 IFS=$as_save_IFS
6027
6028 fi
6029 fi
6030 NMEDIT=$ac_cv_prog_NMEDIT
6031 if test -n "$NMEDIT"; then
6032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6033 $as_echo "$NMEDIT" >&6; }
6034 else
6035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6037 fi
6038
6039
6040 fi
6041 if test -z "$ac_cv_prog_NMEDIT"; then
6042   ac_ct_NMEDIT=$NMEDIT
6043   # Extract the first word of "nmedit", so it can be a program name with args.
6044 set dummy nmedit; ac_word=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6048   $as_echo_n "(cached) " >&6
6049 else
6050   if test -n "$ac_ct_NMEDIT"; then
6051   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056   IFS=$as_save_IFS
6057   test -z "$as_dir" && as_dir=.
6058     for ac_exec_ext in '' $ac_executable_extensions; do
6059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062     break 2
6063   fi
6064 done
6065   done
6066 IFS=$as_save_IFS
6067
6068 fi
6069 fi
6070 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6071 if test -n "$ac_ct_NMEDIT"; then
6072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6073 $as_echo "$ac_ct_NMEDIT" >&6; }
6074 else
6075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6077 fi
6078
6079   if test "x$ac_ct_NMEDIT" = x; then
6080     NMEDIT=":"
6081   else
6082     case $cross_compiling:$ac_tool_warned in
6083 yes:)
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6086 ac_tool_warned=yes ;;
6087 esac
6088     NMEDIT=$ac_ct_NMEDIT
6089   fi
6090 else
6091   NMEDIT="$ac_cv_prog_NMEDIT"
6092 fi
6093
6094     if test -n "$ac_tool_prefix"; then
6095   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6096 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098 $as_echo_n "checking for $ac_word... " >&6; }
6099 if test "${ac_cv_prog_LIPO+set}" = set; then :
6100   $as_echo_n "(cached) " >&6
6101 else
6102   if test -n "$LIPO"; then
6103   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6104 else
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH
6107 do
6108   IFS=$as_save_IFS
6109   test -z "$as_dir" && as_dir=.
6110     for ac_exec_ext in '' $ac_executable_extensions; do
6111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114     break 2
6115   fi
6116 done
6117   done
6118 IFS=$as_save_IFS
6119
6120 fi
6121 fi
6122 LIPO=$ac_cv_prog_LIPO
6123 if test -n "$LIPO"; then
6124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6125 $as_echo "$LIPO" >&6; }
6126 else
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 $as_echo "no" >&6; }
6129 fi
6130
6131
6132 fi
6133 if test -z "$ac_cv_prog_LIPO"; then
6134   ac_ct_LIPO=$LIPO
6135   # Extract the first word of "lipo", so it can be a program name with args.
6136 set dummy lipo; ac_word=$2
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6140   $as_echo_n "(cached) " >&6
6141 else
6142   if test -n "$ac_ct_LIPO"; then
6143   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148   IFS=$as_save_IFS
6149   test -z "$as_dir" && as_dir=.
6150     for ac_exec_ext in '' $ac_executable_extensions; do
6151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6152     ac_cv_prog_ac_ct_LIPO="lipo"
6153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154     break 2
6155   fi
6156 done
6157   done
6158 IFS=$as_save_IFS
6159
6160 fi
6161 fi
6162 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6163 if test -n "$ac_ct_LIPO"; then
6164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6165 $as_echo "$ac_ct_LIPO" >&6; }
6166 else
6167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 $as_echo "no" >&6; }
6169 fi
6170
6171   if test "x$ac_ct_LIPO" = x; then
6172     LIPO=":"
6173   else
6174     case $cross_compiling:$ac_tool_warned in
6175 yes:)
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6178 ac_tool_warned=yes ;;
6179 esac
6180     LIPO=$ac_ct_LIPO
6181   fi
6182 else
6183   LIPO="$ac_cv_prog_LIPO"
6184 fi
6185
6186     if test -n "$ac_tool_prefix"; then
6187   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6188 set dummy ${ac_tool_prefix}otool; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6192   $as_echo_n "(cached) " >&6
6193 else
6194   if test -n "$OTOOL"; then
6195   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202     for ac_exec_ext in '' $ac_executable_extensions; do
6203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209   done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 OTOOL=$ac_cv_prog_OTOOL
6215 if test -n "$OTOOL"; then
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6217 $as_echo "$OTOOL" >&6; }
6218 else
6219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6221 fi
6222
6223
6224 fi
6225 if test -z "$ac_cv_prog_OTOOL"; then
6226   ac_ct_OTOOL=$OTOOL
6227   # Extract the first word of "otool", so it can be a program name with args.
6228 set dummy otool; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6232   $as_echo_n "(cached) " >&6
6233 else
6234   if test -n "$ac_ct_OTOOL"; then
6235   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240   IFS=$as_save_IFS
6241   test -z "$as_dir" && as_dir=.
6242     for ac_exec_ext in '' $ac_executable_extensions; do
6243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244     ac_cv_prog_ac_ct_OTOOL="otool"
6245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246     break 2
6247   fi
6248 done
6249   done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6255 if test -n "$ac_ct_OTOOL"; then
6256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6257 $as_echo "$ac_ct_OTOOL" >&6; }
6258 else
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262
6263   if test "x$ac_ct_OTOOL" = x; then
6264     OTOOL=":"
6265   else
6266     case $cross_compiling:$ac_tool_warned in
6267 yes:)
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6270 ac_tool_warned=yes ;;
6271 esac
6272     OTOOL=$ac_ct_OTOOL
6273   fi
6274 else
6275   OTOOL="$ac_cv_prog_OTOOL"
6276 fi
6277
6278     if test -n "$ac_tool_prefix"; then
6279   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6280 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282 $as_echo_n "checking for $ac_word... " >&6; }
6283 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6284   $as_echo_n "(cached) " >&6
6285 else
6286   if test -n "$OTOOL64"; then
6287   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6288 else
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH
6291 do
6292   IFS=$as_save_IFS
6293   test -z "$as_dir" && as_dir=.
6294     for ac_exec_ext in '' $ac_executable_extensions; do
6295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6296     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6298     break 2
6299   fi
6300 done
6301   done
6302 IFS=$as_save_IFS
6303
6304 fi
6305 fi
6306 OTOOL64=$ac_cv_prog_OTOOL64
6307 if test -n "$OTOOL64"; then
6308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6309 $as_echo "$OTOOL64" >&6; }
6310 else
6311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 $as_echo "no" >&6; }
6313 fi
6314
6315
6316 fi
6317 if test -z "$ac_cv_prog_OTOOL64"; then
6318   ac_ct_OTOOL64=$OTOOL64
6319   # Extract the first word of "otool64", so it can be a program name with args.
6320 set dummy otool64; ac_word=$2
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6324   $as_echo_n "(cached) " >&6
6325 else
6326   if test -n "$ac_ct_OTOOL64"; then
6327   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332   IFS=$as_save_IFS
6333   test -z "$as_dir" && as_dir=.
6334     for ac_exec_ext in '' $ac_executable_extensions; do
6335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336     ac_cv_prog_ac_ct_OTOOL64="otool64"
6337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338     break 2
6339   fi
6340 done
6341   done
6342 IFS=$as_save_IFS
6343
6344 fi
6345 fi
6346 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6347 if test -n "$ac_ct_OTOOL64"; then
6348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6349 $as_echo "$ac_ct_OTOOL64" >&6; }
6350 else
6351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 $as_echo "no" >&6; }
6353 fi
6354
6355   if test "x$ac_ct_OTOOL64" = x; then
6356     OTOOL64=":"
6357   else
6358     case $cross_compiling:$ac_tool_warned in
6359 yes:)
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6362 ac_tool_warned=yes ;;
6363 esac
6364     OTOOL64=$ac_ct_OTOOL64
6365   fi
6366 else
6367   OTOOL64="$ac_cv_prog_OTOOL64"
6368 fi
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6397 $as_echo_n "checking for -single_module linker flag... " >&6; }
6398 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6399   $as_echo_n "(cached) " >&6
6400 else
6401   lt_cv_apple_cc_single_mod=no
6402       if test -z "${LT_MULTI_MODULE}"; then
6403         # By default we will add the -single_module flag. You can override
6404         # by either setting the environment variable LT_MULTI_MODULE
6405         # non-empty at configure time, or by adding -multi_module to the
6406         # link flags.
6407         rm -rf libconftest.dylib*
6408         echo "int foo(void){return 1;}" > conftest.c
6409         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6410 -dynamiclib -Wl,-single_module conftest.c" >&5
6411         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6412           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6413         _lt_result=$?
6414         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6415           lt_cv_apple_cc_single_mod=yes
6416         else
6417           cat conftest.err >&5
6418         fi
6419         rm -rf libconftest.dylib*
6420         rm -f conftest.*
6421       fi
6422 fi
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6424 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6426 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6427 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6428   $as_echo_n "(cached) " >&6
6429 else
6430   lt_cv_ld_exported_symbols_list=no
6431       save_LDFLAGS=$LDFLAGS
6432       echo "_main" > conftest.sym
6433       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6434       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h.  */
6436
6437 int
6438 main ()
6439 {
6440
6441   ;
6442   return 0;
6443 }
6444 _ACEOF
6445 if ac_fn_c_try_link "$LINENO"; then :
6446   lt_cv_ld_exported_symbols_list=yes
6447 else
6448   lt_cv_ld_exported_symbols_list=no
6449 fi
6450 rm -f core conftest.err conftest.$ac_objext \
6451     conftest$ac_exeext conftest.$ac_ext
6452         LDFLAGS="$save_LDFLAGS"
6453
6454 fi
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6456 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6458 $as_echo_n "checking for -force_load linker flag... " >&6; }
6459 if test "${lt_cv_ld_force_load+set}" = set; then :
6460   $as_echo_n "(cached) " >&6
6461 else
6462   lt_cv_ld_force_load=no
6463       cat > conftest.c << _LT_EOF
6464 int forced_loaded() { return 2;}
6465 _LT_EOF
6466       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6467       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6468       echo "$AR cru libconftest.a conftest.o" >&5
6469       $AR cru libconftest.a conftest.o 2>&5
6470       echo "$RANLIB libconftest.a" >&5
6471       $RANLIB libconftest.a 2>&5
6472       cat > conftest.c << _LT_EOF
6473 int main() { return 0;}
6474 _LT_EOF
6475       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6476       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6477       _lt_result=$?
6478       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6479         lt_cv_ld_force_load=yes
6480       else
6481         cat conftest.err >&5
6482       fi
6483         rm -f conftest.err libconftest.a conftest conftest.c
6484         rm -rf conftest.dSYM
6485
6486 fi
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6488 $as_echo "$lt_cv_ld_force_load" >&6; }
6489     case $host_os in
6490     rhapsody* | darwin1.[012])
6491       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6492     darwin1.*)
6493       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6494     darwin*) # darwin 5.x on
6495       # if running on 10.5 or later, the deployment target defaults
6496       # to the OS version, if on x86, and 10.4, the deployment
6497       # target defaults to 10.4. Don't you love it?
6498       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6499         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6500           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6501         10.[012]*)
6502           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6503         10.*)
6504           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6505       esac
6506     ;;
6507   esac
6508     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6509       _lt_dar_single_mod='$single_module'
6510     fi
6511     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6512       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6513     else
6514       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6515     fi
6516     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6517       _lt_dsymutil='~$DSYMUTIL $lib || :'
6518     else
6519       _lt_dsymutil=
6520     fi
6521     ;;
6522   esac
6523
6524 ac_ext=c
6525 ac_cpp='$CPP $CPPFLAGS'
6526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6530 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6531 # On Suns, sometimes $CPP names a directory.
6532 if test -n "$CPP" && test -d "$CPP"; then
6533   CPP=
6534 fi
6535 if test -z "$CPP"; then
6536   if test "${ac_cv_prog_CPP+set}" = set; then :
6537   $as_echo_n "(cached) " >&6
6538 else
6539       # Double quotes because CPP needs to be expanded
6540     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6541     do
6542       ac_preproc_ok=false
6543 for ac_c_preproc_warn_flag in '' yes
6544 do
6545   # Use a header file that comes with gcc, so configuring glibc
6546   # with a fresh cross-compiler works.
6547   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6548   # <limits.h> exists even on freestanding compilers.
6549   # On the NeXT, cc -E runs the code through the compiler's parser,
6550   # not just through cpp. "Syntax error" is here to catch this case.
6551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h.  */
6553 #ifdef __STDC__
6554 # include <limits.h>
6555 #else
6556 # include <assert.h>
6557 #endif
6558                      Syntax error
6559 _ACEOF
6560 if ac_fn_c_try_cpp "$LINENO"; then :
6561
6562 else
6563   # Broken: fails on valid input.
6564 continue
6565 fi
6566 rm -f conftest.err conftest.$ac_ext
6567
6568   # OK, works on sane cases.  Now check whether nonexistent headers
6569   # can be detected and how.
6570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h.  */
6572 #include <ac_nonexistent.h>
6573 _ACEOF
6574 if ac_fn_c_try_cpp "$LINENO"; then :
6575   # Broken: success on invalid input.
6576 continue
6577 else
6578   # Passes both tests.
6579 ac_preproc_ok=:
6580 break
6581 fi
6582 rm -f conftest.err conftest.$ac_ext
6583
6584 done
6585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6586 rm -f conftest.err conftest.$ac_ext
6587 if $ac_preproc_ok; then :
6588   break
6589 fi
6590
6591     done
6592     ac_cv_prog_CPP=$CPP
6593
6594 fi
6595   CPP=$ac_cv_prog_CPP
6596 else
6597   ac_cv_prog_CPP=$CPP
6598 fi
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6600 $as_echo "$CPP" >&6; }
6601 ac_preproc_ok=false
6602 for ac_c_preproc_warn_flag in '' yes
6603 do
6604   # Use a header file that comes with gcc, so configuring glibc
6605   # with a fresh cross-compiler works.
6606   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6607   # <limits.h> exists even on freestanding compilers.
6608   # On the NeXT, cc -E runs the code through the compiler's parser,
6609   # not just through cpp. "Syntax error" is here to catch this case.
6610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h.  */
6612 #ifdef __STDC__
6613 # include <limits.h>
6614 #else
6615 # include <assert.h>
6616 #endif
6617                      Syntax error
6618 _ACEOF
6619 if ac_fn_c_try_cpp "$LINENO"; then :
6620
6621 else
6622   # Broken: fails on valid input.
6623 continue
6624 fi
6625 rm -f conftest.err conftest.$ac_ext
6626
6627   # OK, works on sane cases.  Now check whether nonexistent headers
6628   # can be detected and how.
6629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h.  */
6631 #include <ac_nonexistent.h>
6632 _ACEOF
6633 if ac_fn_c_try_cpp "$LINENO"; then :
6634   # Broken: success on invalid input.
6635 continue
6636 else
6637   # Passes both tests.
6638 ac_preproc_ok=:
6639 break
6640 fi
6641 rm -f conftest.err conftest.$ac_ext
6642
6643 done
6644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6645 rm -f conftest.err conftest.$ac_ext
6646 if $ac_preproc_ok; then :
6647
6648 else
6649   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6651 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6652 See \`config.log' for more details" "$LINENO" 5; }
6653 fi
6654
6655 ac_ext=c
6656 ac_cpp='$CPP $CPPFLAGS'
6657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6660
6661
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6663 $as_echo_n "checking for ANSI C header files... " >&6; }
6664 if test "${ac_cv_header_stdc+set}" = set; then :
6665   $as_echo_n "(cached) " >&6
6666 else
6667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h.  */
6669 #include <stdlib.h>
6670 #include <stdarg.h>
6671 #include <string.h>
6672 #include <float.h>
6673
6674 int
6675 main ()
6676 {
6677
6678   ;
6679   return 0;
6680 }
6681 _ACEOF
6682 if ac_fn_c_try_compile "$LINENO"; then :
6683   ac_cv_header_stdc=yes
6684 else
6685   ac_cv_header_stdc=no
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688
6689 if test $ac_cv_header_stdc = yes; then
6690   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h.  */
6693 #include <string.h>
6694
6695 _ACEOF
6696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6697   $EGREP "memchr" >/dev/null 2>&1; then :
6698
6699 else
6700   ac_cv_header_stdc=no
6701 fi
6702 rm -f conftest*
6703
6704 fi
6705
6706 if test $ac_cv_header_stdc = yes; then
6707   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h.  */
6710 #include <stdlib.h>
6711
6712 _ACEOF
6713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6714   $EGREP "free" >/dev/null 2>&1; then :
6715
6716 else
6717   ac_cv_header_stdc=no
6718 fi
6719 rm -f conftest*
6720
6721 fi
6722
6723 if test $ac_cv_header_stdc = yes; then
6724   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6725   if test "$cross_compiling" = yes; then :
6726   :
6727 else
6728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h.  */
6730 #include <ctype.h>
6731 #include <stdlib.h>
6732 #if ((' ' & 0x0FF) == 0x020)
6733 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6734 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6735 #else
6736 # define ISLOWER(c) \
6737                    (('a' <= (c) && (c) <= 'i') \
6738                      || ('j' <= (c) && (c) <= 'r') \
6739                      || ('s' <= (c) && (c) <= 'z'))
6740 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6741 #endif
6742
6743 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6744 int
6745 main ()
6746 {
6747   int i;
6748   for (i = 0; i < 256; i++)
6749     if (XOR (islower (i), ISLOWER (i))
6750         || toupper (i) != TOUPPER (i))
6751       return 2;
6752   return 0;
6753 }
6754 _ACEOF
6755 if ac_fn_c_try_run "$LINENO"; then :
6756
6757 else
6758   ac_cv_header_stdc=no
6759 fi
6760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6761   conftest.$ac_objext conftest.beam conftest.$ac_ext
6762 fi
6763
6764 fi
6765 fi
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6767 $as_echo "$ac_cv_header_stdc" >&6; }
6768 if test $ac_cv_header_stdc = yes; then
6769
6770 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6771
6772 fi
6773
6774 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6775 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6776                   inttypes.h stdint.h unistd.h
6777 do :
6778   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6779 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6780 "
6781 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6782   cat >>confdefs.h <<_ACEOF
6783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6784 _ACEOF
6785
6786 fi
6787
6788 done
6789
6790
6791 for ac_header in dlfcn.h
6792 do :
6793   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6794 "
6795 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6796   cat >>confdefs.h <<_ACEOF
6797 #define HAVE_DLFCN_H 1
6798 _ACEOF
6799
6800 fi
6801
6802 done
6803
6804
6805
6806
6807
6808 # Set options
6809
6810
6811
6812         enable_dlopen=no
6813
6814
6815   enable_win32_dll=no
6816
6817
6818             # Check whether --enable-shared was given.
6819 if test "${enable_shared+set}" = set; then :
6820   enableval=$enable_shared; p=${PACKAGE-default}
6821     case $enableval in
6822     yes) enable_shared=yes ;;
6823     no) enable_shared=no ;;
6824     *)
6825       enable_shared=no
6826       # Look at the argument we got.  We use all the common list separators.
6827       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6828       for pkg in $enableval; do
6829         IFS="$lt_save_ifs"
6830         if test "X$pkg" = "X$p"; then
6831           enable_shared=yes
6832         fi
6833       done
6834       IFS="$lt_save_ifs"
6835       ;;
6836     esac
6837 else
6838   enable_shared=yes
6839 fi
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851 # Check whether --with-pic was given.
6852 if test "${with_pic+set}" = set; then :
6853   withval=$with_pic; pic_mode="$withval"
6854 else
6855   pic_mode=default
6856 fi
6857
6858
6859 test -z "$pic_mode" && pic_mode=default
6860
6861
6862
6863
6864
6865
6866
6867   # Check whether --enable-fast-install was given.
6868 if test "${enable_fast_install+set}" = set; then :
6869   enableval=$enable_fast_install; p=${PACKAGE-default}
6870     case $enableval in
6871     yes) enable_fast_install=yes ;;
6872     no) enable_fast_install=no ;;
6873     *)
6874       enable_fast_install=no
6875       # Look at the argument we got.  We use all the common list separators.
6876       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6877       for pkg in $enableval; do
6878         IFS="$lt_save_ifs"
6879         if test "X$pkg" = "X$p"; then
6880           enable_fast_install=yes
6881         fi
6882       done
6883       IFS="$lt_save_ifs"
6884       ;;
6885     esac
6886 else
6887   enable_fast_install=yes
6888 fi
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900 # This can be used to rebuild libtool when needed
6901 LIBTOOL_DEPS="$ltmain"
6902
6903 # Always use our own libtool.
6904 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931 test -z "$LN_S" && LN_S="ln -s"
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946 if test -n "${ZSH_VERSION+set}" ; then
6947    setopt NO_GLOB_SUBST
6948 fi
6949
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6951 $as_echo_n "checking for objdir... " >&6; }
6952 if test "${lt_cv_objdir+set}" = set; then :
6953   $as_echo_n "(cached) " >&6
6954 else
6955   rm -f .libs 2>/dev/null
6956 mkdir .libs 2>/dev/null
6957 if test -d .libs; then
6958   lt_cv_objdir=.libs
6959 else
6960   # MS-DOS does not allow filenames that begin with a dot.
6961   lt_cv_objdir=_libs
6962 fi
6963 rmdir .libs 2>/dev/null
6964 fi
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6966 $as_echo "$lt_cv_objdir" >&6; }
6967 objdir=$lt_cv_objdir
6968
6969
6970
6971
6972
6973 cat >>confdefs.h <<_ACEOF
6974 #define LT_OBJDIR "$lt_cv_objdir/"
6975 _ACEOF
6976
6977
6978
6979
6980 case $host_os in
6981 aix3*)
6982   # AIX sometimes has problems with the GCC collect2 program.  For some
6983   # reason, if we set the COLLECT_NAMES environment variable, the problems
6984   # vanish in a puff of smoke.
6985   if test "X${COLLECT_NAMES+set}" != Xset; then
6986     COLLECT_NAMES=
6987     export COLLECT_NAMES
6988   fi
6989   ;;
6990 esac
6991
6992 # Global variables:
6993 ofile=libtool
6994 can_build_shared=yes
6995
6996 # All known linkers require a `.a' archive for static linking (except MSVC,
6997 # which needs '.lib').
6998 libext=a
6999
7000 with_gnu_ld="$lt_cv_prog_gnu_ld"
7001
7002 old_CC="$CC"
7003 old_CFLAGS="$CFLAGS"
7004
7005 # Set sane defaults for various variables
7006 test -z "$CC" && CC=cc
7007 test -z "$LTCC" && LTCC=$CC
7008 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7009 test -z "$LD" && LD=ld
7010 test -z "$ac_objext" && ac_objext=o
7011
7012 for cc_temp in $compiler""; do
7013   case $cc_temp in
7014     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7015     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7016     \-*) ;;
7017     *) break;;
7018   esac
7019 done
7020 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7021
7022
7023 # Only perform the check for file, if the check method requires it
7024 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7025 case $deplibs_check_method in
7026 file_magic*)
7027   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7029 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7030 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7031   $as_echo_n "(cached) " >&6
7032 else
7033   case $MAGIC_CMD in
7034 [\\/*] |  ?:[\\/]*)
7035   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7036   ;;
7037 *)
7038   lt_save_MAGIC_CMD="$MAGIC_CMD"
7039   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7040   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7041   for ac_dir in $ac_dummy; do
7042     IFS="$lt_save_ifs"
7043     test -z "$ac_dir" && ac_dir=.
7044     if test -f $ac_dir/${ac_tool_prefix}file; then
7045       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7046       if test -n "$file_magic_test_file"; then
7047         case $deplibs_check_method in
7048         "file_magic "*)
7049           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7050           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7051           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7052             $EGREP "$file_magic_regex" > /dev/null; then
7053             :
7054           else
7055             cat <<_LT_EOF 1>&2
7056
7057 *** Warning: the command libtool uses to detect shared libraries,
7058 *** $file_magic_cmd, produces output that libtool cannot recognize.
7059 *** The result is that libtool may fail to recognize shared libraries
7060 *** as such.  This will affect the creation of libtool libraries that
7061 *** depend on shared libraries, but programs linked with such libtool
7062 *** libraries will work regardless of this problem.  Nevertheless, you
7063 *** may want to report the problem to your system manager and/or to
7064 *** bug-libtool@gnu.org
7065
7066 _LT_EOF
7067           fi ;;
7068         esac
7069       fi
7070       break
7071     fi
7072   done
7073   IFS="$lt_save_ifs"
7074   MAGIC_CMD="$lt_save_MAGIC_CMD"
7075   ;;
7076 esac
7077 fi
7078
7079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7080 if test -n "$MAGIC_CMD"; then
7081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7082 $as_echo "$MAGIC_CMD" >&6; }
7083 else
7084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7086 fi
7087
7088
7089
7090
7091
7092 if test -z "$lt_cv_path_MAGIC_CMD"; then
7093   if test -n "$ac_tool_prefix"; then
7094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7095 $as_echo_n "checking for file... " >&6; }
7096 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7097   $as_echo_n "(cached) " >&6
7098 else
7099   case $MAGIC_CMD in
7100 [\\/*] |  ?:[\\/]*)
7101   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7102   ;;
7103 *)
7104   lt_save_MAGIC_CMD="$MAGIC_CMD"
7105   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7106   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7107   for ac_dir in $ac_dummy; do
7108     IFS="$lt_save_ifs"
7109     test -z "$ac_dir" && ac_dir=.
7110     if test -f $ac_dir/file; then
7111       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7112       if test -n "$file_magic_test_file"; then
7113         case $deplibs_check_method in
7114         "file_magic "*)
7115           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7116           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7117           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7118             $EGREP "$file_magic_regex" > /dev/null; then
7119             :
7120           else
7121             cat <<_LT_EOF 1>&2
7122
7123 *** Warning: the command libtool uses to detect shared libraries,
7124 *** $file_magic_cmd, produces output that libtool cannot recognize.
7125 *** The result is that libtool may fail to recognize shared libraries
7126 *** as such.  This will affect the creation of libtool libraries that
7127 *** depend on shared libraries, but programs linked with such libtool
7128 *** libraries will work regardless of this problem.  Nevertheless, you
7129 *** may want to report the problem to your system manager and/or to
7130 *** bug-libtool@gnu.org
7131
7132 _LT_EOF
7133           fi ;;
7134         esac
7135       fi
7136       break
7137     fi
7138   done
7139   IFS="$lt_save_ifs"
7140   MAGIC_CMD="$lt_save_MAGIC_CMD"
7141   ;;
7142 esac
7143 fi
7144
7145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7146 if test -n "$MAGIC_CMD"; then
7147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7148 $as_echo "$MAGIC_CMD" >&6; }
7149 else
7150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7152 fi
7153
7154
7155   else
7156     MAGIC_CMD=:
7157   fi
7158 fi
7159
7160   fi
7161   ;;
7162 esac
7163
7164 # Use C for the default configuration in the libtool script
7165
7166 lt_save_CC="$CC"
7167 ac_ext=c
7168 ac_cpp='$CPP $CPPFLAGS'
7169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7172
7173
7174 # Source file extension for C test sources.
7175 ac_ext=c
7176
7177 # Object file extension for compiled C test sources.
7178 objext=o
7179 objext=$objext
7180
7181 # Code to be used in simple compile tests
7182 lt_simple_compile_test_code="int some_variable = 0;"
7183
7184 # Code to be used in simple link tests
7185 lt_simple_link_test_code='int main(){return(0);}'
7186
7187
7188
7189
7190
7191
7192
7193 # If no C compiler was specified, use CC.
7194 LTCC=${LTCC-"$CC"}
7195
7196 # If no C compiler flags were specified, use CFLAGS.
7197 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7198
7199 # Allow CC to be a program name with arguments.
7200 compiler=$CC
7201
7202 # Save the default compiler, since it gets overwritten when the other
7203 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7204 compiler_DEFAULT=$CC
7205
7206 # save warnings/boilerplate of simple test code
7207 ac_outfile=conftest.$ac_objext
7208 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7209 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7210 _lt_compiler_boilerplate=`cat conftest.err`
7211 $RM conftest*
7212
7213 ac_outfile=conftest.$ac_objext
7214 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7215 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7216 _lt_linker_boilerplate=`cat conftest.err`
7217 $RM -r conftest*
7218
7219
7220 if test -n "$compiler"; then
7221
7222 lt_prog_compiler_no_builtin_flag=
7223
7224 if test "$GCC" = yes; then
7225   case $cc_basename in
7226   nvcc*)
7227     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7228   *)
7229     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7230   esac
7231
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7233 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7234 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7235   $as_echo_n "(cached) " >&6
7236 else
7237   lt_cv_prog_compiler_rtti_exceptions=no
7238    ac_outfile=conftest.$ac_objext
7239    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7240    lt_compiler_flag="-fno-rtti -fno-exceptions"
7241    # Insert the option either (1) after the last *FLAGS variable, or
7242    # (2) before a word containing "conftest.", or (3) at the end.
7243    # Note that $ac_compile itself does not contain backslashes and begins
7244    # with a dollar sign (not a hyphen), so the echo should work correctly.
7245    # The option is referenced via a variable to avoid confusing sed.
7246    lt_compile=`echo "$ac_compile" | $SED \
7247    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7248    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7249    -e 's:$: $lt_compiler_flag:'`
7250    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7251    (eval "$lt_compile" 2>conftest.err)
7252    ac_status=$?
7253    cat conftest.err >&5
7254    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255    if (exit $ac_status) && test -s "$ac_outfile"; then
7256      # The compiler can only warn and ignore the option if not recognized
7257      # So say no if there are warnings other than the usual output.
7258      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7259      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7260      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7261        lt_cv_prog_compiler_rtti_exceptions=yes
7262      fi
7263    fi
7264    $RM conftest*
7265
7266 fi
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7268 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7269
7270 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7271     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7272 else
7273     :
7274 fi
7275
7276 fi
7277
7278
7279
7280
7281
7282
7283   lt_prog_compiler_wl=
7284 lt_prog_compiler_pic=
7285 lt_prog_compiler_static=
7286
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7288 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7289
7290   if test "$GCC" = yes; then
7291     lt_prog_compiler_wl='-Wl,'
7292     lt_prog_compiler_static='-static'
7293
7294     case $host_os in
7295       aix*)
7296       # All AIX code is PIC.
7297       if test "$host_cpu" = ia64; then
7298         # AIX 5 now supports IA64 processor
7299         lt_prog_compiler_static='-Bstatic'
7300       fi
7301       ;;
7302
7303     amigaos*)
7304       case $host_cpu in
7305       powerpc)
7306             # see comment about AmigaOS4 .so support
7307             lt_prog_compiler_pic='-fPIC'
7308         ;;
7309       m68k)
7310             # FIXME: we need at least 68020 code to build shared libraries, but
7311             # adding the `-m68020' flag to GCC prevents building anything better,
7312             # like `-m68040'.
7313             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7314         ;;
7315       esac
7316       ;;
7317
7318     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7319       # PIC is the default for these OSes.
7320       ;;
7321
7322     mingw* | cygwin* | pw32* | os2* | cegcc*)
7323       # This hack is so that the source file can tell whether it is being
7324       # built for inclusion in a dll (and should export symbols for example).
7325       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7326       # (--disable-auto-import) libraries
7327       lt_prog_compiler_pic='-DDLL_EXPORT'
7328       ;;
7329
7330     darwin* | rhapsody*)
7331       # PIC is the default on this platform
7332       # Common symbols not allowed in MH_DYLIB files
7333       lt_prog_compiler_pic='-fno-common'
7334       ;;
7335
7336     haiku*)
7337       # PIC is the default for Haiku.
7338       # The "-static" flag exists, but is broken.
7339       lt_prog_compiler_static=
7340       ;;
7341
7342     hpux*)
7343       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7344       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7345       # sets the default TLS model and affects inlining.
7346       case $host_cpu in
7347       hppa*64*)
7348         # +Z the default
7349         ;;
7350       *)
7351         lt_prog_compiler_pic='-fPIC'
7352         ;;
7353       esac
7354       ;;
7355
7356     interix[3-9]*)
7357       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7358       # Instead, we relocate shared libraries at runtime.
7359       ;;
7360
7361     msdosdjgpp*)
7362       # Just because we use GCC doesn't mean we suddenly get shared libraries
7363       # on systems that don't support them.
7364       lt_prog_compiler_can_build_shared=no
7365       enable_shared=no
7366       ;;
7367
7368     *nto* | *qnx*)
7369       # QNX uses GNU C++, but need to define -shared option too, otherwise
7370       # it will coredump.
7371       lt_prog_compiler_pic='-fPIC -shared'
7372       ;;
7373
7374     sysv4*MP*)
7375       if test -d /usr/nec; then
7376         lt_prog_compiler_pic=-Kconform_pic
7377       fi
7378       ;;
7379
7380     *)
7381       lt_prog_compiler_pic='-fPIC'
7382       ;;
7383     esac
7384
7385     case $cc_basename in
7386     nvcc*) # Cuda Compiler Driver 2.2
7387       lt_prog_compiler_wl='-Xlinker '
7388       lt_prog_compiler_pic='-Xcompiler -fPIC'
7389       ;;
7390     esac
7391   else
7392     # PORTME Check for flag to pass linker flags through the system compiler.
7393     case $host_os in
7394     aix*)
7395       lt_prog_compiler_wl='-Wl,'
7396       if test "$host_cpu" = ia64; then
7397         # AIX 5 now supports IA64 processor
7398         lt_prog_compiler_static='-Bstatic'
7399       else
7400         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7401       fi
7402       ;;
7403
7404     mingw* | cygwin* | pw32* | os2* | cegcc*)
7405       # This hack is so that the source file can tell whether it is being
7406       # built for inclusion in a dll (and should export symbols for example).
7407       lt_prog_compiler_pic='-DDLL_EXPORT'
7408       ;;
7409
7410     hpux9* | hpux10* | hpux11*)
7411       lt_prog_compiler_wl='-Wl,'
7412       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7413       # not for PA HP-UX.
7414       case $host_cpu in
7415       hppa*64*|ia64*)
7416         # +Z the default
7417         ;;
7418       *)
7419         lt_prog_compiler_pic='+Z'
7420         ;;
7421       esac
7422       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7423       lt_prog_compiler_static='${wl}-a ${wl}archive'
7424       ;;
7425
7426     irix5* | irix6* | nonstopux*)
7427       lt_prog_compiler_wl='-Wl,'
7428       # PIC (with -KPIC) is the default.
7429       lt_prog_compiler_static='-non_shared'
7430       ;;
7431
7432     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7433       case $cc_basename in
7434       # old Intel for x86_64 which still supported -KPIC.
7435       ecc*)
7436         lt_prog_compiler_wl='-Wl,'
7437         lt_prog_compiler_pic='-KPIC'
7438         lt_prog_compiler_static='-static'
7439         ;;
7440       # icc used to be incompatible with GCC.
7441       # ICC 10 doesn't accept -KPIC any more.
7442       icc* | ifort*)
7443         lt_prog_compiler_wl='-Wl,'
7444         lt_prog_compiler_pic='-fPIC'
7445         lt_prog_compiler_static='-static'
7446         ;;
7447       # Lahey Fortran 8.1.
7448       lf95*)
7449         lt_prog_compiler_wl='-Wl,'
7450         lt_prog_compiler_pic='--shared'
7451         lt_prog_compiler_static='--static'
7452         ;;
7453       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7454         # Portland Group compilers (*not* the Pentium gcc compiler,
7455         # which looks to be a dead project)
7456         lt_prog_compiler_wl='-Wl,'
7457         lt_prog_compiler_pic='-fpic'
7458         lt_prog_compiler_static='-Bstatic'
7459         ;;
7460       ccc*)
7461         lt_prog_compiler_wl='-Wl,'
7462         # All Alpha code is PIC.
7463         lt_prog_compiler_static='-non_shared'
7464         ;;
7465       xl* | bgxl* | bgf* | mpixl*)
7466         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7467         lt_prog_compiler_wl='-Wl,'
7468         lt_prog_compiler_pic='-qpic'
7469         lt_prog_compiler_static='-qstaticlink'
7470         ;;
7471       *)
7472         case `$CC -V 2>&1 | sed 5q` in
7473         *Sun\ F* | *Sun*Fortran*)
7474           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7475           lt_prog_compiler_pic='-KPIC'
7476           lt_prog_compiler_static='-Bstatic'
7477           lt_prog_compiler_wl=''
7478           ;;
7479         *Sun\ C*)
7480           # Sun C 5.9
7481           lt_prog_compiler_pic='-KPIC'
7482           lt_prog_compiler_static='-Bstatic'
7483           lt_prog_compiler_wl='-Wl,'
7484           ;;
7485         esac
7486         ;;
7487       esac
7488       ;;
7489
7490     newsos6)
7491       lt_prog_compiler_pic='-KPIC'
7492       lt_prog_compiler_static='-Bstatic'
7493       ;;
7494
7495     *nto* | *qnx*)
7496       # QNX uses GNU C++, but need to define -shared option too, otherwise
7497       # it will coredump.
7498       lt_prog_compiler_pic='-fPIC -shared'
7499       ;;
7500
7501     osf3* | osf4* | osf5*)
7502       lt_prog_compiler_wl='-Wl,'
7503       # All OSF/1 code is PIC.
7504       lt_prog_compiler_static='-non_shared'
7505       ;;
7506
7507     rdos*)
7508       lt_prog_compiler_static='-non_shared'
7509       ;;
7510
7511     solaris*)
7512       lt_prog_compiler_pic='-KPIC'
7513       lt_prog_compiler_static='-Bstatic'
7514       case $cc_basename in
7515       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7516         lt_prog_compiler_wl='-Qoption ld ';;
7517       *)
7518         lt_prog_compiler_wl='-Wl,';;
7519       esac
7520       ;;
7521
7522     sunos4*)
7523       lt_prog_compiler_wl='-Qoption ld '
7524       lt_prog_compiler_pic='-PIC'
7525       lt_prog_compiler_static='-Bstatic'
7526       ;;
7527
7528     sysv4 | sysv4.2uw2* | sysv4.3*)
7529       lt_prog_compiler_wl='-Wl,'
7530       lt_prog_compiler_pic='-KPIC'
7531       lt_prog_compiler_static='-Bstatic'
7532       ;;
7533
7534     sysv4*MP*)
7535       if test -d /usr/nec ;then
7536         lt_prog_compiler_pic='-Kconform_pic'
7537         lt_prog_compiler_static='-Bstatic'
7538       fi
7539       ;;
7540
7541     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7542       lt_prog_compiler_wl='-Wl,'
7543       lt_prog_compiler_pic='-KPIC'
7544       lt_prog_compiler_static='-Bstatic'
7545       ;;
7546
7547     unicos*)
7548       lt_prog_compiler_wl='-Wl,'
7549       lt_prog_compiler_can_build_shared=no
7550       ;;
7551
7552     uts4*)
7553       lt_prog_compiler_pic='-pic'
7554       lt_prog_compiler_static='-Bstatic'
7555       ;;
7556
7557     *)
7558       lt_prog_compiler_can_build_shared=no
7559       ;;
7560     esac
7561   fi
7562
7563 case $host_os in
7564   # For platforms which do not support PIC, -DPIC is meaningless:
7565   *djgpp*)
7566     lt_prog_compiler_pic=
7567     ;;
7568   *)
7569     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7570     ;;
7571 esac
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7573 $as_echo "$lt_prog_compiler_pic" >&6; }
7574
7575
7576
7577
7578
7579
7580 #
7581 # Check to make sure the PIC flag actually works.
7582 #
7583 if test -n "$lt_prog_compiler_pic"; then
7584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7585 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7586 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7587   $as_echo_n "(cached) " >&6
7588 else
7589   lt_cv_prog_compiler_pic_works=no
7590    ac_outfile=conftest.$ac_objext
7591    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7592    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7593    # Insert the option either (1) after the last *FLAGS variable, or
7594    # (2) before a word containing "conftest.", or (3) at the end.
7595    # Note that $ac_compile itself does not contain backslashes and begins
7596    # with a dollar sign (not a hyphen), so the echo should work correctly.
7597    # The option is referenced via a variable to avoid confusing sed.
7598    lt_compile=`echo "$ac_compile" | $SED \
7599    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7600    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7601    -e 's:$: $lt_compiler_flag:'`
7602    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7603    (eval "$lt_compile" 2>conftest.err)
7604    ac_status=$?
7605    cat conftest.err >&5
7606    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607    if (exit $ac_status) && test -s "$ac_outfile"; then
7608      # The compiler can only warn and ignore the option if not recognized
7609      # So say no if there are warnings other than the usual output.
7610      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7611      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7612      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7613        lt_cv_prog_compiler_pic_works=yes
7614      fi
7615    fi
7616    $RM conftest*
7617
7618 fi
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7620 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7621
7622 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7623     case $lt_prog_compiler_pic in
7624      "" | " "*) ;;
7625      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7626      esac
7627 else
7628     lt_prog_compiler_pic=
7629      lt_prog_compiler_can_build_shared=no
7630 fi
7631
7632 fi
7633
7634
7635
7636
7637
7638
7639 #
7640 # Check to make sure the static flag actually works.
7641 #
7642 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7644 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7645 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7646   $as_echo_n "(cached) " >&6
7647 else
7648   lt_cv_prog_compiler_static_works=no
7649    save_LDFLAGS="$LDFLAGS"
7650    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7651    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7652    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7653      # The linker can only warn and ignore the option if not recognized
7654      # So say no if there are warnings
7655      if test -s conftest.err; then
7656        # Append any errors to the config.log.
7657        cat conftest.err 1>&5
7658        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7659        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7660        if diff conftest.exp conftest.er2 >/dev/null; then
7661          lt_cv_prog_compiler_static_works=yes
7662        fi
7663      else
7664        lt_cv_prog_compiler_static_works=yes
7665      fi
7666    fi
7667    $RM -r conftest*
7668    LDFLAGS="$save_LDFLAGS"
7669
7670 fi
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7672 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7673
7674 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7675     :
7676 else
7677     lt_prog_compiler_static=
7678 fi
7679
7680
7681
7682
7683
7684
7685
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7687 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7688 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7689   $as_echo_n "(cached) " >&6
7690 else
7691   lt_cv_prog_compiler_c_o=no
7692    $RM -r conftest 2>/dev/null
7693    mkdir conftest
7694    cd conftest
7695    mkdir out
7696    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7697
7698    lt_compiler_flag="-o out/conftest2.$ac_objext"
7699    # Insert the option either (1) after the last *FLAGS variable, or
7700    # (2) before a word containing "conftest.", or (3) at the end.
7701    # Note that $ac_compile itself does not contain backslashes and begins
7702    # with a dollar sign (not a hyphen), so the echo should work correctly.
7703    lt_compile=`echo "$ac_compile" | $SED \
7704    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7705    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7706    -e 's:$: $lt_compiler_flag:'`
7707    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7708    (eval "$lt_compile" 2>out/conftest.err)
7709    ac_status=$?
7710    cat out/conftest.err >&5
7711    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7713    then
7714      # The compiler can only warn and ignore the option if not recognized
7715      # So say no if there are warnings
7716      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7717      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7718      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7719        lt_cv_prog_compiler_c_o=yes
7720      fi
7721    fi
7722    chmod u+w . 2>&5
7723    $RM conftest*
7724    # SGI C++ compiler will create directory out/ii_files/ for
7725    # template instantiation
7726    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7727    $RM out/* && rmdir out
7728    cd ..
7729    $RM -r conftest
7730    $RM conftest*
7731
7732 fi
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7734 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7735
7736
7737
7738
7739
7740
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7742 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7743 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7744   $as_echo_n "(cached) " >&6
7745 else
7746   lt_cv_prog_compiler_c_o=no
7747    $RM -r conftest 2>/dev/null
7748    mkdir conftest
7749    cd conftest
7750    mkdir out
7751    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7752
7753    lt_compiler_flag="-o out/conftest2.$ac_objext"
7754    # Insert the option either (1) after the last *FLAGS variable, or
7755    # (2) before a word containing "conftest.", or (3) at the end.
7756    # Note that $ac_compile itself does not contain backslashes and begins
7757    # with a dollar sign (not a hyphen), so the echo should work correctly.
7758    lt_compile=`echo "$ac_compile" | $SED \
7759    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7760    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7761    -e 's:$: $lt_compiler_flag:'`
7762    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7763    (eval "$lt_compile" 2>out/conftest.err)
7764    ac_status=$?
7765    cat out/conftest.err >&5
7766    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7768    then
7769      # The compiler can only warn and ignore the option if not recognized
7770      # So say no if there are warnings
7771      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7772      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7773      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7774        lt_cv_prog_compiler_c_o=yes
7775      fi
7776    fi
7777    chmod u+w . 2>&5
7778    $RM conftest*
7779    # SGI C++ compiler will create directory out/ii_files/ for
7780    # template instantiation
7781    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7782    $RM out/* && rmdir out
7783    cd ..
7784    $RM -r conftest
7785    $RM conftest*
7786
7787 fi
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7789 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7790
7791
7792
7793
7794 hard_links="nottested"
7795 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7796   # do not overwrite the value of need_locks provided by the user
7797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7798 $as_echo_n "checking if we can lock with hard links... " >&6; }
7799   hard_links=yes
7800   $RM conftest*
7801   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7802   touch conftest.a
7803   ln conftest.a conftest.b 2>&5 || hard_links=no
7804   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7806 $as_echo "$hard_links" >&6; }
7807   if test "$hard_links" = no; then
7808     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7809 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7810     need_locks=warn
7811   fi
7812 else
7813   need_locks=no
7814 fi
7815
7816
7817
7818
7819
7820
7821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7822 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7823
7824   runpath_var=
7825   allow_undefined_flag=
7826   always_export_symbols=no
7827   archive_cmds=
7828   archive_expsym_cmds=
7829   compiler_needs_object=no
7830   enable_shared_with_static_runtimes=no
7831   export_dynamic_flag_spec=
7832   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7833   hardcode_automatic=no
7834   hardcode_direct=no
7835   hardcode_direct_absolute=no
7836   hardcode_libdir_flag_spec=
7837   hardcode_libdir_flag_spec_ld=
7838   hardcode_libdir_separator=
7839   hardcode_minus_L=no
7840   hardcode_shlibpath_var=unsupported
7841   inherit_rpath=no
7842   link_all_deplibs=unknown
7843   module_cmds=
7844   module_expsym_cmds=
7845   old_archive_from_new_cmds=
7846   old_archive_from_expsyms_cmds=
7847   thread_safe_flag_spec=
7848   whole_archive_flag_spec=
7849   # include_expsyms should be a list of space-separated symbols to be *always*
7850   # included in the symbol list
7851   include_expsyms=
7852   # exclude_expsyms can be an extended regexp of symbols to exclude
7853   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7854   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7855   # as well as any symbol that contains `d'.
7856   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7857   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7858   # platforms (ab)use it in PIC code, but their linkers get confused if
7859   # the symbol is explicitly referenced.  Since portable code cannot
7860   # rely on this symbol name, it's probably fine to never include it in
7861   # preloaded symbol tables.
7862   # Exclude shared library initialization/finalization symbols.
7863   extract_expsyms_cmds=
7864
7865   case $host_os in
7866   cygwin* | mingw* | pw32* | cegcc*)
7867     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7868     # When not using gcc, we currently assume that we are using
7869     # Microsoft Visual C++.
7870     if test "$GCC" != yes; then
7871       with_gnu_ld=no
7872     fi
7873     ;;
7874   interix*)
7875     # we just hope/assume this is gcc and not c89 (= MSVC++)
7876     with_gnu_ld=yes
7877     ;;
7878   openbsd*)
7879     with_gnu_ld=no
7880     ;;
7881   esac
7882
7883   ld_shlibs=yes
7884
7885   # On some targets, GNU ld is compatible enough with the native linker
7886   # that we're better off using the native interface for both.
7887   lt_use_gnu_ld_interface=no
7888   if test "$with_gnu_ld" = yes; then
7889     case $host_os in
7890       aix*)
7891         # The AIX port of GNU ld has always aspired to compatibility
7892         # with the native linker.  However, as the warning in the GNU ld
7893         # block says, versions before 2.19.5* couldn't really create working
7894         # shared libraries, regardless of the interface used.
7895         case `$LD -v 2>&1` in
7896           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7897           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7898           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7899           *)
7900             lt_use_gnu_ld_interface=yes
7901             ;;
7902         esac
7903         ;;
7904       *)
7905         lt_use_gnu_ld_interface=yes
7906         ;;
7907     esac
7908   fi
7909
7910   if test "$lt_use_gnu_ld_interface" = yes; then
7911     # If archive_cmds runs LD, not CC, wlarc should be empty
7912     wlarc='${wl}'
7913
7914     # Set some defaults for GNU ld with shared library support. These
7915     # are reset later if shared libraries are not supported. Putting them
7916     # here allows them to be overridden if necessary.
7917     runpath_var=LD_RUN_PATH
7918     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7919     export_dynamic_flag_spec='${wl}--export-dynamic'
7920     # ancient GNU ld didn't support --whole-archive et. al.
7921     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7922       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7923     else
7924       whole_archive_flag_spec=
7925     fi
7926     supports_anon_versioning=no
7927     case `$LD -v 2>&1` in
7928       *GNU\ gold*) supports_anon_versioning=yes ;;
7929       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7930       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7931       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7932       *\ 2.11.*) ;; # other 2.11 versions
7933       *) supports_anon_versioning=yes ;;
7934     esac
7935
7936     # See if GNU ld supports shared libraries.
7937     case $host_os in
7938     aix[3-9]*)
7939       # On AIX/PPC, the GNU linker is very broken
7940       if test "$host_cpu" != ia64; then
7941         ld_shlibs=no
7942         cat <<_LT_EOF 1>&2
7943
7944 *** Warning: the GNU linker, at least up to release 2.19, is reported
7945 *** to be unable to reliably create shared libraries on AIX.
7946 *** Therefore, libtool is disabling shared libraries support.  If you
7947 *** really care for shared libraries, you may want to install binutils
7948 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7949 *** You will then need to restart the configuration process.
7950
7951 _LT_EOF
7952       fi
7953       ;;
7954
7955     amigaos*)
7956       case $host_cpu in
7957       powerpc)
7958             # see comment about AmigaOS4 .so support
7959             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7960             archive_expsym_cmds=''
7961         ;;
7962       m68k)
7963             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)'
7964             hardcode_libdir_flag_spec='-L$libdir'
7965             hardcode_minus_L=yes
7966         ;;
7967       esac
7968       ;;
7969
7970     beos*)
7971       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7972         allow_undefined_flag=unsupported
7973         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7974         # support --undefined.  This deserves some investigation.  FIXME
7975         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7976       else
7977         ld_shlibs=no
7978       fi
7979       ;;
7980
7981     cygwin* | mingw* | pw32* | cegcc*)
7982       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7983       # as there is no search path for DLLs.
7984       hardcode_libdir_flag_spec='-L$libdir'
7985       export_dynamic_flag_spec='${wl}--export-all-symbols'
7986       allow_undefined_flag=unsupported
7987       always_export_symbols=no
7988       enable_shared_with_static_runtimes=yes
7989       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7990
7991       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7992         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7993         # If the export-symbols file already is a .def file (1st line
7994         # is EXPORTS), use it as is; otherwise, prepend...
7995         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7996           cp $export_symbols $output_objdir/$soname.def;
7997         else
7998           echo EXPORTS > $output_objdir/$soname.def;
7999           cat $export_symbols >> $output_objdir/$soname.def;
8000         fi~
8001         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8002       else
8003         ld_shlibs=no
8004       fi
8005       ;;
8006
8007     haiku*)
8008       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8009       link_all_deplibs=yes
8010       ;;
8011
8012     interix[3-9]*)
8013       hardcode_direct=no
8014       hardcode_shlibpath_var=no
8015       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8016       export_dynamic_flag_spec='${wl}-E'
8017       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8018       # Instead, shared libraries are loaded at an image base (0x10000000 by
8019       # default) and relocated if they conflict, which is a slow very memory
8020       # consuming and fragmenting process.  To avoid this, we pick a random,
8021       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8022       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8023       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8024       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'
8025       ;;
8026
8027     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8028       tmp_diet=no
8029       if test "$host_os" = linux-dietlibc; then
8030         case $cc_basename in
8031           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8032         esac
8033       fi
8034       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8035          && test "$tmp_diet" = no
8036       then
8037         tmp_addflag=
8038         tmp_sharedflag='-shared'
8039         case $cc_basename,$host_cpu in
8040         pgcc*)                          # Portland Group C compiler
8041           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'
8042           tmp_addflag=' $pic_flag'
8043           ;;
8044         pgf77* | pgf90* | pgf95* | pgfortran*)
8045                                         # Portland Group f77 and f90 compilers
8046           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'
8047           tmp_addflag=' $pic_flag -Mnomain' ;;
8048         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8049           tmp_addflag=' -i_dynamic' ;;
8050         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8051           tmp_addflag=' -i_dynamic -nofor_main' ;;
8052         ifc* | ifort*)                  # Intel Fortran compiler
8053           tmp_addflag=' -nofor_main' ;;
8054         lf95*)                          # Lahey Fortran 8.1
8055           whole_archive_flag_spec=
8056           tmp_sharedflag='--shared' ;;
8057         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8058           tmp_sharedflag='-qmkshrobj'
8059           tmp_addflag= ;;
8060         nvcc*)  # Cuda Compiler Driver 2.2
8061           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'
8062           compiler_needs_object=yes
8063           ;;
8064         esac
8065         case `$CC -V 2>&1 | sed 5q` in
8066         *Sun\ C*)                       # Sun C 5.9
8067           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'
8068           compiler_needs_object=yes
8069           tmp_sharedflag='-G' ;;
8070         *Sun\ F*)                       # Sun Fortran 8.3
8071           tmp_sharedflag='-G' ;;
8072         esac
8073         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8074
8075         if test "x$supports_anon_versioning" = xyes; then
8076           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8077             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8078             echo "local: *; };" >> $output_objdir/$libname.ver~
8079             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8080         fi
8081
8082         case $cc_basename in
8083         xlf* | bgf* | bgxlf* | mpixlf*)
8084           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8085           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8086           hardcode_libdir_flag_spec=
8087           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8088           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8089           if test "x$supports_anon_versioning" = xyes; then
8090             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8091               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8092               echo "local: *; };" >> $output_objdir/$libname.ver~
8093               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8094           fi
8095           ;;
8096         esac
8097       else
8098         ld_shlibs=no
8099       fi
8100       ;;
8101
8102     netbsd*)
8103       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8104         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8105         wlarc=
8106       else
8107         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8108         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8109       fi
8110       ;;
8111
8112     solaris*)
8113       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8114         ld_shlibs=no
8115         cat <<_LT_EOF 1>&2
8116
8117 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8118 *** create shared libraries on Solaris systems.  Therefore, libtool
8119 *** is disabling shared libraries support.  We urge you to upgrade GNU
8120 *** binutils to release 2.9.1 or newer.  Another option is to modify
8121 *** your PATH or compiler configuration so that the native linker is
8122 *** used, and then restart.
8123
8124 _LT_EOF
8125       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8126         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8127         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8128       else
8129         ld_shlibs=no
8130       fi
8131       ;;
8132
8133     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8134       case `$LD -v 2>&1` in
8135         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8136         ld_shlibs=no
8137         cat <<_LT_EOF 1>&2
8138
8139 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8140 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8141 *** is disabling shared libraries support.  We urge you to upgrade GNU
8142 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8143 *** your PATH or compiler configuration so that the native linker is
8144 *** used, and then restart.
8145
8146 _LT_EOF
8147         ;;
8148         *)
8149           # For security reasons, it is highly recommended that you always
8150           # use absolute paths for naming shared libraries, and exclude the
8151           # DT_RUNPATH tag from executables and libraries.  But doing so
8152           # requires that you compile everything twice, which is a pain.
8153           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8154             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8155             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8156             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8157           else
8158             ld_shlibs=no
8159           fi
8160         ;;
8161       esac
8162       ;;
8163
8164     sunos4*)
8165       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8166       wlarc=
8167       hardcode_direct=yes
8168       hardcode_shlibpath_var=no
8169       ;;
8170
8171     *)
8172       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8173         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8174         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8175       else
8176         ld_shlibs=no
8177       fi
8178       ;;
8179     esac
8180
8181     if test "$ld_shlibs" = no; then
8182       runpath_var=
8183       hardcode_libdir_flag_spec=
8184       export_dynamic_flag_spec=
8185       whole_archive_flag_spec=
8186     fi
8187   else
8188     # PORTME fill in a description of your system's linker (not GNU ld)
8189     case $host_os in
8190     aix3*)
8191       allow_undefined_flag=unsupported
8192       always_export_symbols=yes
8193       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'
8194       # Note: this linker hardcodes the directories in LIBPATH if there
8195       # are no directories specified by -L.
8196       hardcode_minus_L=yes
8197       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8198         # Neither direct hardcoding nor static linking is supported with a
8199         # broken collect2.
8200         hardcode_direct=unsupported
8201       fi
8202       ;;
8203
8204     aix[4-9]*)
8205       if test "$host_cpu" = ia64; then
8206         # On IA64, the linker does run time linking by default, so we don't
8207         # have to do anything special.
8208         aix_use_runtimelinking=no
8209         exp_sym_flag='-Bexport'
8210         no_entry_flag=""
8211       else
8212         # If we're using GNU nm, then we don't want the "-C" option.
8213         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8214         # Also, AIX nm treats weak defined symbols like other global
8215         # defined symbols, whereas GNU nm marks them as "W".
8216         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8217           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'
8218         else
8219           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'
8220         fi
8221         aix_use_runtimelinking=no
8222
8223         # Test if we are trying to use run time linking or normal
8224         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8225         # need to do runtime linking.
8226         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8227           for ld_flag in $LDFLAGS; do
8228           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8229             aix_use_runtimelinking=yes
8230             break
8231           fi
8232           done
8233           ;;
8234         esac
8235
8236         exp_sym_flag='-bexport'
8237         no_entry_flag='-bnoentry'
8238       fi
8239
8240       # When large executables or shared objects are built, AIX ld can
8241       # have problems creating the table of contents.  If linking a library
8242       # or program results in "error TOC overflow" add -mminimal-toc to
8243       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8244       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8245
8246       archive_cmds=''
8247       hardcode_direct=yes
8248       hardcode_direct_absolute=yes
8249       hardcode_libdir_separator=':'
8250       link_all_deplibs=yes
8251       file_list_spec='${wl}-f,'
8252
8253       if test "$GCC" = yes; then
8254         case $host_os in aix4.[012]|aix4.[012].*)
8255         # We only want to do this on AIX 4.2 and lower, the check
8256         # below for broken collect2 doesn't work under 4.3+
8257           collect2name=`${CC} -print-prog-name=collect2`
8258           if test -f "$collect2name" &&
8259            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8260           then
8261           # We have reworked collect2
8262           :
8263           else
8264           # We have old collect2
8265           hardcode_direct=unsupported
8266           # It fails to find uninstalled libraries when the uninstalled
8267           # path is not listed in the libpath.  Setting hardcode_minus_L
8268           # to unsupported forces relinking
8269           hardcode_minus_L=yes
8270           hardcode_libdir_flag_spec='-L$libdir'
8271           hardcode_libdir_separator=
8272           fi
8273           ;;
8274         esac
8275         shared_flag='-shared'
8276         if test "$aix_use_runtimelinking" = yes; then
8277           shared_flag="$shared_flag "'${wl}-G'
8278         fi
8279       else
8280         # not using gcc
8281         if test "$host_cpu" = ia64; then
8282         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8283         # chokes on -Wl,-G. The following line is correct:
8284           shared_flag='-G'
8285         else
8286           if test "$aix_use_runtimelinking" = yes; then
8287             shared_flag='${wl}-G'
8288           else
8289             shared_flag='${wl}-bM:SRE'
8290           fi
8291         fi
8292       fi
8293
8294       export_dynamic_flag_spec='${wl}-bexpall'
8295       # It seems that -bexpall does not export symbols beginning with
8296       # underscore (_), so it is better to generate a list of symbols to export.
8297       always_export_symbols=yes
8298       if test "$aix_use_runtimelinking" = yes; then
8299         # Warning - without using the other runtime loading flags (-brtl),
8300         # -berok will link without error, but may produce a broken library.
8301         allow_undefined_flag='-berok'
8302         # Determine the default libpath from the value encoded in an
8303         # empty executable.
8304         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h.  */
8306
8307 int
8308 main ()
8309 {
8310
8311   ;
8312   return 0;
8313 }
8314 _ACEOF
8315 if ac_fn_c_try_link "$LINENO"; then :
8316
8317 lt_aix_libpath_sed='
8318     /Import File Strings/,/^$/ {
8319         /^0/ {
8320             s/^0  *\(.*\)$/\1/
8321             p
8322         }
8323     }'
8324 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8325 # Check for a 64-bit object if we didn't find anything.
8326 if test -z "$aix_libpath"; then
8327   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8328 fi
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext \
8331     conftest$ac_exeext conftest.$ac_ext
8332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8333
8334         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8335         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"
8336       else
8337         if test "$host_cpu" = ia64; then
8338           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8339           allow_undefined_flag="-z nodefs"
8340           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"
8341         else
8342          # Determine the default libpath from the value encoded in an
8343          # empty executable.
8344          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h.  */
8346
8347 int
8348 main ()
8349 {
8350
8351   ;
8352   return 0;
8353 }
8354 _ACEOF
8355 if ac_fn_c_try_link "$LINENO"; then :
8356
8357 lt_aix_libpath_sed='
8358     /Import File Strings/,/^$/ {
8359         /^0/ {
8360             s/^0  *\(.*\)$/\1/
8361             p
8362         }
8363     }'
8364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8365 # Check for a 64-bit object if we didn't find anything.
8366 if test -z "$aix_libpath"; then
8367   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8368 fi
8369 fi
8370 rm -f core conftest.err conftest.$ac_objext \
8371     conftest$ac_exeext conftest.$ac_ext
8372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8373
8374          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8375           # Warning - without using the other run time loading flags,
8376           # -berok will link without error, but may produce a broken library.
8377           no_undefined_flag=' ${wl}-bernotok'
8378           allow_undefined_flag=' ${wl}-berok'
8379           if test "$with_gnu_ld" = yes; then
8380             # We only use this code for GNU lds that support --whole-archive.
8381             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8382           else
8383             # Exported symbols can be pulled into shared objects from archives
8384             whole_archive_flag_spec='$convenience'
8385           fi
8386           archive_cmds_need_lc=yes
8387           # This is similar to how AIX traditionally builds its shared libraries.
8388           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'
8389         fi
8390       fi
8391       ;;
8392
8393     amigaos*)
8394       case $host_cpu in
8395       powerpc)
8396             # see comment about AmigaOS4 .so support
8397             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8398             archive_expsym_cmds=''
8399         ;;
8400       m68k)
8401             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)'
8402             hardcode_libdir_flag_spec='-L$libdir'
8403             hardcode_minus_L=yes
8404         ;;
8405       esac
8406       ;;
8407
8408     bsdi[45]*)
8409       export_dynamic_flag_spec=-rdynamic
8410       ;;
8411
8412     cygwin* | mingw* | pw32* | cegcc*)
8413       # When not using gcc, we currently assume that we are using
8414       # Microsoft Visual C++.
8415       # hardcode_libdir_flag_spec is actually meaningless, as there is
8416       # no search path for DLLs.
8417       hardcode_libdir_flag_spec=' '
8418       allow_undefined_flag=unsupported
8419       # Tell ltmain to make .lib files, not .a files.
8420       libext=lib
8421       # Tell ltmain to make .dll files, not .so files.
8422       shrext_cmds=".dll"
8423       # FIXME: Setting linknames here is a bad hack.
8424       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8425       # The linker will automatically build a .lib file if we build a DLL.
8426       old_archive_from_new_cmds='true'
8427       # FIXME: Should let the user specify the lib program.
8428       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8429       fix_srcfile_path='`cygpath -w "$srcfile"`'
8430       enable_shared_with_static_runtimes=yes
8431       ;;
8432
8433     darwin* | rhapsody*)
8434
8435
8436   archive_cmds_need_lc=no
8437   hardcode_direct=no
8438   hardcode_automatic=yes
8439   hardcode_shlibpath_var=unsupported
8440   if test "$lt_cv_ld_force_load" = "yes"; then
8441     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\"`'
8442   else
8443     whole_archive_flag_spec=''
8444   fi
8445   link_all_deplibs=yes
8446   allow_undefined_flag="$_lt_dar_allow_undefined"
8447   case $cc_basename in
8448      ifort*) _lt_dar_can_shared=yes ;;
8449      *) _lt_dar_can_shared=$GCC ;;
8450   esac
8451   if test "$_lt_dar_can_shared" = "yes"; then
8452     output_verbose_link_cmd=func_echo_all
8453     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8454     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8455     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}"
8456     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}"
8457
8458   else
8459   ld_shlibs=no
8460   fi
8461
8462       ;;
8463
8464     dgux*)
8465       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8466       hardcode_libdir_flag_spec='-L$libdir'
8467       hardcode_shlibpath_var=no
8468       ;;
8469
8470     freebsd1*)
8471       ld_shlibs=no
8472       ;;
8473
8474     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8475     # support.  Future versions do this automatically, but an explicit c++rt0.o
8476     # does not break anything, and helps significantly (at the cost of a little
8477     # extra space).
8478     freebsd2.2*)
8479       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8480       hardcode_libdir_flag_spec='-R$libdir'
8481       hardcode_direct=yes
8482       hardcode_shlibpath_var=no
8483       ;;
8484
8485     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8486     freebsd2*)
8487       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8488       hardcode_direct=yes
8489       hardcode_minus_L=yes
8490       hardcode_shlibpath_var=no
8491       ;;
8492
8493     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8494     freebsd* | dragonfly*)
8495       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8496       hardcode_libdir_flag_spec='-R$libdir'
8497       hardcode_direct=yes
8498       hardcode_shlibpath_var=no
8499       ;;
8500
8501     hpux9*)
8502       if test "$GCC" = yes; then
8503         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8504       else
8505         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'
8506       fi
8507       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8508       hardcode_libdir_separator=:
8509       hardcode_direct=yes
8510
8511       # hardcode_minus_L: Not really in the search PATH,
8512       # but as the default location of the library.
8513       hardcode_minus_L=yes
8514       export_dynamic_flag_spec='${wl}-E'
8515       ;;
8516
8517     hpux10*)
8518       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8519         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8520       else
8521         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8522       fi
8523       if test "$with_gnu_ld" = no; then
8524         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8525         hardcode_libdir_flag_spec_ld='+b $libdir'
8526         hardcode_libdir_separator=:
8527         hardcode_direct=yes
8528         hardcode_direct_absolute=yes
8529         export_dynamic_flag_spec='${wl}-E'
8530         # hardcode_minus_L: Not really in the search PATH,
8531         # but as the default location of the library.
8532         hardcode_minus_L=yes
8533       fi
8534       ;;
8535
8536     hpux11*)
8537       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8538         case $host_cpu in
8539         hppa*64*)
8540           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8541           ;;
8542         ia64*)
8543           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8544           ;;
8545         *)
8546           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8547           ;;
8548         esac
8549       else
8550         case $host_cpu in
8551         hppa*64*)
8552           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8553           ;;
8554         ia64*)
8555           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8556           ;;
8557         *)
8558
8559           # Older versions of the 11.00 compiler do not understand -b yet
8560           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8561           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8562 $as_echo_n "checking if $CC understands -b... " >&6; }
8563 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8564   $as_echo_n "(cached) " >&6
8565 else
8566   lt_cv_prog_compiler__b=no
8567    save_LDFLAGS="$LDFLAGS"
8568    LDFLAGS="$LDFLAGS -b"
8569    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8570    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8571      # The linker can only warn and ignore the option if not recognized
8572      # So say no if there are warnings
8573      if test -s conftest.err; then
8574        # Append any errors to the config.log.
8575        cat conftest.err 1>&5
8576        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8577        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8578        if diff conftest.exp conftest.er2 >/dev/null; then
8579          lt_cv_prog_compiler__b=yes
8580        fi
8581      else
8582        lt_cv_prog_compiler__b=yes
8583      fi
8584    fi
8585    $RM -r conftest*
8586    LDFLAGS="$save_LDFLAGS"
8587
8588 fi
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8590 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8591
8592 if test x"$lt_cv_prog_compiler__b" = xyes; then
8593     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8594 else
8595     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8596 fi
8597
8598           ;;
8599         esac
8600       fi
8601       if test "$with_gnu_ld" = no; then
8602         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8603         hardcode_libdir_separator=:
8604
8605         case $host_cpu in
8606         hppa*64*|ia64*)
8607           hardcode_direct=no
8608           hardcode_shlibpath_var=no
8609           ;;
8610         *)
8611           hardcode_direct=yes
8612           hardcode_direct_absolute=yes
8613           export_dynamic_flag_spec='${wl}-E'
8614
8615           # hardcode_minus_L: Not really in the search PATH,
8616           # but as the default location of the library.
8617           hardcode_minus_L=yes
8618           ;;
8619         esac
8620       fi
8621       ;;
8622
8623     irix5* | irix6* | nonstopux*)
8624       if test "$GCC" = yes; then
8625         archive_cmds='$CC -shared $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'
8626         # Try to use the -exported_symbol ld option, if it does not
8627         # work, assume that -exports_file does not work either and
8628         # implicitly export all symbols.
8629         save_LDFLAGS="$LDFLAGS"
8630         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8631         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h.  */
8633 int foo(void) {}
8634 _ACEOF
8635 if ac_fn_c_try_link "$LINENO"; then :
8636   archive_expsym_cmds='$CC -shared $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'
8637
8638 fi
8639 rm -f core conftest.err conftest.$ac_objext \
8640     conftest$ac_exeext conftest.$ac_ext
8641         LDFLAGS="$save_LDFLAGS"
8642       else
8643         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'
8644         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'
8645       fi
8646       archive_cmds_need_lc='no'
8647       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8648       hardcode_libdir_separator=:
8649       inherit_rpath=yes
8650       link_all_deplibs=yes
8651       ;;
8652
8653     netbsd*)
8654       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8655         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8656       else
8657         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8658       fi
8659       hardcode_libdir_flag_spec='-R$libdir'
8660       hardcode_direct=yes
8661       hardcode_shlibpath_var=no
8662       ;;
8663
8664     newsos6)
8665       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8666       hardcode_direct=yes
8667       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8668       hardcode_libdir_separator=:
8669       hardcode_shlibpath_var=no
8670       ;;
8671
8672     *nto* | *qnx*)
8673       ;;
8674
8675     openbsd*)
8676       if test -f /usr/libexec/ld.so; then
8677         hardcode_direct=yes
8678         hardcode_shlibpath_var=no
8679         hardcode_direct_absolute=yes
8680         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8681           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8682           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8683           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8684           export_dynamic_flag_spec='${wl}-E'
8685         else
8686           case $host_os in
8687            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8688              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8689              hardcode_libdir_flag_spec='-R$libdir'
8690              ;;
8691            *)
8692              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8693              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8694              ;;
8695           esac
8696         fi
8697       else
8698         ld_shlibs=no
8699       fi
8700       ;;
8701
8702     os2*)
8703       hardcode_libdir_flag_spec='-L$libdir'
8704       hardcode_minus_L=yes
8705       allow_undefined_flag=unsupported
8706       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'
8707       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8708       ;;
8709
8710     osf3*)
8711       if test "$GCC" = yes; then
8712         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8713         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'
8714       else
8715         allow_undefined_flag=' -expect_unresolved \*'
8716         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'
8717       fi
8718       archive_cmds_need_lc='no'
8719       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8720       hardcode_libdir_separator=:
8721       ;;
8722
8723     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8724       if test "$GCC" = yes; then
8725         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8726         archive_cmds='$CC -shared${allow_undefined_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'
8727         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8728       else
8729         allow_undefined_flag=' -expect_unresolved \*'
8730         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'
8731         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~
8732         $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'
8733
8734         # Both c and cxx compiler support -rpath directly
8735         hardcode_libdir_flag_spec='-rpath $libdir'
8736       fi
8737       archive_cmds_need_lc='no'
8738       hardcode_libdir_separator=:
8739       ;;
8740
8741     solaris*)
8742       no_undefined_flag=' -z defs'
8743       if test "$GCC" = yes; then
8744         wlarc='${wl}'
8745         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8746         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8747           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8748       else
8749         case `$CC -V 2>&1` in
8750         *"Compilers 5.0"*)
8751           wlarc=''
8752           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8754           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8755           ;;
8756         *)
8757           wlarc='${wl}'
8758           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8759           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8760           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8761           ;;
8762         esac
8763       fi
8764       hardcode_libdir_flag_spec='-R$libdir'
8765       hardcode_shlibpath_var=no
8766       case $host_os in
8767       solaris2.[0-5] | solaris2.[0-5].*) ;;
8768       *)
8769         # The compiler driver will combine and reorder linker options,
8770         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8771         # but is careful enough not to reorder.
8772         # Supported since Solaris 2.6 (maybe 2.5.1?)
8773         if test "$GCC" = yes; then
8774           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8775         else
8776           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8777         fi
8778         ;;
8779       esac
8780       link_all_deplibs=yes
8781       ;;
8782
8783     sunos4*)
8784       if test "x$host_vendor" = xsequent; then
8785         # Use $CC to link under sequent, because it throws in some extra .o
8786         # files that make .init and .fini sections work.
8787         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8788       else
8789         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8790       fi
8791       hardcode_libdir_flag_spec='-L$libdir'
8792       hardcode_direct=yes
8793       hardcode_minus_L=yes
8794       hardcode_shlibpath_var=no
8795       ;;
8796
8797     sysv4)
8798       case $host_vendor in
8799         sni)
8800           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8801           hardcode_direct=yes # is this really true???
8802         ;;
8803         siemens)
8804           ## LD is ld it makes a PLAMLIB
8805           ## CC just makes a GrossModule.
8806           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8807           reload_cmds='$CC -r -o $output$reload_objs'
8808           hardcode_direct=no
8809         ;;
8810         motorola)
8811           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8813         ;;
8814       esac
8815       runpath_var='LD_RUN_PATH'
8816       hardcode_shlibpath_var=no
8817       ;;
8818
8819     sysv4.3*)
8820       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8821       hardcode_shlibpath_var=no
8822       export_dynamic_flag_spec='-Bexport'
8823       ;;
8824
8825     sysv4*MP*)
8826       if test -d /usr/nec; then
8827         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8828         hardcode_shlibpath_var=no
8829         runpath_var=LD_RUN_PATH
8830         hardcode_runpath_var=yes
8831         ld_shlibs=yes
8832       fi
8833       ;;
8834
8835     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8836       no_undefined_flag='${wl}-z,text'
8837       archive_cmds_need_lc=no
8838       hardcode_shlibpath_var=no
8839       runpath_var='LD_RUN_PATH'
8840
8841       if test "$GCC" = yes; then
8842         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8843         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8844       else
8845         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8846         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8847       fi
8848       ;;
8849
8850     sysv5* | sco3.2v5* | sco5v6*)
8851       # Note: We can NOT use -z defs as we might desire, because we do not
8852       # link with -lc, and that would cause any symbols used from libc to
8853       # always be unresolved, which means just about no library would
8854       # ever link correctly.  If we're not using GNU ld we use -z text
8855       # though, which does catch some bad symbols but isn't as heavy-handed
8856       # as -z defs.
8857       no_undefined_flag='${wl}-z,text'
8858       allow_undefined_flag='${wl}-z,nodefs'
8859       archive_cmds_need_lc=no
8860       hardcode_shlibpath_var=no
8861       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8862       hardcode_libdir_separator=':'
8863       link_all_deplibs=yes
8864       export_dynamic_flag_spec='${wl}-Bexport'
8865       runpath_var='LD_RUN_PATH'
8866
8867       if test "$GCC" = yes; then
8868         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8869         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8870       else
8871         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8872         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8873       fi
8874       ;;
8875
8876     uts4*)
8877       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8878       hardcode_libdir_flag_spec='-L$libdir'
8879       hardcode_shlibpath_var=no
8880       ;;
8881
8882     *)
8883       ld_shlibs=no
8884       ;;
8885     esac
8886
8887     if test x$host_vendor = xsni; then
8888       case $host in
8889       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8890         export_dynamic_flag_spec='${wl}-Blargedynsym'
8891         ;;
8892       esac
8893     fi
8894   fi
8895
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8897 $as_echo "$ld_shlibs" >&6; }
8898 test "$ld_shlibs" = no && can_build_shared=no
8899
8900 with_gnu_ld=$with_gnu_ld
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916 #
8917 # Do we need to explicitly link libc?
8918 #
8919 case "x$archive_cmds_need_lc" in
8920 x|xyes)
8921   # Assume -lc should be added
8922   archive_cmds_need_lc=yes
8923
8924   if test "$enable_shared" = yes && test "$GCC" = yes; then
8925     case $archive_cmds in
8926     *'~'*)
8927       # FIXME: we may have to deal with multi-command sequences.
8928       ;;
8929     '$CC '*)
8930       # Test whether the compiler implicitly links with -lc since on some
8931       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8932       # to ld, don't add -lc before -lgcc.
8933       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8934 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8935 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
8936   $as_echo_n "(cached) " >&6
8937 else
8938   $RM conftest*
8939         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8940
8941         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8942   (eval $ac_compile) 2>&5
8943   ac_status=$?
8944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8945   test $ac_status = 0; } 2>conftest.err; then
8946           soname=conftest
8947           lib=conftest
8948           libobjs=conftest.$ac_objext
8949           deplibs=
8950           wl=$lt_prog_compiler_wl
8951           pic_flag=$lt_prog_compiler_pic
8952           compiler_flags=-v
8953           linker_flags=-v
8954           verstring=
8955           output_objdir=.
8956           libname=conftest
8957           lt_save_allow_undefined_flag=$allow_undefined_flag
8958           allow_undefined_flag=
8959           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8960   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8961   ac_status=$?
8962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8963   test $ac_status = 0; }
8964           then
8965             lt_cv_archive_cmds_need_lc=no
8966           else
8967             lt_cv_archive_cmds_need_lc=yes
8968           fi
8969           allow_undefined_flag=$lt_save_allow_undefined_flag
8970         else
8971           cat conftest.err 1>&5
8972         fi
8973         $RM conftest*
8974
8975 fi
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8977 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8978       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8979       ;;
8980     esac
8981   fi
8982   ;;
8983 esac
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9142 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9143
9144 if test "$GCC" = yes; then
9145   case $host_os in
9146     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9147     *) lt_awk_arg="/^libraries:/" ;;
9148   esac
9149   case $host_os in
9150     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9151     *) lt_sed_strip_eq="s,=/,/,g" ;;
9152   esac
9153   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9154   case $lt_search_path_spec in
9155   *\;*)
9156     # if the path contains ";" then we assume it to be the separator
9157     # otherwise default to the standard path separator (i.e. ":") - it is
9158     # assumed that no part of a normal pathname contains ";" but that should
9159     # okay in the real world where ";" in dirpaths is itself problematic.
9160     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9161     ;;
9162   *)
9163     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9164     ;;
9165   esac
9166   # Ok, now we have the path, separated by spaces, we can step through it
9167   # and add multilib dir if necessary.
9168   lt_tmp_lt_search_path_spec=
9169   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9170   for lt_sys_path in $lt_search_path_spec; do
9171     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9172       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9173     else
9174       test -d "$lt_sys_path" && \
9175         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9176     fi
9177   done
9178   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9179 BEGIN {RS=" "; FS="/|\n";} {
9180   lt_foo="";
9181   lt_count=0;
9182   for (lt_i = NF; lt_i > 0; lt_i--) {
9183     if ($lt_i != "" && $lt_i != ".") {
9184       if ($lt_i == "..") {
9185         lt_count++;
9186       } else {
9187         if (lt_count == 0) {
9188           lt_foo="/" $lt_i lt_foo;
9189         } else {
9190           lt_count--;
9191         }
9192       }
9193     }
9194   }
9195   if (lt_foo != "") { lt_freq[lt_foo]++; }
9196   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9197 }'`
9198   # AWK program above erroneously prepends '/' to C:/dos/paths
9199   # for these hosts.
9200   case $host_os in
9201     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9202       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9203   esac
9204   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9205 else
9206   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9207 fi
9208 library_names_spec=
9209 libname_spec='lib$name'
9210 soname_spec=
9211 shrext_cmds=".so"
9212 postinstall_cmds=
9213 postuninstall_cmds=
9214 finish_cmds=
9215 finish_eval=
9216 shlibpath_var=
9217 shlibpath_overrides_runpath=unknown
9218 version_type=none
9219 dynamic_linker="$host_os ld.so"
9220 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9221 need_lib_prefix=unknown
9222 hardcode_into_libs=no
9223
9224 # when you set need_version to no, make sure it does not cause -set_version
9225 # flags to be left without arguments
9226 need_version=unknown
9227
9228 case $host_os in
9229 aix3*)
9230   version_type=linux
9231   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9232   shlibpath_var=LIBPATH
9233
9234   # AIX 3 has no versioning support, so we append a major version to the name.
9235   soname_spec='${libname}${release}${shared_ext}$major'
9236   ;;
9237
9238 aix[4-9]*)
9239   version_type=linux
9240   need_lib_prefix=no
9241   need_version=no
9242   hardcode_into_libs=yes
9243   if test "$host_cpu" = ia64; then
9244     # AIX 5 supports IA64
9245     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9246     shlibpath_var=LD_LIBRARY_PATH
9247   else
9248     # With GCC up to 2.95.x, collect2 would create an import file
9249     # for dependence libraries.  The import file would start with
9250     # the line `#! .'.  This would cause the generated library to
9251     # depend on `.', always an invalid library.  This was fixed in
9252     # development snapshots of GCC prior to 3.0.
9253     case $host_os in
9254       aix4 | aix4.[01] | aix4.[01].*)
9255       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9256            echo ' yes '
9257            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9258         :
9259       else
9260         can_build_shared=no
9261       fi
9262       ;;
9263     esac
9264     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9265     # soname into executable. Probably we can add versioning support to
9266     # collect2, so additional links can be useful in future.
9267     if test "$aix_use_runtimelinking" = yes; then
9268       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9269       # instead of lib<name>.a to let people know that these are not
9270       # typical AIX shared libraries.
9271       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272     else
9273       # We preserve .a as extension for shared libraries through AIX4.2
9274       # and later when we are not doing run time linking.
9275       library_names_spec='${libname}${release}.a $libname.a'
9276       soname_spec='${libname}${release}${shared_ext}$major'
9277     fi
9278     shlibpath_var=LIBPATH
9279   fi
9280   ;;
9281
9282 amigaos*)
9283   case $host_cpu in
9284   powerpc)
9285     # Since July 2007 AmigaOS4 officially supports .so libraries.
9286     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9287     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288     ;;
9289   m68k)
9290     library_names_spec='$libname.ixlibrary $libname.a'
9291     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9292     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'
9293     ;;
9294   esac
9295   ;;
9296
9297 beos*)
9298   library_names_spec='${libname}${shared_ext}'
9299   dynamic_linker="$host_os ld.so"
9300   shlibpath_var=LIBRARY_PATH
9301   ;;
9302
9303 bsdi[45]*)
9304   version_type=linux
9305   need_version=no
9306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307   soname_spec='${libname}${release}${shared_ext}$major'
9308   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9309   shlibpath_var=LD_LIBRARY_PATH
9310   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9311   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9312   # the default ld.so.conf also contains /usr/contrib/lib and
9313   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9314   # libtool to hard-code these into programs
9315   ;;
9316
9317 cygwin* | mingw* | pw32* | cegcc*)
9318   version_type=windows
9319   shrext_cmds=".dll"
9320   need_version=no
9321   need_lib_prefix=no
9322
9323   case $GCC,$host_os in
9324   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9325     library_names_spec='$libname.dll.a'
9326     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9327     postinstall_cmds='base_file=`basename \${file}`~
9328       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9329       dldir=$destdir/`dirname \$dlpath`~
9330       test -d \$dldir || mkdir -p \$dldir~
9331       $install_prog $dir/$dlname \$dldir/$dlname~
9332       chmod a+x \$dldir/$dlname~
9333       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9334         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9335       fi'
9336     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9337       dlpath=$dir/\$dldll~
9338        $RM \$dlpath'
9339     shlibpath_overrides_runpath=yes
9340
9341     case $host_os in
9342     cygwin*)
9343       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9344       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9345
9346       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9347       ;;
9348     mingw* | cegcc*)
9349       # MinGW DLLs use traditional 'lib' prefix
9350       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9351       ;;
9352     pw32*)
9353       # pw32 DLLs use 'pw' prefix rather than 'lib'
9354       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9355       ;;
9356     esac
9357     ;;
9358
9359   *)
9360     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9361     ;;
9362   esac
9363   dynamic_linker='Win32 ld.exe'
9364   # FIXME: first we should search . and the directory the executable is in
9365   shlibpath_var=PATH
9366   ;;
9367
9368 darwin* | rhapsody*)
9369   dynamic_linker="$host_os dyld"
9370   version_type=darwin
9371   need_lib_prefix=no
9372   need_version=no
9373   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9374   soname_spec='${libname}${release}${major}$shared_ext'
9375   shlibpath_overrides_runpath=yes
9376   shlibpath_var=DYLD_LIBRARY_PATH
9377   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9378
9379   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9380   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9381   ;;
9382
9383 dgux*)
9384   version_type=linux
9385   need_lib_prefix=no
9386   need_version=no
9387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9388   soname_spec='${libname}${release}${shared_ext}$major'
9389   shlibpath_var=LD_LIBRARY_PATH
9390   ;;
9391
9392 freebsd1*)
9393   dynamic_linker=no
9394   ;;
9395
9396 freebsd* | dragonfly*)
9397   # DragonFly does not have aout.  When/if they implement a new
9398   # versioning mechanism, adjust this.
9399   if test -x /usr/bin/objformat; then
9400     objformat=`/usr/bin/objformat`
9401   else
9402     case $host_os in
9403     freebsd[123]*) objformat=aout ;;
9404     *) objformat=elf ;;
9405     esac
9406   fi
9407   version_type=freebsd-$objformat
9408   case $version_type in
9409     freebsd-elf*)
9410       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9411       need_version=no
9412       need_lib_prefix=no
9413       ;;
9414     freebsd-*)
9415       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9416       need_version=yes
9417       ;;
9418   esac
9419   shlibpath_var=LD_LIBRARY_PATH
9420   case $host_os in
9421   freebsd2*)
9422     shlibpath_overrides_runpath=yes
9423     ;;
9424   freebsd3.[01]* | freebsdelf3.[01]*)
9425     shlibpath_overrides_runpath=yes
9426     hardcode_into_libs=yes
9427     ;;
9428   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9429   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9430     shlibpath_overrides_runpath=no
9431     hardcode_into_libs=yes
9432     ;;
9433   *) # from 4.6 on, and DragonFly
9434     shlibpath_overrides_runpath=yes
9435     hardcode_into_libs=yes
9436     ;;
9437   esac
9438   ;;
9439
9440 gnu*)
9441   version_type=linux
9442   need_lib_prefix=no
9443   need_version=no
9444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9445   soname_spec='${libname}${release}${shared_ext}$major'
9446   shlibpath_var=LD_LIBRARY_PATH
9447   hardcode_into_libs=yes
9448   ;;
9449
9450 haiku*)
9451   version_type=linux
9452   need_lib_prefix=no
9453   need_version=no
9454   dynamic_linker="$host_os runtime_loader"
9455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9456   soname_spec='${libname}${release}${shared_ext}$major'
9457   shlibpath_var=LIBRARY_PATH
9458   shlibpath_overrides_runpath=yes
9459   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9460   hardcode_into_libs=yes
9461   ;;
9462
9463 hpux9* | hpux10* | hpux11*)
9464   # Give a soname corresponding to the major version so that dld.sl refuses to
9465   # link against other versions.
9466   version_type=sunos
9467   need_lib_prefix=no
9468   need_version=no
9469   case $host_cpu in
9470   ia64*)
9471     shrext_cmds='.so'
9472     hardcode_into_libs=yes
9473     dynamic_linker="$host_os dld.so"
9474     shlibpath_var=LD_LIBRARY_PATH
9475     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9476     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477     soname_spec='${libname}${release}${shared_ext}$major'
9478     if test "X$HPUX_IA64_MODE" = X32; then
9479       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9480     else
9481       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9482     fi
9483     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9484     ;;
9485   hppa*64*)
9486     shrext_cmds='.sl'
9487     hardcode_into_libs=yes
9488     dynamic_linker="$host_os dld.sl"
9489     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9490     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9491     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492     soname_spec='${libname}${release}${shared_ext}$major'
9493     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9494     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9495     ;;
9496   *)
9497     shrext_cmds='.sl'
9498     dynamic_linker="$host_os dld.sl"
9499     shlibpath_var=SHLIB_PATH
9500     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502     soname_spec='${libname}${release}${shared_ext}$major'
9503     ;;
9504   esac
9505   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9506   postinstall_cmds='chmod 555 $lib'
9507   # or fails outright, so override atomically:
9508   install_override_mode=555
9509   ;;
9510
9511 interix[3-9]*)
9512   version_type=linux
9513   need_lib_prefix=no
9514   need_version=no
9515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9516   soname_spec='${libname}${release}${shared_ext}$major'
9517   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9518   shlibpath_var=LD_LIBRARY_PATH
9519   shlibpath_overrides_runpath=no
9520   hardcode_into_libs=yes
9521   ;;
9522
9523 irix5* | irix6* | nonstopux*)
9524   case $host_os in
9525     nonstopux*) version_type=nonstopux ;;
9526     *)
9527         if test "$lt_cv_prog_gnu_ld" = yes; then
9528                 version_type=linux
9529         else
9530                 version_type=irix
9531         fi ;;
9532   esac
9533   need_lib_prefix=no
9534   need_version=no
9535   soname_spec='${libname}${release}${shared_ext}$major'
9536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9537   case $host_os in
9538   irix5* | nonstopux*)
9539     libsuff= shlibsuff=
9540     ;;
9541   *)
9542     case $LD in # libtool.m4 will add one of these switches to LD
9543     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9544       libsuff= shlibsuff= libmagic=32-bit;;
9545     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9546       libsuff=32 shlibsuff=N32 libmagic=N32;;
9547     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9548       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9549     *) libsuff= shlibsuff= libmagic=never-match;;
9550     esac
9551     ;;
9552   esac
9553   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9554   shlibpath_overrides_runpath=no
9555   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9556   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9557   hardcode_into_libs=yes
9558   ;;
9559
9560 # No shared lib support for Linux oldld, aout, or coff.
9561 linux*oldld* | linux*aout* | linux*coff*)
9562   dynamic_linker=no
9563   ;;
9564
9565 # This must be Linux ELF.
9566 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9567   version_type=linux
9568   need_lib_prefix=no
9569   need_version=no
9570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571   soname_spec='${libname}${release}${shared_ext}$major'
9572   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9573   shlibpath_var=LD_LIBRARY_PATH
9574   shlibpath_overrides_runpath=no
9575
9576   # Some binutils ld are patched to set DT_RUNPATH
9577   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9578   $as_echo_n "(cached) " >&6
9579 else
9580   lt_cv_shlibpath_overrides_runpath=no
9581     save_LDFLAGS=$LDFLAGS
9582     save_libdir=$libdir
9583     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9584          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9585     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h.  */
9587
9588 int
9589 main ()
9590 {
9591
9592   ;
9593   return 0;
9594 }
9595 _ACEOF
9596 if ac_fn_c_try_link "$LINENO"; then :
9597   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9598   lt_cv_shlibpath_overrides_runpath=yes
9599 fi
9600 fi
9601 rm -f core conftest.err conftest.$ac_objext \
9602     conftest$ac_exeext conftest.$ac_ext
9603     LDFLAGS=$save_LDFLAGS
9604     libdir=$save_libdir
9605
9606 fi
9607
9608   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9609
9610   # This implies no fast_install, which is unacceptable.
9611   # Some rework will be needed to allow for fast_install
9612   # before this can be enabled.
9613   hardcode_into_libs=yes
9614
9615   # Add ABI-specific directories to the system library path.
9616   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9617
9618   # Append ld.so.conf contents to the search path
9619   if test -f /etc/ld.so.conf; then
9620     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' ' '`
9621     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9622
9623   fi
9624
9625   # We used to test for /lib/ld.so.1 and disable shared libraries on
9626   # powerpc, because MkLinux only supported shared libraries with the
9627   # GNU dynamic linker.  Since this was broken with cross compilers,
9628   # most powerpc-linux boxes support dynamic linking these days and
9629   # people can always --disable-shared, the test was removed, and we
9630   # assume the GNU/Linux dynamic linker is in use.
9631   dynamic_linker='GNU/Linux ld.so'
9632   ;;
9633
9634 netbsd*)
9635   version_type=sunos
9636   need_lib_prefix=no
9637   need_version=no
9638   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9639     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9640     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9641     dynamic_linker='NetBSD (a.out) ld.so'
9642   else
9643     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9644     soname_spec='${libname}${release}${shared_ext}$major'
9645     dynamic_linker='NetBSD ld.elf_so'
9646   fi
9647   shlibpath_var=LD_LIBRARY_PATH
9648   shlibpath_overrides_runpath=yes
9649   hardcode_into_libs=yes
9650   ;;
9651
9652 newsos6)
9653   version_type=linux
9654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9655   shlibpath_var=LD_LIBRARY_PATH
9656   shlibpath_overrides_runpath=yes
9657   ;;
9658
9659 *nto* | *qnx*)
9660   version_type=qnx
9661   need_lib_prefix=no
9662   need_version=no
9663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9664   soname_spec='${libname}${release}${shared_ext}$major'
9665   shlibpath_var=LD_LIBRARY_PATH
9666   shlibpath_overrides_runpath=no
9667   hardcode_into_libs=yes
9668   dynamic_linker='ldqnx.so'
9669   ;;
9670
9671 openbsd*)
9672   version_type=sunos
9673   sys_lib_dlsearch_path_spec="/usr/lib"
9674   need_lib_prefix=no
9675   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9676   case $host_os in
9677     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9678     *)                          need_version=no  ;;
9679   esac
9680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9681   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9682   shlibpath_var=LD_LIBRARY_PATH
9683   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9684     case $host_os in
9685       openbsd2.[89] | openbsd2.[89].*)
9686         shlibpath_overrides_runpath=no
9687         ;;
9688       *)
9689         shlibpath_overrides_runpath=yes
9690         ;;
9691       esac
9692   else
9693     shlibpath_overrides_runpath=yes
9694   fi
9695   ;;
9696
9697 os2*)
9698   libname_spec='$name'
9699   shrext_cmds=".dll"
9700   need_lib_prefix=no
9701   library_names_spec='$libname${shared_ext} $libname.a'
9702   dynamic_linker='OS/2 ld.exe'
9703   shlibpath_var=LIBPATH
9704   ;;
9705
9706 osf3* | osf4* | osf5*)
9707   version_type=osf
9708   need_lib_prefix=no
9709   need_version=no
9710   soname_spec='${libname}${release}${shared_ext}$major'
9711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9712   shlibpath_var=LD_LIBRARY_PATH
9713   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9714   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9715   ;;
9716
9717 rdos*)
9718   dynamic_linker=no
9719   ;;
9720
9721 solaris*)
9722   version_type=linux
9723   need_lib_prefix=no
9724   need_version=no
9725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726   soname_spec='${libname}${release}${shared_ext}$major'
9727   shlibpath_var=LD_LIBRARY_PATH
9728   shlibpath_overrides_runpath=yes
9729   hardcode_into_libs=yes
9730   # ldd complains unless libraries are executable
9731   postinstall_cmds='chmod +x $lib'
9732   ;;
9733
9734 sunos4*)
9735   version_type=sunos
9736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9737   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9738   shlibpath_var=LD_LIBRARY_PATH
9739   shlibpath_overrides_runpath=yes
9740   if test "$with_gnu_ld" = yes; then
9741     need_lib_prefix=no
9742   fi
9743   need_version=yes
9744   ;;
9745
9746 sysv4 | sysv4.3*)
9747   version_type=linux
9748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749   soname_spec='${libname}${release}${shared_ext}$major'
9750   shlibpath_var=LD_LIBRARY_PATH
9751   case $host_vendor in
9752     sni)
9753       shlibpath_overrides_runpath=no
9754       need_lib_prefix=no
9755       runpath_var=LD_RUN_PATH
9756       ;;
9757     siemens)
9758       need_lib_prefix=no
9759       ;;
9760     motorola)
9761       need_lib_prefix=no
9762       need_version=no
9763       shlibpath_overrides_runpath=no
9764       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9765       ;;
9766   esac
9767   ;;
9768
9769 sysv4*MP*)
9770   if test -d /usr/nec ;then
9771     version_type=linux
9772     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9773     soname_spec='$libname${shared_ext}.$major'
9774     shlibpath_var=LD_LIBRARY_PATH
9775   fi
9776   ;;
9777
9778 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9779   version_type=freebsd-elf
9780   need_lib_prefix=no
9781   need_version=no
9782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9783   soname_spec='${libname}${release}${shared_ext}$major'
9784   shlibpath_var=LD_LIBRARY_PATH
9785   shlibpath_overrides_runpath=yes
9786   hardcode_into_libs=yes
9787   if test "$with_gnu_ld" = yes; then
9788     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9789   else
9790     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9791     case $host_os in
9792       sco3.2v5*)
9793         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9794         ;;
9795     esac
9796   fi
9797   sys_lib_dlsearch_path_spec='/usr/lib'
9798   ;;
9799
9800 tpf*)
9801   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9802   version_type=linux
9803   need_lib_prefix=no
9804   need_version=no
9805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806   shlibpath_var=LD_LIBRARY_PATH
9807   shlibpath_overrides_runpath=no
9808   hardcode_into_libs=yes
9809   ;;
9810
9811 uts4*)
9812   version_type=linux
9813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9814   soname_spec='${libname}${release}${shared_ext}$major'
9815   shlibpath_var=LD_LIBRARY_PATH
9816   ;;
9817
9818 *)
9819   dynamic_linker=no
9820   ;;
9821 esac
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9823 $as_echo "$dynamic_linker" >&6; }
9824 test "$dynamic_linker" = no && can_build_shared=no
9825
9826 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9827 if test "$GCC" = yes; then
9828   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9829 fi
9830
9831 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9832   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9833 fi
9834 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9835   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9836 fi
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9930 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9931 hardcode_action=
9932 if test -n "$hardcode_libdir_flag_spec" ||
9933    test -n "$runpath_var" ||
9934    test "X$hardcode_automatic" = "Xyes" ; then
9935
9936   # We can hardcode non-existent directories.
9937   if test "$hardcode_direct" != no &&
9938      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9939      # have to relink, otherwise we might link with an installed library
9940      # when we should be linking with a yet-to-be-installed one
9941      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9942      test "$hardcode_minus_L" != no; then
9943     # Linking always hardcodes the temporary library directory.
9944     hardcode_action=relink
9945   else
9946     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9947     hardcode_action=immediate
9948   fi
9949 else
9950   # We cannot hardcode anything, or else we can only hardcode existing
9951   # directories.
9952   hardcode_action=unsupported
9953 fi
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9955 $as_echo "$hardcode_action" >&6; }
9956
9957 if test "$hardcode_action" = relink ||
9958    test "$inherit_rpath" = yes; then
9959   # Fast installation is not supported
9960   enable_fast_install=no
9961 elif test "$shlibpath_overrides_runpath" = yes ||
9962      test "$enable_shared" = no; then
9963   # Fast installation is not necessary
9964   enable_fast_install=needless
9965 fi
9966
9967
9968
9969
9970
9971
9972   if test "x$enable_dlopen" != xyes; then
9973   enable_dlopen=unknown
9974   enable_dlopen_self=unknown
9975   enable_dlopen_self_static=unknown
9976 else
9977   lt_cv_dlopen=no
9978   lt_cv_dlopen_libs=
9979
9980   case $host_os in
9981   beos*)
9982     lt_cv_dlopen="load_add_on"
9983     lt_cv_dlopen_libs=
9984     lt_cv_dlopen_self=yes
9985     ;;
9986
9987   mingw* | pw32* | cegcc*)
9988     lt_cv_dlopen="LoadLibrary"
9989     lt_cv_dlopen_libs=
9990     ;;
9991
9992   cygwin*)
9993     lt_cv_dlopen="dlopen"
9994     lt_cv_dlopen_libs=
9995     ;;
9996
9997   darwin*)
9998   # if libdl is installed we need to link against it
9999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10000 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10001 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10002   $as_echo_n "(cached) " >&6
10003 else
10004   ac_check_lib_save_LIBS=$LIBS
10005 LIBS="-ldl  $LIBS"
10006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h.  */
10008
10009 /* Override any GCC internal prototype to avoid an error.
10010    Use char because int might match the return type of a GCC
10011    builtin and then its argument prototype would still apply.  */
10012 #ifdef __cplusplus
10013 extern "C"
10014 #endif
10015 char dlopen ();
10016 int
10017 main ()
10018 {
10019 return dlopen ();
10020   ;
10021   return 0;
10022 }
10023 _ACEOF
10024 if ac_fn_c_try_link "$LINENO"; then :
10025   ac_cv_lib_dl_dlopen=yes
10026 else
10027   ac_cv_lib_dl_dlopen=no
10028 fi
10029 rm -f core conftest.err conftest.$ac_objext \
10030     conftest$ac_exeext conftest.$ac_ext
10031 LIBS=$ac_check_lib_save_LIBS
10032 fi
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10034 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10035 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10036   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10037 else
10038
10039     lt_cv_dlopen="dyld"
10040     lt_cv_dlopen_libs=
10041     lt_cv_dlopen_self=yes
10042
10043 fi
10044
10045     ;;
10046
10047   *)
10048     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10049 if test "x$ac_cv_func_shl_load" = x""yes; then :
10050   lt_cv_dlopen="shl_load"
10051 else
10052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10053 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10054 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10055   $as_echo_n "(cached) " >&6
10056 else
10057   ac_check_lib_save_LIBS=$LIBS
10058 LIBS="-ldld  $LIBS"
10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h.  */
10061
10062 /* Override any GCC internal prototype to avoid an error.
10063    Use char because int might match the return type of a GCC
10064    builtin and then its argument prototype would still apply.  */
10065 #ifdef __cplusplus
10066 extern "C"
10067 #endif
10068 char shl_load ();
10069 int
10070 main ()
10071 {
10072 return shl_load ();
10073   ;
10074   return 0;
10075 }
10076 _ACEOF
10077 if ac_fn_c_try_link "$LINENO"; then :
10078   ac_cv_lib_dld_shl_load=yes
10079 else
10080   ac_cv_lib_dld_shl_load=no
10081 fi
10082 rm -f core conftest.err conftest.$ac_objext \
10083     conftest$ac_exeext conftest.$ac_ext
10084 LIBS=$ac_check_lib_save_LIBS
10085 fi
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10087 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10088 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10089   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10090 else
10091   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10092 if test "x$ac_cv_func_dlopen" = x""yes; then :
10093   lt_cv_dlopen="dlopen"
10094 else
10095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10096 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10097 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10098   $as_echo_n "(cached) " >&6
10099 else
10100   ac_check_lib_save_LIBS=$LIBS
10101 LIBS="-ldl  $LIBS"
10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h.  */
10104
10105 /* Override any GCC internal prototype to avoid an error.
10106    Use char because int might match the return type of a GCC
10107    builtin and then its argument prototype would still apply.  */
10108 #ifdef __cplusplus
10109 extern "C"
10110 #endif
10111 char dlopen ();
10112 int
10113 main ()
10114 {
10115 return dlopen ();
10116   ;
10117   return 0;
10118 }
10119 _ACEOF
10120 if ac_fn_c_try_link "$LINENO"; then :
10121   ac_cv_lib_dl_dlopen=yes
10122 else
10123   ac_cv_lib_dl_dlopen=no
10124 fi
10125 rm -f core conftest.err conftest.$ac_objext \
10126     conftest$ac_exeext conftest.$ac_ext
10127 LIBS=$ac_check_lib_save_LIBS
10128 fi
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10130 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10131 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10132   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10133 else
10134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10135 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10136 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10137   $as_echo_n "(cached) " >&6
10138 else
10139   ac_check_lib_save_LIBS=$LIBS
10140 LIBS="-lsvld  $LIBS"
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h.  */
10143
10144 /* Override any GCC internal prototype to avoid an error.
10145    Use char because int might match the return type of a GCC
10146    builtin and then its argument prototype would still apply.  */
10147 #ifdef __cplusplus
10148 extern "C"
10149 #endif
10150 char dlopen ();
10151 int
10152 main ()
10153 {
10154 return dlopen ();
10155   ;
10156   return 0;
10157 }
10158 _ACEOF
10159 if ac_fn_c_try_link "$LINENO"; then :
10160   ac_cv_lib_svld_dlopen=yes
10161 else
10162   ac_cv_lib_svld_dlopen=no
10163 fi
10164 rm -f core conftest.err conftest.$ac_objext \
10165     conftest$ac_exeext conftest.$ac_ext
10166 LIBS=$ac_check_lib_save_LIBS
10167 fi
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10169 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10170 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10171   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10172 else
10173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10174 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10175 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10176   $as_echo_n "(cached) " >&6
10177 else
10178   ac_check_lib_save_LIBS=$LIBS
10179 LIBS="-ldld  $LIBS"
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h.  */
10182
10183 /* Override any GCC internal prototype to avoid an error.
10184    Use char because int might match the return type of a GCC
10185    builtin and then its argument prototype would still apply.  */
10186 #ifdef __cplusplus
10187 extern "C"
10188 #endif
10189 char dld_link ();
10190 int
10191 main ()
10192 {
10193 return dld_link ();
10194   ;
10195   return 0;
10196 }
10197 _ACEOF
10198 if ac_fn_c_try_link "$LINENO"; then :
10199   ac_cv_lib_dld_dld_link=yes
10200 else
10201   ac_cv_lib_dld_dld_link=no
10202 fi
10203 rm -f core conftest.err conftest.$ac_objext \
10204     conftest$ac_exeext conftest.$ac_ext
10205 LIBS=$ac_check_lib_save_LIBS
10206 fi
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10208 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10209 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10210   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10211 fi
10212
10213
10214 fi
10215
10216
10217 fi
10218
10219
10220 fi
10221
10222
10223 fi
10224
10225
10226 fi
10227
10228     ;;
10229   esac
10230
10231   if test "x$lt_cv_dlopen" != xno; then
10232     enable_dlopen=yes
10233   else
10234     enable_dlopen=no
10235   fi
10236
10237   case $lt_cv_dlopen in
10238   dlopen)
10239     save_CPPFLAGS="$CPPFLAGS"
10240     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10241
10242     save_LDFLAGS="$LDFLAGS"
10243     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10244
10245     save_LIBS="$LIBS"
10246     LIBS="$lt_cv_dlopen_libs $LIBS"
10247
10248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10249 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10250 if test "${lt_cv_dlopen_self+set}" = set; then :
10251   $as_echo_n "(cached) " >&6
10252 else
10253           if test "$cross_compiling" = yes; then :
10254   lt_cv_dlopen_self=cross
10255 else
10256   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10257   lt_status=$lt_dlunknown
10258   cat > conftest.$ac_ext <<_LT_EOF
10259 #line $LINENO "configure"
10260 #include "confdefs.h"
10261
10262 #if HAVE_DLFCN_H
10263 #include <dlfcn.h>
10264 #endif
10265
10266 #include <stdio.h>
10267
10268 #ifdef RTLD_GLOBAL
10269 #  define LT_DLGLOBAL           RTLD_GLOBAL
10270 #else
10271 #  ifdef DL_GLOBAL
10272 #    define LT_DLGLOBAL         DL_GLOBAL
10273 #  else
10274 #    define LT_DLGLOBAL         0
10275 #  endif
10276 #endif
10277
10278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10279    find out it does not work in some platform. */
10280 #ifndef LT_DLLAZY_OR_NOW
10281 #  ifdef RTLD_LAZY
10282 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10283 #  else
10284 #    ifdef DL_LAZY
10285 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10286 #    else
10287 #      ifdef RTLD_NOW
10288 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10289 #      else
10290 #        ifdef DL_NOW
10291 #          define LT_DLLAZY_OR_NOW      DL_NOW
10292 #        else
10293 #          define LT_DLLAZY_OR_NOW      0
10294 #        endif
10295 #      endif
10296 #    endif
10297 #  endif
10298 #endif
10299
10300 /* When -fvisbility=hidden is used, assume the code has been annotated
10301    correspondingly for the symbols needed.  */
10302 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10303 void fnord () __attribute__((visibility("default")));
10304 #endif
10305
10306 void fnord () { int i=42; }
10307 int main ()
10308 {
10309   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10310   int status = $lt_dlunknown;
10311
10312   if (self)
10313     {
10314       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10315       else
10316         {
10317           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10318           else puts (dlerror ());
10319         }
10320       /* dlclose (self); */
10321     }
10322   else
10323     puts (dlerror ());
10324
10325   return status;
10326 }
10327 _LT_EOF
10328   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10329   (eval $ac_link) 2>&5
10330   ac_status=$?
10331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10332   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10333     (./conftest; exit; ) >&5 2>/dev/null
10334     lt_status=$?
10335     case x$lt_status in
10336       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10337       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10338       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10339     esac
10340   else :
10341     # compilation failed
10342     lt_cv_dlopen_self=no
10343   fi
10344 fi
10345 rm -fr conftest*
10346
10347
10348 fi
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10350 $as_echo "$lt_cv_dlopen_self" >&6; }
10351
10352     if test "x$lt_cv_dlopen_self" = xyes; then
10353       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10354       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10355 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10356 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10357   $as_echo_n "(cached) " >&6
10358 else
10359           if test "$cross_compiling" = yes; then :
10360   lt_cv_dlopen_self_static=cross
10361 else
10362   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10363   lt_status=$lt_dlunknown
10364   cat > conftest.$ac_ext <<_LT_EOF
10365 #line $LINENO "configure"
10366 #include "confdefs.h"
10367
10368 #if HAVE_DLFCN_H
10369 #include <dlfcn.h>
10370 #endif
10371
10372 #include <stdio.h>
10373
10374 #ifdef RTLD_GLOBAL
10375 #  define LT_DLGLOBAL           RTLD_GLOBAL
10376 #else
10377 #  ifdef DL_GLOBAL
10378 #    define LT_DLGLOBAL         DL_GLOBAL
10379 #  else
10380 #    define LT_DLGLOBAL         0
10381 #  endif
10382 #endif
10383
10384 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10385    find out it does not work in some platform. */
10386 #ifndef LT_DLLAZY_OR_NOW
10387 #  ifdef RTLD_LAZY
10388 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10389 #  else
10390 #    ifdef DL_LAZY
10391 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10392 #    else
10393 #      ifdef RTLD_NOW
10394 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10395 #      else
10396 #        ifdef DL_NOW
10397 #          define LT_DLLAZY_OR_NOW      DL_NOW
10398 #        else
10399 #          define LT_DLLAZY_OR_NOW      0
10400 #        endif
10401 #      endif
10402 #    endif
10403 #  endif
10404 #endif
10405
10406 /* When -fvisbility=hidden is used, assume the code has been annotated
10407    correspondingly for the symbols needed.  */
10408 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10409 void fnord () __attribute__((visibility("default")));
10410 #endif
10411
10412 void fnord () { int i=42; }
10413 int main ()
10414 {
10415   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10416   int status = $lt_dlunknown;
10417
10418   if (self)
10419     {
10420       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10421       else
10422         {
10423           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10424           else puts (dlerror ());
10425         }
10426       /* dlclose (self); */
10427     }
10428   else
10429     puts (dlerror ());
10430
10431   return status;
10432 }
10433 _LT_EOF
10434   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10435   (eval $ac_link) 2>&5
10436   ac_status=$?
10437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10438   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10439     (./conftest; exit; ) >&5 2>/dev/null
10440     lt_status=$?
10441     case x$lt_status in
10442       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10443       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10444       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10445     esac
10446   else :
10447     # compilation failed
10448     lt_cv_dlopen_self_static=no
10449   fi
10450 fi
10451 rm -fr conftest*
10452
10453
10454 fi
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10456 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10457     fi
10458
10459     CPPFLAGS="$save_CPPFLAGS"
10460     LDFLAGS="$save_LDFLAGS"
10461     LIBS="$save_LIBS"
10462     ;;
10463   esac
10464
10465   case $lt_cv_dlopen_self in
10466   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10467   *) enable_dlopen_self=unknown ;;
10468   esac
10469
10470   case $lt_cv_dlopen_self_static in
10471   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10472   *) enable_dlopen_self_static=unknown ;;
10473   esac
10474 fi
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492 striplib=
10493 old_striplib=
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10495 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10496 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10497   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10498   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10500 $as_echo "yes" >&6; }
10501 else
10502 # FIXME - insert some real tests, host_os isn't really good enough
10503   case $host_os in
10504   darwin*)
10505     if test -n "$STRIP" ; then
10506       striplib="$STRIP -x"
10507       old_striplib="$STRIP -S"
10508       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10509 $as_echo "yes" >&6; }
10510     else
10511       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }
10513     fi
10514     ;;
10515   *)
10516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10518     ;;
10519   esac
10520 fi
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533   # Report which library types will actually be built
10534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10535 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10537 $as_echo "$can_build_shared" >&6; }
10538
10539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10540 $as_echo_n "checking whether to build shared libraries... " >&6; }
10541   test "$can_build_shared" = "no" && enable_shared=no
10542
10543   # On AIX, shared libraries and static libraries use the same namespace, and
10544   # are all built from PIC.
10545   case $host_os in
10546   aix3*)
10547     test "$enable_shared" = yes && enable_static=no
10548     if test -n "$RANLIB"; then
10549       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10550       postinstall_cmds='$RANLIB $lib'
10551     fi
10552     ;;
10553
10554   aix[4-9]*)
10555     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10556       test "$enable_shared" = yes && enable_static=no
10557     fi
10558     ;;
10559   esac
10560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10561 $as_echo "$enable_shared" >&6; }
10562
10563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10564 $as_echo_n "checking whether to build static libraries... " >&6; }
10565   # Make sure either enable_shared or enable_static is yes.
10566   test "$enable_shared" = yes || enable_static=yes
10567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10568 $as_echo "$enable_static" >&6; }
10569
10570
10571
10572
10573 fi
10574 ac_ext=c
10575 ac_cpp='$CPP $CPPFLAGS'
10576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10579
10580 CC="$lt_save_CC"
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594         ac_config_commands="$ac_config_commands libtool"
10595
10596
10597
10598
10599 # Only expand once:
10600
10601
10602
10603 # Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
10616 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
10617 if test "${ac_cv_prog_cc_c99+set}" = set; then :
10618   $as_echo_n "(cached) " >&6
10619 else
10620   ac_cv_prog_cc_c99=no
10621 ac_save_CC=$CC
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h.  */
10624 #include <stdarg.h>
10625 #include <stdbool.h>
10626 #include <stdlib.h>
10627 #include <wchar.h>
10628 #include <stdio.h>
10629
10630 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
10631 #define debug(...) fprintf (stderr, __VA_ARGS__)
10632 #define showlist(...) puts (#__VA_ARGS__)
10633 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
10634 static void
10635 test_varargs_macros (void)
10636 {
10637   int x = 1234;
10638   int y = 5678;
10639   debug ("Flag");
10640   debug ("X = %d\n", x);
10641   showlist (The first, second, and third items.);
10642   report (x>y, "x is %d but y is %d", x, y);
10643 }
10644
10645 // Check long long types.
10646 #define BIG64 18446744073709551615ull
10647 #define BIG32 4294967295ul
10648 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
10649 #if !BIG_OK
10650   your preprocessor is broken;
10651 #endif
10652 #if BIG_OK
10653 #else
10654   your preprocessor is broken;
10655 #endif
10656 static long long int bignum = -9223372036854775807LL;
10657 static unsigned long long int ubignum = BIG64;
10658
10659 struct incomplete_array
10660 {
10661   int datasize;
10662   double data[];
10663 };
10664
10665 struct named_init {
10666   int number;
10667   const wchar_t *name;
10668   double average;
10669 };
10670
10671 typedef const char *ccp;
10672
10673 static inline int
10674 test_restrict (ccp restrict text)
10675 {
10676   // See if C++-style comments work.
10677   // Iterate through items via the restricted pointer.
10678   // Also check for declarations in for loops.
10679   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
10680     continue;
10681   return 0;
10682 }
10683
10684 // Check varargs and va_copy.
10685 static void
10686 test_varargs (const char *format, ...)
10687 {
10688   va_list args;
10689   va_start (args, format);
10690   va_list args_copy;
10691   va_copy (args_copy, args);
10692
10693   const char *str;
10694   int number;
10695   float fnumber;
10696
10697   while (*format)
10698     {
10699       switch (*format++)
10700         {
10701         case 's': // string
10702           str = va_arg (args_copy, const char *);
10703           break;
10704         case 'd': // int
10705           number = va_arg (args_copy, int);
10706           break;
10707         case 'f': // float
10708           fnumber = va_arg (args_copy, double);
10709           break;
10710         default:
10711           break;
10712         }
10713     }
10714   va_end (args_copy);
10715   va_end (args);
10716 }
10717
10718 int
10719 main ()
10720 {
10721
10722   // Check bool.
10723   _Bool success = false;
10724
10725   // Check restrict.
10726   if (test_restrict ("String literal") == 0)
10727     success = true;
10728   char *restrict newvar = "Another string";
10729
10730   // Check varargs.
10731   test_varargs ("s, d' f .", "string", 65, 34.234);
10732   test_varargs_macros ();
10733
10734   // Check flexible array members.
10735   struct incomplete_array *ia =
10736     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
10737   ia->datasize = 10;
10738   for (int i = 0; i < ia->datasize; ++i)
10739     ia->data[i] = i * 1.234;
10740
10741   // Check named initializers.
10742   struct named_init ni = {
10743     .number = 34,
10744     .name = L"Test wide string",
10745     .average = 543.34343,
10746   };
10747
10748   ni.number = 58;
10749
10750   int dynamic_array[ni.number];
10751   dynamic_array[ni.number - 1] = 543;
10752
10753   // work around unused variable warnings
10754   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
10755           || dynamic_array[ni.number - 1] != 543);
10756
10757   ;
10758   return 0;
10759 }
10760 _ACEOF
10761 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
10762 do
10763   CC="$ac_save_CC $ac_arg"
10764   if ac_fn_c_try_compile "$LINENO"; then :
10765   ac_cv_prog_cc_c99=$ac_arg
10766 fi
10767 rm -f core conftest.err conftest.$ac_objext
10768   test "x$ac_cv_prog_cc_c99" != "xno" && break
10769 done
10770 rm -f conftest.$ac_ext
10771 CC=$ac_save_CC
10772
10773 fi
10774 # AC_CACHE_VAL
10775 case "x$ac_cv_prog_cc_c99" in
10776   x)
10777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10778 $as_echo "none needed" >&6; } ;;
10779   xno)
10780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10781 $as_echo "unsupported" >&6; } ;;
10782   *)
10783     CC="$CC $ac_cv_prog_cc_c99"
10784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
10785 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
10786 esac
10787 if test "x$ac_cv_prog_cc_c99" != xno; then :
10788
10789 fi
10790
10791
10792
10793
10794
10795
10796
10797
10798 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10799         if test -n "$ac_tool_prefix"; then
10800   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10801 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10803 $as_echo_n "checking for $ac_word... " >&6; }
10804 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10805   $as_echo_n "(cached) " >&6
10806 else
10807   case $PKG_CONFIG in
10808   [\\/]* | ?:[\\/]*)
10809   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10810   ;;
10811   *)
10812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10813 for as_dir in $PATH
10814 do
10815   IFS=$as_save_IFS
10816   test -z "$as_dir" && as_dir=.
10817     for ac_exec_ext in '' $ac_executable_extensions; do
10818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10819     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10821     break 2
10822   fi
10823 done
10824   done
10825 IFS=$as_save_IFS
10826
10827   ;;
10828 esac
10829 fi
10830 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10831 if test -n "$PKG_CONFIG"; then
10832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10833 $as_echo "$PKG_CONFIG" >&6; }
10834 else
10835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836 $as_echo "no" >&6; }
10837 fi
10838
10839
10840 fi
10841 if test -z "$ac_cv_path_PKG_CONFIG"; then
10842   ac_pt_PKG_CONFIG=$PKG_CONFIG
10843   # Extract the first word of "pkg-config", so it can be a program name with args.
10844 set dummy pkg-config; ac_word=$2
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10846 $as_echo_n "checking for $ac_word... " >&6; }
10847 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10848   $as_echo_n "(cached) " >&6
10849 else
10850   case $ac_pt_PKG_CONFIG in
10851   [\\/]* | ?:[\\/]*)
10852   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10853   ;;
10854   *)
10855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856 for as_dir in $PATH
10857 do
10858   IFS=$as_save_IFS
10859   test -z "$as_dir" && as_dir=.
10860     for ac_exec_ext in '' $ac_executable_extensions; do
10861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10862     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10864     break 2
10865   fi
10866 done
10867   done
10868 IFS=$as_save_IFS
10869
10870   ;;
10871 esac
10872 fi
10873 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10874 if test -n "$ac_pt_PKG_CONFIG"; then
10875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10876 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10877 else
10878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879 $as_echo "no" >&6; }
10880 fi
10881
10882   if test "x$ac_pt_PKG_CONFIG" = x; then
10883     PKG_CONFIG=""
10884   else
10885     case $cross_compiling:$ac_tool_warned in
10886 yes:)
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10889 ac_tool_warned=yes ;;
10890 esac
10891     PKG_CONFIG=$ac_pt_PKG_CONFIG
10892   fi
10893 else
10894   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10895 fi
10896
10897 fi
10898 if test -n "$PKG_CONFIG"; then
10899         _pkg_min_version=0.9.0
10900         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10901 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10902         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10903                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10904 $as_echo "yes" >&6; }
10905         else
10906                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10908                 PKG_CONFIG=""
10909         fi
10910 fi
10911
10912
10913
10914
10915 if  test "x$GCC" = xyes ; then
10916     CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
10917 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
10918 -Wbad-function-cast -Wformat=2"
10919     case `$CC -dumpversion` in
10920     3.4.* | 4.*)
10921         CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
10922         ;;
10923     esac
10924 else
10925     ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10926 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10927   SUNCC="yes"
10928 else
10929   SUNCC="no"
10930 fi
10931
10932     if test "x$SUNCC" = "xyes"; then
10933         CWARNFLAGS="-v"
10934     fi
10935 fi
10936
10937
10938
10939 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
10940
10941
10942
10943 # Check whether --enable-strict-compilation was given.
10944 if test "${enable_strict_compilation+set}" = set; then :
10945   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10946 else
10947   STRICT_COMPILE=no
10948 fi
10949
10950 if test "x$STRICT_COMPILE" = "xyes"; then
10951         ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10952 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10953   SUNCC="yes"
10954 else
10955   SUNCC="no"
10956 fi
10957
10958         ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
10959 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
10960   INTELCC="yes"
10961 else
10962   INTELCC="no"
10963 fi
10964
10965         if test "x$GCC" = xyes ; then
10966                 STRICT_CFLAGS="-pedantic -Werror"
10967         elif test "x$SUNCC" = "xyes"; then
10968                 STRICT_CFLAGS="-errwarn"
10969     elif test "x$INTELCC" = "xyes"; then
10970                 STRICT_CFLAGS="-Werror"
10971         fi
10972 fi
10973 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10974
10975
10976
10977
10978 cat >>confdefs.h <<_ACEOF
10979 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10980 _ACEOF
10981
10982         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10983         if test "x$PVM" = "x"; then
10984                 PVM="0"
10985         fi
10986
10987 cat >>confdefs.h <<_ACEOF
10988 #define PACKAGE_VERSION_MINOR $PVM
10989 _ACEOF
10990
10991         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10992         if test "x$PVP" = "x"; then
10993                 PVP="0"
10994         fi
10995
10996 cat >>confdefs.h <<_ACEOF
10997 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10998 _ACEOF
10999
11000
11001
11002 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
11003 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11004 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
11005 echo 'git directory not found: installing possibly empty changelog.' >&2)"
11006
11007
11008
11009
11010 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11011 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11012 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11013 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
11014 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
11015
11016
11017
11018
11019
11020
11021 if test x$APP_MAN_SUFFIX = x    ; then
11022     APP_MAN_SUFFIX=1
11023 fi
11024 if test x$APP_MAN_DIR = x    ; then
11025     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11026 fi
11027
11028 if test x$LIB_MAN_SUFFIX = x    ; then
11029     LIB_MAN_SUFFIX=3
11030 fi
11031 if test x$LIB_MAN_DIR = x    ; then
11032     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11033 fi
11034
11035 if test x$FILE_MAN_SUFFIX = x    ; then
11036     case $host_os in
11037         solaris*)       FILE_MAN_SUFFIX=4  ;;
11038         *)              FILE_MAN_SUFFIX=5  ;;
11039     esac
11040 fi
11041 if test x$FILE_MAN_DIR = x    ; then
11042     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11043 fi
11044
11045 if test x$MISC_MAN_SUFFIX = x    ; then
11046     case $host_os in
11047         solaris*)       MISC_MAN_SUFFIX=5  ;;
11048         *)              MISC_MAN_SUFFIX=7  ;;
11049     esac
11050 fi
11051 if test x$MISC_MAN_DIR = x    ; then
11052     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11053 fi
11054
11055 if test x$DRIVER_MAN_SUFFIX = x    ; then
11056     case $host_os in
11057         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
11058         *)              DRIVER_MAN_SUFFIX=4  ;;
11059     esac
11060 fi
11061 if test x$DRIVER_MAN_DIR = x    ; then
11062     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11063 fi
11064
11065 if test x$ADMIN_MAN_SUFFIX = x    ; then
11066     case $host_os in
11067         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
11068         *)              ADMIN_MAN_SUFFIX=8  ;;
11069     esac
11070 fi
11071 if test x$ADMIN_MAN_DIR = x    ; then
11072     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11073 fi
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089 XORG_MAN_PAGE="X Version 11"
11090
11091 MAN_SUBSTS="\
11092         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11093         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11094         -e 's|__xservername__|Xorg|g' \
11095         -e 's|__xconfigfile__|xorg.conf|g' \
11096         -e 's|__projectroot__|\$(prefix)|g' \
11097         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11098         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11099         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11100         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11101         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11102         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11103         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11104
11105
11106
11107 # Check whether --enable-silent-rules was given.
11108 if test "${enable_silent_rules+set}" = set; then :
11109   enableval=$enable_silent_rules;
11110 fi
11111
11112 case $enable_silent_rules in
11113 yes) AM_DEFAULT_VERBOSITY=0;;
11114 no)  AM_DEFAULT_VERBOSITY=1;;
11115 *)   AM_DEFAULT_VERBOSITY=0;;
11116 esac
11117 AM_BACKSLASH='\'
11118
11119
11120
11121 # Checks for libraries.
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rint in -lm" >&5
11123 $as_echo_n "checking for rint in -lm... " >&6; }
11124 if test "${ac_cv_lib_m_rint+set}" = set; then :
11125   $as_echo_n "(cached) " >&6
11126 else
11127   ac_check_lib_save_LIBS=$LIBS
11128 LIBS="-lm  $LIBS"
11129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h.  */
11131
11132 /* Override any GCC internal prototype to avoid an error.
11133    Use char because int might match the return type of a GCC
11134    builtin and then its argument prototype would still apply.  */
11135 #ifdef __cplusplus
11136 extern "C"
11137 #endif
11138 char rint ();
11139 int
11140 main ()
11141 {
11142 return rint ();
11143   ;
11144   return 0;
11145 }
11146 _ACEOF
11147 if ac_fn_c_try_link "$LINENO"; then :
11148   ac_cv_lib_m_rint=yes
11149 else
11150   ac_cv_lib_m_rint=no
11151 fi
11152 rm -f core conftest.err conftest.$ac_objext \
11153     conftest$ac_exeext conftest.$ac_ext
11154 LIBS=$ac_check_lib_save_LIBS
11155 fi
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_rint" >&5
11157 $as_echo "$ac_cv_lib_m_rint" >&6; }
11158 if test "x$ac_cv_lib_m_rint" = x""yes; then :
11159   cat >>confdefs.h <<_ACEOF
11160 #define HAVE_LIBM 1
11161 _ACEOF
11162
11163   LIBS="-lm $LIBS"
11164
11165 fi
11166
11167
11168 # Store the list of server defined optional extensions in REQUIRED_MODULES
11169
11170
11171         SAVE_CFLAGS="$CFLAGS"
11172         CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11173         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h.  */
11175
11176 #include "xorg-server.h"
11177 #if !defined RANDR
11178 #error RANDR not defined
11179 #endif
11180
11181 int
11182 main ()
11183 {
11184
11185   ;
11186   return 0;
11187 }
11188 _ACEOF
11189 if ac_fn_c_try_compile "$LINENO"; then :
11190   _EXT_CHECK=yes
11191 else
11192   _EXT_CHECK=no
11193 fi
11194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11195         CFLAGS="$SAVE_CFLAGS"
11196         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
11197 $as_echo_n "checking if RANDR is defined... " >&6; }
11198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11199 $as_echo "$_EXT_CHECK" >&6; }
11200         if test "$_EXT_CHECK" != no; then
11201                 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11202         fi
11203
11204
11205 # Obtain compiler/linker options for the Synaptics driver dependencies
11206
11207 pkg_failed=no
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11209 $as_echo_n "checking for XORG... " >&6; }
11210
11211 if test -n "$XORG_CFLAGS"; then
11212     pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11213  elif test -n "$PKG_CONFIG"; then
11214     if test -n "$PKG_CONFIG" && \
11215     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto inputproto \$REQUIRED_MODULES\""; } >&5
11216   ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES") 2>&5
11217   ac_status=$?
11218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11219   test $ac_status = 0; }; then
11220   pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
11221 else
11222   pkg_failed=yes
11223 fi
11224  else
11225     pkg_failed=untried
11226 fi
11227 if test -n "$XORG_LIBS"; then
11228     pkg_cv_XORG_LIBS="$XORG_LIBS"
11229  elif test -n "$PKG_CONFIG"; then
11230     if test -n "$PKG_CONFIG" && \
11231     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto inputproto \$REQUIRED_MODULES\""; } >&5
11232   ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES") 2>&5
11233   ac_status=$?
11234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11235   test $ac_status = 0; }; then
11236   pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
11237 else
11238   pkg_failed=yes
11239 fi
11240  else
11241     pkg_failed=untried
11242 fi
11243
11244
11245
11246 if test $pkg_failed = yes; then
11247         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248 $as_echo "no" >&6; }
11249
11250 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11251         _pkg_short_errors_supported=yes
11252 else
11253         _pkg_short_errors_supported=no
11254 fi
11255         if test $_pkg_short_errors_supported = yes; then
11256                 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>&1`
11257         else
11258                 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>&1`
11259         fi
11260         # Put the nasty error message in config.log where it belongs
11261         echo "$XORG_PKG_ERRORS" >&5
11262
11263         as_fn_error $? "Package requirements (xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES) were not met:
11264
11265 $XORG_PKG_ERRORS
11266
11267 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11268 installed software in a non-standard prefix.
11269
11270 Alternatively, you may set the environment variables XORG_CFLAGS
11271 and XORG_LIBS to avoid the need to call pkg-config.
11272 See the pkg-config man page for more details." "$LINENO" 5
11273
11274 elif test $pkg_failed = untried; then
11275         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276 $as_echo "no" >&6; }
11277         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11279 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11280 is in your PATH or set the PKG_CONFIG environment variable to the full
11281 path to pkg-config.
11282
11283 Alternatively, you may set the environment variables XORG_CFLAGS
11284 and XORG_LIBS to avoid the need to call pkg-config.
11285 See the pkg-config man page for more details.
11286
11287 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11288 See \`config.log' for more details" "$LINENO" 5; }
11289
11290 else
11291         XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11292         XORG_LIBS=$pkg_cv_XORG_LIBS
11293         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11294 $as_echo "yes" >&6; }
11295
11296 fi
11297
11298 # X Server SDK location is required to install Synaptics header files
11299 # This location is also relayed in the xorg-synaptics.pc file
11300 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
11301
11302
11303 DRIVER_NAME=synaptics
11304
11305
11306 # -----------------------------------------------------------------------------
11307 #                       Configuration options
11308 # -----------------------------------------------------------------------------
11309 # Define a configure option for an alternate input module directory
11310
11311 # Check whether --with-xorg-module-dir was given.
11312 if test "${with_xorg_module_dir+set}" = set; then :
11313   withval=$with_xorg_module_dir; moduledir="$withval"
11314 else
11315   moduledir="$libdir/xorg/modules"
11316 fi
11317
11318 inputdir=${moduledir}/input
11319
11320
11321 # Define a configure option for an alternate X Server configuration directory
11322 sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
11323
11324 # Check whether --with-xorg-conf-dir was given.
11325 if test "${with_xorg_conf_dir+set}" = set; then :
11326   withval=$with_xorg_conf_dir; configdir="$withval"
11327 else
11328   configdir="$sysconfigdir"
11329 fi
11330
11331
11332  if test "x$sysconfigdir" != "x"; then
11333   HAS_XORG_CONF_DIR_TRUE=
11334   HAS_XORG_CONF_DIR_FALSE='#'
11335 else
11336   HAS_XORG_CONF_DIR_TRUE='#'
11337   HAS_XORG_CONF_DIR_FALSE=
11338 fi
11339
11340
11341 # Define a configure option to enable code debugging
11342 # Check whether --enable-debug was given.
11343 if test "${enable_debug+set}" = set; then :
11344   enableval=$enable_debug; DEBUGGING=$enableval
11345 else
11346   DEBUGGING=no
11347 fi
11348
11349 if test "x$DEBUGGING" = xyes; then
11350
11351 $as_echo "#define DEBUG 1" >>confdefs.h
11352
11353 fi
11354  if test "x$DEBUGGING" = xyes; then
11355   DEBUG_TRUE=
11356   DEBUG_FALSE='#'
11357 else
11358   DEBUG_TRUE='#'
11359   DEBUG_FALSE=
11360 fi
11361
11362
11363 # -----------------------------------------------------------------------------
11364 #               Determine which backend, if any, to build
11365 # -----------------------------------------------------------------------------
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which optional backends will be build" >&5
11367 $as_echo_n "checking which optional backends will be build... " >&6; }
11368 case "${host}" in
11369 *linux*)
11370         { $as_echo "$as_me:${as_lineno-$LINENO}: result: eventcomm" >&5
11371 $as_echo "eventcomm" >&6; }
11372         BUILD_EVENTCOMM="yes"
11373
11374 $as_echo "#define BUILD_EVENTCOMM 1" >>confdefs.h
11375
11376         ;;
11377 *freebsd* | *openbsd* | *netbsd* | *dragonfly*)
11378         { $as_echo "$as_me:${as_lineno-$LINENO}: result: psmcomm" >&5
11379 $as_echo "psmcomm" >&6; }
11380         BUILD_PSMCOMM="yes"
11381
11382 $as_echo "#define BUILD_PSMCOMM 1" >>confdefs.h
11383
11384         ;;
11385 *)
11386         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11387 $as_echo "none" >&6; }
11388         ;;
11389 esac
11390  if test "x${BUILD_EVENTCOMM}" = "xyes"; then
11391   BUILD_EVENTCOMM_TRUE=
11392   BUILD_EVENTCOMM_FALSE='#'
11393 else
11394   BUILD_EVENTCOMM_TRUE='#'
11395   BUILD_EVENTCOMM_FALSE=
11396 fi
11397
11398  if test "x${BUILD_PSMCOMM}" = "xyes"; then
11399   BUILD_PSMCOMM_TRUE=
11400   BUILD_PSMCOMM_FALSE='#'
11401 else
11402   BUILD_PSMCOMM_TRUE='#'
11403   BUILD_PSMCOMM_FALSE=
11404 fi
11405
11406
11407 # -----------------------------------------------------------------------------
11408 #                       Dependencies for synclient and syndaemon
11409 # -----------------------------------------------------------------------------
11410 # Obtain compiler/linker options for the Synaptics apps dependencies
11411
11412 pkg_failed=no
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
11414 $as_echo_n "checking for XI... " >&6; }
11415
11416 if test -n "$XI_CFLAGS"; then
11417     pkg_cv_XI_CFLAGS="$XI_CFLAGS"
11418  elif test -n "$PKG_CONFIG"; then
11419     if test -n "$PKG_CONFIG" && \
11420     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 inputproto xi >= 1.2\""; } >&5
11421   ($PKG_CONFIG --exists --print-errors "x11 inputproto xi >= 1.2") 2>&5
11422   ac_status=$?
11423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11424   test $ac_status = 0; }; then
11425   pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "x11 inputproto xi >= 1.2" 2>/dev/null`
11426 else
11427   pkg_failed=yes
11428 fi
11429  else
11430     pkg_failed=untried
11431 fi
11432 if test -n "$XI_LIBS"; then
11433     pkg_cv_XI_LIBS="$XI_LIBS"
11434  elif test -n "$PKG_CONFIG"; then
11435     if test -n "$PKG_CONFIG" && \
11436     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 inputproto xi >= 1.2\""; } >&5
11437   ($PKG_CONFIG --exists --print-errors "x11 inputproto xi >= 1.2") 2>&5
11438   ac_status=$?
11439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11440   test $ac_status = 0; }; then
11441   pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "x11 inputproto xi >= 1.2" 2>/dev/null`
11442 else
11443   pkg_failed=yes
11444 fi
11445  else
11446     pkg_failed=untried
11447 fi
11448
11449
11450
11451 if test $pkg_failed = yes; then
11452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453 $as_echo "no" >&6; }
11454
11455 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11456         _pkg_short_errors_supported=yes
11457 else
11458         _pkg_short_errors_supported=no
11459 fi
11460         if test $_pkg_short_errors_supported = yes; then
11461                 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 inputproto xi >= 1.2" 2>&1`
11462         else
11463                 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 inputproto xi >= 1.2" 2>&1`
11464         fi
11465         # Put the nasty error message in config.log where it belongs
11466         echo "$XI_PKG_ERRORS" >&5
11467
11468         as_fn_error $? "Package requirements (x11 inputproto xi >= 1.2) were not met:
11469
11470 $XI_PKG_ERRORS
11471
11472 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11473 installed software in a non-standard prefix.
11474
11475 Alternatively, you may set the environment variables XI_CFLAGS
11476 and XI_LIBS to avoid the need to call pkg-config.
11477 See the pkg-config man page for more details." "$LINENO" 5
11478
11479 elif test $pkg_failed = untried; then
11480         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481 $as_echo "no" >&6; }
11482         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11484 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11485 is in your PATH or set the PKG_CONFIG environment variable to the full
11486 path to pkg-config.
11487
11488 Alternatively, you may set the environment variables XI_CFLAGS
11489 and XI_LIBS to avoid the need to call pkg-config.
11490 See the pkg-config man page for more details.
11491
11492 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11493 See \`config.log' for more details" "$LINENO" 5; }
11494
11495 else
11496         XI_CFLAGS=$pkg_cv_XI_CFLAGS
11497         XI_LIBS=$pkg_cv_XI_LIBS
11498         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11499 $as_echo "yes" >&6; }
11500
11501 fi
11502
11503 # The syndaemon program uses an optional XRecord extension implementation
11504 # If libxtst >= 1.0.99 is installed, Cflags contains the path to record.h
11505 # If recordproto < 1.13.99.1 is installed, Cflags contains the path to record.h
11506
11507 pkg_failed=no
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTST" >&5
11509 $as_echo_n "checking for XTST... " >&6; }
11510
11511 if test -n "$XTST_CFLAGS"; then
11512     pkg_cv_XTST_CFLAGS="$XTST_CFLAGS"
11513  elif test -n "$PKG_CONFIG"; then
11514     if test -n "$PKG_CONFIG" && \
11515     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst recordproto\""; } >&5
11516   ($PKG_CONFIG --exists --print-errors "xtst recordproto") 2>&5
11517   ac_status=$?
11518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11519   test $ac_status = 0; }; then
11520   pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "xtst recordproto" 2>/dev/null`
11521 else
11522   pkg_failed=yes
11523 fi
11524  else
11525     pkg_failed=untried
11526 fi
11527 if test -n "$XTST_LIBS"; then
11528     pkg_cv_XTST_LIBS="$XTST_LIBS"
11529  elif test -n "$PKG_CONFIG"; then
11530     if test -n "$PKG_CONFIG" && \
11531     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst recordproto\""; } >&5
11532   ($PKG_CONFIG --exists --print-errors "xtst recordproto") 2>&5
11533   ac_status=$?
11534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11535   test $ac_status = 0; }; then
11536   pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "xtst recordproto" 2>/dev/null`
11537 else
11538   pkg_failed=yes
11539 fi
11540  else
11541     pkg_failed=untried
11542 fi
11543
11544
11545
11546 if test $pkg_failed = yes; then
11547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; }
11549
11550 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11551         _pkg_short_errors_supported=yes
11552 else
11553         _pkg_short_errors_supported=no
11554 fi
11555         if test $_pkg_short_errors_supported = yes; then
11556                 XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtst recordproto" 2>&1`
11557         else
11558                 XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtst recordproto" 2>&1`
11559         fi
11560         # Put the nasty error message in config.log where it belongs
11561         echo "$XTST_PKG_ERRORS" >&5
11562
11563         have_libxtst="no"
11564 elif test $pkg_failed = untried; then
11565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566 $as_echo "no" >&6; }
11567         have_libxtst="no"
11568 else
11569         XTST_CFLAGS=$pkg_cv_XTST_CFLAGS
11570         XTST_LIBS=$pkg_cv_XTST_LIBS
11571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11572 $as_echo "yes" >&6; }
11573         have_libxtst="yes"
11574 fi
11575 if test "x$have_libxtst" = "xyes" ; then
11576    # Header record.h may come from the xtst or recordproto package, or may be missing
11577    SAVE_CPPFLAGS="$CPPFLAGS"
11578    CPPFLAGS="$CPPFLAGS $XTST_CFLAGS"
11579    for ac_header in X11/extensions/record.h
11580 do :
11581   ac_fn_c_check_header_compile "$LINENO" "X11/extensions/record.h" "ac_cv_header_X11_extensions_record_h" "#include <X11/Xlib.h>
11582 "
11583 if test "x$ac_cv_header_X11_extensions_record_h" = x""yes; then :
11584   cat >>confdefs.h <<_ACEOF
11585 #define HAVE_X11_EXTENSIONS_RECORD_H 1
11586 _ACEOF
11587
11588 fi
11589
11590 done
11591
11592    CPPFLAGS="$SAVE_CPPFLAGS"
11593 fi
11594 # -----------------------------------------------------------------------------
11595
11596 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile tools/Makefile conf/Makefile include/Makefile xorg-synaptics.pc"
11597
11598 cat >confcache <<\_ACEOF
11599 # This file is a shell script that caches the results of configure
11600 # tests run on this system so they can be shared between configure
11601 # scripts and configure runs, see configure's option --config-cache.
11602 # It is not useful on other systems.  If it contains results you don't
11603 # want to keep, you may remove or edit it.
11604 #
11605 # config.status only pays attention to the cache file if you give it
11606 # the --recheck option to rerun configure.
11607 #
11608 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11609 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11610 # following values.
11611
11612 _ACEOF
11613
11614 # The following way of writing the cache mishandles newlines in values,
11615 # but we know of no workaround that is simple, portable, and efficient.
11616 # So, we kill variables containing newlines.
11617 # Ultrix sh set writes to stderr and can't be redirected directly,
11618 # and sets the high bit in the cache file unless we assign to the vars.
11619 (
11620   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11621     eval ac_val=\$$ac_var
11622     case $ac_val in #(
11623     *${as_nl}*)
11624       case $ac_var in #(
11625       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11626 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11627       esac
11628       case $ac_var in #(
11629       _ | IFS | as_nl) ;; #(
11630       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11631       *) { eval $ac_var=; unset $ac_var;} ;;
11632       esac ;;
11633     esac
11634   done
11635
11636   (set) 2>&1 |
11637     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11638     *${as_nl}ac_space=\ *)
11639       # `set' does not quote correctly, so add quotes: double-quote
11640       # substitution turns \\\\ into \\, and sed turns \\ into \.
11641       sed -n \
11642         "s/'/'\\\\''/g;
11643           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11644       ;; #(
11645     *)
11646       # `set' quotes correctly as required by POSIX, so do not add quotes.
11647       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11648       ;;
11649     esac |
11650     sort
11651 ) |
11652   sed '
11653      /^ac_cv_env_/b end
11654      t clear
11655      :clear
11656      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11657      t end
11658      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11659      :end' >>confcache
11660 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11661   if test -w "$cache_file"; then
11662     test "x$cache_file" != "x/dev/null" &&
11663       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11664 $as_echo "$as_me: updating cache $cache_file" >&6;}
11665     cat confcache >$cache_file
11666   else
11667     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11668 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11669   fi
11670 fi
11671 rm -f confcache
11672
11673 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11674 # Let make expand exec_prefix.
11675 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11676
11677 DEFS=-DHAVE_CONFIG_H
11678
11679 ac_libobjs=
11680 ac_ltlibobjs=
11681 U=
11682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11683   # 1. Remove the extension, and $U if already installed.
11684   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11685   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11686   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11687   #    will be set to the directory where LIBOBJS objects are built.
11688   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11689   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11690 done
11691 LIBOBJS=$ac_libobjs
11692
11693 LTLIBOBJS=$ac_ltlibobjs
11694
11695
11696  if test -n "$EXEEXT"; then
11697   am__EXEEXT_TRUE=
11698   am__EXEEXT_FALSE='#'
11699 else
11700   am__EXEEXT_TRUE='#'
11701   am__EXEEXT_FALSE=
11702 fi
11703
11704 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11705   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11707 fi
11708 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11709   as_fn_error $? "conditional \"AMDEP\" was never defined.
11710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11711 fi
11712 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11713   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11715 fi
11716 if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
11717   as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
11718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11719 fi
11720 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
11721   as_fn_error $? "conditional \"DEBUG\" was never defined.
11722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11723 fi
11724 if test -z "${BUILD_EVENTCOMM_TRUE}" && test -z "${BUILD_EVENTCOMM_FALSE}"; then
11725   as_fn_error $? "conditional \"BUILD_EVENTCOMM\" was never defined.
11726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11727 fi
11728 if test -z "${BUILD_PSMCOMM_TRUE}" && test -z "${BUILD_PSMCOMM_FALSE}"; then
11729   as_fn_error $? "conditional \"BUILD_PSMCOMM\" was never defined.
11730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11731 fi
11732
11733 : ${CONFIG_STATUS=./config.status}
11734 ac_write_fail=0
11735 ac_clean_files_save=$ac_clean_files
11736 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11738 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11739 as_write_fail=0
11740 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11741 #! $SHELL
11742 # Generated by $as_me.
11743 # Run this file to recreate the current configuration.
11744 # Compiler output produced by configure, useful for debugging
11745 # configure, is in config.log if it exists.
11746
11747 debug=false
11748 ac_cs_recheck=false
11749 ac_cs_silent=false
11750
11751 SHELL=\${CONFIG_SHELL-$SHELL}
11752 export SHELL
11753 _ASEOF
11754 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11755 ## -------------------- ##
11756 ## M4sh Initialization. ##
11757 ## -------------------- ##
11758
11759 # Be more Bourne compatible
11760 DUALCASE=1; export DUALCASE # for MKS sh
11761 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11762   emulate sh
11763   NULLCMD=:
11764   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11765   # is contrary to our usage.  Disable this feature.
11766   alias -g '${1+"$@"}'='"$@"'
11767   setopt NO_GLOB_SUBST
11768 else
11769   case `(set -o) 2>/dev/null` in #(
11770   *posix*) :
11771     set -o posix ;; #(
11772   *) :
11773      ;;
11774 esac
11775 fi
11776
11777
11778 as_nl='
11779 '
11780 export as_nl
11781 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11782 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11783 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11784 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11785 # Prefer a ksh shell builtin over an external printf program on Solaris,
11786 # but without wasting forks for bash or zsh.
11787 if test -z "$BASH_VERSION$ZSH_VERSION" \
11788     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11789   as_echo='print -r --'
11790   as_echo_n='print -rn --'
11791 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11792   as_echo='printf %s\n'
11793   as_echo_n='printf %s'
11794 else
11795   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11796     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11797     as_echo_n='/usr/ucb/echo -n'
11798   else
11799     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11800     as_echo_n_body='eval
11801       arg=$1;
11802       case $arg in #(
11803       *"$as_nl"*)
11804         expr "X$arg" : "X\\(.*\\)$as_nl";
11805         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11806       esac;
11807       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11808     '
11809     export as_echo_n_body
11810     as_echo_n='sh -c $as_echo_n_body as_echo'
11811   fi
11812   export as_echo_body
11813   as_echo='sh -c $as_echo_body as_echo'
11814 fi
11815
11816 # The user is always right.
11817 if test "${PATH_SEPARATOR+set}" != set; then
11818   PATH_SEPARATOR=:
11819   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11820     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11821       PATH_SEPARATOR=';'
11822   }
11823 fi
11824
11825
11826 # IFS
11827 # We need space, tab and new line, in precisely that order.  Quoting is
11828 # there to prevent editors from complaining about space-tab.
11829 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11830 # splitting by setting IFS to empty value.)
11831 IFS=" ""        $as_nl"
11832
11833 # Find who we are.  Look in the path if we contain no directory separator.
11834 case $0 in #((
11835   *[\\/]* ) as_myself=$0 ;;
11836   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837 for as_dir in $PATH
11838 do
11839   IFS=$as_save_IFS
11840   test -z "$as_dir" && as_dir=.
11841     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11842   done
11843 IFS=$as_save_IFS
11844
11845      ;;
11846 esac
11847 # We did not find ourselves, most probably we were run as `sh COMMAND'
11848 # in which case we are not to be found in the path.
11849 if test "x$as_myself" = x; then
11850   as_myself=$0
11851 fi
11852 if test ! -f "$as_myself"; then
11853   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11854   exit 1
11855 fi
11856
11857 # Unset variables that we do not need and which cause bugs (e.g. in
11858 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11859 # suppresses any "Segmentation fault" message there.  '((' could
11860 # trigger a bug in pdksh 5.2.14.
11861 for as_var in BASH_ENV ENV MAIL MAILPATH
11862 do eval test x\${$as_var+set} = xset \
11863   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11864 done
11865 PS1='$ '
11866 PS2='> '
11867 PS4='+ '
11868
11869 # NLS nuisances.
11870 LC_ALL=C
11871 export LC_ALL
11872 LANGUAGE=C
11873 export LANGUAGE
11874
11875 # CDPATH.
11876 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11877
11878
11879 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11880 # ----------------------------------------
11881 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11882 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11883 # script with STATUS, using 1 if that was 0.
11884 as_fn_error ()
11885 {
11886   as_status=$1; test $as_status -eq 0 && as_status=1
11887   if test "$4"; then
11888     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11889     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11890   fi
11891   $as_echo "$as_me: error: $2" >&2
11892   as_fn_exit $as_status
11893 } # as_fn_error
11894
11895
11896 # as_fn_set_status STATUS
11897 # -----------------------
11898 # Set $? to STATUS, without forking.
11899 as_fn_set_status ()
11900 {
11901   return $1
11902 } # as_fn_set_status
11903
11904 # as_fn_exit STATUS
11905 # -----------------
11906 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11907 as_fn_exit ()
11908 {
11909   set +e
11910   as_fn_set_status $1
11911   exit $1
11912 } # as_fn_exit
11913
11914 # as_fn_unset VAR
11915 # ---------------
11916 # Portably unset VAR.
11917 as_fn_unset ()
11918 {
11919   { eval $1=; unset $1;}
11920 }
11921 as_unset=as_fn_unset
11922 # as_fn_append VAR VALUE
11923 # ----------------------
11924 # Append the text in VALUE to the end of the definition contained in VAR. Take
11925 # advantage of any shell optimizations that allow amortized linear growth over
11926 # repeated appends, instead of the typical quadratic growth present in naive
11927 # implementations.
11928 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11929   eval 'as_fn_append ()
11930   {
11931     eval $1+=\$2
11932   }'
11933 else
11934   as_fn_append ()
11935   {
11936     eval $1=\$$1\$2
11937   }
11938 fi # as_fn_append
11939
11940 # as_fn_arith ARG...
11941 # ------------------
11942 # Perform arithmetic evaluation on the ARGs, and store the result in the
11943 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11944 # must be portable across $(()) and expr.
11945 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11946   eval 'as_fn_arith ()
11947   {
11948     as_val=$(( $* ))
11949   }'
11950 else
11951   as_fn_arith ()
11952   {
11953     as_val=`expr "$@" || test $? -eq 1`
11954   }
11955 fi # as_fn_arith
11956
11957
11958 if expr a : '\(a\)' >/dev/null 2>&1 &&
11959    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11960   as_expr=expr
11961 else
11962   as_expr=false
11963 fi
11964
11965 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11966   as_basename=basename
11967 else
11968   as_basename=false
11969 fi
11970
11971 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11972   as_dirname=dirname
11973 else
11974   as_dirname=false
11975 fi
11976
11977 as_me=`$as_basename -- "$0" ||
11978 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11979          X"$0" : 'X\(//\)$' \| \
11980          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11981 $as_echo X/"$0" |
11982     sed '/^.*\/\([^/][^/]*\)\/*$/{
11983             s//\1/
11984             q
11985           }
11986           /^X\/\(\/\/\)$/{
11987             s//\1/
11988             q
11989           }
11990           /^X\/\(\/\).*/{
11991             s//\1/
11992             q
11993           }
11994           s/.*/./; q'`
11995
11996 # Avoid depending upon Character Ranges.
11997 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11998 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11999 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12000 as_cr_digits='0123456789'
12001 as_cr_alnum=$as_cr_Letters$as_cr_digits
12002
12003 ECHO_C= ECHO_N= ECHO_T=
12004 case `echo -n x` in #(((((
12005 -n*)
12006   case `echo 'xy\c'` in
12007   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12008   xy)  ECHO_C='\c';;
12009   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12010        ECHO_T=' ';;
12011   esac;;
12012 *)
12013   ECHO_N='-n';;
12014 esac
12015
12016 rm -f conf$$ conf$$.exe conf$$.file
12017 if test -d conf$$.dir; then
12018   rm -f conf$$.dir/conf$$.file
12019 else
12020   rm -f conf$$.dir
12021   mkdir conf$$.dir 2>/dev/null
12022 fi
12023 if (echo >conf$$.file) 2>/dev/null; then
12024   if ln -s conf$$.file conf$$ 2>/dev/null; then
12025     as_ln_s='ln -s'
12026     # ... but there are two gotchas:
12027     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12028     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12029     # In both cases, we have to default to `cp -p'.
12030     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12031       as_ln_s='cp -p'
12032   elif ln conf$$.file conf$$ 2>/dev/null; then
12033     as_ln_s=ln
12034   else
12035     as_ln_s='cp -p'
12036   fi
12037 else
12038   as_ln_s='cp -p'
12039 fi
12040 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12041 rmdir conf$$.dir 2>/dev/null
12042
12043
12044 # as_fn_mkdir_p
12045 # -------------
12046 # Create "$as_dir" as a directory, including parents if necessary.
12047 as_fn_mkdir_p ()
12048 {
12049
12050   case $as_dir in #(
12051   -*) as_dir=./$as_dir;;
12052   esac
12053   test -d "$as_dir" || eval $as_mkdir_p || {
12054     as_dirs=
12055     while :; do
12056       case $as_dir in #(
12057       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12058       *) as_qdir=$as_dir;;
12059       esac
12060       as_dirs="'$as_qdir' $as_dirs"
12061       as_dir=`$as_dirname -- "$as_dir" ||
12062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12063          X"$as_dir" : 'X\(//\)[^/]' \| \
12064          X"$as_dir" : 'X\(//\)$' \| \
12065          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12066 $as_echo X"$as_dir" |
12067     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12068             s//\1/
12069             q
12070           }
12071           /^X\(\/\/\)[^/].*/{
12072             s//\1/
12073             q
12074           }
12075           /^X\(\/\/\)$/{
12076             s//\1/
12077             q
12078           }
12079           /^X\(\/\).*/{
12080             s//\1/
12081             q
12082           }
12083           s/.*/./; q'`
12084       test -d "$as_dir" && break
12085     done
12086     test -z "$as_dirs" || eval "mkdir $as_dirs"
12087   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12088
12089
12090 } # as_fn_mkdir_p
12091 if mkdir -p . 2>/dev/null; then
12092   as_mkdir_p='mkdir -p "$as_dir"'
12093 else
12094   test -d ./-p && rmdir ./-p
12095   as_mkdir_p=false
12096 fi
12097
12098 if test -x / >/dev/null 2>&1; then
12099   as_test_x='test -x'
12100 else
12101   if ls -dL / >/dev/null 2>&1; then
12102     as_ls_L_option=L
12103   else
12104     as_ls_L_option=
12105   fi
12106   as_test_x='
12107     eval sh -c '\''
12108       if test -d "$1"; then
12109         test -d "$1/.";
12110       else
12111         case $1 in #(
12112         -*)set "./$1";;
12113         esac;
12114         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12115         ???[sx]*):;;*)false;;esac;fi
12116     '\'' sh
12117   '
12118 fi
12119 as_executable_p=$as_test_x
12120
12121 # Sed expression to map a string onto a valid CPP name.
12122 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12123
12124 # Sed expression to map a string onto a valid variable name.
12125 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12126
12127
12128 exec 6>&1
12129 ## ----------------------------------- ##
12130 ## Main body of $CONFIG_STATUS script. ##
12131 ## ----------------------------------- ##
12132 _ASEOF
12133 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12134
12135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12136 # Save the log message, to keep $0 and so on meaningful, and to
12137 # report actual input values of CONFIG_FILES etc. instead of their
12138 # values after options handling.
12139 ac_log="
12140 This file was extended by xf86-input-synaptics $as_me 1.4.0, which was
12141 generated by GNU Autoconf 2.66.  Invocation command line was
12142
12143   CONFIG_FILES    = $CONFIG_FILES
12144   CONFIG_HEADERS  = $CONFIG_HEADERS
12145   CONFIG_LINKS    = $CONFIG_LINKS
12146   CONFIG_COMMANDS = $CONFIG_COMMANDS
12147   $ $0 $@
12148
12149 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12150 "
12151
12152 _ACEOF
12153
12154 case $ac_config_files in *"
12155 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12156 esac
12157
12158 case $ac_config_headers in *"
12159 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12160 esac
12161
12162
12163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12164 # Files that config.status was made for.
12165 config_files="$ac_config_files"
12166 config_headers="$ac_config_headers"
12167 config_commands="$ac_config_commands"
12168
12169 _ACEOF
12170
12171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12172 ac_cs_usage="\
12173 \`$as_me' instantiates files and other configuration actions
12174 from templates according to the current configuration.  Unless the files
12175 and actions are specified as TAGs, all are instantiated by default.
12176
12177 Usage: $0 [OPTION]... [TAG]...
12178
12179   -h, --help       print this help, then exit
12180   -V, --version    print version number and configuration settings, then exit
12181       --config     print configuration, then exit
12182   -q, --quiet, --silent
12183                    do not print progress messages
12184   -d, --debug      don't remove temporary files
12185       --recheck    update $as_me by reconfiguring in the same conditions
12186       --file=FILE[:TEMPLATE]
12187                    instantiate the configuration file FILE
12188       --header=FILE[:TEMPLATE]
12189                    instantiate the configuration header FILE
12190
12191 Configuration files:
12192 $config_files
12193
12194 Configuration headers:
12195 $config_headers
12196
12197 Configuration commands:
12198 $config_commands
12199
12200 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12201
12202 _ACEOF
12203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12204 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12205 ac_cs_version="\\
12206 xf86-input-synaptics config.status 1.4.0
12207 configured by $0, generated by GNU Autoconf 2.66,
12208   with options \\"\$ac_cs_config\\"
12209
12210 Copyright (C) 2010 Free Software Foundation, Inc.
12211 This config.status script is free software; the Free Software Foundation
12212 gives unlimited permission to copy, distribute and modify it."
12213
12214 ac_pwd='$ac_pwd'
12215 srcdir='$srcdir'
12216 INSTALL='$INSTALL'
12217 MKDIR_P='$MKDIR_P'
12218 AWK='$AWK'
12219 test -n "\$AWK" || AWK=awk
12220 _ACEOF
12221
12222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12223 # The default lists apply if the user does not specify any file.
12224 ac_need_defaults=:
12225 while test $# != 0
12226 do
12227   case $1 in
12228   --*=*)
12229     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12230     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12231     ac_shift=:
12232     ;;
12233   *)
12234     ac_option=$1
12235     ac_optarg=$2
12236     ac_shift=shift
12237     ;;
12238   esac
12239
12240   case $ac_option in
12241   # Handling of the options.
12242   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12243     ac_cs_recheck=: ;;
12244   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12245     $as_echo "$ac_cs_version"; exit ;;
12246   --config | --confi | --conf | --con | --co | --c )
12247     $as_echo "$ac_cs_config"; exit ;;
12248   --debug | --debu | --deb | --de | --d | -d )
12249     debug=: ;;
12250   --file | --fil | --fi | --f )
12251     $ac_shift
12252     case $ac_optarg in
12253     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12254     esac
12255     as_fn_append CONFIG_FILES " '$ac_optarg'"
12256     ac_need_defaults=false;;
12257   --header | --heade | --head | --hea )
12258     $ac_shift
12259     case $ac_optarg in
12260     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12261     esac
12262     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12263     ac_need_defaults=false;;
12264   --he | --h)
12265     # Conflict between --help and --header
12266     as_fn_error $? "ambiguous option: \`$1'
12267 Try \`$0 --help' for more information.";;
12268   --help | --hel | -h )
12269     $as_echo "$ac_cs_usage"; exit ;;
12270   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12271   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12272     ac_cs_silent=: ;;
12273
12274   # This is an error.
12275   -*) as_fn_error $? "unrecognized option: \`$1'
12276 Try \`$0 --help' for more information." ;;
12277
12278   *) as_fn_append ac_config_targets " $1"
12279      ac_need_defaults=false ;;
12280
12281   esac
12282   shift
12283 done
12284
12285 ac_configure_extra_args=
12286
12287 if $ac_cs_silent; then
12288   exec 6>/dev/null
12289   ac_configure_extra_args="$ac_configure_extra_args --silent"
12290 fi
12291
12292 _ACEOF
12293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12294 if \$ac_cs_recheck; then
12295   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12296   shift
12297   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12298   CONFIG_SHELL='$SHELL'
12299   export CONFIG_SHELL
12300   exec "\$@"
12301 fi
12302
12303 _ACEOF
12304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12305 exec 5>>config.log
12306 {
12307   echo
12308   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12309 ## Running $as_me. ##
12310 _ASBOX
12311   $as_echo "$ac_log"
12312 } >&5
12313
12314 _ACEOF
12315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12316 #
12317 # INIT-COMMANDS
12318 #
12319 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12320
12321
12322 # The HP-UX ksh and POSIX shell print the target directory to stdout
12323 # if CDPATH is set.
12324 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12325
12326 sed_quote_subst='$sed_quote_subst'
12327 double_quote_subst='$double_quote_subst'
12328 delay_variable_subst='$delay_variable_subst'
12329 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12330 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12331 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12332 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12333 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12334 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12335 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12336 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12337 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12338 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12339 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12340 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12341 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12342 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12343 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12344 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12345 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12346 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12347 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12348 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12349 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12350 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12351 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12352 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12353 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12354 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12355 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12356 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12357 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12358 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12359 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12360 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12361 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12362 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12363 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12364 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12365 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12366 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12367 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12368 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12369 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12370 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12371 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12372 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12373 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12374 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12375 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12376 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12377 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"`'
12378 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12379 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12380 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12381 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12382 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12383 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12384 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12385 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12386 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12387 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12388 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12389 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12390 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12391 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12392 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12393 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12394 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12395 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12396 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12397 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12398 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12399 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12400 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12401 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12402 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12403 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12404 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12405 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12406 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12407 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12408 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12409 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12410 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12411 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12412 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12413 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12414 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12415 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12416 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12417 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12418 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12419 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12420 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12421 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12422 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12423 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12424 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12425 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12426 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12427 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12428 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12429 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12430 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12431 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12432 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12433 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12434 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12435 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12436 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12437 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12438 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12439 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12440 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12441 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12442 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12443 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12444 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12445 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12446 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12447 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12448 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12449
12450 LTCC='$LTCC'
12451 LTCFLAGS='$LTCFLAGS'
12452 compiler='$compiler_DEFAULT'
12453
12454 # A function that is used when there is no print builtin or printf.
12455 func_fallback_echo ()
12456 {
12457   eval 'cat <<_LTECHO_EOF
12458 \$1
12459 _LTECHO_EOF'
12460 }
12461
12462 # Quote evaled strings.
12463 for var in SHELL \
12464 ECHO \
12465 SED \
12466 GREP \
12467 EGREP \
12468 FGREP \
12469 LD \
12470 NM \
12471 LN_S \
12472 lt_SP2NL \
12473 lt_NL2SP \
12474 reload_flag \
12475 OBJDUMP \
12476 deplibs_check_method \
12477 file_magic_cmd \
12478 AR \
12479 AR_FLAGS \
12480 STRIP \
12481 RANLIB \
12482 CC \
12483 CFLAGS \
12484 compiler \
12485 lt_cv_sys_global_symbol_pipe \
12486 lt_cv_sys_global_symbol_to_cdecl \
12487 lt_cv_sys_global_symbol_to_c_name_address \
12488 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12489 lt_prog_compiler_no_builtin_flag \
12490 lt_prog_compiler_wl \
12491 lt_prog_compiler_pic \
12492 lt_prog_compiler_static \
12493 lt_cv_prog_compiler_c_o \
12494 need_locks \
12495 DSYMUTIL \
12496 NMEDIT \
12497 LIPO \
12498 OTOOL \
12499 OTOOL64 \
12500 shrext_cmds \
12501 export_dynamic_flag_spec \
12502 whole_archive_flag_spec \
12503 compiler_needs_object \
12504 with_gnu_ld \
12505 allow_undefined_flag \
12506 no_undefined_flag \
12507 hardcode_libdir_flag_spec \
12508 hardcode_libdir_flag_spec_ld \
12509 hardcode_libdir_separator \
12510 fix_srcfile_path \
12511 exclude_expsyms \
12512 include_expsyms \
12513 file_list_spec \
12514 variables_saved_for_relink \
12515 libname_spec \
12516 library_names_spec \
12517 soname_spec \
12518 install_override_mode \
12519 finish_eval \
12520 old_striplib \
12521 striplib; do
12522     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12523     *[\\\\\\\`\\"\\\$]*)
12524       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12525       ;;
12526     *)
12527       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12528       ;;
12529     esac
12530 done
12531
12532 # Double-quote double-evaled strings.
12533 for var in reload_cmds \
12534 old_postinstall_cmds \
12535 old_postuninstall_cmds \
12536 old_archive_cmds \
12537 extract_expsyms_cmds \
12538 old_archive_from_new_cmds \
12539 old_archive_from_expsyms_cmds \
12540 archive_cmds \
12541 archive_expsym_cmds \
12542 module_cmds \
12543 module_expsym_cmds \
12544 export_symbols_cmds \
12545 prelink_cmds \
12546 postinstall_cmds \
12547 postuninstall_cmds \
12548 finish_cmds \
12549 sys_lib_search_path_spec \
12550 sys_lib_dlsearch_path_spec; do
12551     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12552     *[\\\\\\\`\\"\\\$]*)
12553       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12554       ;;
12555     *)
12556       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12557       ;;
12558     esac
12559 done
12560
12561 ac_aux_dir='$ac_aux_dir'
12562 xsi_shell='$xsi_shell'
12563 lt_shell_append='$lt_shell_append'
12564
12565 # See if we are running on zsh, and set the options which allow our
12566 # commands through without removal of \ escapes INIT.
12567 if test -n "\${ZSH_VERSION+set}" ; then
12568    setopt NO_GLOB_SUBST
12569 fi
12570
12571
12572     PACKAGE='$PACKAGE'
12573     VERSION='$VERSION'
12574     TIMESTAMP='$TIMESTAMP'
12575     RM='$RM'
12576     ofile='$ofile'
12577
12578
12579
12580
12581 _ACEOF
12582
12583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12584
12585 # Handling of arguments.
12586 for ac_config_target in $ac_config_targets
12587 do
12588   case $ac_config_target in
12589     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12590     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12591     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12592     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12593     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12594     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12595     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12596     "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
12597     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12598     "xorg-synaptics.pc") CONFIG_FILES="$CONFIG_FILES xorg-synaptics.pc" ;;
12599
12600   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12601   esac
12602 done
12603
12604
12605 # If the user did not use the arguments to specify the items to instantiate,
12606 # then the envvar interface is used.  Set only those that are not.
12607 # We use the long form for the default assignment because of an extremely
12608 # bizarre bug on SunOS 4.1.3.
12609 if $ac_need_defaults; then
12610   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12611   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12612   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12613 fi
12614
12615 # Have a temporary directory for convenience.  Make it in the build tree
12616 # simply because there is no reason against having it here, and in addition,
12617 # creating and moving files from /tmp can sometimes cause problems.
12618 # Hook for its removal unless debugging.
12619 # Note that there is a small window in which the directory will not be cleaned:
12620 # after its creation but before its name has been assigned to `$tmp'.
12621 $debug ||
12622 {
12623   tmp=
12624   trap 'exit_status=$?
12625   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12626 ' 0
12627   trap 'as_fn_exit 1' 1 2 13 15
12628 }
12629 # Create a (secure) tmp directory for tmp files.
12630
12631 {
12632   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12633   test -n "$tmp" && test -d "$tmp"
12634 }  ||
12635 {
12636   tmp=./conf$$-$RANDOM
12637   (umask 077 && mkdir "$tmp")
12638 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12639
12640 # Set up the scripts for CONFIG_FILES section.
12641 # No need to generate them if there are no CONFIG_FILES.
12642 # This happens for instance with `./config.status config.h'.
12643 if test -n "$CONFIG_FILES"; then
12644
12645
12646 ac_cr=`echo X | tr X '\015'`
12647 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12648 # But we know of no other shell where ac_cr would be empty at this
12649 # point, so we can use a bashism as a fallback.
12650 if test "x$ac_cr" = x; then
12651   eval ac_cr=\$\'\\r\'
12652 fi
12653 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12654 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12655   ac_cs_awk_cr='\\r'
12656 else
12657   ac_cs_awk_cr=$ac_cr
12658 fi
12659
12660 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12661 _ACEOF
12662
12663
12664 {
12665   echo "cat >conf$$subs.awk <<_ACEOF" &&
12666   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12667   echo "_ACEOF"
12668 } >conf$$subs.sh ||
12669   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12670 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12671 ac_delim='%!_!# '
12672 for ac_last_try in false false false false false :; do
12673   . ./conf$$subs.sh ||
12674     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12675
12676   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12677   if test $ac_delim_n = $ac_delim_num; then
12678     break
12679   elif $ac_last_try; then
12680     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12681   else
12682     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12683   fi
12684 done
12685 rm -f conf$$subs.sh
12686
12687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12688 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12689 _ACEOF
12690 sed -n '
12691 h
12692 s/^/S["/; s/!.*/"]=/
12693 p
12694 g
12695 s/^[^!]*!//
12696 :repl
12697 t repl
12698 s/'"$ac_delim"'$//
12699 t delim
12700 :nl
12701 h
12702 s/\(.\{148\}\)..*/\1/
12703 t more1
12704 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12705 p
12706 n
12707 b repl
12708 :more1
12709 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12710 p
12711 g
12712 s/.\{148\}//
12713 t nl
12714 :delim
12715 h
12716 s/\(.\{148\}\)..*/\1/
12717 t more2
12718 s/["\\]/\\&/g; s/^/"/; s/$/"/
12719 p
12720 b
12721 :more2
12722 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12723 p
12724 g
12725 s/.\{148\}//
12726 t delim
12727 ' <conf$$subs.awk | sed '
12728 /^[^""]/{
12729   N
12730   s/\n//
12731 }
12732 ' >>$CONFIG_STATUS || ac_write_fail=1
12733 rm -f conf$$subs.awk
12734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12735 _ACAWK
12736 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12737   for (key in S) S_is_set[key] = 1
12738   FS = "\a"
12739
12740 }
12741 {
12742   line = $ 0
12743   nfields = split(line, field, "@")
12744   substed = 0
12745   len = length(field[1])
12746   for (i = 2; i < nfields; i++) {
12747     key = field[i]
12748     keylen = length(key)
12749     if (S_is_set[key]) {
12750       value = S[key]
12751       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12752       len += length(value) + length(field[++i])
12753       substed = 1
12754     } else
12755       len += 1 + keylen
12756   }
12757
12758   print line
12759 }
12760
12761 _ACAWK
12762 _ACEOF
12763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12764 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12765   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12766 else
12767   cat
12768 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12769   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12770 _ACEOF
12771
12772 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12773 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12774 # trailing colons and then remove the whole line if VPATH becomes empty
12775 # (actually we leave an empty line to preserve line numbers).
12776 if test "x$srcdir" = x.; then
12777   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12778 h
12779 s///
12780 s/^/:/
12781 s/[      ]*$/:/
12782 s/:\$(srcdir):/:/g
12783 s/:\${srcdir}:/:/g
12784 s/:@srcdir@:/:/g
12785 s/^:*//
12786 s/:*$//
12787 x
12788 s/\(=[   ]*\).*/\1/
12789 G
12790 s/\n//
12791 s/^[^=]*=[       ]*$//
12792 }'
12793 fi
12794
12795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12796 fi # test -n "$CONFIG_FILES"
12797
12798 # Set up the scripts for CONFIG_HEADERS section.
12799 # No need to generate them if there are no CONFIG_HEADERS.
12800 # This happens for instance with `./config.status Makefile'.
12801 if test -n "$CONFIG_HEADERS"; then
12802 cat >"$tmp/defines.awk" <<\_ACAWK ||
12803 BEGIN {
12804 _ACEOF
12805
12806 # Transform confdefs.h into an awk script `defines.awk', embedded as
12807 # here-document in config.status, that substitutes the proper values into
12808 # config.h.in to produce config.h.
12809
12810 # Create a delimiter string that does not exist in confdefs.h, to ease
12811 # handling of long lines.
12812 ac_delim='%!_!# '
12813 for ac_last_try in false false :; do
12814   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12815   if test -z "$ac_t"; then
12816     break
12817   elif $ac_last_try; then
12818     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12819   else
12820     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12821   fi
12822 done
12823
12824 # For the awk script, D is an array of macro values keyed by name,
12825 # likewise P contains macro parameters if any.  Preserve backslash
12826 # newline sequences.
12827
12828 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12829 sed -n '
12830 s/.\{148\}/&'"$ac_delim"'/g
12831 t rset
12832 :rset
12833 s/^[     ]*#[    ]*define[       ][      ]*/ /
12834 t def
12835 d
12836 :def
12837 s/\\$//
12838 t bsnl
12839 s/["\\]/\\&/g
12840 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12841 D["\1"]=" \3"/p
12842 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12843 d
12844 :bsnl
12845 s/["\\]/\\&/g
12846 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12847 D["\1"]=" \3\\\\\\n"\\/p
12848 t cont
12849 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12850 t cont
12851 d
12852 :cont
12853 n
12854 s/.\{148\}/&'"$ac_delim"'/g
12855 t clear
12856 :clear
12857 s/\\$//
12858 t bsnlc
12859 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12860 d
12861 :bsnlc
12862 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12863 b cont
12864 ' <confdefs.h | sed '
12865 s/'"$ac_delim"'/"\\\
12866 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12867
12868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12869   for (key in D) D_is_set[key] = 1
12870   FS = "\a"
12871 }
12872 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12873   line = \$ 0
12874   split(line, arg, " ")
12875   if (arg[1] == "#") {
12876     defundef = arg[2]
12877     mac1 = arg[3]
12878   } else {
12879     defundef = substr(arg[1], 2)
12880     mac1 = arg[2]
12881   }
12882   split(mac1, mac2, "(") #)
12883   macro = mac2[1]
12884   prefix = substr(line, 1, index(line, defundef) - 1)
12885   if (D_is_set[macro]) {
12886     # Preserve the white space surrounding the "#".
12887     print prefix "define", macro P[macro] D[macro]
12888     next
12889   } else {
12890     # Replace #undef with comments.  This is necessary, for example,
12891     # in the case of _POSIX_SOURCE, which is predefined and required
12892     # on some systems where configure will not decide to define it.
12893     if (defundef == "undef") {
12894       print "/*", prefix defundef, macro, "*/"
12895       next
12896     }
12897   }
12898 }
12899 { print }
12900 _ACAWK
12901 _ACEOF
12902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12903   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12904 fi # test -n "$CONFIG_HEADERS"
12905
12906
12907 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12908 shift
12909 for ac_tag
12910 do
12911   case $ac_tag in
12912   :[FHLC]) ac_mode=$ac_tag; continue;;
12913   esac
12914   case $ac_mode$ac_tag in
12915   :[FHL]*:*);;
12916   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12917   :[FH]-) ac_tag=-:-;;
12918   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12919   esac
12920   ac_save_IFS=$IFS
12921   IFS=:
12922   set x $ac_tag
12923   IFS=$ac_save_IFS
12924   shift
12925   ac_file=$1
12926   shift
12927
12928   case $ac_mode in
12929   :L) ac_source=$1;;
12930   :[FH])
12931     ac_file_inputs=
12932     for ac_f
12933     do
12934       case $ac_f in
12935       -) ac_f="$tmp/stdin";;
12936       *) # Look for the file first in the build tree, then in the source tree
12937          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12938          # because $ac_f cannot contain `:'.
12939          test -f "$ac_f" ||
12940            case $ac_f in
12941            [\\/$]*) false;;
12942            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12943            esac ||
12944            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12945       esac
12946       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12947       as_fn_append ac_file_inputs " '$ac_f'"
12948     done
12949
12950     # Let's still pretend it is `configure' which instantiates (i.e., don't
12951     # use $as_me), people would be surprised to read:
12952     #    /* config.h.  Generated by config.status.  */
12953     configure_input='Generated from '`
12954           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12955         `' by configure.'
12956     if test x"$ac_file" != x-; then
12957       configure_input="$ac_file.  $configure_input"
12958       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12959 $as_echo "$as_me: creating $ac_file" >&6;}
12960     fi
12961     # Neutralize special characters interpreted by sed in replacement strings.
12962     case $configure_input in #(
12963     *\&* | *\|* | *\\* )
12964        ac_sed_conf_input=`$as_echo "$configure_input" |
12965        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12966     *) ac_sed_conf_input=$configure_input;;
12967     esac
12968
12969     case $ac_tag in
12970     *:-:* | *:-) cat >"$tmp/stdin" \
12971       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12972     esac
12973     ;;
12974   esac
12975
12976   ac_dir=`$as_dirname -- "$ac_file" ||
12977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12978          X"$ac_file" : 'X\(//\)[^/]' \| \
12979          X"$ac_file" : 'X\(//\)$' \| \
12980          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12981 $as_echo X"$ac_file" |
12982     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12983             s//\1/
12984             q
12985           }
12986           /^X\(\/\/\)[^/].*/{
12987             s//\1/
12988             q
12989           }
12990           /^X\(\/\/\)$/{
12991             s//\1/
12992             q
12993           }
12994           /^X\(\/\).*/{
12995             s//\1/
12996             q
12997           }
12998           s/.*/./; q'`
12999   as_dir="$ac_dir"; as_fn_mkdir_p
13000   ac_builddir=.
13001
13002 case "$ac_dir" in
13003 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13004 *)
13005   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13006   # A ".." for each directory in $ac_dir_suffix.
13007   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13008   case $ac_top_builddir_sub in
13009   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13010   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13011   esac ;;
13012 esac
13013 ac_abs_top_builddir=$ac_pwd
13014 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13015 # for backward compatibility:
13016 ac_top_builddir=$ac_top_build_prefix
13017
13018 case $srcdir in
13019   .)  # We are building in place.
13020     ac_srcdir=.
13021     ac_top_srcdir=$ac_top_builddir_sub
13022     ac_abs_top_srcdir=$ac_pwd ;;
13023   [\\/]* | ?:[\\/]* )  # Absolute name.
13024     ac_srcdir=$srcdir$ac_dir_suffix;
13025     ac_top_srcdir=$srcdir
13026     ac_abs_top_srcdir=$srcdir ;;
13027   *) # Relative name.
13028     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13029     ac_top_srcdir=$ac_top_build_prefix$srcdir
13030     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13031 esac
13032 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13033
13034
13035   case $ac_mode in
13036   :F)
13037   #
13038   # CONFIG_FILE
13039   #
13040
13041   case $INSTALL in
13042   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13043   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13044   esac
13045   ac_MKDIR_P=$MKDIR_P
13046   case $MKDIR_P in
13047   [\\/$]* | ?:[\\/]* ) ;;
13048   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13049   esac
13050 _ACEOF
13051
13052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13053 # If the template does not know about datarootdir, expand it.
13054 # FIXME: This hack should be removed a few years after 2.60.
13055 ac_datarootdir_hack=; ac_datarootdir_seen=
13056 ac_sed_dataroot='
13057 /datarootdir/ {
13058   p
13059   q
13060 }
13061 /@datadir@/p
13062 /@docdir@/p
13063 /@infodir@/p
13064 /@localedir@/p
13065 /@mandir@/p'
13066 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13067 *datarootdir*) ac_datarootdir_seen=yes;;
13068 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13069   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13070 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13071 _ACEOF
13072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13073   ac_datarootdir_hack='
13074   s&@datadir@&$datadir&g
13075   s&@docdir@&$docdir&g
13076   s&@infodir@&$infodir&g
13077   s&@localedir@&$localedir&g
13078   s&@mandir@&$mandir&g
13079   s&\\\${datarootdir}&$datarootdir&g' ;;
13080 esac
13081 _ACEOF
13082
13083 # Neutralize VPATH when `$srcdir' = `.'.
13084 # Shell code in configure.ac might set extrasub.
13085 # FIXME: do we really want to maintain this feature?
13086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13087 ac_sed_extra="$ac_vpsub
13088 $extrasub
13089 _ACEOF
13090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13091 :t
13092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13093 s|@configure_input@|$ac_sed_conf_input|;t t
13094 s&@top_builddir@&$ac_top_builddir_sub&;t t
13095 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13096 s&@srcdir@&$ac_srcdir&;t t
13097 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13098 s&@top_srcdir@&$ac_top_srcdir&;t t
13099 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13100 s&@builddir@&$ac_builddir&;t t
13101 s&@abs_builddir@&$ac_abs_builddir&;t t
13102 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13103 s&@INSTALL@&$ac_INSTALL&;t t
13104 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13105 $ac_datarootdir_hack
13106 "
13107 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13108   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13109
13110 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13111   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13112   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13113   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13114 which seems to be undefined.  Please make sure it is defined" >&5
13115 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13116 which seems to be undefined.  Please make sure it is defined" >&2;}
13117
13118   rm -f "$tmp/stdin"
13119   case $ac_file in
13120   -) cat "$tmp/out" && rm -f "$tmp/out";;
13121   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13122   esac \
13123   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13124  ;;
13125   :H)
13126   #
13127   # CONFIG_HEADER
13128   #
13129   if test x"$ac_file" != x-; then
13130     {
13131       $as_echo "/* $configure_input  */" \
13132       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13133     } >"$tmp/config.h" \
13134       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13135     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13136       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13137 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13138     else
13139       rm -f "$ac_file"
13140       mv "$tmp/config.h" "$ac_file" \
13141         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13142     fi
13143   else
13144     $as_echo "/* $configure_input  */" \
13145       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13146       || as_fn_error $? "could not create -" "$LINENO" 5
13147   fi
13148 # Compute "$ac_file"'s index in $config_headers.
13149 _am_arg="$ac_file"
13150 _am_stamp_count=1
13151 for _am_header in $config_headers :; do
13152   case $_am_header in
13153     $_am_arg | $_am_arg:* )
13154       break ;;
13155     * )
13156       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13157   esac
13158 done
13159 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13160 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13161          X"$_am_arg" : 'X\(//\)[^/]' \| \
13162          X"$_am_arg" : 'X\(//\)$' \| \
13163          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13164 $as_echo X"$_am_arg" |
13165     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13166             s//\1/
13167             q
13168           }
13169           /^X\(\/\/\)[^/].*/{
13170             s//\1/
13171             q
13172           }
13173           /^X\(\/\/\)$/{
13174             s//\1/
13175             q
13176           }
13177           /^X\(\/\).*/{
13178             s//\1/
13179             q
13180           }
13181           s/.*/./; q'`/stamp-h$_am_stamp_count
13182  ;;
13183
13184   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13185 $as_echo "$as_me: executing $ac_file commands" >&6;}
13186  ;;
13187   esac
13188
13189
13190   case $ac_file$ac_mode in
13191     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13192   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13193   # are listed without --file.  Let's play safe and only enable the eval
13194   # if we detect the quoting.
13195   case $CONFIG_FILES in
13196   *\'*) eval set x "$CONFIG_FILES" ;;
13197   *)   set x $CONFIG_FILES ;;
13198   esac
13199   shift
13200   for mf
13201   do
13202     # Strip MF so we end up with the name of the file.
13203     mf=`echo "$mf" | sed -e 's/:.*$//'`
13204     # Check whether this is an Automake generated Makefile or not.
13205     # We used to match only the files named `Makefile.in', but
13206     # some people rename them; so instead we look at the file content.
13207     # Grep'ing the first line is not enough: some people post-process
13208     # each Makefile.in and add a new line on top of each file to say so.
13209     # Grep'ing the whole file is not good either: AIX grep has a line
13210     # limit of 2048, but all sed's we know have understand at least 4000.
13211     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13212       dirpart=`$as_dirname -- "$mf" ||
13213 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13214          X"$mf" : 'X\(//\)[^/]' \| \
13215          X"$mf" : 'X\(//\)$' \| \
13216          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13217 $as_echo X"$mf" |
13218     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13219             s//\1/
13220             q
13221           }
13222           /^X\(\/\/\)[^/].*/{
13223             s//\1/
13224             q
13225           }
13226           /^X\(\/\/\)$/{
13227             s//\1/
13228             q
13229           }
13230           /^X\(\/\).*/{
13231             s//\1/
13232             q
13233           }
13234           s/.*/./; q'`
13235     else
13236       continue
13237     fi
13238     # Extract the definition of DEPDIR, am__include, and am__quote
13239     # from the Makefile without running `make'.
13240     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13241     test -z "$DEPDIR" && continue
13242     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13243     test -z "am__include" && continue
13244     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13245     # When using ansi2knr, U may be empty or an underscore; expand it
13246     U=`sed -n 's/^U = //p' < "$mf"`
13247     # Find all dependency output files, they are included files with
13248     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13249     # simplest approach to changing $(DEPDIR) to its actual value in the
13250     # expansion.
13251     for file in `sed -n "
13252       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13253          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13254       # Make sure the directory exists.
13255       test -f "$dirpart/$file" && continue
13256       fdir=`$as_dirname -- "$file" ||
13257 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13258          X"$file" : 'X\(//\)[^/]' \| \
13259          X"$file" : 'X\(//\)$' \| \
13260          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13261 $as_echo X"$file" |
13262     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13263             s//\1/
13264             q
13265           }
13266           /^X\(\/\/\)[^/].*/{
13267             s//\1/
13268             q
13269           }
13270           /^X\(\/\/\)$/{
13271             s//\1/
13272             q
13273           }
13274           /^X\(\/\).*/{
13275             s//\1/
13276             q
13277           }
13278           s/.*/./; q'`
13279       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13280       # echo "creating $dirpart/$file"
13281       echo '# dummy' > "$dirpart/$file"
13282     done
13283   done
13284 }
13285  ;;
13286     "libtool":C)
13287
13288     # See if we are running on zsh, and set the options which allow our
13289     # commands through without removal of \ escapes.
13290     if test -n "${ZSH_VERSION+set}" ; then
13291       setopt NO_GLOB_SUBST
13292     fi
13293
13294     cfgfile="${ofile}T"
13295     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13296     $RM "$cfgfile"
13297
13298     cat <<_LT_EOF >> "$cfgfile"
13299 #! $SHELL
13300
13301 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13302 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13303 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13304 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13305 #
13306 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13307 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13308 #                 Inc.
13309 #   Written by Gordon Matzigkeit, 1996
13310 #
13311 #   This file is part of GNU Libtool.
13312 #
13313 # GNU Libtool is free software; you can redistribute it and/or
13314 # modify it under the terms of the GNU General Public License as
13315 # published by the Free Software Foundation; either version 2 of
13316 # the License, or (at your option) any later version.
13317 #
13318 # As a special exception to the GNU General Public License,
13319 # if you distribute this file as part of a program or library that
13320 # is built using GNU Libtool, you may include this file under the
13321 # same distribution terms that you use for the rest of that program.
13322 #
13323 # GNU Libtool is distributed in the hope that it will be useful,
13324 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13325 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13326 # GNU General Public License for more details.
13327 #
13328 # You should have received a copy of the GNU General Public License
13329 # along with GNU Libtool; see the file COPYING.  If not, a copy
13330 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13331 # obtained by writing to the Free Software Foundation, Inc.,
13332 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13333
13334
13335 # The names of the tagged configurations supported by this script.
13336 available_tags=""
13337
13338 # ### BEGIN LIBTOOL CONFIG
13339
13340 # Whether or not to build static libraries.
13341 build_old_libs=$enable_static
13342
13343 # Which release of libtool.m4 was used?
13344 macro_version=$macro_version
13345 macro_revision=$macro_revision
13346
13347 # Whether or not to build shared libraries.
13348 build_libtool_libs=$enable_shared
13349
13350 # What type of objects to build.
13351 pic_mode=$pic_mode
13352
13353 # Whether or not to optimize for fast installation.
13354 fast_install=$enable_fast_install
13355
13356 # Shell to use when invoking shell scripts.
13357 SHELL=$lt_SHELL
13358
13359 # An echo program that protects backslashes.
13360 ECHO=$lt_ECHO
13361
13362 # The host system.
13363 host_alias=$host_alias
13364 host=$host
13365 host_os=$host_os
13366
13367 # The build system.
13368 build_alias=$build_alias
13369 build=$build
13370 build_os=$build_os
13371
13372 # A sed program that does not truncate output.
13373 SED=$lt_SED
13374
13375 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13376 Xsed="\$SED -e 1s/^X//"
13377
13378 # A grep program that handles long lines.
13379 GREP=$lt_GREP
13380
13381 # An ERE matcher.
13382 EGREP=$lt_EGREP
13383
13384 # A literal string matcher.
13385 FGREP=$lt_FGREP
13386
13387 # A BSD- or MS-compatible name lister.
13388 NM=$lt_NM
13389
13390 # Whether we need soft or hard links.
13391 LN_S=$lt_LN_S
13392
13393 # What is the maximum length of a command?
13394 max_cmd_len=$max_cmd_len
13395
13396 # Object file suffix (normally "o").
13397 objext=$ac_objext
13398
13399 # Executable file suffix (normally "").
13400 exeext=$exeext
13401
13402 # whether the shell understands "unset".
13403 lt_unset=$lt_unset
13404
13405 # turn spaces into newlines.
13406 SP2NL=$lt_lt_SP2NL
13407
13408 # turn newlines into spaces.
13409 NL2SP=$lt_lt_NL2SP
13410
13411 # An object symbol dumper.
13412 OBJDUMP=$lt_OBJDUMP
13413
13414 # Method to check whether dependent libraries are shared objects.
13415 deplibs_check_method=$lt_deplibs_check_method
13416
13417 # Command to use when deplibs_check_method == "file_magic".
13418 file_magic_cmd=$lt_file_magic_cmd
13419
13420 # The archiver.
13421 AR=$lt_AR
13422 AR_FLAGS=$lt_AR_FLAGS
13423
13424 # A symbol stripping program.
13425 STRIP=$lt_STRIP
13426
13427 # Commands used to install an old-style archive.
13428 RANLIB=$lt_RANLIB
13429 old_postinstall_cmds=$lt_old_postinstall_cmds
13430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13431
13432 # Whether to use a lock for old archive extraction.
13433 lock_old_archive_extraction=$lock_old_archive_extraction
13434
13435 # A C compiler.
13436 LTCC=$lt_CC
13437
13438 # LTCC compiler flags.
13439 LTCFLAGS=$lt_CFLAGS
13440
13441 # Take the output of nm and produce a listing of raw symbols and C names.
13442 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13443
13444 # Transform the output of nm in a proper C declaration.
13445 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13446
13447 # Transform the output of nm in a C name address pair.
13448 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13449
13450 # Transform the output of nm in a C name address pair when lib prefix is needed.
13451 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13452
13453 # The name of the directory that contains temporary libtool files.
13454 objdir=$objdir
13455
13456 # Used to examine libraries when file_magic_cmd begins with "file".
13457 MAGIC_CMD=$MAGIC_CMD
13458
13459 # Must we lock files when doing compilation?
13460 need_locks=$lt_need_locks
13461
13462 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13463 DSYMUTIL=$lt_DSYMUTIL
13464
13465 # Tool to change global to local symbols on Mac OS X.
13466 NMEDIT=$lt_NMEDIT
13467
13468 # Tool to manipulate fat objects and archives on Mac OS X.
13469 LIPO=$lt_LIPO
13470
13471 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13472 OTOOL=$lt_OTOOL
13473
13474 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13475 OTOOL64=$lt_OTOOL64
13476
13477 # Old archive suffix (normally "a").
13478 libext=$libext
13479
13480 # Shared library suffix (normally ".so").
13481 shrext_cmds=$lt_shrext_cmds
13482
13483 # The commands to extract the exported symbol list from a shared archive.
13484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13485
13486 # Variables whose values should be saved in libtool wrapper scripts and
13487 # restored at link time.
13488 variables_saved_for_relink=$lt_variables_saved_for_relink
13489
13490 # Do we need the "lib" prefix for modules?
13491 need_lib_prefix=$need_lib_prefix
13492
13493 # Do we need a version for libraries?
13494 need_version=$need_version
13495
13496 # Library versioning type.
13497 version_type=$version_type
13498
13499 # Shared library runtime path variable.
13500 runpath_var=$runpath_var
13501
13502 # Shared library path variable.
13503 shlibpath_var=$shlibpath_var
13504
13505 # Is shlibpath searched before the hard-coded library search path?
13506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13507
13508 # Format of library name prefix.
13509 libname_spec=$lt_libname_spec
13510
13511 # List of archive names.  First name is the real one, the rest are links.
13512 # The last name is the one that the linker finds with -lNAME
13513 library_names_spec=$lt_library_names_spec
13514
13515 # The coded name of the library, if different from the real name.
13516 soname_spec=$lt_soname_spec
13517
13518 # Permission mode override for installation of shared libraries.
13519 install_override_mode=$lt_install_override_mode
13520
13521 # Command to use after installation of a shared archive.
13522 postinstall_cmds=$lt_postinstall_cmds
13523
13524 # Command to use after uninstallation of a shared archive.
13525 postuninstall_cmds=$lt_postuninstall_cmds
13526
13527 # Commands used to finish a libtool library installation in a directory.
13528 finish_cmds=$lt_finish_cmds
13529
13530 # As "finish_cmds", except a single script fragment to be evaled but
13531 # not shown.
13532 finish_eval=$lt_finish_eval
13533
13534 # Whether we should hardcode library paths into libraries.
13535 hardcode_into_libs=$hardcode_into_libs
13536
13537 # Compile-time system search path for libraries.
13538 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13539
13540 # Run-time system search path for libraries.
13541 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13542
13543 # Whether dlopen is supported.
13544 dlopen_support=$enable_dlopen
13545
13546 # Whether dlopen of programs is supported.
13547 dlopen_self=$enable_dlopen_self
13548
13549 # Whether dlopen of statically linked programs is supported.
13550 dlopen_self_static=$enable_dlopen_self_static
13551
13552 # Commands to strip libraries.
13553 old_striplib=$lt_old_striplib
13554 striplib=$lt_striplib
13555
13556
13557 # The linker used to build libraries.
13558 LD=$lt_LD
13559
13560 # How to create reloadable object files.
13561 reload_flag=$lt_reload_flag
13562 reload_cmds=$lt_reload_cmds
13563
13564 # Commands used to build an old-style archive.
13565 old_archive_cmds=$lt_old_archive_cmds
13566
13567 # A language specific compiler.
13568 CC=$lt_compiler
13569
13570 # Is the compiler the GNU compiler?
13571 with_gcc=$GCC
13572
13573 # Compiler flag to turn off builtin functions.
13574 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13575
13576 # How to pass a linker flag through the compiler.
13577 wl=$lt_lt_prog_compiler_wl
13578
13579 # Additional compiler flags for building library objects.
13580 pic_flag=$lt_lt_prog_compiler_pic
13581
13582 # Compiler flag to prevent dynamic linking.
13583 link_static_flag=$lt_lt_prog_compiler_static
13584
13585 # Does compiler simultaneously support -c and -o options?
13586 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13587
13588 # Whether or not to add -lc for building shared libraries.
13589 build_libtool_need_lc=$archive_cmds_need_lc
13590
13591 # Whether or not to disallow shared libs when runtime libs are static.
13592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13593
13594 # Compiler flag to allow reflexive dlopens.
13595 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13596
13597 # Compiler flag to generate shared objects directly from archives.
13598 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13599
13600 # Whether the compiler copes with passing no objects directly.
13601 compiler_needs_object=$lt_compiler_needs_object
13602
13603 # Create an old-style archive from a shared archive.
13604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13605
13606 # Create a temporary old-style archive to link instead of a shared archive.
13607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13608
13609 # Commands used to build a shared archive.
13610 archive_cmds=$lt_archive_cmds
13611 archive_expsym_cmds=$lt_archive_expsym_cmds
13612
13613 # Commands used to build a loadable module if different from building
13614 # a shared archive.
13615 module_cmds=$lt_module_cmds
13616 module_expsym_cmds=$lt_module_expsym_cmds
13617
13618 # Whether we are building with GNU ld or not.
13619 with_gnu_ld=$lt_with_gnu_ld
13620
13621 # Flag that allows shared libraries with undefined symbols to be built.
13622 allow_undefined_flag=$lt_allow_undefined_flag
13623
13624 # Flag that enforces no undefined symbols.
13625 no_undefined_flag=$lt_no_undefined_flag
13626
13627 # Flag to hardcode \$libdir into a binary during linking.
13628 # This must work even if \$libdir does not exist
13629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13630
13631 # If ld is used when linking, flag to hardcode \$libdir into a binary
13632 # during linking.  This must work even if \$libdir does not exist.
13633 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13634
13635 # Whether we need a single "-rpath" flag with a separated argument.
13636 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13637
13638 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13639 # DIR into the resulting binary.
13640 hardcode_direct=$hardcode_direct
13641
13642 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13643 # DIR into the resulting binary and the resulting library dependency is
13644 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13645 # library is relocated.
13646 hardcode_direct_absolute=$hardcode_direct_absolute
13647
13648 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13649 # into the resulting binary.
13650 hardcode_minus_L=$hardcode_minus_L
13651
13652 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13653 # into the resulting binary.
13654 hardcode_shlibpath_var=$hardcode_shlibpath_var
13655
13656 # Set to "yes" if building a shared library automatically hardcodes DIR
13657 # into the library and all subsequent libraries and executables linked
13658 # against it.
13659 hardcode_automatic=$hardcode_automatic
13660
13661 # Set to yes if linker adds runtime paths of dependent libraries
13662 # to runtime path list.
13663 inherit_rpath=$inherit_rpath
13664
13665 # Whether libtool must link a program against all its dependency libraries.
13666 link_all_deplibs=$link_all_deplibs
13667
13668 # Fix the shell variable \$srcfile for the compiler.
13669 fix_srcfile_path=$lt_fix_srcfile_path
13670
13671 # Set to "yes" if exported symbols are required.
13672 always_export_symbols=$always_export_symbols
13673
13674 # The commands to list exported symbols.
13675 export_symbols_cmds=$lt_export_symbols_cmds
13676
13677 # Symbols that should not be listed in the preloaded symbols.
13678 exclude_expsyms=$lt_exclude_expsyms
13679
13680 # Symbols that must always be exported.
13681 include_expsyms=$lt_include_expsyms
13682
13683 # Commands necessary for linking programs (against libraries) with templates.
13684 prelink_cmds=$lt_prelink_cmds
13685
13686 # Specify filename containing input files.
13687 file_list_spec=$lt_file_list_spec
13688
13689 # How to hardcode a shared library path into an executable.
13690 hardcode_action=$hardcode_action
13691
13692 # ### END LIBTOOL CONFIG
13693
13694 _LT_EOF
13695
13696   case $host_os in
13697   aix3*)
13698     cat <<\_LT_EOF >> "$cfgfile"
13699 # AIX sometimes has problems with the GCC collect2 program.  For some
13700 # reason, if we set the COLLECT_NAMES environment variable, the problems
13701 # vanish in a puff of smoke.
13702 if test "X${COLLECT_NAMES+set}" != Xset; then
13703   COLLECT_NAMES=
13704   export COLLECT_NAMES
13705 fi
13706 _LT_EOF
13707     ;;
13708   esac
13709
13710
13711 ltmain="$ac_aux_dir/ltmain.sh"
13712
13713
13714   # We use sed instead of cat because bash on DJGPP gets confused if
13715   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13716   # text mode, it properly converts lines to CR/LF.  This bash problem
13717   # is reportedly fixed, but why not run on old versions too?
13718   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13719     || (rm -f "$cfgfile"; exit 1)
13720
13721   case $xsi_shell in
13722   yes)
13723     cat << \_LT_EOF >> "$cfgfile"
13724
13725 # func_dirname file append nondir_replacement
13726 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13727 # otherwise set result to NONDIR_REPLACEMENT.
13728 func_dirname ()
13729 {
13730   case ${1} in
13731     */*) func_dirname_result="${1%/*}${2}" ;;
13732     *  ) func_dirname_result="${3}" ;;
13733   esac
13734 }
13735
13736 # func_basename file
13737 func_basename ()
13738 {
13739   func_basename_result="${1##*/}"
13740 }
13741
13742 # func_dirname_and_basename file append nondir_replacement
13743 # perform func_basename and func_dirname in a single function
13744 # call:
13745 #   dirname:  Compute the dirname of FILE.  If nonempty,
13746 #             add APPEND to the result, otherwise set result
13747 #             to NONDIR_REPLACEMENT.
13748 #             value returned in "$func_dirname_result"
13749 #   basename: Compute filename of FILE.
13750 #             value retuned in "$func_basename_result"
13751 # Implementation must be kept synchronized with func_dirname
13752 # and func_basename. For efficiency, we do not delegate to
13753 # those functions but instead duplicate the functionality here.
13754 func_dirname_and_basename ()
13755 {
13756   case ${1} in
13757     */*) func_dirname_result="${1%/*}${2}" ;;
13758     *  ) func_dirname_result="${3}" ;;
13759   esac
13760   func_basename_result="${1##*/}"
13761 }
13762
13763 # func_stripname prefix suffix name
13764 # strip PREFIX and SUFFIX off of NAME.
13765 # PREFIX and SUFFIX must not contain globbing or regex special
13766 # characters, hashes, percent signs, but SUFFIX may contain a leading
13767 # dot (in which case that matches only a dot).
13768 func_stripname ()
13769 {
13770   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13771   # positional parameters, so assign one to ordinary parameter first.
13772   func_stripname_result=${3}
13773   func_stripname_result=${func_stripname_result#"${1}"}
13774   func_stripname_result=${func_stripname_result%"${2}"}
13775 }
13776
13777 # func_opt_split
13778 func_opt_split ()
13779 {
13780   func_opt_split_opt=${1%%=*}
13781   func_opt_split_arg=${1#*=}
13782 }
13783
13784 # func_lo2o object
13785 func_lo2o ()
13786 {
13787   case ${1} in
13788     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13789     *)    func_lo2o_result=${1} ;;
13790   esac
13791 }
13792
13793 # func_xform libobj-or-source
13794 func_xform ()
13795 {
13796   func_xform_result=${1%.*}.lo
13797 }
13798
13799 # func_arith arithmetic-term...
13800 func_arith ()
13801 {
13802   func_arith_result=$(( $* ))
13803 }
13804
13805 # func_len string
13806 # STRING may not start with a hyphen.
13807 func_len ()
13808 {
13809   func_len_result=${#1}
13810 }
13811
13812 _LT_EOF
13813     ;;
13814   *) # Bourne compatible functions.
13815     cat << \_LT_EOF >> "$cfgfile"
13816
13817 # func_dirname file append nondir_replacement
13818 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13819 # otherwise set result to NONDIR_REPLACEMENT.
13820 func_dirname ()
13821 {
13822   # Extract subdirectory from the argument.
13823   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13824   if test "X$func_dirname_result" = "X${1}"; then
13825     func_dirname_result="${3}"
13826   else
13827     func_dirname_result="$func_dirname_result${2}"
13828   fi
13829 }
13830
13831 # func_basename file
13832 func_basename ()
13833 {
13834   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13835 }
13836
13837
13838 # func_stripname prefix suffix name
13839 # strip PREFIX and SUFFIX off of NAME.
13840 # PREFIX and SUFFIX must not contain globbing or regex special
13841 # characters, hashes, percent signs, but SUFFIX may contain a leading
13842 # dot (in which case that matches only a dot).
13843 # func_strip_suffix prefix name
13844 func_stripname ()
13845 {
13846   case ${2} in
13847     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13848     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13849   esac
13850 }
13851
13852 # sed scripts:
13853 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13854 my_sed_long_arg='1s/^-[^=]*=//'
13855
13856 # func_opt_split
13857 func_opt_split ()
13858 {
13859   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13860   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13861 }
13862
13863 # func_lo2o object
13864 func_lo2o ()
13865 {
13866   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13867 }
13868
13869 # func_xform libobj-or-source
13870 func_xform ()
13871 {
13872   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13873 }
13874
13875 # func_arith arithmetic-term...
13876 func_arith ()
13877 {
13878   func_arith_result=`expr "$@"`
13879 }
13880
13881 # func_len string
13882 # STRING may not start with a hyphen.
13883 func_len ()
13884 {
13885   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13886 }
13887
13888 _LT_EOF
13889 esac
13890
13891 case $lt_shell_append in
13892   yes)
13893     cat << \_LT_EOF >> "$cfgfile"
13894
13895 # func_append var value
13896 # Append VALUE to the end of shell variable VAR.
13897 func_append ()
13898 {
13899   eval "$1+=\$2"
13900 }
13901 _LT_EOF
13902     ;;
13903   *)
13904     cat << \_LT_EOF >> "$cfgfile"
13905
13906 # func_append var value
13907 # Append VALUE to the end of shell variable VAR.
13908 func_append ()
13909 {
13910   eval "$1=\$$1\$2"
13911 }
13912
13913 _LT_EOF
13914     ;;
13915   esac
13916
13917
13918   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13919     || (rm -f "$cfgfile"; exit 1)
13920
13921   mv -f "$cfgfile" "$ofile" ||
13922     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13923   chmod +x "$ofile"
13924
13925  ;;
13926
13927   esac
13928 done # for ac_tag
13929
13930
13931 as_fn_exit 0
13932 _ACEOF
13933 ac_clean_files=$ac_clean_files_save
13934
13935 test $ac_write_fail = 0 ||
13936   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13937
13938
13939 # configure is writing to config.log, and then calls config.status.
13940 # config.status does its own redirection, appending to config.log.
13941 # Unfortunately, on DOS this fails, as config.log is still kept open
13942 # by configure, so config.status won't be able to write to it; its
13943 # output is simply discarded.  So we exec the FD to /dev/null,
13944 # effectively closing config.log, so it can be properly (re)opened and
13945 # appended to by config.status.  When coming back to configure, we
13946 # need to make the FD available again.
13947 if test "$no_create" != yes; then
13948   ac_cs_success=:
13949   ac_config_status_args=
13950   test "$silent" = yes &&
13951     ac_config_status_args="$ac_config_status_args --quiet"
13952   exec 5>/dev/null
13953   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13954   exec 5>>config.log
13955   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13956   # would make configure fail if this is the last instruction.
13957   $ac_cs_success || as_fn_exit 1
13958 fi
13959 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13960   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13961 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13962 fi
13963
13964