sim/testsuite/or1k: Add test for 64-bit fpu operations
[external/binutils.git] / sim / mips / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="Makefile.in"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 cgen_breaks
635 mips_extra_libs
636 XMKMF
637 mips_igen_engine
638 sim_multi_obj
639 sim_multi_src
640 sim_multi_igen_configs
641 sim_multi_flags
642 sim_gen
643 sim_micromips16_flags
644 sim_micromips_flags
645 sim_m16_flags
646 sim_igen_flags
647 SIM_SUBTARGET
648 REPORT_BUGS_TEXI
649 REPORT_BUGS_TO
650 PKGVERSION
651 MAINT
652 MAINTAINER_MODE_FALSE
653 MAINTAINER_MODE_TRUE
654 lt_cv_dlopen_libs
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 AWK
661 STRIP
662 OBJDUMP
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 SED
670 LIBTOOL
671 PLUGINS_FALSE
672 PLUGINS_TRUE
673 zlibinc
674 zlibdir
675 CATOBJEXT
676 GENCAT
677 INSTOBJEXT
678 DATADIRNAME
679 CATALOGS
680 POSUB
681 GMSGFMT
682 XGETTEXT
683 INCINTL
684 LIBINTL_DEP
685 LIBINTL
686 USE_NLS
687 GMAKE_FALSE
688 GMAKE_TRUE
689 MAKE
690 CCDEPMODE
691 DEPDIR
692 am__leading_dot
693 PACKAGE
694 RANLIB
695 AR
696 HDEFINES
697 CC_FOR_BUILD
698 INSTALL_DATA
699 INSTALL_SCRIPT
700 INSTALL_PROGRAM
701 EGREP
702 GREP
703 CPP
704 target_os
705 target_vendor
706 target_cpu
707 target
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 WERROR_CFLAGS
724 WARN_CFLAGS
725 sim_reserved_bits
726 sim_inline
727 sim_hw
728 sim_hw_objs
729 sim_hw_cflags
730 sim_default_model
731 sim_scache
732 sim_float
733 sim_endian
734 sim_bitsize
735 sim_alignment
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 with_system_zlib
778 enable_plugins
779 enable_shared
780 enable_static
781 with_pic
782 enable_fast_install
783 with_gnu_ld
784 enable_libtool_lock
785 enable_maintainer_mode
786 enable_sim_debug
787 enable_sim_stdio
788 enable_sim_trace
789 enable_sim_profile
790 enable_sim_assert
791 enable_sim_environment
792 enable_sim_inline
793 with_pkgversion
794 with_bugurl
795 enable_sim_alignment
796 enable_werror
797 enable_build_warnings
798 enable_sim_build_warnings
799 enable_sim_reserved_bits
800 enable_sim_endian
801 enable_sim_bitsize
802 enable_sim_float
803 enable_sim_hardware
804 with_x
805 '
806       ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
814 CPP
815 XMKMF'
816
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 ac_unrecognized_opts=
822 ac_unrecognized_sep=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870   # If the previous option needs an argument, assign it.
871   if test -n "$ac_prev"; then
872     eval $ac_prev=\$ac_option
873     ac_prev=
874     continue
875   fi
876
877   case $ac_option in
878   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879   *=)   ac_optarg= ;;
880   *)    ac_optarg=yes ;;
881   esac
882
883   # Accept the important Cygnus configure options, so we can diagnose typos.
884
885   case $ac_dashdash$ac_option in
886   --)
887     ac_dashdash=yes ;;
888
889   -bindir | --bindir | --bindi | --bind | --bin | --bi)
890     ac_prev=bindir ;;
891   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892     bindir=$ac_optarg ;;
893
894   -build | --build | --buil | --bui | --bu)
895     ac_prev=build_alias ;;
896   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897     build_alias=$ac_optarg ;;
898
899   -cache-file | --cache-file | --cache-fil | --cache-fi \
900   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901     ac_prev=cache_file ;;
902   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904     cache_file=$ac_optarg ;;
905
906   --config-cache | -C)
907     cache_file=config.cache ;;
908
909   -datadir | --datadir | --datadi | --datad)
910     ac_prev=datadir ;;
911   -datadir=* | --datadir=* | --datadi=* | --datad=*)
912     datadir=$ac_optarg ;;
913
914   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915   | --dataroo | --dataro | --datar)
916     ac_prev=datarootdir ;;
917   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919     datarootdir=$ac_optarg ;;
920
921   -disable-* | --disable-*)
922     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923     # Reject names that are not valid shell variable names.
924     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925       as_fn_error $? "invalid feature name: $ac_useropt"
926     ac_useropt_orig=$ac_useropt
927     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928     case $ac_user_opts in
929       *"
930 "enable_$ac_useropt"
931 "*) ;;
932       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933          ac_unrecognized_sep=', ';;
934     esac
935     eval enable_$ac_useropt=no ;;
936
937   -docdir | --docdir | --docdi | --doc | --do)
938     ac_prev=docdir ;;
939   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940     docdir=$ac_optarg ;;
941
942   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943     ac_prev=dvidir ;;
944   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945     dvidir=$ac_optarg ;;
946
947   -enable-* | --enable-*)
948     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949     # Reject names that are not valid shell variable names.
950     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951       as_fn_error $? "invalid feature name: $ac_useropt"
952     ac_useropt_orig=$ac_useropt
953     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954     case $ac_user_opts in
955       *"
956 "enable_$ac_useropt"
957 "*) ;;
958       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959          ac_unrecognized_sep=', ';;
960     esac
961     eval enable_$ac_useropt=\$ac_optarg ;;
962
963   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965   | --exec | --exe | --ex)
966     ac_prev=exec_prefix ;;
967   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969   | --exec=* | --exe=* | --ex=*)
970     exec_prefix=$ac_optarg ;;
971
972   -gas | --gas | --ga | --g)
973     # Obsolete; use --with-gas.
974     with_gas=yes ;;
975
976   -help | --help | --hel | --he | -h)
977     ac_init_help=long ;;
978   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979     ac_init_help=recursive ;;
980   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981     ac_init_help=short ;;
982
983   -host | --host | --hos | --ho)
984     ac_prev=host_alias ;;
985   -host=* | --host=* | --hos=* | --ho=*)
986     host_alias=$ac_optarg ;;
987
988   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989     ac_prev=htmldir ;;
990   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991   | --ht=*)
992     htmldir=$ac_optarg ;;
993
994   -includedir | --includedir | --includedi | --included | --include \
995   | --includ | --inclu | --incl | --inc)
996     ac_prev=includedir ;;
997   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998   | --includ=* | --inclu=* | --incl=* | --inc=*)
999     includedir=$ac_optarg ;;
1000
1001   -infodir | --infodir | --infodi | --infod | --info | --inf)
1002     ac_prev=infodir ;;
1003   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004     infodir=$ac_optarg ;;
1005
1006   -libdir | --libdir | --libdi | --libd)
1007     ac_prev=libdir ;;
1008   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009     libdir=$ac_optarg ;;
1010
1011   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012   | --libexe | --libex | --libe)
1013     ac_prev=libexecdir ;;
1014   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015   | --libexe=* | --libex=* | --libe=*)
1016     libexecdir=$ac_optarg ;;
1017
1018   -localedir | --localedir | --localedi | --localed | --locale)
1019     ac_prev=localedir ;;
1020   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021     localedir=$ac_optarg ;;
1022
1023   -localstatedir | --localstatedir | --localstatedi | --localstated \
1024   | --localstate | --localstat | --localsta | --localst | --locals)
1025     ac_prev=localstatedir ;;
1026   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028     localstatedir=$ac_optarg ;;
1029
1030   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031     ac_prev=mandir ;;
1032   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033     mandir=$ac_optarg ;;
1034
1035   -nfp | --nfp | --nf)
1036     # Obsolete; use --without-fp.
1037     with_fp=no ;;
1038
1039   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040   | --no-cr | --no-c | -n)
1041     no_create=yes ;;
1042
1043   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045     no_recursion=yes ;;
1046
1047   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049   | --oldin | --oldi | --old | --ol | --o)
1050     ac_prev=oldincludedir ;;
1051   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054     oldincludedir=$ac_optarg ;;
1055
1056   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057     ac_prev=prefix ;;
1058   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059     prefix=$ac_optarg ;;
1060
1061   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062   | --program-pre | --program-pr | --program-p)
1063     ac_prev=program_prefix ;;
1064   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066     program_prefix=$ac_optarg ;;
1067
1068   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069   | --program-suf | --program-su | --program-s)
1070     ac_prev=program_suffix ;;
1071   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073     program_suffix=$ac_optarg ;;
1074
1075   -program-transform-name | --program-transform-name \
1076   | --program-transform-nam | --program-transform-na \
1077   | --program-transform-n | --program-transform- \
1078   | --program-transform | --program-transfor \
1079   | --program-transfo | --program-transf \
1080   | --program-trans | --program-tran \
1081   | --progr-tra | --program-tr | --program-t)
1082     ac_prev=program_transform_name ;;
1083   -program-transform-name=* | --program-transform-name=* \
1084   | --program-transform-nam=* | --program-transform-na=* \
1085   | --program-transform-n=* | --program-transform-=* \
1086   | --program-transform=* | --program-transfor=* \
1087   | --program-transfo=* | --program-transf=* \
1088   | --program-trans=* | --program-tran=* \
1089   | --progr-tra=* | --program-tr=* | --program-t=*)
1090     program_transform_name=$ac_optarg ;;
1091
1092   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093     ac_prev=pdfdir ;;
1094   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095     pdfdir=$ac_optarg ;;
1096
1097   -psdir | --psdir | --psdi | --psd | --ps)
1098     ac_prev=psdir ;;
1099   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100     psdir=$ac_optarg ;;
1101
1102   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103   | -silent | --silent | --silen | --sile | --sil)
1104     silent=yes ;;
1105
1106   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107     ac_prev=sbindir ;;
1108   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109   | --sbi=* | --sb=*)
1110     sbindir=$ac_optarg ;;
1111
1112   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114   | --sharedst | --shareds | --shared | --share | --shar \
1115   | --sha | --sh)
1116     ac_prev=sharedstatedir ;;
1117   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120   | --sha=* | --sh=*)
1121     sharedstatedir=$ac_optarg ;;
1122
1123   -site | --site | --sit)
1124     ac_prev=site ;;
1125   -site=* | --site=* | --sit=*)
1126     site=$ac_optarg ;;
1127
1128   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129     ac_prev=srcdir ;;
1130   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131     srcdir=$ac_optarg ;;
1132
1133   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134   | --syscon | --sysco | --sysc | --sys | --sy)
1135     ac_prev=sysconfdir ;;
1136   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138     sysconfdir=$ac_optarg ;;
1139
1140   -target | --target | --targe | --targ | --tar | --ta | --t)
1141     ac_prev=target_alias ;;
1142   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143     target_alias=$ac_optarg ;;
1144
1145   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146     verbose=yes ;;
1147
1148   -version | --version | --versio | --versi | --vers | -V)
1149     ac_init_version=: ;;
1150
1151   -with-* | --with-*)
1152     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153     # Reject names that are not valid shell variable names.
1154     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155       as_fn_error $? "invalid package name: $ac_useropt"
1156     ac_useropt_orig=$ac_useropt
1157     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158     case $ac_user_opts in
1159       *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163          ac_unrecognized_sep=', ';;
1164     esac
1165     eval with_$ac_useropt=\$ac_optarg ;;
1166
1167   -without-* | --without-*)
1168     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169     # Reject names that are not valid shell variable names.
1170     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171       as_fn_error $? "invalid package name: $ac_useropt"
1172     ac_useropt_orig=$ac_useropt
1173     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174     case $ac_user_opts in
1175       *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179          ac_unrecognized_sep=', ';;
1180     esac
1181     eval with_$ac_useropt=no ;;
1182
1183   --x)
1184     # Obsolete; use --with-x.
1185     with_x=yes ;;
1186
1187   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188   | --x-incl | --x-inc | --x-in | --x-i)
1189     ac_prev=x_includes ;;
1190   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192     x_includes=$ac_optarg ;;
1193
1194   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196     ac_prev=x_libraries ;;
1197   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199     x_libraries=$ac_optarg ;;
1200
1201   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information"
1203     ;;
1204
1205   *=*)
1206     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207     # Reject names that are not valid shell variable names.
1208     case $ac_envvar in #(
1209       '' | [0-9]* | *[!_$as_cr_alnum]* )
1210       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211     esac
1212     eval $ac_envvar=\$ac_optarg
1213     export $ac_envvar ;;
1214
1215   *)
1216     # FIXME: should be removed in autoconf 3.0.
1217     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221     ;;
1222
1223   esac
1224 done
1225
1226 if test -n "$ac_prev"; then
1227   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228   as_fn_error $? "missing argument to $ac_option"
1229 fi
1230
1231 if test -n "$ac_unrecognized_opts"; then
1232   case $enable_option_checking in
1233     no) ;;
1234     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236   esac
1237 fi
1238
1239 # Check all directory arguments for consistency.
1240 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241                 datadir sysconfdir sharedstatedir localstatedir includedir \
1242                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243                 libdir localedir mandir
1244 do
1245   eval ac_val=\$$ac_var
1246   # Remove trailing slashes.
1247   case $ac_val in
1248     */ )
1249       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250       eval $ac_var=\$ac_val;;
1251   esac
1252   # Be sure to have absolute directory names.
1253   case $ac_val in
1254     [\\/$]* | ?:[\\/]* )  continue;;
1255     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256   esac
1257   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258 done
1259
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1263 build=$build_alias
1264 host=$host_alias
1265 target=$target_alias
1266
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269   if test "x$build_alias" = x; then
1270     cross_compiling=maybe
1271   elif test "x$build_alias" != "x$host_alias"; then
1272     cross_compiling=yes
1273   fi
1274 fi
1275
1276 ac_tool_prefix=
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279 test "$silent" = yes && exec 6>/dev/null
1280
1281
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di=`ls -di .` &&
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285   as_fn_error $? "working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287   as_fn_error $? "pwd does not report name of working directory"
1288
1289
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292   ac_srcdir_defaulted=yes
1293   # Try the directory containing this script, then the parent directory.
1294   ac_confdir=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296          X"$as_myself" : 'X\(//\)[^/]' \| \
1297          X"$as_myself" : 'X\(//\)$' \| \
1298          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301             s//\1/
1302             q
1303           }
1304           /^X\(\/\/\)[^/].*/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\/\)$/{
1309             s//\1/
1310             q
1311           }
1312           /^X\(\/\).*/{
1313             s//\1/
1314             q
1315           }
1316           s/.*/./; q'`
1317   srcdir=$ac_confdir
1318   if test ! -r "$srcdir/$ac_unique_file"; then
1319     srcdir=..
1320   fi
1321 else
1322   ac_srcdir_defaulted=no
1323 fi
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327 fi
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 ac_abs_confdir=`(
1330         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331         pwd)`
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334   srcdir=.
1335 fi
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1339 case $srcdir in
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 esac
1342 for ac_var in $ac_precious_vars; do
1343   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344   eval ac_env_${ac_var}_value=\$${ac_var}
1345   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 done
1348
1349 #
1350 # Report the --help message.
1351 #
1352 if test "$ac_init_help" = "long"; then
1353   # Omit some internal or obsolete options to make the list less imposing.
1354   # This message is too long to be a string in the A/UX 3.1 sh.
1355   cat <<_ACEOF
1356 \`configure' configures this package to adapt to many kinds of systems.
1357
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE.  See below for descriptions of some of the useful variables.
1362
1363 Defaults for the options are specified in brackets.
1364
1365 Configuration:
1366   -h, --help              display this help and exit
1367       --help=short        display options specific to this package
1368       --help=recursive    display the short help of all the included packages
1369   -V, --version           display version information and exit
1370   -q, --quiet, --silent   do not print \`checking ...' messages
1371       --cache-file=FILE   cache test results in FILE [disabled]
1372   -C, --config-cache      alias for \`--cache-file=config.cache'
1373   -n, --no-create         do not create output files
1374       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1375
1376 Installation directories:
1377   --prefix=PREFIX         install architecture-independent files in PREFIX
1378                           [$ac_default_prefix]
1379   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1380                           [PREFIX]
1381
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1386
1387 For better control, use the options below.
1388
1389 Fine tuning of the installation directories:
1390   --bindir=DIR            user executables [EPREFIX/bin]
1391   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1392   --libexecdir=DIR        program executables [EPREFIX/libexec]
1393   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1394   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1395   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1396   --libdir=DIR            object code libraries [EPREFIX/lib]
1397   --includedir=DIR        C header files [PREFIX/include]
1398   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1399   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1400   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1401   --infodir=DIR           info documentation [DATAROOTDIR/info]
1402   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1403   --mandir=DIR            man documentation [DATAROOTDIR/man]
1404   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1405   --htmldir=DIR           html documentation [DOCDIR]
1406   --dvidir=DIR            dvi documentation [DOCDIR]
1407   --pdfdir=DIR            pdf documentation [DOCDIR]
1408   --psdir=DIR             ps documentation [DOCDIR]
1409 _ACEOF
1410
1411   cat <<\_ACEOF
1412
1413 Program names:
1414   --program-prefix=PREFIX            prepend PREFIX to installed program names
1415   --program-suffix=SUFFIX            append SUFFIX to installed program names
1416   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1417
1418 X features:
1419   --x-includes=DIR    X include files are in DIR
1420   --x-libraries=DIR   X library files are in DIR
1421
1422 System types:
1423   --build=BUILD     configure for building on BUILD [guessed]
1424   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1425   --target=TARGET   configure for building compilers for TARGET [HOST]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430
1431   cat <<\_ACEOF
1432
1433 Optional Features:
1434   --disable-option-checking  ignore unrecognized --enable/--with options
1435   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437   --enable-plugins        Enable support for plugins
1438   --enable-shared[=PKGS]  build shared libraries [default=yes]
1439   --enable-static[=PKGS]  build static libraries [default=yes]
1440   --enable-fast-install[=PKGS]
1441                           optimize for fast installation [default=yes]
1442   --disable-libtool-lock  avoid locking (might break parallel builds)
1443   --enable-maintainer-mode
1444                           enable make rules and dependencies not useful (and
1445                           sometimes confusing) to the casual installer
1446   --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1447                           itself)
1448   --enable-sim-stdio      Specify whether to use stdio for console
1449                           input/output
1450   --enable-sim-trace=opts Enable tracing of simulated programs
1451   --enable-sim-profile=opts
1452                           Enable profiling flags
1453   --enable-sim-assert     Specify whether to perform random assertions
1454   --enable-sim-environment=environment
1455                           Specify mixed, user, virtual or operating
1456                           environment
1457   --enable-sim-inline=inlines
1458                           Specify which functions should be inlined
1459   --enable-sim-alignment=align
1460                           Specify strict, nonstrict or forced alignment of
1461                           memory accesses
1462   --enable-werror         treat compile warnings as errors
1463   --enable-build-warnings enable build-time compiler warnings if gcc is used
1464   --enable-sim-build-warnings
1465                           enable SIM specific build-time compiler warnings if
1466                           gcc is used
1467   --enable-sim-reserved-bits
1468                           Specify whether to check reserved bits in
1469                           instruction
1470   --enable-sim-endian=endian
1471                           Specify target byte endian orientation
1472   --enable-sim-bitsize=N  Specify target bitsize (32 or 64)
1473   --enable-sim-float      Specify that the target processor has floating point
1474                           hardware
1475   --enable-sim-hardware=LIST
1476                           Specify the hardware to be included in the build.
1477
1478 Optional Packages:
1479   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1480   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1481   --with-system-zlib      use installed libz
1482   --with-pic              try to use only PIC/non-PIC objects [default=use
1483                           both]
1484   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1485   --with-pkgversion=PKG   Use PKG in the version string in place of "SIM"
1486   --with-bugurl=URL       Direct users to URL to report a bug
1487   --with-x                use the X Window System
1488
1489 Some influential environment variables:
1490   CC          C compiler command
1491   CFLAGS      C compiler flags
1492   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1493               nonstandard directory <lib dir>
1494   LIBS        libraries to pass to the linker, e.g. -l<library>
1495   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496               you have headers in a nonstandard directory <include dir>
1497   CPP         C preprocessor
1498   XMKMF       Path to xmkmf, Makefile generator for X Window System
1499
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1502
1503 Report bugs to the package provider.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509   # If there are subdirs, report their specific --help.
1510   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511     test -d "$ac_dir" ||
1512       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513       continue
1514     ac_builddir=.
1515
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *)
1519   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1520   # A ".." for each directory in $ac_dir_suffix.
1521   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522   case $ac_top_builddir_sub in
1523   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525   esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1531
1532 case $srcdir in
1533   .)  # We are building in place.
1534     ac_srcdir=.
1535     ac_top_srcdir=$ac_top_builddir_sub
1536     ac_abs_top_srcdir=$ac_pwd ;;
1537   [\\/]* | ?:[\\/]* )  # Absolute name.
1538     ac_srcdir=$srcdir$ac_dir_suffix;
1539     ac_top_srcdir=$srcdir
1540     ac_abs_top_srcdir=$srcdir ;;
1541   *) # Relative name.
1542     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543     ac_top_srcdir=$ac_top_build_prefix$srcdir
1544     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548     cd "$ac_dir" || { ac_status=$?; continue; }
1549     # Check for guested configure.
1550     if test -f "$ac_srcdir/configure.gnu"; then
1551       echo &&
1552       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553     elif test -f "$ac_srcdir/configure"; then
1554       echo &&
1555       $SHELL "$ac_srcdir/configure" --help=recursive
1556     else
1557       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558     fi || ac_status=$?
1559     cd "$ac_pwd" || { ac_status=$?; break; }
1560   done
1561 fi
1562
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565   cat <<\_ACEOF
1566 configure
1567 generated by GNU Autoconf 2.69
1568
1569 Copyright (C) 2012 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1572 _ACEOF
1573   exit
1574 fi
1575
1576 ## ------------------------ ##
1577 ## Autoconf initialization. ##
1578 ## ------------------------ ##
1579
1580 # ac_fn_c_try_compile LINENO
1581 # --------------------------
1582 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_compile ()
1584 {
1585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586   rm -f conftest.$ac_objext
1587   if { { ac_try="$ac_compile"
1588 case "(($ac_try" in
1589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590   *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594   (eval "$ac_compile") 2>conftest.err
1595   ac_status=$?
1596   if test -s conftest.err; then
1597     grep -v '^ *+' conftest.err >conftest.er1
1598     cat conftest.er1 >&5
1599     mv -f conftest.er1 conftest.err
1600   fi
1601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602   test $ac_status = 0; } && {
1603          test -z "$ac_c_werror_flag" ||
1604          test ! -s conftest.err
1605        } && test -s conftest.$ac_objext; then :
1606   ac_retval=0
1607 else
1608   $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611         ac_retval=1
1612 fi
1613   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614   as_fn_set_status $ac_retval
1615
1616 } # ac_fn_c_try_compile
1617
1618 # ac_fn_c_try_cpp LINENO
1619 # ----------------------
1620 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_cpp ()
1622 {
1623   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624   if { { ac_try="$ac_cpp conftest.$ac_ext"
1625 case "(($ac_try" in
1626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627   *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1632   ac_status=$?
1633   if test -s conftest.err; then
1634     grep -v '^ *+' conftest.err >conftest.er1
1635     cat conftest.er1 >&5
1636     mv -f conftest.er1 conftest.err
1637   fi
1638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639   test $ac_status = 0; } > conftest.i && {
1640          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1641          test ! -s conftest.err
1642        }; then :
1643   ac_retval=0
1644 else
1645   $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648     ac_retval=1
1649 fi
1650   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651   as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_cpp
1654
1655 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1658 # the include files in INCLUDES and setting the cache variable VAR
1659 # accordingly.
1660 ac_fn_c_check_header_mongrel ()
1661 {
1662   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663   if eval \${$3+:} false; then :
1664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if eval \${$3+:} false; then :
1667   $as_echo_n "(cached) " >&6
1668 fi
1669 eval ac_res=\$$3
1670                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1672 else
1673   # Is the header compilable?
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1675 $as_echo_n "checking $2 usability... " >&6; }
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h.  */
1678 $4
1679 #include <$2>
1680 _ACEOF
1681 if ac_fn_c_try_compile "$LINENO"; then :
1682   ac_header_compiler=yes
1683 else
1684   ac_header_compiler=no
1685 fi
1686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1688 $as_echo "$ac_header_compiler" >&6; }
1689
1690 # Is the header present?
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1692 $as_echo_n "checking $2 presence... " >&6; }
1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h.  */
1695 #include <$2>
1696 _ACEOF
1697 if ac_fn_c_try_cpp "$LINENO"; then :
1698   ac_header_preproc=yes
1699 else
1700   ac_header_preproc=no
1701 fi
1702 rm -f conftest.err conftest.i conftest.$ac_ext
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1704 $as_echo "$ac_header_preproc" >&6; }
1705
1706 # So?  What about this header?
1707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1708   yes:no: )
1709     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1710 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1711     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1712 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1713     ;;
1714   no:yes:* )
1715     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1716 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1717     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1718 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1719     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1720 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1721     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1722 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1723     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1724 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1725     ;;
1726 esac
1727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if eval \${$3+:} false; then :
1730   $as_echo_n "(cached) " >&6
1731 else
1732   eval "$3=\$ac_header_compiler"
1733 fi
1734 eval ac_res=\$$3
1735                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1737 fi
1738   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739
1740 } # ac_fn_c_check_header_mongrel
1741
1742 # ac_fn_c_try_run LINENO
1743 # ----------------------
1744 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1745 # that executables *can* be run.
1746 ac_fn_c_try_run ()
1747 {
1748   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749   if { { ac_try="$ac_link"
1750 case "(($ac_try" in
1751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752   *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756   (eval "$ac_link") 2>&5
1757   ac_status=$?
1758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1760   { { case "(($ac_try" in
1761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762   *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766   (eval "$ac_try") 2>&5
1767   ac_status=$?
1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769   test $ac_status = 0; }; }; then :
1770   ac_retval=0
1771 else
1772   $as_echo "$as_me: program exited with status $ac_status" >&5
1773        $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1775
1776        ac_retval=$ac_status
1777 fi
1778   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780   as_fn_set_status $ac_retval
1781
1782 } # ac_fn_c_try_run
1783
1784 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1785 # -------------------------------------------------------
1786 # Tests whether HEADER exists and can be compiled using the include files in
1787 # INCLUDES, setting the cache variable VAR accordingly.
1788 ac_fn_c_check_header_compile ()
1789 {
1790   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794   $as_echo_n "(cached) " >&6
1795 else
1796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h.  */
1798 $4
1799 #include <$2>
1800 _ACEOF
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802   eval "$3=yes"
1803 else
1804   eval "$3=no"
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 fi
1808 eval ac_res=\$$3
1809                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813 } # ac_fn_c_check_header_compile
1814
1815 # ac_fn_c_try_link LINENO
1816 # -----------------------
1817 # Try to link conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_link ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   rm -f conftest.$ac_objext conftest$ac_exeext
1822   if { { ac_try="$ac_link"
1823 case "(($ac_try" in
1824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825   *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829   (eval "$ac_link") 2>conftest.err
1830   ac_status=$?
1831   if test -s conftest.err; then
1832     grep -v '^ *+' conftest.err >conftest.er1
1833     cat conftest.er1 >&5
1834     mv -f conftest.er1 conftest.err
1835   fi
1836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837   test $ac_status = 0; } && {
1838          test -z "$ac_c_werror_flag" ||
1839          test ! -s conftest.err
1840        } && test -s conftest$ac_exeext && {
1841          test "$cross_compiling" = yes ||
1842          test -x conftest$ac_exeext
1843        }; then :
1844   ac_retval=0
1845 else
1846   $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1848
1849         ac_retval=1
1850 fi
1851   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1852   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1853   # interfere with the next link command; also delete a directory that is
1854   # left behind by Apple's compiler.  We do this before executing the actions.
1855   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857   as_fn_set_status $ac_retval
1858
1859 } # ac_fn_c_try_link
1860
1861 # ac_fn_c_check_func LINENO FUNC VAR
1862 # ----------------------------------
1863 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1864 ac_fn_c_check_func ()
1865 {
1866   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval \${$3+:} false; then :
1870   $as_echo_n "(cached) " >&6
1871 else
1872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h.  */
1874 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1876 #define $2 innocuous_$2
1877
1878 /* System header to define __stub macros and hopefully few prototypes,
1879     which can conflict with char $2 (); below.
1880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1881     <limits.h> exists even on freestanding compilers.  */
1882
1883 #ifdef __STDC__
1884 # include <limits.h>
1885 #else
1886 # include <assert.h>
1887 #endif
1888
1889 #undef $2
1890
1891 /* Override any GCC internal prototype to avoid an error.
1892    Use char because int might match the return type of a GCC
1893    builtin and then its argument prototype would still apply.  */
1894 #ifdef __cplusplus
1895 extern "C"
1896 #endif
1897 char $2 ();
1898 /* The GNU C library defines this for functions which it implements
1899     to always fail with ENOSYS.  Some functions are actually named
1900     something starting with __ and the normal name is an alias.  */
1901 #if defined __stub_$2 || defined __stub___$2
1902 choke me
1903 #endif
1904
1905 int
1906 main ()
1907 {
1908 return $2 ();
1909   ;
1910   return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_link "$LINENO"; then :
1914   eval "$3=yes"
1915 else
1916   eval "$3=no"
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext \
1919     conftest$ac_exeext conftest.$ac_ext
1920 fi
1921 eval ac_res=\$$3
1922                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926 } # ac_fn_c_check_func
1927
1928 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1929 # ----------------------------------------------------
1930 # Tries to find if the field MEMBER exists in type AGGR, after including
1931 # INCLUDES, setting cache variable VAR accordingly.
1932 ac_fn_c_check_member ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1936 $as_echo_n "checking for $2.$3... " >&6; }
1937 if eval \${$4+:} false; then :
1938   $as_echo_n "(cached) " >&6
1939 else
1940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h.  */
1942 $5
1943 int
1944 main ()
1945 {
1946 static $2 ac_aggr;
1947 if (ac_aggr.$3)
1948 return 0;
1949   ;
1950   return 0;
1951 }
1952 _ACEOF
1953 if ac_fn_c_try_compile "$LINENO"; then :
1954   eval "$4=yes"
1955 else
1956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h.  */
1958 $5
1959 int
1960 main ()
1961 {
1962 static $2 ac_aggr;
1963 if (sizeof ac_aggr.$3)
1964 return 0;
1965   ;
1966   return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970   eval "$4=yes"
1971 else
1972   eval "$4=no"
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 eval ac_res=\$$4
1979                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983 } # ac_fn_c_check_member
1984
1985 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1986 # -------------------------------------------
1987 # Tests whether TYPE exists after having included INCLUDES, setting cache
1988 # variable VAR accordingly.
1989 ac_fn_c_check_type ()
1990 {
1991   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if eval \${$3+:} false; then :
1995   $as_echo_n "(cached) " >&6
1996 else
1997   eval "$3=no"
1998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h.  */
2000 $4
2001 int
2002 main ()
2003 {
2004 if (sizeof ($2))
2005          return 0;
2006   ;
2007   return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h.  */
2013 $4
2014 int
2015 main ()
2016 {
2017 if (sizeof (($2)))
2018             return 0;
2019   ;
2020   return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024
2025 else
2026   eval "$3=yes"
2027 fi
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 fi
2032 eval ac_res=\$$3
2033                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036
2037 } # ac_fn_c_check_type
2038 cat >config.log <<_ACEOF
2039 This file contains any messages produced by compilers while
2040 running configure, to aid debugging if configure makes a mistake.
2041
2042 It was created by $as_me, which was
2043 generated by GNU Autoconf 2.69.  Invocation command line was
2044
2045   $ $0 $@
2046
2047 _ACEOF
2048 exec 5>>config.log
2049 {
2050 cat <<_ASUNAME
2051 ## --------- ##
2052 ## Platform. ##
2053 ## --------- ##
2054
2055 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2056 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2057 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2058 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2059 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2060
2061 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2062 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2063
2064 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2065 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2066 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2067 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2068 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2069 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2070 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2071
2072 _ASUNAME
2073
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2076 do
2077   IFS=$as_save_IFS
2078   test -z "$as_dir" && as_dir=.
2079     $as_echo "PATH: $as_dir"
2080   done
2081 IFS=$as_save_IFS
2082
2083 } >&5
2084
2085 cat >&5 <<_ACEOF
2086
2087
2088 ## ----------- ##
2089 ## Core tests. ##
2090 ## ----------- ##
2091
2092 _ACEOF
2093
2094
2095 # Keep a trace of the command line.
2096 # Strip out --no-create and --no-recursion so they do not pile up.
2097 # Strip out --silent because we don't want to record it for future runs.
2098 # Also quote any args containing shell meta-characters.
2099 # Make two passes to allow for proper duplicate-argument suppression.
2100 ac_configure_args=
2101 ac_configure_args0=
2102 ac_configure_args1=
2103 ac_must_keep_next=false
2104 for ac_pass in 1 2
2105 do
2106   for ac_arg
2107   do
2108     case $ac_arg in
2109     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2110     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2111     | -silent | --silent | --silen | --sile | --sil)
2112       continue ;;
2113     *\'*)
2114       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2115     esac
2116     case $ac_pass in
2117     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2118     2)
2119       as_fn_append ac_configure_args1 " '$ac_arg'"
2120       if test $ac_must_keep_next = true; then
2121         ac_must_keep_next=false # Got value, back to normal.
2122       else
2123         case $ac_arg in
2124           *=* | --config-cache | -C | -disable-* | --disable-* \
2125           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2126           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2127           | -with-* | --with-* | -without-* | --without-* | --x)
2128             case "$ac_configure_args0 " in
2129               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2130             esac
2131             ;;
2132           -* ) ac_must_keep_next=true ;;
2133         esac
2134       fi
2135       as_fn_append ac_configure_args " '$ac_arg'"
2136       ;;
2137     esac
2138   done
2139 done
2140 { ac_configure_args0=; unset ac_configure_args0;}
2141 { ac_configure_args1=; unset ac_configure_args1;}
2142
2143 # When interrupted or exit'd, cleanup temporary files, and complete
2144 # config.log.  We remove comments because anyway the quotes in there
2145 # would cause problems or look ugly.
2146 # WARNING: Use '\'' to represent an apostrophe within the trap.
2147 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2148 trap 'exit_status=$?
2149   # Save into config.log some information that might help in debugging.
2150   {
2151     echo
2152
2153     $as_echo "## ---------------- ##
2154 ## Cache variables. ##
2155 ## ---------------- ##"
2156     echo
2157     # The following way of writing the cache mishandles newlines in values,
2158 (
2159   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2160     eval ac_val=\$$ac_var
2161     case $ac_val in #(
2162     *${as_nl}*)
2163       case $ac_var in #(
2164       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2165 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2166       esac
2167       case $ac_var in #(
2168       _ | IFS | as_nl) ;; #(
2169       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2170       *) { eval $ac_var=; unset $ac_var;} ;;
2171       esac ;;
2172     esac
2173   done
2174   (set) 2>&1 |
2175     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2176     *${as_nl}ac_space=\ *)
2177       sed -n \
2178         "s/'\''/'\''\\\\'\'''\''/g;
2179           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2180       ;; #(
2181     *)
2182       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2183       ;;
2184     esac |
2185     sort
2186 )
2187     echo
2188
2189     $as_echo "## ----------------- ##
2190 ## Output variables. ##
2191 ## ----------------- ##"
2192     echo
2193     for ac_var in $ac_subst_vars
2194     do
2195       eval ac_val=\$$ac_var
2196       case $ac_val in
2197       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2198       esac
2199       $as_echo "$ac_var='\''$ac_val'\''"
2200     done | sort
2201     echo
2202
2203     if test -n "$ac_subst_files"; then
2204       $as_echo "## ------------------- ##
2205 ## File substitutions. ##
2206 ## ------------------- ##"
2207       echo
2208       for ac_var in $ac_subst_files
2209       do
2210         eval ac_val=\$$ac_var
2211         case $ac_val in
2212         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2213         esac
2214         $as_echo "$ac_var='\''$ac_val'\''"
2215       done | sort
2216       echo
2217     fi
2218
2219     if test -s confdefs.h; then
2220       $as_echo "## ----------- ##
2221 ## confdefs.h. ##
2222 ## ----------- ##"
2223       echo
2224       cat confdefs.h
2225       echo
2226     fi
2227     test "$ac_signal" != 0 &&
2228       $as_echo "$as_me: caught signal $ac_signal"
2229     $as_echo "$as_me: exit $exit_status"
2230   } >&5
2231   rm -f core *.core core.conftest.* &&
2232     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2233     exit $exit_status
2234 ' 0
2235 for ac_signal in 1 2 13 15; do
2236   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2237 done
2238 ac_signal=0
2239
2240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2241 rm -f -r conftest* confdefs.h
2242
2243 $as_echo "/* confdefs.h */" > confdefs.h
2244
2245 # Predefined preprocessor variables.
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_NAME "$PACKAGE_NAME"
2249 _ACEOF
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2253 _ACEOF
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2257 _ACEOF
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_STRING "$PACKAGE_STRING"
2261 _ACEOF
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2265 _ACEOF
2266
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_URL "$PACKAGE_URL"
2269 _ACEOF
2270
2271
2272 # Let the site file select an alternate cache file if it wants to.
2273 # Prefer an explicitly selected file to automatically selected ones.
2274 ac_site_file1=NONE
2275 ac_site_file2=NONE
2276 if test -n "$CONFIG_SITE"; then
2277   # We do not want a PATH search for config.site.
2278   case $CONFIG_SITE in #((
2279     -*)  ac_site_file1=./$CONFIG_SITE;;
2280     */*) ac_site_file1=$CONFIG_SITE;;
2281     *)   ac_site_file1=./$CONFIG_SITE;;
2282   esac
2283 elif test "x$prefix" != xNONE; then
2284   ac_site_file1=$prefix/share/config.site
2285   ac_site_file2=$prefix/etc/config.site
2286 else
2287   ac_site_file1=$ac_default_prefix/share/config.site
2288   ac_site_file2=$ac_default_prefix/etc/config.site
2289 fi
2290 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2291 do
2292   test "x$ac_site_file" = xNONE && continue
2293   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2294     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2295 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2296     sed 's/^/| /' "$ac_site_file" >&5
2297     . "$ac_site_file" \
2298       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2300 as_fn_error $? "failed to load site script $ac_site_file
2301 See \`config.log' for more details" "$LINENO" 5; }
2302   fi
2303 done
2304
2305 if test -r "$cache_file"; then
2306   # Some versions of bash will fail to source /dev/null (special files
2307   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2308   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2309     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2310 $as_echo "$as_me: loading cache $cache_file" >&6;}
2311     case $cache_file in
2312       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2313       *)                      . "./$cache_file";;
2314     esac
2315   fi
2316 else
2317   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2318 $as_echo "$as_me: creating cache $cache_file" >&6;}
2319   >$cache_file
2320 fi
2321
2322 # Check that the precious variables saved in the cache have kept the same
2323 # value.
2324 ac_cache_corrupted=false
2325 for ac_var in $ac_precious_vars; do
2326   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2327   eval ac_new_set=\$ac_env_${ac_var}_set
2328   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2329   eval ac_new_val=\$ac_env_${ac_var}_value
2330   case $ac_old_set,$ac_new_set in
2331     set,)
2332       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2333 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2334       ac_cache_corrupted=: ;;
2335     ,set)
2336       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2337 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2338       ac_cache_corrupted=: ;;
2339     ,);;
2340     *)
2341       if test "x$ac_old_val" != "x$ac_new_val"; then
2342         # differences in whitespace do not lead to failure.
2343         ac_old_val_w=`echo x $ac_old_val`
2344         ac_new_val_w=`echo x $ac_new_val`
2345         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2346           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2347 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2348           ac_cache_corrupted=:
2349         else
2350           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2351 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2352           eval $ac_var=\$ac_old_val
2353         fi
2354         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2355 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2356         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2357 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2358       fi;;
2359   esac
2360   # Pass precious variables to config.status.
2361   if test "$ac_new_set" = set; then
2362     case $ac_new_val in
2363     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2364     *) ac_arg=$ac_var=$ac_new_val ;;
2365     esac
2366     case " $ac_configure_args " in
2367       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2368       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2369     esac
2370   fi
2371 done
2372 if $ac_cache_corrupted; then
2373   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2375   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2376 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2377   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2378 fi
2379 ## -------------------- ##
2380 ## Main body of script. ##
2381 ## -------------------- ##
2382
2383 ac_ext=c
2384 ac_cpp='$CPP $CPPFLAGS'
2385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388
2389
2390 # This file contains common code used by all simulators.
2391 #
2392 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2393 # directory.  It is intended to be invoked before any target specific stuff.
2394 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2395 # It is intended to be invoked last.
2396 #
2397 # The simulator's configure.ac should look like:
2398 #
2399 # dnl Process this file with autoconf to produce a configure script.
2400 # AC_PREREQ(2.64)dnl
2401 # AC_INIT(Makefile.in)
2402 # sinclude(../common/aclocal.m4)
2403 #
2404 # SIM_AC_COMMON
2405 #
2406 # ... target specific stuff ...
2407 #
2408 # SIM_AC_OUTPUT
2409
2410 # Include global overrides and fixes for Autoconf.
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2447 #
2448 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2449 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2450 #   Written by Gordon Matzigkeit, 1996
2451 #
2452 # This file is free software; the Free Software Foundation gives
2453 # unlimited permission to copy and/or distribute it, with or without
2454 # modifications, as long as this notice is preserved.
2455
2456
2457
2458 # serial 56 LT_INIT
2459
2460
2461 # LT_PREREQ(VERSION)
2462 # ------------------
2463 # Complain and exit if this libtool version is less that VERSION.
2464
2465
2466
2467 # _LT_CHECK_BUILDDIR
2468 # ------------------
2469 # Complain if the absolute build directory name contains unusual characters
2470
2471
2472
2473 # LT_INIT([OPTIONS])
2474 # ------------------
2475 # LT_INIT
2476
2477 # Old names:
2478 # This is what autoupdate's m4 run will expand.  It fires
2479 # the warning (with _au_warn_XXX), outputs it into the
2480 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2481 # the replacement expansion.
2482
2483
2484 # This is an auxiliary macro that is also run when
2485 # autoupdate runs m4.  It simply calls m4_warning, but
2486 # we need a wrapper so that each warning is emitted only
2487 # once.  We break the quoting in m4_warning's argument in
2488 # order to expand this macro's arguments, not AU_DEFUN's.
2489
2490
2491 # Finally, this is the expansion that is picked up by
2492 # autoconf.  It tells the user to run autoupdate, and
2493 # then outputs the replacement expansion.  We do not care
2494 # about autoupdate's warning because that contains
2495 # information on what to do *after* running autoupdate.
2496
2497 # This is what autoupdate's m4 run will expand.  It fires
2498 # the warning (with _au_warn_XXX), outputs it into the
2499 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2500 # the replacement expansion.
2501
2502
2503 # This is an auxiliary macro that is also run when
2504 # autoupdate runs m4.  It simply calls m4_warning, but
2505 # we need a wrapper so that each warning is emitted only
2506 # once.  We break the quoting in m4_warning's argument in
2507 # order to expand this macro's arguments, not AU_DEFUN's.
2508
2509
2510 # Finally, this is the expansion that is picked up by
2511 # autoconf.  It tells the user to run autoupdate, and
2512 # then outputs the replacement expansion.  We do not care
2513 # about autoupdate's warning because that contains
2514 # information on what to do *after* running autoupdate.
2515
2516
2517
2518 # _LT_CC_BASENAME(CC)
2519 # -------------------
2520 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
2521
2522
2523
2524 # _LT_FILEUTILS_DEFAULTS
2525 # ----------------------
2526 # It is okay to use these file commands and assume they have been set
2527 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2528 # _LT_FILEUTILS_DEFAULTS
2529
2530
2531 # _LT_SETUP
2532 # ---------
2533 # _LT_SETUP
2534
2535
2536 # _LT_PREPARE_SED_QUOTE_VARS
2537 # --------------------------
2538 # Define a few sed substitution that help us do robust quoting.
2539
2540
2541 # _LT_PROG_LTMAIN
2542 # ---------------
2543 # Note that this code is called both from `configure', and `config.status'
2544 # now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
2545 # `config.status' has no value for ac_aux_dir unless we are using Automake,
2546 # so we pass a copy along to make sure it has a sensible value anyway.
2547 # _LT_PROG_LTMAIN
2548
2549
2550 ## ------------------------------------- ##
2551 ## Accumulate code for creating libtool. ##
2552 ## ------------------------------------- ##
2553
2554 # So that we can recreate a full libtool script including additional
2555 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2556 # in macros and then make a single call at the end using the `libtool'
2557 # label.
2558
2559
2560 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2561 # ----------------------------------------
2562 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2563
2564
2565 # Initialize.
2566
2567
2568
2569 # _LT_CONFIG_LIBTOOL([COMMANDS])
2570 # ------------------------------
2571 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2572
2573
2574 # Initialize.
2575
2576
2577
2578 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2579 # -----------------------------------------------------
2580
2581
2582
2583 # _LT_FORMAT_COMMENT([COMMENT])
2584 # -----------------------------
2585 # Add leading comment marks to the start of each line, and a trailing
2586 # full-stop to the whole comment if one is not present already.
2587
2588
2589
2590
2591 ## ------------------------ ##
2592 ## FIXME: Eliminate VARNAME ##
2593 ## ------------------------ ##
2594
2595
2596 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2597 # -------------------------------------------------------------------
2598 # CONFIGNAME is the name given to the value in the libtool script.
2599 # VARNAME is the (base) name used in the configure script.
2600 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2601 # VARNAME.  Any other value will be used directly.
2602
2603
2604
2605 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2606 # --------------------------------------------------------
2607
2608
2609
2610 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2611 # ------------------------------------------------
2612
2613
2614
2615 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2616 # ---------------------------------------------------------
2617
2618
2619
2620 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2621 # --------------------------------------------------
2622
2623
2624
2625 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2626 # ---------------------------------------------------
2627
2628
2629
2630 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2631 # ---------------------------------------------------
2632
2633
2634
2635
2636 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2637 # ------------------------------------------------
2638
2639
2640
2641
2642 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
2643 # ------------------------------------
2644 # Quote a variable value, and forward it to `config.status' so that its
2645 # declaration there will have the same value as in `configure'.  VARNAME
2646 # must have a single quote delimited value for this to work.
2647
2648
2649
2650 # _LT_CONFIG_STATUS_DECLARATIONS
2651 # ------------------------------
2652 # We delimit libtool config variables with single quotes, so when
2653 # we write them to config.status, we have to be sure to quote all
2654 # embedded single quotes properly.  In configure, this macro expands
2655 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2656 #
2657 #    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2658
2659
2660
2661 # _LT_LIBTOOL_TAGS
2662 # ----------------
2663 # Output comment and list of tags supported by the script
2664
2665
2666
2667 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2668 # -----------------------------------
2669 # Extract the dictionary values for VARNAME (optionally with TAG) and
2670 # expand to a commented shell variable setting:
2671 #
2672 #    # Some comment about what VAR is for.
2673 #    visible_name=$lt_internal_name
2674
2675
2676
2677 # _LT_LIBTOOL_CONFIG_VARS
2678 # -----------------------
2679 # Produce commented declarations of non-tagged libtool config variables
2680 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2681 # script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
2682 # section) are produced by _LT_LIBTOOL_TAG_VARS.
2683
2684
2685
2686 # _LT_LIBTOOL_TAG_VARS(TAG)
2687 # -------------------------
2688
2689
2690
2691 # _LT_TAGVAR(VARNAME, [TAGNAME])
2692 # ------------------------------
2693
2694
2695
2696 # _LT_CONFIG_COMMANDS
2697 # -------------------
2698 # Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
2699 # variables for single and double quote escaping we saved from calls
2700 # to _LT_DECL, we can put quote escaped variables declarations
2701 # into `config.status', and then the shell code to quote escape them in
2702 # for loops in `config.status'.  Finally, any additional code accumulated
2703 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2704 #_LT_CONFIG_COMMANDS
2705
2706
2707 # Initialize.
2708
2709
2710 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2711 # ------------------------------------
2712 # Generate a child script FILE with all initialization necessary to
2713 # reuse the environment learned by the parent script, and make the
2714 # file executable.  If COMMENT is supplied, it is inserted after the
2715 # `#!' sequence but before initialization text begins.  After this
2716 # macro, additional text can be appended to FILE to form the body of
2717 # the child script.  The macro ends with non-zero status if the
2718 # file could not be fully written (such as if the disk is full).
2719 # _LT_GENERATED_FILE_INIT
2720
2721 # LT_OUTPUT
2722 # ---------
2723 # This macro allows early generation of the libtool script (before
2724 # AC_OUTPUT is called), incase it is used in configure for compilation
2725 # tests.
2726 # LT_OUTPUT
2727
2728
2729 # _LT_CONFIG(TAG)
2730 # ---------------
2731 # If TAG is the built-in tag, create an initial libtool script with a
2732 # default configuration from the untagged config vars.  Otherwise add code
2733 # to config.status for appending the configuration named by TAG from the
2734 # matching tagged config vars.
2735 # _LT_CONFIG
2736
2737
2738 # LT_SUPPORTED_TAG(TAG)
2739 # ---------------------
2740 # Trace this macro to discover what tags are supported by the libtool
2741 # --tag option, using:
2742 #    autoconf --trace 'LT_SUPPORTED_TAG:$1'
2743
2744
2745
2746 # C support is built-in for now
2747
2748
2749
2750
2751 # LT_LANG(LANG)
2752 # -------------
2753 # Enable libtool support for the given language if not already enabled.
2754 # LT_LANG
2755
2756
2757 # _LT_LANG(LANGNAME)
2758 # ------------------
2759 # _LT_LANG
2760
2761
2762 # _LT_LANG_DEFAULT_CONFIG
2763 # -----------------------
2764 # _LT_LANG_DEFAULT_CONFIG
2765
2766 # Obsolete macros:
2767 # This is what autoupdate's m4 run will expand.  It fires
2768 # the warning (with _au_warn_XXX), outputs it into the
2769 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2770 # the replacement expansion.
2771
2772
2773 # This is an auxiliary macro that is also run when
2774 # autoupdate runs m4.  It simply calls m4_warning, but
2775 # we need a wrapper so that each warning is emitted only
2776 # once.  We break the quoting in m4_warning's argument in
2777 # order to expand this macro's arguments, not AU_DEFUN's.
2778
2779
2780 # Finally, this is the expansion that is picked up by
2781 # autoconf.  It tells the user to run autoupdate, and
2782 # then outputs the replacement expansion.  We do not care
2783 # about autoupdate's warning because that contains
2784 # information on what to do *after* running autoupdate.
2785
2786 # This is what autoupdate's m4 run will expand.  It fires
2787 # the warning (with _au_warn_XXX), outputs it into the
2788 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2789 # the replacement expansion.
2790
2791
2792 # This is an auxiliary macro that is also run when
2793 # autoupdate runs m4.  It simply calls m4_warning, but
2794 # we need a wrapper so that each warning is emitted only
2795 # once.  We break the quoting in m4_warning's argument in
2796 # order to expand this macro's arguments, not AU_DEFUN's.
2797
2798
2799 # Finally, this is the expansion that is picked up by
2800 # autoconf.  It tells the user to run autoupdate, and
2801 # then outputs the replacement expansion.  We do not care
2802 # about autoupdate's warning because that contains
2803 # information on what to do *after* running autoupdate.
2804
2805 # This is what autoupdate's m4 run will expand.  It fires
2806 # the warning (with _au_warn_XXX), outputs it into the
2807 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2808 # the replacement expansion.
2809
2810
2811 # This is an auxiliary macro that is also run when
2812 # autoupdate runs m4.  It simply calls m4_warning, but
2813 # we need a wrapper so that each warning is emitted only
2814 # once.  We break the quoting in m4_warning's argument in
2815 # order to expand this macro's arguments, not AU_DEFUN's.
2816
2817
2818 # Finally, this is the expansion that is picked up by
2819 # autoconf.  It tells the user to run autoupdate, and
2820 # then outputs the replacement expansion.  We do not care
2821 # about autoupdate's warning because that contains
2822 # information on what to do *after* running autoupdate.
2823
2824 # This is what autoupdate's m4 run will expand.  It fires
2825 # the warning (with _au_warn_XXX), outputs it into the
2826 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2827 # the replacement expansion.
2828
2829
2830 # This is an auxiliary macro that is also run when
2831 # autoupdate runs m4.  It simply calls m4_warning, but
2832 # we need a wrapper so that each warning is emitted only
2833 # once.  We break the quoting in m4_warning's argument in
2834 # order to expand this macro's arguments, not AU_DEFUN's.
2835
2836
2837 # Finally, this is the expansion that is picked up by
2838 # autoconf.  It tells the user to run autoupdate, and
2839 # then outputs the replacement expansion.  We do not care
2840 # about autoupdate's warning because that contains
2841 # information on what to do *after* running autoupdate.
2842
2843 # This is what autoupdate's m4 run will expand.  It fires
2844 # the warning (with _au_warn_XXX), outputs it into the
2845 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2846 # the replacement expansion.
2847
2848
2849 # This is an auxiliary macro that is also run when
2850 # autoupdate runs m4.  It simply calls m4_warning, but
2851 # we need a wrapper so that each warning is emitted only
2852 # once.  We break the quoting in m4_warning's argument in
2853 # order to expand this macro's arguments, not AU_DEFUN's.
2854
2855
2856 # Finally, this is the expansion that is picked up by
2857 # autoconf.  It tells the user to run autoupdate, and
2858 # then outputs the replacement expansion.  We do not care
2859 # about autoupdate's warning because that contains
2860 # information on what to do *after* running autoupdate.
2861
2862
2863
2864 # _LT_TAG_COMPILER
2865 # ----------------
2866 # _LT_TAG_COMPILER
2867
2868
2869 # _LT_COMPILER_BOILERPLATE
2870 # ------------------------
2871 # Check for compiler boilerplate output or warnings with
2872 # the simple compiler test code.
2873 # _LT_COMPILER_BOILERPLATE
2874
2875
2876 # _LT_LINKER_BOILERPLATE
2877 # ----------------------
2878 # Check for linker boilerplate output or warnings with
2879 # the simple link test code.
2880 # _LT_LINKER_BOILERPLATE
2881
2882 # _LT_REQUIRED_DARWIN_CHECKS
2883 # -------------------------
2884
2885
2886
2887 # _LT_DARWIN_LINKER_FEATURES
2888 # --------------------------
2889 # Checks for linker and compiler features on darwin
2890
2891
2892 # _LT_SYS_MODULE_PATH_AIX
2893 # -----------------------
2894 # Links a minimal program and checks the executable
2895 # for the system default hardcoded library path. In most cases,
2896 # this is /usr/lib:/lib, but when the MPI compilers are used
2897 # the location of the communication and MPI libs are included too.
2898 # If we don't find anything, use the default library path according
2899 # to the aix ld manual.
2900 # _LT_SYS_MODULE_PATH_AIX
2901
2902
2903 # _LT_SHELL_INIT(ARG)
2904 # -------------------
2905 # _LT_SHELL_INIT
2906
2907
2908
2909 # _LT_PROG_ECHO_BACKSLASH
2910 # -----------------------
2911 # Find how we can fake an echo command that does not interpret backslash.
2912 # In particular, with Autoconf 2.60 or later we add some code to the start
2913 # of the generated configure script which will find a shell with a builtin
2914 # printf (which we can use as an echo command).
2915 # _LT_PROG_ECHO_BACKSLASH
2916
2917
2918 # _LT_ENABLE_LOCK
2919 # ---------------
2920 # _LT_ENABLE_LOCK
2921
2922
2923 # _LT_CMD_OLD_ARCHIVE
2924 # -------------------
2925 # _LT_CMD_OLD_ARCHIVE
2926
2927
2928 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2929 #               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2930 # ----------------------------------------------------------------
2931 # Check whether the given compiler option works
2932 # _LT_COMPILER_OPTION
2933
2934 # Old name:
2935 # This is what autoupdate's m4 run will expand.  It fires
2936 # the warning (with _au_warn_XXX), outputs it into the
2937 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2938 # the replacement expansion.
2939
2940
2941 # This is an auxiliary macro that is also run when
2942 # autoupdate runs m4.  It simply calls m4_warning, but
2943 # we need a wrapper so that each warning is emitted only
2944 # once.  We break the quoting in m4_warning's argument in
2945 # order to expand this macro's arguments, not AU_DEFUN's.
2946
2947
2948 # Finally, this is the expansion that is picked up by
2949 # autoconf.  It tells the user to run autoupdate, and
2950 # then outputs the replacement expansion.  We do not care
2951 # about autoupdate's warning because that contains
2952 # information on what to do *after* running autoupdate.
2953
2954
2955
2956 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2957 #                  [ACTION-SUCCESS], [ACTION-FAILURE])
2958 # ----------------------------------------------------
2959 # Check whether the given linker option works
2960 # _LT_LINKER_OPTION
2961
2962 # Old name:
2963 # This is what autoupdate's m4 run will expand.  It fires
2964 # the warning (with _au_warn_XXX), outputs it into the
2965 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2966 # the replacement expansion.
2967
2968
2969 # This is an auxiliary macro that is also run when
2970 # autoupdate runs m4.  It simply calls m4_warning, but
2971 # we need a wrapper so that each warning is emitted only
2972 # once.  We break the quoting in m4_warning's argument in
2973 # order to expand this macro's arguments, not AU_DEFUN's.
2974
2975
2976 # Finally, this is the expansion that is picked up by
2977 # autoconf.  It tells the user to run autoupdate, and
2978 # then outputs the replacement expansion.  We do not care
2979 # about autoupdate's warning because that contains
2980 # information on what to do *after* running autoupdate.
2981
2982
2983
2984 # LT_CMD_MAX_LEN
2985 #---------------
2986 # LT_CMD_MAX_LEN
2987
2988 # Old name:
2989 # This is what autoupdate's m4 run will expand.  It fires
2990 # the warning (with _au_warn_XXX), outputs it into the
2991 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2992 # the replacement expansion.
2993
2994
2995 # This is an auxiliary macro that is also run when
2996 # autoupdate runs m4.  It simply calls m4_warning, but
2997 # we need a wrapper so that each warning is emitted only
2998 # once.  We break the quoting in m4_warning's argument in
2999 # order to expand this macro's arguments, not AU_DEFUN's.
3000
3001
3002 # Finally, this is the expansion that is picked up by
3003 # autoconf.  It tells the user to run autoupdate, and
3004 # then outputs the replacement expansion.  We do not care
3005 # about autoupdate's warning because that contains
3006 # information on what to do *after* running autoupdate.
3007
3008
3009
3010 # _LT_HEADER_DLFCN
3011 # ----------------
3012 # _LT_HEADER_DLFCN
3013
3014
3015 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3016 #                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3017 # ----------------------------------------------------------------
3018 # _LT_TRY_DLOPEN_SELF
3019
3020
3021 # LT_SYS_DLOPEN_SELF
3022 # ------------------
3023 # LT_SYS_DLOPEN_SELF
3024
3025 # Old name:
3026 # This is what autoupdate's m4 run will expand.  It fires
3027 # the warning (with _au_warn_XXX), outputs it into the
3028 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3029 # the replacement expansion.
3030
3031
3032 # This is an auxiliary macro that is also run when
3033 # autoupdate runs m4.  It simply calls m4_warning, but
3034 # we need a wrapper so that each warning is emitted only
3035 # once.  We break the quoting in m4_warning's argument in
3036 # order to expand this macro's arguments, not AU_DEFUN's.
3037
3038
3039 # Finally, this is the expansion that is picked up by
3040 # autoconf.  It tells the user to run autoupdate, and
3041 # then outputs the replacement expansion.  We do not care
3042 # about autoupdate's warning because that contains
3043 # information on what to do *after* running autoupdate.
3044
3045
3046
3047 # _LT_COMPILER_C_O([TAGNAME])
3048 # ---------------------------
3049 # Check to see if options -c and -o are simultaneously supported by compiler.
3050 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
3051 # _LT_COMPILER_C_O
3052
3053
3054 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
3055 # ----------------------------------
3056 # Check to see if we can do hard links to lock some files if needed
3057 # _LT_COMPILER_FILE_LOCKS
3058
3059
3060 # _LT_CHECK_OBJDIR
3061 # ----------------
3062 # _LT_CHECK_OBJDIR
3063
3064
3065 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3066 # --------------------------------------
3067 # Check hardcoding attributes.
3068 # _LT_LINKER_HARDCODE_LIBPATH
3069
3070
3071 # _LT_CMD_STRIPLIB
3072 # ----------------
3073 # _LT_CMD_STRIPLIB
3074
3075
3076 # _LT_SYS_DYNAMIC_LINKER([TAG])
3077 # -----------------------------
3078 # PORTME Fill in your ld.so characteristics
3079 # _LT_SYS_DYNAMIC_LINKER
3080
3081
3082 # _LT_PATH_TOOL_PREFIX(TOOL)
3083 # --------------------------
3084 # find a file program which can recognize shared library
3085 # _LT_PATH_TOOL_PREFIX
3086
3087 # Old name:
3088 # This is what autoupdate's m4 run will expand.  It fires
3089 # the warning (with _au_warn_XXX), outputs it into the
3090 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3091 # the replacement expansion.
3092
3093
3094 # This is an auxiliary macro that is also run when
3095 # autoupdate runs m4.  It simply calls m4_warning, but
3096 # we need a wrapper so that each warning is emitted only
3097 # once.  We break the quoting in m4_warning's argument in
3098 # order to expand this macro's arguments, not AU_DEFUN's.
3099
3100
3101 # Finally, this is the expansion that is picked up by
3102 # autoconf.  It tells the user to run autoupdate, and
3103 # then outputs the replacement expansion.  We do not care
3104 # about autoupdate's warning because that contains
3105 # information on what to do *after* running autoupdate.
3106
3107
3108
3109 # _LT_PATH_MAGIC
3110 # --------------
3111 # find a file program which can recognize a shared library
3112 # _LT_PATH_MAGIC
3113
3114
3115 # LT_PATH_LD
3116 # ----------
3117 # find the pathname to the GNU or non-GNU linker
3118 # LT_PATH_LD
3119
3120 # Old names:
3121 # This is what autoupdate's m4 run will expand.  It fires
3122 # the warning (with _au_warn_XXX), outputs it into the
3123 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3124 # the replacement expansion.
3125
3126
3127 # This is an auxiliary macro that is also run when
3128 # autoupdate runs m4.  It simply calls m4_warning, but
3129 # we need a wrapper so that each warning is emitted only
3130 # once.  We break the quoting in m4_warning's argument in
3131 # order to expand this macro's arguments, not AU_DEFUN's.
3132
3133
3134 # Finally, this is the expansion that is picked up by
3135 # autoconf.  It tells the user to run autoupdate, and
3136 # then outputs the replacement expansion.  We do not care
3137 # about autoupdate's warning because that contains
3138 # information on what to do *after* running autoupdate.
3139
3140 # This is what autoupdate's m4 run will expand.  It fires
3141 # the warning (with _au_warn_XXX), outputs it into the
3142 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3143 # the replacement expansion.
3144
3145
3146 # This is an auxiliary macro that is also run when
3147 # autoupdate runs m4.  It simply calls m4_warning, but
3148 # we need a wrapper so that each warning is emitted only
3149 # once.  We break the quoting in m4_warning's argument in
3150 # order to expand this macro's arguments, not AU_DEFUN's.
3151
3152
3153 # Finally, this is the expansion that is picked up by
3154 # autoconf.  It tells the user to run autoupdate, and
3155 # then outputs the replacement expansion.  We do not care
3156 # about autoupdate's warning because that contains
3157 # information on what to do *after* running autoupdate.
3158
3159
3160
3161 # _LT_PATH_LD_GNU
3162 #- --------------
3163 # _LT_PATH_LD_GNU
3164
3165
3166 # _LT_CMD_RELOAD
3167 # --------------
3168 # find reload flag for linker
3169 #   -- PORTME Some linkers may need a different reload flag.
3170 # _LT_CMD_RELOAD
3171
3172
3173 # _LT_CHECK_MAGIC_METHOD
3174 # ----------------------
3175 # how to check for library dependencies
3176 #  -- PORTME fill in with the dynamic library characteristics
3177 # _LT_CHECK_MAGIC_METHOD
3178
3179
3180 # LT_PATH_NM
3181 # ----------
3182 # find the pathname to a BSD- or MS-compatible name lister
3183 # LT_PATH_NM
3184
3185 # Old names:
3186 # This is what autoupdate's m4 run will expand.  It fires
3187 # the warning (with _au_warn_XXX), outputs it into the
3188 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3189 # the replacement expansion.
3190
3191
3192 # This is an auxiliary macro that is also run when
3193 # autoupdate runs m4.  It simply calls m4_warning, but
3194 # we need a wrapper so that each warning is emitted only
3195 # once.  We break the quoting in m4_warning's argument in
3196 # order to expand this macro's arguments, not AU_DEFUN's.
3197
3198
3199 # Finally, this is the expansion that is picked up by
3200 # autoconf.  It tells the user to run autoupdate, and
3201 # then outputs the replacement expansion.  We do not care
3202 # about autoupdate's warning because that contains
3203 # information on what to do *after* running autoupdate.
3204
3205 # This is what autoupdate's m4 run will expand.  It fires
3206 # the warning (with _au_warn_XXX), outputs it into the
3207 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3208 # the replacement expansion.
3209
3210
3211 # This is an auxiliary macro that is also run when
3212 # autoupdate runs m4.  It simply calls m4_warning, but
3213 # we need a wrapper so that each warning is emitted only
3214 # once.  We break the quoting in m4_warning's argument in
3215 # order to expand this macro's arguments, not AU_DEFUN's.
3216
3217
3218 # Finally, this is the expansion that is picked up by
3219 # autoconf.  It tells the user to run autoupdate, and
3220 # then outputs the replacement expansion.  We do not care
3221 # about autoupdate's warning because that contains
3222 # information on what to do *after* running autoupdate.
3223
3224
3225
3226 # LT_LIB_M
3227 # --------
3228 # check for math library
3229 # LT_LIB_M
3230
3231 # Old name:
3232 # This is what autoupdate's m4 run will expand.  It fires
3233 # the warning (with _au_warn_XXX), outputs it into the
3234 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3235 # the replacement expansion.
3236
3237
3238 # This is an auxiliary macro that is also run when
3239 # autoupdate runs m4.  It simply calls m4_warning, but
3240 # we need a wrapper so that each warning is emitted only
3241 # once.  We break the quoting in m4_warning's argument in
3242 # order to expand this macro's arguments, not AU_DEFUN's.
3243
3244
3245 # Finally, this is the expansion that is picked up by
3246 # autoconf.  It tells the user to run autoupdate, and
3247 # then outputs the replacement expansion.  We do not care
3248 # about autoupdate's warning because that contains
3249 # information on what to do *after* running autoupdate.
3250
3251
3252
3253 # _LT_COMPILER_NO_RTTI([TAGNAME])
3254 # -------------------------------
3255 # _LT_COMPILER_NO_RTTI
3256
3257
3258 # _LT_CMD_GLOBAL_SYMBOLS
3259 # ----------------------
3260  # _LT_CMD_GLOBAL_SYMBOLS
3261
3262
3263 # _LT_COMPILER_PIC([TAGNAME])
3264 # ---------------------------
3265 # _LT_COMPILER_PIC
3266
3267
3268 # _LT_LINKER_SHLIBS([TAGNAME])
3269 # ----------------------------
3270 # See if the linker supports building shared libraries.
3271 # _LT_LINKER_SHLIBS
3272
3273
3274 # _LT_LANG_C_CONFIG([TAG])
3275 # ------------------------
3276 # Ensure that the configuration variables for a C compiler are suitably
3277 # defined.  These variables are subsequently used by _LT_CONFIG to write
3278 # the compiler configuration to `libtool'.
3279 # _LT_LANG_C_CONFIG
3280
3281
3282 # _LT_LANG_CXX_CONFIG([TAG])
3283 # --------------------------
3284 # Ensure that the configuration variables for a C++ compiler are suitably
3285 # defined.  These variables are subsequently used by _LT_CONFIG to write
3286 # the compiler configuration to `libtool'.
3287 # _LT_LANG_CXX_CONFIG
3288
3289
3290 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3291 # ---------------------------------
3292 # Figure out "hidden" library dependencies from verbose
3293 # compiler output when linking a shared library.
3294 # Parse the compiler output and extract the necessary
3295 # objects, libraries and library flags.
3296 # _LT_SYS_HIDDEN_LIBDEPS
3297
3298
3299 # _LT_LANG_F77_CONFIG([TAG])
3300 # --------------------------
3301 # Ensure that the configuration variables for a Fortran 77 compiler are
3302 # suitably defined.  These variables are subsequently used by _LT_CONFIG
3303 # to write the compiler configuration to `libtool'.
3304 # _LT_LANG_F77_CONFIG
3305
3306
3307 # _LT_LANG_FC_CONFIG([TAG])
3308 # -------------------------
3309 # Ensure that the configuration variables for a Fortran compiler are
3310 # suitably defined.  These variables are subsequently used by _LT_CONFIG
3311 # to write the compiler configuration to `libtool'.
3312 # _LT_LANG_FC_CONFIG
3313
3314
3315 # _LT_LANG_GCJ_CONFIG([TAG])
3316 # --------------------------
3317 # Ensure that the configuration variables for the GNU Java Compiler compiler
3318 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
3319 # to write the compiler configuration to `libtool'.
3320 # _LT_LANG_GCJ_CONFIG
3321
3322
3323 # _LT_LANG_RC_CONFIG([TAG])
3324 # -------------------------
3325 # Ensure that the configuration variables for the Windows resource compiler
3326 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
3327 # to write the compiler configuration to `libtool'.
3328 # _LT_LANG_RC_CONFIG
3329
3330
3331 # LT_PROG_GCJ
3332 # -----------
3333
3334
3335 # Old name:
3336 # This is what autoupdate's m4 run will expand.  It fires
3337 # the warning (with _au_warn_XXX), outputs it into the
3338 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3339 # the replacement expansion.
3340
3341
3342 # This is an auxiliary macro that is also run when
3343 # autoupdate runs m4.  It simply calls m4_warning, but
3344 # we need a wrapper so that each warning is emitted only
3345 # once.  We break the quoting in m4_warning's argument in
3346 # order to expand this macro's arguments, not AU_DEFUN's.
3347
3348
3349 # Finally, this is the expansion that is picked up by
3350 # autoconf.  It tells the user to run autoupdate, and
3351 # then outputs the replacement expansion.  We do not care
3352 # about autoupdate's warning because that contains
3353 # information on what to do *after* running autoupdate.
3354
3355
3356
3357 # LT_PROG_RC
3358 # ----------
3359
3360
3361 # Old name:
3362 # This is what autoupdate's m4 run will expand.  It fires
3363 # the warning (with _au_warn_XXX), outputs it into the
3364 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3365 # the replacement expansion.
3366
3367
3368 # This is an auxiliary macro that is also run when
3369 # autoupdate runs m4.  It simply calls m4_warning, but
3370 # we need a wrapper so that each warning is emitted only
3371 # once.  We break the quoting in m4_warning's argument in
3372 # order to expand this macro's arguments, not AU_DEFUN's.
3373
3374
3375 # Finally, this is the expansion that is picked up by
3376 # autoconf.  It tells the user to run autoupdate, and
3377 # then outputs the replacement expansion.  We do not care
3378 # about autoupdate's warning because that contains
3379 # information on what to do *after* running autoupdate.
3380
3381
3382
3383 # _LT_DECL_EGREP
3384 # --------------
3385 # If we don't have a new enough Autoconf to choose the best grep
3386 # available, choose the one first in the user's PATH.
3387
3388
3389
3390 # _LT_DECL_OBJDUMP
3391 # --------------
3392 # If we don't have a new enough Autoconf to choose the best objdump
3393 # available, choose the one first in the user's PATH.
3394
3395
3396
3397 # _LT_DECL_SED
3398 # ------------
3399 # Check for a fully-functional sed program, that truncates
3400 # as few characters as possible.  Prefer GNU sed if found.
3401 # _LT_DECL_SED
3402
3403 #m4_ifndef
3404
3405 # Old name:
3406 # This is what autoupdate's m4 run will expand.  It fires
3407 # the warning (with _au_warn_XXX), outputs it into the
3408 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3409 # the replacement expansion.
3410
3411
3412 # This is an auxiliary macro that is also run when
3413 # autoupdate runs m4.  It simply calls m4_warning, but
3414 # we need a wrapper so that each warning is emitted only
3415 # once.  We break the quoting in m4_warning's argument in
3416 # order to expand this macro's arguments, not AU_DEFUN's.
3417
3418
3419 # Finally, this is the expansion that is picked up by
3420 # autoconf.  It tells the user to run autoupdate, and
3421 # then outputs the replacement expansion.  We do not care
3422 # about autoupdate's warning because that contains
3423 # information on what to do *after* running autoupdate.
3424
3425
3426
3427 # _LT_CHECK_SHELL_FEATURES
3428 # ------------------------
3429 # Find out whether the shell is Bourne or XSI compatible,
3430 # or has some other useful features.
3431 # _LT_CHECK_SHELL_FEATURES
3432
3433
3434 # _LT_PROG_XSI_SHELLFNS
3435 # ---------------------
3436 # Bourne and XSI compatible variants of some useful shell functions.
3437
3438
3439 # Helper functions for option handling.                    -*- Autoconf -*-
3440 #
3441 #   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3442 #   Inc.
3443 #   Written by Gary V. Vaughan, 2004
3444 #
3445 # This file is free software; the Free Software Foundation gives
3446 # unlimited permission to copy and/or distribute it, with or without
3447 # modifications, as long as this notice is preserved.
3448
3449 # serial 6 ltoptions.m4
3450
3451 # This is to help aclocal find these macros, as it can't see m4_define.
3452
3453
3454
3455 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3456 # ------------------------------------------
3457
3458
3459
3460 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3461 # ---------------------------------------
3462 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3463 # matching handler defined, dispatch to it.  Other OPTION-NAMEs are
3464 # saved as a flag.
3465
3466
3467
3468 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3469 # ------------------------------------------------------------
3470 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3471
3472
3473
3474 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3475 # -------------------------------------------------------
3476 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3477 # are set.
3478
3479
3480
3481 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3482 # ----------------------------------------
3483 # OPTION-LIST is a space-separated list of Libtool options associated
3484 # with MACRO-NAME.  If any OPTION has a matching handler declared with
3485 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3486 # the unknown option and exit.
3487 # _LT_SET_OPTIONS
3488
3489
3490 ## --------------------------------- ##
3491 ## Macros to handle LT_INIT options. ##
3492 ## --------------------------------- ##
3493
3494 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3495 # -----------------------------------------
3496
3497
3498
3499 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3500 # -----------------------------------------------
3501 # LT_OPTION_DEFINE
3502
3503
3504 # dlopen
3505 # ------
3506
3507
3508 # This is what autoupdate's m4 run will expand.  It fires
3509 # the warning (with _au_warn_XXX), outputs it into the
3510 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3511 # the replacement expansion.
3512
3513
3514 # This is an auxiliary macro that is also run when
3515 # autoupdate runs m4.  It simply calls m4_warning, but
3516 # we need a wrapper so that each warning is emitted only
3517 # once.  We break the quoting in m4_warning's argument in
3518 # order to expand this macro's arguments, not AU_DEFUN's.
3519
3520
3521 # Finally, this is the expansion that is picked up by
3522 # autoconf.  It tells the user to run autoupdate, and
3523 # then outputs the replacement expansion.  We do not care
3524 # about autoupdate's warning because that contains
3525 # information on what to do *after* running autoupdate.
3526
3527
3528
3529
3530 # win32-dll
3531 # ---------
3532 # Declare package support for building win32 dll's.
3533 # win32-dll
3534
3535 # This is what autoupdate's m4 run will expand.  It fires
3536 # the warning (with _au_warn_XXX), outputs it into the
3537 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3538 # the replacement expansion.
3539
3540
3541 # This is an auxiliary macro that is also run when
3542 # autoupdate runs m4.  It simply calls m4_warning, but
3543 # we need a wrapper so that each warning is emitted only
3544 # once.  We break the quoting in m4_warning's argument in
3545 # order to expand this macro's arguments, not AU_DEFUN's.
3546
3547
3548 # Finally, this is the expansion that is picked up by
3549 # autoconf.  It tells the user to run autoupdate, and
3550 # then outputs the replacement expansion.  We do not care
3551 # about autoupdate's warning because that contains
3552 # information on what to do *after* running autoupdate.
3553
3554
3555
3556
3557 # _LT_ENABLE_SHARED([DEFAULT])
3558 # ----------------------------
3559 # implement the --enable-shared flag, and supports the `shared' and
3560 # `disable-shared' LT_INIT options.
3561 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3562 # _LT_ENABLE_SHARED
3563
3564
3565
3566
3567 # Old names:
3568
3569
3570
3571
3572 # This is what autoupdate's m4 run will expand.  It fires
3573 # the warning (with _au_warn_XXX), outputs it into the
3574 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3575 # the replacement expansion.
3576
3577
3578 # This is an auxiliary macro that is also run when
3579 # autoupdate runs m4.  It simply calls m4_warning, but
3580 # we need a wrapper so that each warning is emitted only
3581 # once.  We break the quoting in m4_warning's argument in
3582 # order to expand this macro's arguments, not AU_DEFUN's.
3583
3584
3585 # Finally, this is the expansion that is picked up by
3586 # autoconf.  It tells the user to run autoupdate, and
3587 # then outputs the replacement expansion.  We do not care
3588 # about autoupdate's warning because that contains
3589 # information on what to do *after* running autoupdate.
3590
3591 # This is what autoupdate's m4 run will expand.  It fires
3592 # the warning (with _au_warn_XXX), outputs it into the
3593 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3594 # the replacement expansion.
3595
3596
3597 # This is an auxiliary macro that is also run when
3598 # autoupdate runs m4.  It simply calls m4_warning, but
3599 # we need a wrapper so that each warning is emitted only
3600 # once.  We break the quoting in m4_warning's argument in
3601 # order to expand this macro's arguments, not AU_DEFUN's.
3602
3603
3604 # Finally, this is the expansion that is picked up by
3605 # autoconf.  It tells the user to run autoupdate, and
3606 # then outputs the replacement expansion.  We do not care
3607 # about autoupdate's warning because that contains
3608 # information on what to do *after* running autoupdate.
3609
3610
3611
3612
3613
3614 # _LT_ENABLE_STATIC([DEFAULT])
3615 # ----------------------------
3616 # implement the --enable-static flag, and support the `static' and
3617 # `disable-static' LT_INIT options.
3618 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3619 # _LT_ENABLE_STATIC
3620
3621
3622
3623
3624 # Old names:
3625
3626
3627
3628
3629 # This is what autoupdate's m4 run will expand.  It fires
3630 # the warning (with _au_warn_XXX), outputs it into the
3631 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3632 # the replacement expansion.
3633
3634
3635 # This is an auxiliary macro that is also run when
3636 # autoupdate runs m4.  It simply calls m4_warning, but
3637 # we need a wrapper so that each warning is emitted only
3638 # once.  We break the quoting in m4_warning's argument in
3639 # order to expand this macro's arguments, not AU_DEFUN's.
3640
3641
3642 # Finally, this is the expansion that is picked up by
3643 # autoconf.  It tells the user to run autoupdate, and
3644 # then outputs the replacement expansion.  We do not care
3645 # about autoupdate's warning because that contains
3646 # information on what to do *after* running autoupdate.
3647
3648 # This is what autoupdate's m4 run will expand.  It fires
3649 # the warning (with _au_warn_XXX), outputs it into the
3650 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3651 # the replacement expansion.
3652
3653
3654 # This is an auxiliary macro that is also run when
3655 # autoupdate runs m4.  It simply calls m4_warning, but
3656 # we need a wrapper so that each warning is emitted only
3657 # once.  We break the quoting in m4_warning's argument in
3658 # order to expand this macro's arguments, not AU_DEFUN's.
3659
3660
3661 # Finally, this is the expansion that is picked up by
3662 # autoconf.  It tells the user to run autoupdate, and
3663 # then outputs the replacement expansion.  We do not care
3664 # about autoupdate's warning because that contains
3665 # information on what to do *after* running autoupdate.
3666
3667
3668
3669
3670
3671 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
3672 # ----------------------------------
3673 # implement the --enable-fast-install flag, and support the `fast-install'
3674 # and `disable-fast-install' LT_INIT options.
3675 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3676 # _LT_ENABLE_FAST_INSTALL
3677
3678
3679
3680
3681 # Old names:
3682 # This is what autoupdate's m4 run will expand.  It fires
3683 # the warning (with _au_warn_XXX), outputs it into the
3684 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3685 # the replacement expansion.
3686
3687
3688 # This is an auxiliary macro that is also run when
3689 # autoupdate runs m4.  It simply calls m4_warning, but
3690 # we need a wrapper so that each warning is emitted only
3691 # once.  We break the quoting in m4_warning's argument in
3692 # order to expand this macro's arguments, not AU_DEFUN's.
3693
3694
3695 # Finally, this is the expansion that is picked up by
3696 # autoconf.  It tells the user to run autoupdate, and
3697 # then outputs the replacement expansion.  We do not care
3698 # about autoupdate's warning because that contains
3699 # information on what to do *after* running autoupdate.
3700
3701
3702 # This is what autoupdate's m4 run will expand.  It fires
3703 # the warning (with _au_warn_XXX), outputs it into the
3704 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3705 # the replacement expansion.
3706
3707
3708 # This is an auxiliary macro that is also run when
3709 # autoupdate runs m4.  It simply calls m4_warning, but
3710 # we need a wrapper so that each warning is emitted only
3711 # once.  We break the quoting in m4_warning's argument in
3712 # order to expand this macro's arguments, not AU_DEFUN's.
3713
3714
3715 # Finally, this is the expansion that is picked up by
3716 # autoconf.  It tells the user to run autoupdate, and
3717 # then outputs the replacement expansion.  We do not care
3718 # about autoupdate's warning because that contains
3719 # information on what to do *after* running autoupdate.
3720
3721
3722
3723
3724 # _LT_WITH_PIC([MODE])
3725 # --------------------
3726 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
3727 # LT_INIT options.
3728 # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
3729 # _LT_WITH_PIC
3730
3731
3732
3733
3734 # Old name:
3735 # This is what autoupdate's m4 run will expand.  It fires
3736 # the warning (with _au_warn_XXX), outputs it into the
3737 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3738 # the replacement expansion.
3739
3740
3741 # This is an auxiliary macro that is also run when
3742 # autoupdate runs m4.  It simply calls m4_warning, but
3743 # we need a wrapper so that each warning is emitted only
3744 # once.  We break the quoting in m4_warning's argument in
3745 # order to expand this macro's arguments, not AU_DEFUN's.
3746
3747
3748 # Finally, this is the expansion that is picked up by
3749 # autoconf.  It tells the user to run autoupdate, and
3750 # then outputs the replacement expansion.  We do not care
3751 # about autoupdate's warning because that contains
3752 # information on what to do *after* running autoupdate.
3753
3754
3755
3756 ## ----------------- ##
3757 ## LTDL_INIT Options ##
3758 ## ----------------- ##
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769 # ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
3770 #
3771 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3772 # Written by Gary V. Vaughan, 2004
3773 #
3774 # This file is free software; the Free Software Foundation gives
3775 # unlimited permission to copy and/or distribute it, with or without
3776 # modifications, as long as this notice is preserved.
3777
3778 # serial 6 ltsugar.m4
3779
3780 # This is to help aclocal find these macros, as it can't see m4_define.
3781
3782
3783
3784 # lt_join(SEP, ARG1, [ARG2...])
3785 # -----------------------------
3786 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3787 # associated separator.
3788 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3789 # versions in m4sugar had bugs.
3790
3791
3792
3793
3794 # lt_car(LIST)
3795 # lt_cdr(LIST)
3796 # ------------
3797 # Manipulate m4 lists.
3798 # These macros are necessary as long as will still need to support
3799 # Autoconf-2.59 which quotes differently.
3800
3801
3802
3803
3804
3805 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
3806 # ------------------------------------------
3807 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3808 # Note that neither SEPARATOR nor STRING are expanded; they are appended
3809 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3810 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
3811 # than defined and empty).
3812 #
3813 # This macro is needed until we can rely on Autoconf 2.62, since earlier
3814 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3815
3816
3817
3818
3819 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3820 # ----------------------------------------------------------
3821 # Produce a SEP delimited list of all paired combinations of elements of
3822 # PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
3823 # has the form PREFIXmINFIXSUFFIXn.
3824 # Needed until we can rely on m4_combine added in Autoconf 2.62.
3825
3826
3827
3828 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3829 # -----------------------------------------------------------------------
3830 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3831 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3832
3833
3834
3835 # lt_dict_add(DICT, KEY, VALUE)
3836 # -----------------------------
3837
3838
3839
3840 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3841 # --------------------------------------------
3842
3843
3844
3845 # lt_dict_fetch(DICT, KEY, [SUBKEY])
3846 # ----------------------------------
3847
3848
3849
3850 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3851 # -----------------------------------------------------------------
3852
3853
3854
3855 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3856 # --------------------------------------------------------------
3857
3858
3859 # ltversion.m4 -- version numbers                       -*- Autoconf -*-
3860 #
3861 #   Copyright (C) 2004 Free Software Foundation, Inc.
3862 #   Written by Scott James Remnant, 2004
3863 #
3864 # This file is free software; the Free Software Foundation gives
3865 # unlimited permission to copy and/or distribute it, with or without
3866 # modifications, as long as this notice is preserved.
3867
3868 # Generated from ltversion.in.
3869
3870 # serial 3134 ltversion.m4
3871 # This file is part of GNU Libtool
3872
3873
3874
3875
3876
3877
3878 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
3879 #
3880 #   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3881 #   Written by Scott James Remnant, 2004.
3882 #
3883 # This file is free software; the Free Software Foundation gives
3884 # unlimited permission to copy and/or distribute it, with or without
3885 # modifications, as long as this notice is preserved.
3886
3887 # serial 4 lt~obsolete.m4
3888
3889 # These exist entirely to fool aclocal when bootstrapping libtool.
3890 #
3891 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3892 # which have later been changed to m4_define as they aren't part of the
3893 # exported API, or moved to Autoconf or Automake where they belong.
3894 #
3895 # The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
3896 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3897 # using a macro with the same name in our local m4/libtool.m4 it'll
3898 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3899 # and doesn't know about Autoconf macros at all.)
3900 #
3901 # So we provide this file, which has a silly filename so it's always
3902 # included after everything else.  This provides aclocal with the
3903 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3904 # because those macros already exist, or will be overwritten later.
3905 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3906 #
3907 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3908 # Yes, that means every name once taken will need to remain here until
3909 # we give up compatibility with versions before 1.7, at which point
3910 # we need to keep only those names which we still refer to.
3911
3912 # This is to help aclocal find these macros, as it can't see m4_define.
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977 ##                                                          -*- Autoconf -*-
3978
3979 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3980 # Free Software Foundation, Inc.
3981 #
3982 # This file is free software; the Free Software Foundation
3983 # gives unlimited permission to copy and/or distribute it,
3984 # with or without modifications, as long as this notice is preserved.
3985
3986 # serial 8
3987
3988 # Based on depend.m4 from automake 1.9, modified for standalone use in
3989 # an environment where GNU make is required.
3990
3991 # ZW_PROG_COMPILER_DEPENDENCIES
3992 # -----------------------------
3993 # Variant of _AM_DEPENDENCIES which just does the dependency probe and
3994 # sets fooDEPMODE accordingly.  Cache-variable compatible with
3995 # original; not side-effect compatible.  As the users of this macro
3996 # may require accurate dependencies for correct builds, it does *not*
3997 # honor --disable-dependency-checking, and failure to detect a usable
3998 # method is an error.  depcomp is assumed to be located in
3999 # $ac_aux_dir.
4000 #
4001 # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
4002
4003
4004
4005 # AM_SET_DEPDIR
4006 # -------------
4007 # Choose a directory name for dependency files.
4008
4009
4010 # ZW_CREATE_DEPDIR
4011 # ----------------
4012 # As AM_SET_DEPDIR, but also create the directory at config.status time.
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079 # intl sister-directory configuration rules.
4080 #
4081
4082 # The idea behind this macro is that there's no need to repeat all the
4083 # autoconf probes done by the intl directory - it's already done them
4084 # for us.  In fact, there's no need even to look at the cache for the
4085 # answers.  All we need to do is nab a few pieces of information.
4086 # The intl directory is set up to make this easy, by generating a
4087 # small file which can be sourced as a shell script; then we produce
4088 # the necessary substitutions and definitions for this directory.
4089
4090
4091
4092 # Autoconf M4 include file defining utility macros for complex Canadian
4093 # cross builds.
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103 ####
4104 # _NCN_TOOL_PREFIXES:  Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
4105 # or AC_INIT.
4106 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
4107
4108 ####
4109 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4110 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
4111
4112
4113 ####
4114 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4115 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4116
4117
4118
4119 # Backported from Autoconf 2.5x; can go away when and if
4120 # we switch.  Put the OS path separator in $PATH_SEPARATOR.
4121
4122
4123
4124
4125
4126
4127
4128
4129 # ACX_HAVE_GCC_FOR_TARGET
4130 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4131
4132
4133 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4134 # Searching for installed target binutils.  We need to take extra care,
4135 # else we may find the wrong assembler, linker, etc., and lose.
4136 #
4137 # First try --with-build-time-tools, if specified.
4138 #
4139 # For build != host, we ask the installed GCC for the name of the tool it
4140 # uses, and accept it if it is an absolute path.  This is because the
4141 # only good choice for a compiler is the same GCC version that is being
4142 # installed (or we couldn't make target libraries), and we assume that
4143 # on the host system we'll have not only the same GCC version, but also
4144 # the same binutils version.
4145 #
4146 # For build == host, search the same directories that the installed
4147 # compiler will search.  We used to do this for the assembler, linker,
4148 # and nm only; for simplicity of configuration, however, we extend this
4149 # criterion to tools (such as ar and ranlib) that are never invoked by
4150 # the compiler, to avoid mismatches.
4151 #
4152 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
4153 # if build == target.  This makes the most sense only when bootstrapping,
4154 # but we also do so when build != host.  In this case, we hope that the
4155 # build and host systems will have similar contents of MD_EXEC_PREFIX.
4156 #
4157 # If we do not find a suitable binary, then try the user's path.
4158
4159
4160 ###
4161 # AC_PROG_CPP_WERROR
4162 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4163 # triggers warnings from the preprocessor.  Will be in autoconf 2.58.
4164 # For now, using this also overrides header checks to use only the
4165 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4166 # bit harder from here).
4167 # Eventually autoconf will default to checking headers with the compiler
4168 # instead, and we'll have to do this differently.
4169
4170 # AC_PROG_CPP_WERROR
4171
4172 # Test for GNAT.
4173 # We require the gnatbind & gnatmake programs, as well as a compiler driver
4174 # that understands Ada.  We use the user's CC setting, already found, and
4175 # possibly add $1 to the command-line parameters.
4176 #
4177 # Sets the shell variable have_gnat to yes or no as appropriate, and
4178 # substitutes GNATBIND and GNATMAKE.
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204 ac_ext=c
4205 ac_cpp='$CPP $CPPFLAGS'
4206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 if test -n "$ac_tool_prefix"; then
4210   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4211 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if ${ac_cv_prog_CC+:} false; then :
4215   $as_echo_n "(cached) " >&6
4216 else
4217   if test -n "$CC"; then
4218   ac_cv_prog_CC="$CC" # Let the user override the test.
4219 else
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4222 do
4223   IFS=$as_save_IFS
4224   test -z "$as_dir" && as_dir=.
4225     for ac_exec_ext in '' $ac_executable_extensions; do
4226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229     break 2
4230   fi
4231 done
4232   done
4233 IFS=$as_save_IFS
4234
4235 fi
4236 fi
4237 CC=$ac_cv_prog_CC
4238 if test -n "$CC"; then
4239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4240 $as_echo "$CC" >&6; }
4241 else
4242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4244 fi
4245
4246
4247 fi
4248 if test -z "$ac_cv_prog_CC"; then
4249   ac_ct_CC=$CC
4250   # Extract the first word of "gcc", so it can be a program name with args.
4251 set dummy gcc; ac_word=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4255   $as_echo_n "(cached) " >&6
4256 else
4257   if test -n "$ac_ct_CC"; then
4258   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4259 else
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4262 do
4263   IFS=$as_save_IFS
4264   test -z "$as_dir" && as_dir=.
4265     for ac_exec_ext in '' $ac_executable_extensions; do
4266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267     ac_cv_prog_ac_ct_CC="gcc"
4268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4269     break 2
4270   fi
4271 done
4272   done
4273 IFS=$as_save_IFS
4274
4275 fi
4276 fi
4277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4278 if test -n "$ac_ct_CC"; then
4279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4280 $as_echo "$ac_ct_CC" >&6; }
4281 else
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4284 fi
4285
4286   if test "x$ac_ct_CC" = x; then
4287     CC=""
4288   else
4289     case $cross_compiling:$ac_tool_warned in
4290 yes:)
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4293 ac_tool_warned=yes ;;
4294 esac
4295     CC=$ac_ct_CC
4296   fi
4297 else
4298   CC="$ac_cv_prog_CC"
4299 fi
4300
4301 if test -z "$CC"; then
4302           if test -n "$ac_tool_prefix"; then
4303     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4304 set dummy ${ac_tool_prefix}cc; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_CC+:} false; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310   if test -n "$CC"; then
4311   ac_cv_prog_CC="$CC" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316   IFS=$as_save_IFS
4317   test -z "$as_dir" && as_dir=.
4318     for ac_exec_ext in '' $ac_executable_extensions; do
4319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320     ac_cv_prog_CC="${ac_tool_prefix}cc"
4321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322     break 2
4323   fi
4324 done
4325   done
4326 IFS=$as_save_IFS
4327
4328 fi
4329 fi
4330 CC=$ac_cv_prog_CC
4331 if test -n "$CC"; then
4332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4333 $as_echo "$CC" >&6; }
4334 else
4335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4337 fi
4338
4339
4340   fi
4341 fi
4342 if test -z "$CC"; then
4343   # Extract the first word of "cc", so it can be a program name with args.
4344 set dummy cc; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_prog_CC+:} false; then :
4348   $as_echo_n "(cached) " >&6
4349 else
4350   if test -n "$CC"; then
4351   ac_cv_prog_CC="$CC" # Let the user override the test.
4352 else
4353   ac_prog_rejected=no
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH
4356 do
4357   IFS=$as_save_IFS
4358   test -z "$as_dir" && as_dir=.
4359     for ac_exec_ext in '' $ac_executable_extensions; do
4360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4361     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4362        ac_prog_rejected=yes
4363        continue
4364      fi
4365     ac_cv_prog_CC="cc"
4366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367     break 2
4368   fi
4369 done
4370   done
4371 IFS=$as_save_IFS
4372
4373 if test $ac_prog_rejected = yes; then
4374   # We found a bogon in the path, so make sure we never use it.
4375   set dummy $ac_cv_prog_CC
4376   shift
4377   if test $# != 0; then
4378     # We chose a different compiler from the bogus one.
4379     # However, it has the same basename, so the bogon will be chosen
4380     # first if we set CC to just the basename; use the full file name.
4381     shift
4382     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4383   fi
4384 fi
4385 fi
4386 fi
4387 CC=$ac_cv_prog_CC
4388 if test -n "$CC"; then
4389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4390 $as_echo "$CC" >&6; }
4391 else
4392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4393 $as_echo "no" >&6; }
4394 fi
4395
4396
4397 fi
4398 if test -z "$CC"; then
4399   if test -n "$ac_tool_prefix"; then
4400   for ac_prog in cl.exe
4401   do
4402     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if ${ac_cv_prog_CC+:} false; then :
4407   $as_echo_n "(cached) " >&6
4408 else
4409   if test -n "$CC"; then
4410   ac_cv_prog_CC="$CC" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415   IFS=$as_save_IFS
4416   test -z "$as_dir" && as_dir=.
4417     for ac_exec_ext in '' $ac_executable_extensions; do
4418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421     break 2
4422   fi
4423 done
4424   done
4425 IFS=$as_save_IFS
4426
4427 fi
4428 fi
4429 CC=$ac_cv_prog_CC
4430 if test -n "$CC"; then
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4432 $as_echo "$CC" >&6; }
4433 else
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438
4439     test -n "$CC" && break
4440   done
4441 fi
4442 if test -z "$CC"; then
4443   ac_ct_CC=$CC
4444   for ac_prog in cl.exe
4445 do
4446   # Extract the first word of "$ac_prog", so it can be a program name with args.
4447 set dummy $ac_prog; ac_word=$2
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449 $as_echo_n "checking for $ac_word... " >&6; }
4450 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4451   $as_echo_n "(cached) " >&6
4452 else
4453   if test -n "$ac_ct_CC"; then
4454   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459   IFS=$as_save_IFS
4460   test -z "$as_dir" && as_dir=.
4461     for ac_exec_ext in '' $ac_executable_extensions; do
4462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463     ac_cv_prog_ac_ct_CC="$ac_prog"
4464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465     break 2
4466   fi
4467 done
4468   done
4469 IFS=$as_save_IFS
4470
4471 fi
4472 fi
4473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4474 if test -n "$ac_ct_CC"; then
4475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4476 $as_echo "$ac_ct_CC" >&6; }
4477 else
4478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4480 fi
4481
4482
4483   test -n "$ac_ct_CC" && break
4484 done
4485
4486   if test "x$ac_ct_CC" = x; then
4487     CC=""
4488   else
4489     case $cross_compiling:$ac_tool_warned in
4490 yes:)
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4493 ac_tool_warned=yes ;;
4494 esac
4495     CC=$ac_ct_CC
4496   fi
4497 fi
4498
4499 fi
4500
4501
4502 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4504 as_fn_error $? "no acceptable C compiler found in \$PATH
4505 See \`config.log' for more details" "$LINENO" 5; }
4506
4507 # Provide some information about the compiler.
4508 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4509 set X $ac_compile
4510 ac_compiler=$2
4511 for ac_option in --version -v -V -qversion; do
4512   { { ac_try="$ac_compiler $ac_option >&5"
4513 case "(($ac_try" in
4514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515   *) ac_try_echo=$ac_try;;
4516 esac
4517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4518 $as_echo "$ac_try_echo"; } >&5
4519   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4520   ac_status=$?
4521   if test -s conftest.err; then
4522     sed '10a\
4523 ... rest of stderr output deleted ...
4524          10q' conftest.err >conftest.er1
4525     cat conftest.er1 >&5
4526   fi
4527   rm -f conftest.er1 conftest.err
4528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529   test $ac_status = 0; }
4530 done
4531
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h.  */
4534
4535 int
4536 main ()
4537 {
4538
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 ac_clean_files_save=$ac_clean_files
4544 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4545 # Try to create an executable without -o first, disregard a.out.
4546 # It will help us diagnose broken compilers, and finding out an intuition
4547 # of exeext.
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4549 $as_echo_n "checking whether the C compiler works... " >&6; }
4550 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4551
4552 # The possible output files:
4553 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4554
4555 ac_rmfiles=
4556 for ac_file in $ac_files
4557 do
4558   case $ac_file in
4559     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4560     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4561   esac
4562 done
4563 rm -f $ac_rmfiles
4564
4565 if { { ac_try="$ac_link_default"
4566 case "(($ac_try" in
4567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568   *) ac_try_echo=$ac_try;;
4569 esac
4570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571 $as_echo "$ac_try_echo"; } >&5
4572   (eval "$ac_link_default") 2>&5
4573   ac_status=$?
4574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4575   test $ac_status = 0; }; then :
4576   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4577 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4578 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4579 # so that the user can short-circuit this test for compilers unknown to
4580 # Autoconf.
4581 for ac_file in $ac_files ''
4582 do
4583   test -f "$ac_file" || continue
4584   case $ac_file in
4585     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4586         ;;
4587     [ab].out )
4588         # We found the default executable, but exeext='' is most
4589         # certainly right.
4590         break;;
4591     *.* )
4592         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4593         then :; else
4594            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4595         fi
4596         # We set ac_cv_exeext here because the later test for it is not
4597         # safe: cross compilers may not add the suffix if given an `-o'
4598         # argument, so we may need to know it at that point already.
4599         # Even if this section looks crufty: it has the advantage of
4600         # actually working.
4601         break;;
4602     * )
4603         break;;
4604   esac
4605 done
4606 test "$ac_cv_exeext" = no && ac_cv_exeext=
4607
4608 else
4609   ac_file=''
4610 fi
4611 if test -z "$ac_file"; then :
4612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4614 $as_echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4616
4617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4619 as_fn_error 77 "C compiler cannot create executables
4620 See \`config.log' for more details" "$LINENO" 5; }
4621 else
4622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4623 $as_echo "yes" >&6; }
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4626 $as_echo_n "checking for C compiler default output file name... " >&6; }
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4628 $as_echo "$ac_file" >&6; }
4629 ac_exeext=$ac_cv_exeext
4630
4631 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4632 ac_clean_files=$ac_clean_files_save
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4634 $as_echo_n "checking for suffix of executables... " >&6; }
4635 if { { ac_try="$ac_link"
4636 case "(($ac_try" in
4637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638   *) ac_try_echo=$ac_try;;
4639 esac
4640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4641 $as_echo "$ac_try_echo"; } >&5
4642   (eval "$ac_link") 2>&5
4643   ac_status=$?
4644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4645   test $ac_status = 0; }; then :
4646   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4647 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4648 # work properly (i.e., refer to `conftest.exe'), while it won't with
4649 # `rm'.
4650 for ac_file in conftest.exe conftest conftest.*; do
4651   test -f "$ac_file" || continue
4652   case $ac_file in
4653     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4654     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4655           break;;
4656     * ) break;;
4657   esac
4658 done
4659 else
4660   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4662 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4663 See \`config.log' for more details" "$LINENO" 5; }
4664 fi
4665 rm -f conftest conftest$ac_cv_exeext
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4667 $as_echo "$ac_cv_exeext" >&6; }
4668
4669 rm -f conftest.$ac_ext
4670 EXEEXT=$ac_cv_exeext
4671 ac_exeext=$EXEEXT
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h.  */
4674 #include <stdio.h>
4675 int
4676 main ()
4677 {
4678 FILE *f = fopen ("conftest.out", "w");
4679  return ferror (f) || fclose (f) != 0;
4680
4681   ;
4682   return 0;
4683 }
4684 _ACEOF
4685 ac_clean_files="$ac_clean_files conftest.out"
4686 # Check that the compiler produces executables we can run.  If not, either
4687 # the compiler is broken, or we cross compile.
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4689 $as_echo_n "checking whether we are cross compiling... " >&6; }
4690 if test "$cross_compiling" != yes; then
4691   { { ac_try="$ac_link"
4692 case "(($ac_try" in
4693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694   *) ac_try_echo=$ac_try;;
4695 esac
4696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4697 $as_echo "$ac_try_echo"; } >&5
4698   (eval "$ac_link") 2>&5
4699   ac_status=$?
4700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4701   test $ac_status = 0; }
4702   if { ac_try='./conftest$ac_cv_exeext'
4703   { { case "(($ac_try" in
4704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705   *) ac_try_echo=$ac_try;;
4706 esac
4707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4708 $as_echo "$ac_try_echo"; } >&5
4709   (eval "$ac_try") 2>&5
4710   ac_status=$?
4711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4712   test $ac_status = 0; }; }; then
4713     cross_compiling=no
4714   else
4715     if test "$cross_compiling" = maybe; then
4716         cross_compiling=yes
4717     else
4718         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4720 as_fn_error $? "cannot run C compiled programs.
4721 If you meant to cross compile, use \`--host'.
4722 See \`config.log' for more details" "$LINENO" 5; }
4723     fi
4724   fi
4725 fi
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4727 $as_echo "$cross_compiling" >&6; }
4728
4729 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4730 ac_clean_files=$ac_clean_files_save
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4732 $as_echo_n "checking for suffix of object files... " >&6; }
4733 if ${ac_cv_objext+:} false; then :
4734   $as_echo_n "(cached) " >&6
4735 else
4736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h.  */
4738
4739 int
4740 main ()
4741 {
4742
4743   ;
4744   return 0;
4745 }
4746 _ACEOF
4747 rm -f conftest.o conftest.obj
4748 if { { ac_try="$ac_compile"
4749 case "(($ac_try" in
4750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751   *) ac_try_echo=$ac_try;;
4752 esac
4753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4754 $as_echo "$ac_try_echo"; } >&5
4755   (eval "$ac_compile") 2>&5
4756   ac_status=$?
4757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4758   test $ac_status = 0; }; then :
4759   for ac_file in conftest.o conftest.obj conftest.*; do
4760   test -f "$ac_file" || continue;
4761   case $ac_file in
4762     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4763     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4764        break;;
4765   esac
4766 done
4767 else
4768   $as_echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4770
4771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4773 as_fn_error $? "cannot compute suffix of object files: cannot compile
4774 See \`config.log' for more details" "$LINENO" 5; }
4775 fi
4776 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4777 fi
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4779 $as_echo "$ac_cv_objext" >&6; }
4780 OBJEXT=$ac_cv_objext
4781 ac_objext=$OBJEXT
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4783 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4784 if ${ac_cv_c_compiler_gnu+:} false; then :
4785   $as_echo_n "(cached) " >&6
4786 else
4787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h.  */
4789
4790 int
4791 main ()
4792 {
4793 #ifndef __GNUC__
4794        choke me
4795 #endif
4796
4797   ;
4798   return 0;
4799 }
4800 _ACEOF
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802   ac_compiler_gnu=yes
4803 else
4804   ac_compiler_gnu=no
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4808
4809 fi
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4811 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4812 if test $ac_compiler_gnu = yes; then
4813   GCC=yes
4814 else
4815   GCC=
4816 fi
4817 ac_test_CFLAGS=${CFLAGS+set}
4818 ac_save_CFLAGS=$CFLAGS
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4820 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4821 if ${ac_cv_prog_cc_g+:} false; then :
4822   $as_echo_n "(cached) " >&6
4823 else
4824   ac_save_c_werror_flag=$ac_c_werror_flag
4825    ac_c_werror_flag=yes
4826    ac_cv_prog_cc_g=no
4827    CFLAGS="-g"
4828    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h.  */
4830
4831 int
4832 main ()
4833 {
4834
4835   ;
4836   return 0;
4837 }
4838 _ACEOF
4839 if ac_fn_c_try_compile "$LINENO"; then :
4840   ac_cv_prog_cc_g=yes
4841 else
4842   CFLAGS=""
4843       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h.  */
4845
4846 int
4847 main ()
4848 {
4849
4850   ;
4851   return 0;
4852 }
4853 _ACEOF
4854 if ac_fn_c_try_compile "$LINENO"; then :
4855
4856 else
4857   ac_c_werror_flag=$ac_save_c_werror_flag
4858          CFLAGS="-g"
4859          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h.  */
4861
4862 int
4863 main ()
4864 {
4865
4866   ;
4867   return 0;
4868 }
4869 _ACEOF
4870 if ac_fn_c_try_compile "$LINENO"; then :
4871   ac_cv_prog_cc_g=yes
4872 fi
4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874 fi
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 fi
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878    ac_c_werror_flag=$ac_save_c_werror_flag
4879 fi
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4881 $as_echo "$ac_cv_prog_cc_g" >&6; }
4882 if test "$ac_test_CFLAGS" = set; then
4883   CFLAGS=$ac_save_CFLAGS
4884 elif test $ac_cv_prog_cc_g = yes; then
4885   if test "$GCC" = yes; then
4886     CFLAGS="-g -O2"
4887   else
4888     CFLAGS="-g"
4889   fi
4890 else
4891   if test "$GCC" = yes; then
4892     CFLAGS="-O2"
4893   else
4894     CFLAGS=
4895   fi
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4898 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4899 if ${ac_cv_prog_cc_c89+:} false; then :
4900   $as_echo_n "(cached) " >&6
4901 else
4902   ac_cv_prog_cc_c89=no
4903 ac_save_CC=$CC
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h.  */
4906 #include <stdarg.h>
4907 #include <stdio.h>
4908 struct stat;
4909 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4910 struct buf { int x; };
4911 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4912 static char *e (p, i)
4913      char **p;
4914      int i;
4915 {
4916   return p[i];
4917 }
4918 static char *f (char * (*g) (char **, int), char **p, ...)
4919 {
4920   char *s;
4921   va_list v;
4922   va_start (v,p);
4923   s = g (p, va_arg (v,int));
4924   va_end (v);
4925   return s;
4926 }
4927
4928 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4929    function prototypes and stuff, but not '\xHH' hex character constants.
4930    These don't provoke an error unfortunately, instead are silently treated
4931    as 'x'.  The following induces an error, until -std is added to get
4932    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4933    array size at least.  It's necessary to write '\x00'==0 to get something
4934    that's true only with -std.  */
4935 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4936
4937 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4938    inside strings and character constants.  */
4939 #define FOO(x) 'x'
4940 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4941
4942 int test (int i, double x);
4943 struct s1 {int (*f) (int a);};
4944 struct s2 {int (*f) (double a);};
4945 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4946 int argc;
4947 char **argv;
4948 int
4949 main ()
4950 {
4951 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4952   ;
4953   return 0;
4954 }
4955 _ACEOF
4956 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4957         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4958 do
4959   CC="$ac_save_CC $ac_arg"
4960   if ac_fn_c_try_compile "$LINENO"; then :
4961   ac_cv_prog_cc_c89=$ac_arg
4962 fi
4963 rm -f core conftest.err conftest.$ac_objext
4964   test "x$ac_cv_prog_cc_c89" != "xno" && break
4965 done
4966 rm -f conftest.$ac_ext
4967 CC=$ac_save_CC
4968
4969 fi
4970 # AC_CACHE_VAL
4971 case "x$ac_cv_prog_cc_c89" in
4972   x)
4973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4974 $as_echo "none needed" >&6; } ;;
4975   xno)
4976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4977 $as_echo "unsupported" >&6; } ;;
4978   *)
4979     CC="$CC $ac_cv_prog_cc_c89"
4980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4981 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4982 esac
4983 if test "x$ac_cv_prog_cc_c89" != xno; then :
4984
4985 fi
4986
4987 ac_ext=c
4988 ac_cpp='$CPP $CPPFLAGS'
4989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4992
4993 ac_aux_dir=
4994 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4995   if test -f "$ac_dir/install-sh"; then
4996     ac_aux_dir=$ac_dir
4997     ac_install_sh="$ac_aux_dir/install-sh -c"
4998     break
4999   elif test -f "$ac_dir/install.sh"; then
5000     ac_aux_dir=$ac_dir
5001     ac_install_sh="$ac_aux_dir/install.sh -c"
5002     break
5003   elif test -f "$ac_dir/shtool"; then
5004     ac_aux_dir=$ac_dir
5005     ac_install_sh="$ac_aux_dir/shtool install -c"
5006     break
5007   fi
5008 done
5009 if test -z "$ac_aux_dir"; then
5010   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5011 fi
5012
5013 # These three variables are undocumented and unsupported,
5014 # and are intended to be withdrawn in a future Autoconf release.
5015 # They can cause serious problems if a builder's source tree is in a directory
5016 # whose full name contains unusual characters.
5017 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5018 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5019 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5020
5021
5022 # Make sure we can run config.sub.
5023 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5024   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5025
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5027 $as_echo_n "checking build system type... " >&6; }
5028 if ${ac_cv_build+:} false; then :
5029   $as_echo_n "(cached) " >&6
5030 else
5031   ac_build_alias=$build_alias
5032 test "x$ac_build_alias" = x &&
5033   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5034 test "x$ac_build_alias" = x &&
5035   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5036 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5037   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5038
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5041 $as_echo "$ac_cv_build" >&6; }
5042 case $ac_cv_build in
5043 *-*-*) ;;
5044 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5045 esac
5046 build=$ac_cv_build
5047 ac_save_IFS=$IFS; IFS='-'
5048 set x $ac_cv_build
5049 shift
5050 build_cpu=$1
5051 build_vendor=$2
5052 shift; shift
5053 # Remember, the first character of IFS is used to create $*,
5054 # except with old shells:
5055 build_os=$*
5056 IFS=$ac_save_IFS
5057 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5058
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5061 $as_echo_n "checking host system type... " >&6; }
5062 if ${ac_cv_host+:} false; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065   if test "x$host_alias" = x; then
5066   ac_cv_host=$ac_cv_build
5067 else
5068   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5069     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5070 fi
5071
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5074 $as_echo "$ac_cv_host" >&6; }
5075 case $ac_cv_host in
5076 *-*-*) ;;
5077 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5078 esac
5079 host=$ac_cv_host
5080 ac_save_IFS=$IFS; IFS='-'
5081 set x $ac_cv_host
5082 shift
5083 host_cpu=$1
5084 host_vendor=$2
5085 shift; shift
5086 # Remember, the first character of IFS is used to create $*,
5087 # except with old shells:
5088 host_os=$*
5089 IFS=$ac_save_IFS
5090 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5091
5092
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5094 $as_echo_n "checking target system type... " >&6; }
5095 if ${ac_cv_target+:} false; then :
5096   $as_echo_n "(cached) " >&6
5097 else
5098   if test "x$target_alias" = x; then
5099   ac_cv_target=$ac_cv_host
5100 else
5101   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5102     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5103 fi
5104
5105 fi
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5107 $as_echo "$ac_cv_target" >&6; }
5108 case $ac_cv_target in
5109 *-*-*) ;;
5110 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5111 esac
5112 target=$ac_cv_target
5113 ac_save_IFS=$IFS; IFS='-'
5114 set x $ac_cv_target
5115 shift
5116 target_cpu=$1
5117 target_vendor=$2
5118 shift; shift
5119 # Remember, the first character of IFS is used to create $*,
5120 # except with old shells:
5121 target_os=$*
5122 IFS=$ac_save_IFS
5123 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5124
5125
5126 # The aliases save the names the user supplied, while $host etc.
5127 # will get canonicalized.
5128 test -n "$target_alias" &&
5129   test "$program_prefix$program_suffix$program_transform_name" = \
5130     NONENONEs,x,x, &&
5131   program_prefix=${target_alias}-
5132
5133 ac_ext=c
5134 ac_cpp='$CPP $CPPFLAGS'
5135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5139 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5140 # On Suns, sometimes $CPP names a directory.
5141 if test -n "$CPP" && test -d "$CPP"; then
5142   CPP=
5143 fi
5144 if test -z "$CPP"; then
5145   if ${ac_cv_prog_CPP+:} false; then :
5146   $as_echo_n "(cached) " >&6
5147 else
5148       # Double quotes because CPP needs to be expanded
5149     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5150     do
5151       ac_preproc_ok=false
5152 for ac_c_preproc_warn_flag in '' yes
5153 do
5154   # Use a header file that comes with gcc, so configuring glibc
5155   # with a fresh cross-compiler works.
5156   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5157   # <limits.h> exists even on freestanding compilers.
5158   # On the NeXT, cc -E runs the code through the compiler's parser,
5159   # not just through cpp. "Syntax error" is here to catch this case.
5160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h.  */
5162 #ifdef __STDC__
5163 # include <limits.h>
5164 #else
5165 # include <assert.h>
5166 #endif
5167                      Syntax error
5168 _ACEOF
5169 if ac_fn_c_try_cpp "$LINENO"; then :
5170
5171 else
5172   # Broken: fails on valid input.
5173 continue
5174 fi
5175 rm -f conftest.err conftest.i conftest.$ac_ext
5176
5177   # OK, works on sane cases.  Now check whether nonexistent headers
5178   # can be detected and how.
5179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h.  */
5181 #include <ac_nonexistent.h>
5182 _ACEOF
5183 if ac_fn_c_try_cpp "$LINENO"; then :
5184   # Broken: success on invalid input.
5185 continue
5186 else
5187   # Passes both tests.
5188 ac_preproc_ok=:
5189 break
5190 fi
5191 rm -f conftest.err conftest.i conftest.$ac_ext
5192
5193 done
5194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5195 rm -f conftest.i conftest.err conftest.$ac_ext
5196 if $ac_preproc_ok; then :
5197   break
5198 fi
5199
5200     done
5201     ac_cv_prog_CPP=$CPP
5202
5203 fi
5204   CPP=$ac_cv_prog_CPP
5205 else
5206   ac_cv_prog_CPP=$CPP
5207 fi
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5209 $as_echo "$CPP" >&6; }
5210 ac_preproc_ok=false
5211 for ac_c_preproc_warn_flag in '' yes
5212 do
5213   # Use a header file that comes with gcc, so configuring glibc
5214   # with a fresh cross-compiler works.
5215   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5216   # <limits.h> exists even on freestanding compilers.
5217   # On the NeXT, cc -E runs the code through the compiler's parser,
5218   # not just through cpp. "Syntax error" is here to catch this case.
5219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h.  */
5221 #ifdef __STDC__
5222 # include <limits.h>
5223 #else
5224 # include <assert.h>
5225 #endif
5226                      Syntax error
5227 _ACEOF
5228 if ac_fn_c_try_cpp "$LINENO"; then :
5229
5230 else
5231   # Broken: fails on valid input.
5232 continue
5233 fi
5234 rm -f conftest.err conftest.i conftest.$ac_ext
5235
5236   # OK, works on sane cases.  Now check whether nonexistent headers
5237   # can be detected and how.
5238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h.  */
5240 #include <ac_nonexistent.h>
5241 _ACEOF
5242 if ac_fn_c_try_cpp "$LINENO"; then :
5243   # Broken: success on invalid input.
5244 continue
5245 else
5246   # Passes both tests.
5247 ac_preproc_ok=:
5248 break
5249 fi
5250 rm -f conftest.err conftest.i conftest.$ac_ext
5251
5252 done
5253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5254 rm -f conftest.i conftest.err conftest.$ac_ext
5255 if $ac_preproc_ok; then :
5256
5257 else
5258   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5260 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5261 See \`config.log' for more details" "$LINENO" 5; }
5262 fi
5263
5264 ac_ext=c
5265 ac_cpp='$CPP $CPPFLAGS'
5266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5269
5270
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5272 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5273 if ${ac_cv_path_GREP+:} false; then :
5274   $as_echo_n "(cached) " >&6
5275 else
5276   if test -z "$GREP"; then
5277   ac_path_GREP_found=false
5278   # Loop through the user's path and test for each of PROGNAME-LIST
5279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5281 do
5282   IFS=$as_save_IFS
5283   test -z "$as_dir" && as_dir=.
5284     for ac_prog in grep ggrep; do
5285     for ac_exec_ext in '' $ac_executable_extensions; do
5286       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5287       as_fn_executable_p "$ac_path_GREP" || continue
5288 # Check for GNU ac_path_GREP and select it if it is found.
5289   # Check for GNU $ac_path_GREP
5290 case `"$ac_path_GREP" --version 2>&1` in
5291 *GNU*)
5292   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5293 *)
5294   ac_count=0
5295   $as_echo_n 0123456789 >"conftest.in"
5296   while :
5297   do
5298     cat "conftest.in" "conftest.in" >"conftest.tmp"
5299     mv "conftest.tmp" "conftest.in"
5300     cp "conftest.in" "conftest.nl"
5301     $as_echo 'GREP' >> "conftest.nl"
5302     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5303     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5304     as_fn_arith $ac_count + 1 && ac_count=$as_val
5305     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5306       # Best one so far, save it but keep looking for a better one
5307       ac_cv_path_GREP="$ac_path_GREP"
5308       ac_path_GREP_max=$ac_count
5309     fi
5310     # 10*(2^10) chars as input seems more than enough
5311     test $ac_count -gt 10 && break
5312   done
5313   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5314 esac
5315
5316       $ac_path_GREP_found && break 3
5317     done
5318   done
5319   done
5320 IFS=$as_save_IFS
5321   if test -z "$ac_cv_path_GREP"; then
5322     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5323   fi
5324 else
5325   ac_cv_path_GREP=$GREP
5326 fi
5327
5328 fi
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5330 $as_echo "$ac_cv_path_GREP" >&6; }
5331  GREP="$ac_cv_path_GREP"
5332
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5335 $as_echo_n "checking for egrep... " >&6; }
5336 if ${ac_cv_path_EGREP+:} false; then :
5337   $as_echo_n "(cached) " >&6
5338 else
5339   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5340    then ac_cv_path_EGREP="$GREP -E"
5341    else
5342      if test -z "$EGREP"; then
5343   ac_path_EGREP_found=false
5344   # Loop through the user's path and test for each of PROGNAME-LIST
5345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5347 do
5348   IFS=$as_save_IFS
5349   test -z "$as_dir" && as_dir=.
5350     for ac_prog in egrep; do
5351     for ac_exec_ext in '' $ac_executable_extensions; do
5352       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5353       as_fn_executable_p "$ac_path_EGREP" || continue
5354 # Check for GNU ac_path_EGREP and select it if it is found.
5355   # Check for GNU $ac_path_EGREP
5356 case `"$ac_path_EGREP" --version 2>&1` in
5357 *GNU*)
5358   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5359 *)
5360   ac_count=0
5361   $as_echo_n 0123456789 >"conftest.in"
5362   while :
5363   do
5364     cat "conftest.in" "conftest.in" >"conftest.tmp"
5365     mv "conftest.tmp" "conftest.in"
5366     cp "conftest.in" "conftest.nl"
5367     $as_echo 'EGREP' >> "conftest.nl"
5368     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5369     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5370     as_fn_arith $ac_count + 1 && ac_count=$as_val
5371     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5372       # Best one so far, save it but keep looking for a better one
5373       ac_cv_path_EGREP="$ac_path_EGREP"
5374       ac_path_EGREP_max=$ac_count
5375     fi
5376     # 10*(2^10) chars as input seems more than enough
5377     test $ac_count -gt 10 && break
5378   done
5379   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5380 esac
5381
5382       $ac_path_EGREP_found && break 3
5383     done
5384   done
5385   done
5386 IFS=$as_save_IFS
5387   if test -z "$ac_cv_path_EGREP"; then
5388     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5389   fi
5390 else
5391   ac_cv_path_EGREP=$EGREP
5392 fi
5393
5394    fi
5395 fi
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5397 $as_echo "$ac_cv_path_EGREP" >&6; }
5398  EGREP="$ac_cv_path_EGREP"
5399
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5402 $as_echo_n "checking for ANSI C header files... " >&6; }
5403 if ${ac_cv_header_stdc+:} false; then :
5404   $as_echo_n "(cached) " >&6
5405 else
5406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h.  */
5408 #include <stdlib.h>
5409 #include <stdarg.h>
5410 #include <string.h>
5411 #include <float.h>
5412
5413 int
5414 main ()
5415 {
5416
5417   ;
5418   return 0;
5419 }
5420 _ACEOF
5421 if ac_fn_c_try_compile "$LINENO"; then :
5422   ac_cv_header_stdc=yes
5423 else
5424   ac_cv_header_stdc=no
5425 fi
5426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427
5428 if test $ac_cv_header_stdc = yes; then
5429   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h.  */
5432 #include <string.h>
5433
5434 _ACEOF
5435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5436   $EGREP "memchr" >/dev/null 2>&1; then :
5437
5438 else
5439   ac_cv_header_stdc=no
5440 fi
5441 rm -f conftest*
5442
5443 fi
5444
5445 if test $ac_cv_header_stdc = yes; then
5446   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h.  */
5449 #include <stdlib.h>
5450
5451 _ACEOF
5452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453   $EGREP "free" >/dev/null 2>&1; then :
5454
5455 else
5456   ac_cv_header_stdc=no
5457 fi
5458 rm -f conftest*
5459
5460 fi
5461
5462 if test $ac_cv_header_stdc = yes; then
5463   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5464   if test "$cross_compiling" = yes; then :
5465   :
5466 else
5467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h.  */
5469 #include <ctype.h>
5470 #include <stdlib.h>
5471 #if ((' ' & 0x0FF) == 0x020)
5472 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5473 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5474 #else
5475 # define ISLOWER(c) \
5476                    (('a' <= (c) && (c) <= 'i') \
5477                      || ('j' <= (c) && (c) <= 'r') \
5478                      || ('s' <= (c) && (c) <= 'z'))
5479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5480 #endif
5481
5482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5483 int
5484 main ()
5485 {
5486   int i;
5487   for (i = 0; i < 256; i++)
5488     if (XOR (islower (i), ISLOWER (i))
5489         || toupper (i) != TOUPPER (i))
5490       return 2;
5491   return 0;
5492 }
5493 _ACEOF
5494 if ac_fn_c_try_run "$LINENO"; then :
5495
5496 else
5497   ac_cv_header_stdc=no
5498 fi
5499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5500   conftest.$ac_objext conftest.beam conftest.$ac_ext
5501 fi
5502
5503 fi
5504 fi
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5506 $as_echo "$ac_cv_header_stdc" >&6; }
5507 if test $ac_cv_header_stdc = yes; then
5508
5509 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5510
5511 fi
5512
5513 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5514 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5515                   inttypes.h stdint.h unistd.h
5516 do :
5517   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5518 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5519 "
5520 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5521   cat >>confdefs.h <<_ACEOF
5522 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5523 _ACEOF
5524
5525 fi
5526
5527 done
5528
5529
5530
5531   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5532 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5533   MINIX=yes
5534 else
5535   MINIX=
5536 fi
5537
5538
5539   if test "$MINIX" = yes; then
5540
5541 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5542
5543
5544 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5545
5546
5547 $as_echo "#define _MINIX 1" >>confdefs.h
5548
5549   fi
5550
5551
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5553 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5554 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5555   $as_echo_n "(cached) " >&6
5556 else
5557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h.  */
5559
5560 #         define __EXTENSIONS__ 1
5561           $ac_includes_default
5562 int
5563 main ()
5564 {
5565
5566   ;
5567   return 0;
5568 }
5569 _ACEOF
5570 if ac_fn_c_try_compile "$LINENO"; then :
5571   ac_cv_safe_to_define___extensions__=yes
5572 else
5573   ac_cv_safe_to_define___extensions__=no
5574 fi
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5578 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5579   test $ac_cv_safe_to_define___extensions__ = yes &&
5580     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5581
5582   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5583
5584   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5585
5586   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5587
5588   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5589
5590
5591 test "$program_prefix" != NONE &&
5592   program_transform_name="s&^&$program_prefix&;$program_transform_name"
5593 # Use a double $ so make ignores it.
5594 test "$program_suffix" != NONE &&
5595   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5596 # Double any \ or $.
5597 # By default was `s,x,x', remove it if useless.
5598 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5599 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5600
5601 # Find a good install program.  We prefer a C program (faster),
5602 # so one script is as good as another.  But avoid the broken or
5603 # incompatible versions:
5604 # SysV /etc/install, /usr/sbin/install
5605 # SunOS /usr/etc/install
5606 # IRIX /sbin/install
5607 # AIX /bin/install
5608 # AmigaOS /C/install, which installs bootblocks on floppy discs
5609 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5612 # OS/2's system install, which has a completely different semantic
5613 # ./install, which can be erroneously created by make from ./install.sh.
5614 # Reject install programs that cannot install multiple files.
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5616 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5617 if test -z "$INSTALL"; then
5618 if ${ac_cv_path_install+:} false; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624   IFS=$as_save_IFS
5625   test -z "$as_dir" && as_dir=.
5626     # Account for people who put trailing slashes in PATH elements.
5627 case $as_dir/ in #((
5628   ./ | .// | /[cC]/* | \
5629   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5630   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5631   /usr/ucb/* ) ;;
5632   *)
5633     # OSF1 and SCO ODT 3.0 have their own names for install.
5634     # Don't use installbsd from OSF since it installs stuff as root
5635     # by default.
5636     for ac_prog in ginstall scoinst install; do
5637       for ac_exec_ext in '' $ac_executable_extensions; do
5638         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5639           if test $ac_prog = install &&
5640             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5641             # AIX install.  It has an incompatible calling convention.
5642             :
5643           elif test $ac_prog = install &&
5644             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5645             # program-specific install script used by HP pwplus--don't use.
5646             :
5647           else
5648             rm -rf conftest.one conftest.two conftest.dir
5649             echo one > conftest.one
5650             echo two > conftest.two
5651             mkdir conftest.dir
5652             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5653               test -s conftest.one && test -s conftest.two &&
5654               test -s conftest.dir/conftest.one &&
5655               test -s conftest.dir/conftest.two
5656             then
5657               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5658               break 3
5659             fi
5660           fi
5661         fi
5662       done
5663     done
5664     ;;
5665 esac
5666
5667   done
5668 IFS=$as_save_IFS
5669
5670 rm -rf conftest.one conftest.two conftest.dir
5671
5672 fi
5673   if test "${ac_cv_path_install+set}" = set; then
5674     INSTALL=$ac_cv_path_install
5675   else
5676     # As a last resort, use the slow shell script.  Don't cache a
5677     # value for INSTALL within a source directory, because that will
5678     # break other packages using the cache if that directory is
5679     # removed, or if the value is a relative name.
5680     INSTALL=$ac_install_sh
5681   fi
5682 fi
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5684 $as_echo "$INSTALL" >&6; }
5685
5686 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5687 # It thinks the first close brace ends the variable substitution.
5688 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5689
5690 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5691
5692 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5693
5694 rm -rf .tst 2>/dev/null
5695 mkdir .tst 2>/dev/null
5696 if test -d .tst; then
5697   am__leading_dot=.
5698 else
5699   am__leading_dot=_
5700 fi
5701 rmdir .tst 2>/dev/null
5702
5703 DEPDIR="${am__leading_dot}deps"
5704
5705 case `pwd` in
5706   *\ * | *\     *)
5707     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5708 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5709 esac
5710
5711
5712
5713 macro_version='2.2.7a'
5714 macro_revision='1.3134'
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728 ltmain="$ac_aux_dir/ltmain.sh"
5729
5730 # Backslashify metacharacters that are still active within
5731 # double-quoted strings.
5732 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5733
5734 # Same as above, but do not quote variable references.
5735 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5736
5737 # Sed substitution to delay expansion of an escaped shell variable in a
5738 # double_quote_subst'ed string.
5739 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5740
5741 # Sed substitution to delay expansion of an escaped single quote.
5742 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5743
5744 # Sed substitution to avoid accidental globbing in evaled expressions
5745 no_glob_subst='s/\*/\\\*/g'
5746
5747 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5748 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5749 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5750
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5752 $as_echo_n "checking how to print strings... " >&6; }
5753 # Test print first, because it will be a builtin if present.
5754 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5755    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5756   ECHO='print -r --'
5757 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5758   ECHO='printf %s\n'
5759 else
5760   # Use this function as a fallback that always works.
5761   func_fallback_echo ()
5762   {
5763     eval 'cat <<_LTECHO_EOF
5764 $1
5765 _LTECHO_EOF'
5766   }
5767   ECHO='func_fallback_echo'
5768 fi
5769
5770 # func_echo_all arg...
5771 # Invoke $ECHO with all args, space-separated.
5772 func_echo_all ()
5773 {
5774     $ECHO ""
5775 }
5776
5777 case "$ECHO" in
5778   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5779 $as_echo "printf" >&6; } ;;
5780   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5781 $as_echo "print -r" >&6; } ;;
5782   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5783 $as_echo "cat" >&6; } ;;
5784 esac
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5800 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5801 if ${ac_cv_path_SED+:} false; then :
5802   $as_echo_n "(cached) " >&6
5803 else
5804             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5805      for ac_i in 1 2 3 4 5 6 7; do
5806        ac_script="$ac_script$as_nl$ac_script"
5807      done
5808      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5809      { ac_script=; unset ac_script;}
5810      if test -z "$SED"; then
5811   ac_path_SED_found=false
5812   # Loop through the user's path and test for each of PROGNAME-LIST
5813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816   IFS=$as_save_IFS
5817   test -z "$as_dir" && as_dir=.
5818     for ac_prog in sed gsed; do
5819     for ac_exec_ext in '' $ac_executable_extensions; do
5820       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5821       as_fn_executable_p "$ac_path_SED" || continue
5822 # Check for GNU ac_path_SED and select it if it is found.
5823   # Check for GNU $ac_path_SED
5824 case `"$ac_path_SED" --version 2>&1` in
5825 *GNU*)
5826   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5827 *)
5828   ac_count=0
5829   $as_echo_n 0123456789 >"conftest.in"
5830   while :
5831   do
5832     cat "conftest.in" "conftest.in" >"conftest.tmp"
5833     mv "conftest.tmp" "conftest.in"
5834     cp "conftest.in" "conftest.nl"
5835     $as_echo '' >> "conftest.nl"
5836     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5837     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5838     as_fn_arith $ac_count + 1 && ac_count=$as_val
5839     if test $ac_count -gt ${ac_path_SED_max-0}; then
5840       # Best one so far, save it but keep looking for a better one
5841       ac_cv_path_SED="$ac_path_SED"
5842       ac_path_SED_max=$ac_count
5843     fi
5844     # 10*(2^10) chars as input seems more than enough
5845     test $ac_count -gt 10 && break
5846   done
5847   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5848 esac
5849
5850       $ac_path_SED_found && break 3
5851     done
5852   done
5853   done
5854 IFS=$as_save_IFS
5855   if test -z "$ac_cv_path_SED"; then
5856     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5857   fi
5858 else
5859   ac_cv_path_SED=$SED
5860 fi
5861
5862 fi
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5864 $as_echo "$ac_cv_path_SED" >&6; }
5865  SED="$ac_cv_path_SED"
5866   rm -f conftest.sed
5867
5868 test -z "$SED" && SED=sed
5869 Xsed="$SED -e 1s/^X//"
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5882 $as_echo_n "checking for fgrep... " >&6; }
5883 if ${ac_cv_path_FGREP+:} false; then :
5884   $as_echo_n "(cached) " >&6
5885 else
5886   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5887    then ac_cv_path_FGREP="$GREP -F"
5888    else
5889      if test -z "$FGREP"; then
5890   ac_path_FGREP_found=false
5891   # Loop through the user's path and test for each of PROGNAME-LIST
5892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5894 do
5895   IFS=$as_save_IFS
5896   test -z "$as_dir" && as_dir=.
5897     for ac_prog in fgrep; do
5898     for ac_exec_ext in '' $ac_executable_extensions; do
5899       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5900       as_fn_executable_p "$ac_path_FGREP" || continue
5901 # Check for GNU ac_path_FGREP and select it if it is found.
5902   # Check for GNU $ac_path_FGREP
5903 case `"$ac_path_FGREP" --version 2>&1` in
5904 *GNU*)
5905   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5906 *)
5907   ac_count=0
5908   $as_echo_n 0123456789 >"conftest.in"
5909   while :
5910   do
5911     cat "conftest.in" "conftest.in" >"conftest.tmp"
5912     mv "conftest.tmp" "conftest.in"
5913     cp "conftest.in" "conftest.nl"
5914     $as_echo 'FGREP' >> "conftest.nl"
5915     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5916     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5917     as_fn_arith $ac_count + 1 && ac_count=$as_val
5918     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5919       # Best one so far, save it but keep looking for a better one
5920       ac_cv_path_FGREP="$ac_path_FGREP"
5921       ac_path_FGREP_max=$ac_count
5922     fi
5923     # 10*(2^10) chars as input seems more than enough
5924     test $ac_count -gt 10 && break
5925   done
5926   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5927 esac
5928
5929       $ac_path_FGREP_found && break 3
5930     done
5931   done
5932   done
5933 IFS=$as_save_IFS
5934   if test -z "$ac_cv_path_FGREP"; then
5935     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5936   fi
5937 else
5938   ac_cv_path_FGREP=$FGREP
5939 fi
5940
5941    fi
5942 fi
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5944 $as_echo "$ac_cv_path_FGREP" >&6; }
5945  FGREP="$ac_cv_path_FGREP"
5946
5947
5948 test -z "$GREP" && GREP=grep
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968 # Check whether --with-gnu-ld was given.
5969 if test "${with_gnu_ld+set}" = set; then :
5970   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5971 else
5972   with_gnu_ld=no
5973 fi
5974
5975 ac_prog=ld
5976 if test "$GCC" = yes; then
5977   # Check if gcc -print-prog-name=ld gives a path.
5978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5979 $as_echo_n "checking for ld used by $CC... " >&6; }
5980   case $host in
5981   *-*-mingw*)
5982     # gcc leaves a trailing carriage return which upsets mingw
5983     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5984   *)
5985     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5986   esac
5987   case $ac_prog in
5988     # Accept absolute paths.
5989     [\\/]* | ?:[\\/]*)
5990       re_direlt='/[^/][^/]*/\.\./'
5991       # Canonicalize the pathname of ld
5992       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5993       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5994         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5995       done
5996       test -z "$LD" && LD="$ac_prog"
5997       ;;
5998   "")
5999     # If it fails, then pretend we aren't using GCC.
6000     ac_prog=ld
6001     ;;
6002   *)
6003     # If it is relative, then search for the first ld in PATH.
6004     with_gnu_ld=unknown
6005     ;;
6006   esac
6007 elif test "$with_gnu_ld" = yes; then
6008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6009 $as_echo_n "checking for GNU ld... " >&6; }
6010 else
6011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6012 $as_echo_n "checking for non-GNU ld... " >&6; }
6013 fi
6014 if ${lt_cv_path_LD+:} false; then :
6015   $as_echo_n "(cached) " >&6
6016 else
6017   if test -z "$LD"; then
6018   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6019   for ac_dir in $PATH; do
6020     IFS="$lt_save_ifs"
6021     test -z "$ac_dir" && ac_dir=.
6022     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6023       lt_cv_path_LD="$ac_dir/$ac_prog"
6024       # Check to see if the program is GNU ld.  I'd rather use --version,
6025       # but apparently some variants of GNU ld only accept -v.
6026       # Break only if it was the GNU/non-GNU ld that we prefer.
6027       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6028       *GNU* | *'with BFD'*)
6029         test "$with_gnu_ld" != no && break
6030         ;;
6031       *)
6032         test "$with_gnu_ld" != yes && break
6033         ;;
6034       esac
6035     fi
6036   done
6037   IFS="$lt_save_ifs"
6038 else
6039   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6040 fi
6041 fi
6042
6043 LD="$lt_cv_path_LD"
6044 if test -n "$LD"; then
6045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6046 $as_echo "$LD" >&6; }
6047 else
6048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6050 fi
6051 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6053 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6054 if ${lt_cv_prog_gnu_ld+:} false; then :
6055   $as_echo_n "(cached) " >&6
6056 else
6057   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6058 case `$LD -v 2>&1 </dev/null` in
6059 *GNU* | *'with BFD'*)
6060   lt_cv_prog_gnu_ld=yes
6061   ;;
6062 *)
6063   lt_cv_prog_gnu_ld=no
6064   ;;
6065 esac
6066 fi
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6068 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6069 with_gnu_ld=$lt_cv_prog_gnu_ld
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6080 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6081 if ${lt_cv_path_NM+:} false; then :
6082   $as_echo_n "(cached) " >&6
6083 else
6084   if test -n "$NM"; then
6085   # Let the user override the test.
6086   lt_cv_path_NM="$NM"
6087 else
6088   lt_nm_to_check="${ac_tool_prefix}nm"
6089   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6090     lt_nm_to_check="$lt_nm_to_check nm"
6091   fi
6092   for lt_tmp_nm in $lt_nm_to_check; do
6093     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6094     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6095       IFS="$lt_save_ifs"
6096       test -z "$ac_dir" && ac_dir=.
6097       tmp_nm="$ac_dir/$lt_tmp_nm"
6098       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6099         # Check to see if the nm accepts a BSD-compat flag.
6100         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6101         #   nm: unknown option "B" ignored
6102         # Tru64's nm complains that /dev/null is an invalid object file
6103         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6104         */dev/null* | *'Invalid file or object type'*)
6105           lt_cv_path_NM="$tmp_nm -B"
6106           break
6107           ;;
6108         *)
6109           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6110           */dev/null*)
6111             lt_cv_path_NM="$tmp_nm -p"
6112             break
6113             ;;
6114           *)
6115             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6116             continue # so that we can try to find one that supports BSD flags
6117             ;;
6118           esac
6119           ;;
6120         esac
6121       fi
6122     done
6123     IFS="$lt_save_ifs"
6124   done
6125   : ${lt_cv_path_NM=no}
6126 fi
6127 fi
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6129 $as_echo "$lt_cv_path_NM" >&6; }
6130 if test "$lt_cv_path_NM" != "no"; then
6131   NM="$lt_cv_path_NM"
6132 else
6133   # Didn't find any BSD compatible name lister, look for dumpbin.
6134   if test -n "$DUMPBIN"; then :
6135     # Let the user override the test.
6136   else
6137     if test -n "$ac_tool_prefix"; then
6138   for ac_prog in dumpbin "link -dump"
6139   do
6140     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6141 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143 $as_echo_n "checking for $ac_word... " >&6; }
6144 if ${ac_cv_prog_DUMPBIN+:} false; then :
6145   $as_echo_n "(cached) " >&6
6146 else
6147   if test -n "$DUMPBIN"; then
6148   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6149 else
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6152 do
6153   IFS=$as_save_IFS
6154   test -z "$as_dir" && as_dir=.
6155     for ac_exec_ext in '' $ac_executable_extensions; do
6156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6157     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6159     break 2
6160   fi
6161 done
6162   done
6163 IFS=$as_save_IFS
6164
6165 fi
6166 fi
6167 DUMPBIN=$ac_cv_prog_DUMPBIN
6168 if test -n "$DUMPBIN"; then
6169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6170 $as_echo "$DUMPBIN" >&6; }
6171 else
6172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173 $as_echo "no" >&6; }
6174 fi
6175
6176
6177     test -n "$DUMPBIN" && break
6178   done
6179 fi
6180 if test -z "$DUMPBIN"; then
6181   ac_ct_DUMPBIN=$DUMPBIN
6182   for ac_prog in dumpbin "link -dump"
6183 do
6184   # Extract the first word of "$ac_prog", so it can be a program name with args.
6185 set dummy $ac_prog; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6189   $as_echo_n "(cached) " >&6
6190 else
6191   if test -n "$ac_ct_DUMPBIN"; then
6192   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197   IFS=$as_save_IFS
6198   test -z "$as_dir" && as_dir=.
6199     for ac_exec_ext in '' $ac_executable_extensions; do
6200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203     break 2
6204   fi
6205 done
6206   done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6212 if test -n "$ac_ct_DUMPBIN"; then
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6214 $as_echo "$ac_ct_DUMPBIN" >&6; }
6215 else
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6218 fi
6219
6220
6221   test -n "$ac_ct_DUMPBIN" && break
6222 done
6223
6224   if test "x$ac_ct_DUMPBIN" = x; then
6225     DUMPBIN=":"
6226   else
6227     case $cross_compiling:$ac_tool_warned in
6228 yes:)
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6231 ac_tool_warned=yes ;;
6232 esac
6233     DUMPBIN=$ac_ct_DUMPBIN
6234   fi
6235 fi
6236
6237     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6238     *COFF*)
6239       DUMPBIN="$DUMPBIN -symbols"
6240       ;;
6241     *)
6242       DUMPBIN=:
6243       ;;
6244     esac
6245   fi
6246
6247   if test "$DUMPBIN" != ":"; then
6248     NM="$DUMPBIN"
6249   fi
6250 fi
6251 test -z "$NM" && NM=nm
6252
6253
6254
6255
6256
6257
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6259 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6260 if ${lt_cv_nm_interface+:} false; then :
6261   $as_echo_n "(cached) " >&6
6262 else
6263   lt_cv_nm_interface="BSD nm"
6264   echo "int some_variable = 0;" > conftest.$ac_ext
6265   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6266   (eval "$ac_compile" 2>conftest.err)
6267   cat conftest.err >&5
6268   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6269   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6270   cat conftest.err >&5
6271   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6272   cat conftest.out >&5
6273   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6274     lt_cv_nm_interface="MS dumpbin"
6275   fi
6276   rm -f conftest*
6277 fi
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6279 $as_echo "$lt_cv_nm_interface" >&6; }
6280
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6282 $as_echo_n "checking whether ln -s works... " >&6; }
6283 LN_S=$as_ln_s
6284 if test "$LN_S" = "ln -s"; then
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6286 $as_echo "yes" >&6; }
6287 else
6288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6289 $as_echo "no, using $LN_S" >&6; }
6290 fi
6291
6292 # find the maximum length of command line arguments
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6294 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6295 if ${lt_cv_sys_max_cmd_len+:} false; then :
6296   $as_echo_n "(cached) " >&6
6297 else
6298     i=0
6299   teststring="ABCD"
6300
6301   case $build_os in
6302   msdosdjgpp*)
6303     # On DJGPP, this test can blow up pretty badly due to problems in libc
6304     # (any single argument exceeding 2000 bytes causes a buffer overrun
6305     # during glob expansion).  Even if it were fixed, the result of this
6306     # check would be larger than it should be.
6307     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6308     ;;
6309
6310   gnu*)
6311     # Under GNU Hurd, this test is not required because there is
6312     # no limit to the length of command line arguments.
6313     # Libtool will interpret -1 as no limit whatsoever
6314     lt_cv_sys_max_cmd_len=-1;
6315     ;;
6316
6317   cygwin* | mingw* | cegcc*)
6318     # On Win9x/ME, this test blows up -- it succeeds, but takes
6319     # about 5 minutes as the teststring grows exponentially.
6320     # Worse, since 9x/ME are not pre-emptively multitasking,
6321     # you end up with a "frozen" computer, even though with patience
6322     # the test eventually succeeds (with a max line length of 256k).
6323     # Instead, let's just punt: use the minimum linelength reported by
6324     # all of the supported platforms: 8192 (on NT/2K/XP).
6325     lt_cv_sys_max_cmd_len=8192;
6326     ;;
6327
6328   mint*)
6329     # On MiNT this can take a long time and run out of memory.
6330     lt_cv_sys_max_cmd_len=8192;
6331     ;;
6332
6333   amigaos*)
6334     # On AmigaOS with pdksh, this test takes hours, literally.
6335     # So we just punt and use a minimum line length of 8192.
6336     lt_cv_sys_max_cmd_len=8192;
6337     ;;
6338
6339   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6340     # This has been around since 386BSD, at least.  Likely further.
6341     if test -x /sbin/sysctl; then
6342       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6343     elif test -x /usr/sbin/sysctl; then
6344       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6345     else
6346       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6347     fi
6348     # And add a safety zone
6349     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6350     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6351     ;;
6352
6353   interix*)
6354     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6355     lt_cv_sys_max_cmd_len=196608
6356     ;;
6357
6358   osf*)
6359     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6360     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6361     # nice to cause kernel panics so lets avoid the loop below.
6362     # First set a reasonable default.
6363     lt_cv_sys_max_cmd_len=16384
6364     #
6365     if test -x /sbin/sysconfig; then
6366       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6367         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6368       esac
6369     fi
6370     ;;
6371   sco3.2v5*)
6372     lt_cv_sys_max_cmd_len=102400
6373     ;;
6374   sysv5* | sco5v6* | sysv4.2uw2*)
6375     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6376     if test -n "$kargmax"; then
6377       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6378     else
6379       lt_cv_sys_max_cmd_len=32768
6380     fi
6381     ;;
6382   *)
6383     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6384     if test -n "$lt_cv_sys_max_cmd_len"; then
6385       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6386       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6387     else
6388       # Make teststring a little bigger before we do anything with it.
6389       # a 1K string should be a reasonable start.
6390       for i in 1 2 3 4 5 6 7 8 ; do
6391         teststring=$teststring$teststring
6392       done
6393       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6394       # If test is not a shell built-in, we'll probably end up computing a
6395       # maximum length that is only half of the actual maximum length, but
6396       # we can't tell.
6397       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6398                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6399               test $i != 17 # 1/2 MB should be enough
6400       do
6401         i=`expr $i + 1`
6402         teststring=$teststring$teststring
6403       done
6404       # Only check the string length outside the loop.
6405       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6406       teststring=
6407       # Add a significant safety factor because C++ compilers can tack on
6408       # massive amounts of additional arguments before passing them to the
6409       # linker.  It appears as though 1/2 is a usable value.
6410       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6411     fi
6412     ;;
6413   esac
6414
6415 fi
6416
6417 if test -n $lt_cv_sys_max_cmd_len ; then
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6419 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6420 else
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6422 $as_echo "none" >&6; }
6423 fi
6424 max_cmd_len=$lt_cv_sys_max_cmd_len
6425
6426
6427
6428
6429
6430
6431 : ${CP="cp -f"}
6432 : ${MV="mv -f"}
6433 : ${RM="rm -f"}
6434
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6436 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6437 # Try some XSI features
6438 xsi_shell=no
6439 ( _lt_dummy="a/b/c"
6440   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6441       = c,a/b,, \
6442     && eval 'test $(( 1 + 1 )) -eq 2 \
6443     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6444   && xsi_shell=yes
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6446 $as_echo "$xsi_shell" >&6; }
6447
6448
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6450 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6451 lt_shell_append=no
6452 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6453     >/dev/null 2>&1 \
6454   && lt_shell_append=yes
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6456 $as_echo "$lt_shell_append" >&6; }
6457
6458
6459 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6460   lt_unset=unset
6461 else
6462   lt_unset=false
6463 fi
6464
6465
6466
6467
6468
6469 # test EBCDIC or ASCII
6470 case `echo X|tr X '\101'` in
6471  A) # ASCII based system
6472     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6473   lt_SP2NL='tr \040 \012'
6474   lt_NL2SP='tr \015\012 \040\040'
6475   ;;
6476  *) # EBCDIC based system
6477   lt_SP2NL='tr \100 \n'
6478   lt_NL2SP='tr \r\n \100\100'
6479   ;;
6480 esac
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6491 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6492 if ${lt_cv_ld_reload_flag+:} false; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   lt_cv_ld_reload_flag='-r'
6496 fi
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6498 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6499 reload_flag=$lt_cv_ld_reload_flag
6500 case $reload_flag in
6501 "" | " "*) ;;
6502 *) reload_flag=" $reload_flag" ;;
6503 esac
6504 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6505 case $host_os in
6506   darwin*)
6507     if test "$GCC" = yes; then
6508       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6509     else
6510       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6511     fi
6512     ;;
6513 esac
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523 if test -n "$ac_tool_prefix"; then
6524   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6525 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527 $as_echo_n "checking for $ac_word... " >&6; }
6528 if ${ac_cv_prog_OBJDUMP+:} false; then :
6529   $as_echo_n "(cached) " >&6
6530 else
6531   if test -n "$OBJDUMP"; then
6532   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537   IFS=$as_save_IFS
6538   test -z "$as_dir" && as_dir=.
6539     for ac_exec_ext in '' $ac_executable_extensions; do
6540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543     break 2
6544   fi
6545 done
6546   done
6547 IFS=$as_save_IFS
6548
6549 fi
6550 fi
6551 OBJDUMP=$ac_cv_prog_OBJDUMP
6552 if test -n "$OBJDUMP"; then
6553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6554 $as_echo "$OBJDUMP" >&6; }
6555 else
6556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6558 fi
6559
6560
6561 fi
6562 if test -z "$ac_cv_prog_OBJDUMP"; then
6563   ac_ct_OBJDUMP=$OBJDUMP
6564   # Extract the first word of "objdump", so it can be a program name with args.
6565 set dummy objdump; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6569   $as_echo_n "(cached) " >&6
6570 else
6571   if test -n "$ac_ct_OBJDUMP"; then
6572   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579     for ac_exec_ext in '' $ac_executable_extensions; do
6580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586   done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6592 if test -n "$ac_ct_OBJDUMP"; then
6593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6594 $as_echo "$ac_ct_OBJDUMP" >&6; }
6595 else
6596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6598 fi
6599
6600   if test "x$ac_ct_OBJDUMP" = x; then
6601     OBJDUMP="false"
6602   else
6603     case $cross_compiling:$ac_tool_warned in
6604 yes:)
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6607 ac_tool_warned=yes ;;
6608 esac
6609     OBJDUMP=$ac_ct_OBJDUMP
6610   fi
6611 else
6612   OBJDUMP="$ac_cv_prog_OBJDUMP"
6613 fi
6614
6615 test -z "$OBJDUMP" && OBJDUMP=objdump
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6626 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6627 if ${lt_cv_deplibs_check_method+:} false; then :
6628   $as_echo_n "(cached) " >&6
6629 else
6630   lt_cv_file_magic_cmd='$MAGIC_CMD'
6631 lt_cv_file_magic_test_file=
6632 lt_cv_deplibs_check_method='unknown'
6633 # Need to set the preceding variable on all platforms that support
6634 # interlibrary dependencies.
6635 # 'none' -- dependencies not supported.
6636 # `unknown' -- same as none, but documents that we really don't know.
6637 # 'pass_all' -- all dependencies passed with no checks.
6638 # 'test_compile' -- check by making test program.
6639 # 'file_magic [[regex]]' -- check by looking for files in library path
6640 # which responds to the $file_magic_cmd with a given extended regex.
6641 # If you have `file' or equivalent on your system and you're not sure
6642 # whether `pass_all' will *always* work, you probably want this one.
6643
6644 case $host_os in
6645 aix[4-9]*)
6646   lt_cv_deplibs_check_method=pass_all
6647   ;;
6648
6649 beos*)
6650   lt_cv_deplibs_check_method=pass_all
6651   ;;
6652
6653 bsdi[45]*)
6654   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6655   lt_cv_file_magic_cmd='/usr/bin/file -L'
6656   lt_cv_file_magic_test_file=/shlib/libc.so
6657   ;;
6658
6659 cygwin*)
6660   # func_win32_libid is a shell function defined in ltmain.sh
6661   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6662   lt_cv_file_magic_cmd='func_win32_libid'
6663   ;;
6664
6665 mingw* | pw32*)
6666   # Base MSYS/MinGW do not provide the 'file' command needed by
6667   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6668   # unless we find 'file', for example because we are cross-compiling.
6669   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6670   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6671     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6672     lt_cv_file_magic_cmd='func_win32_libid'
6673   else
6674     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6675     lt_cv_file_magic_cmd='$OBJDUMP -f'
6676   fi
6677   ;;
6678
6679 cegcc*)
6680   # use the weaker test based on 'objdump'. See mingw*.
6681   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6682   lt_cv_file_magic_cmd='$OBJDUMP -f'
6683   ;;
6684
6685 darwin* | rhapsody*)
6686   lt_cv_deplibs_check_method=pass_all
6687   ;;
6688
6689 freebsd* | dragonfly*)
6690   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6691     case $host_cpu in
6692     i*86 )
6693       # Not sure whether the presence of OpenBSD here was a mistake.
6694       # Let's accept both of them until this is cleared up.
6695       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6696       lt_cv_file_magic_cmd=/usr/bin/file
6697       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6698       ;;
6699     esac
6700   else
6701     lt_cv_deplibs_check_method=pass_all
6702   fi
6703   ;;
6704
6705 gnu*)
6706   lt_cv_deplibs_check_method=pass_all
6707   ;;
6708
6709 haiku*)
6710   lt_cv_deplibs_check_method=pass_all
6711   ;;
6712
6713 hpux10.20* | hpux11*)
6714   lt_cv_file_magic_cmd=/usr/bin/file
6715   case $host_cpu in
6716   ia64*)
6717     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6718     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6719     ;;
6720   hppa*64*)
6721     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]'
6722     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6723     ;;
6724   *)
6725     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6726     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6727     ;;
6728   esac
6729   ;;
6730
6731 interix[3-9]*)
6732   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6733   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6734   ;;
6735
6736 irix5* | irix6* | nonstopux*)
6737   case $LD in
6738   *-32|*"-32 ") libmagic=32-bit;;
6739   *-n32|*"-n32 ") libmagic=N32;;
6740   *-64|*"-64 ") libmagic=64-bit;;
6741   *) libmagic=never-match;;
6742   esac
6743   lt_cv_deplibs_check_method=pass_all
6744   ;;
6745
6746 # This must be Linux ELF.
6747 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6748   lt_cv_deplibs_check_method=pass_all
6749   ;;
6750
6751 netbsd*)
6752   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6753     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6754   else
6755     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6756   fi
6757   ;;
6758
6759 newos6*)
6760   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6761   lt_cv_file_magic_cmd=/usr/bin/file
6762   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6763   ;;
6764
6765 *nto* | *qnx*)
6766   lt_cv_deplibs_check_method=pass_all
6767   ;;
6768
6769 openbsd*)
6770   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6771     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6772   else
6773     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6774   fi
6775   ;;
6776
6777 osf3* | osf4* | osf5*)
6778   lt_cv_deplibs_check_method=pass_all
6779   ;;
6780
6781 rdos*)
6782   lt_cv_deplibs_check_method=pass_all
6783   ;;
6784
6785 solaris*)
6786   lt_cv_deplibs_check_method=pass_all
6787   ;;
6788
6789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6790   lt_cv_deplibs_check_method=pass_all
6791   ;;
6792
6793 sysv4 | sysv4.3*)
6794   case $host_vendor in
6795   motorola)
6796     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]'
6797     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6798     ;;
6799   ncr)
6800     lt_cv_deplibs_check_method=pass_all
6801     ;;
6802   sequent)
6803     lt_cv_file_magic_cmd='/bin/file'
6804     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6805     ;;
6806   sni)
6807     lt_cv_file_magic_cmd='/bin/file'
6808     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6809     lt_cv_file_magic_test_file=/lib/libc.so
6810     ;;
6811   siemens)
6812     lt_cv_deplibs_check_method=pass_all
6813     ;;
6814   pc)
6815     lt_cv_deplibs_check_method=pass_all
6816     ;;
6817   esac
6818   ;;
6819
6820 tpf*)
6821   lt_cv_deplibs_check_method=pass_all
6822   ;;
6823 esac
6824
6825 fi
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6827 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6828 file_magic_cmd=$lt_cv_file_magic_cmd
6829 deplibs_check_method=$lt_cv_deplibs_check_method
6830 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843 if test -n "$ac_tool_prefix"; then
6844   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6845 set dummy ${ac_tool_prefix}ar; ac_word=$2
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if ${ac_cv_prog_AR+:} false; then :
6849   $as_echo_n "(cached) " >&6
6850 else
6851   if test -n "$AR"; then
6852   ac_cv_prog_AR="$AR" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857   IFS=$as_save_IFS
6858   test -z "$as_dir" && as_dir=.
6859     for ac_exec_ext in '' $ac_executable_extensions; do
6860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6861     ac_cv_prog_AR="${ac_tool_prefix}ar"
6862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863     break 2
6864   fi
6865 done
6866   done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 AR=$ac_cv_prog_AR
6872 if test -n "$AR"; then
6873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6874 $as_echo "$AR" >&6; }
6875 else
6876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6878 fi
6879
6880
6881 fi
6882 if test -z "$ac_cv_prog_AR"; then
6883   ac_ct_AR=$AR
6884   # Extract the first word of "ar", so it can be a program name with args.
6885 set dummy ar; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6889   $as_echo_n "(cached) " >&6
6890 else
6891   if test -n "$ac_ct_AR"; then
6892   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897   IFS=$as_save_IFS
6898   test -z "$as_dir" && as_dir=.
6899     for ac_exec_ext in '' $ac_executable_extensions; do
6900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901     ac_cv_prog_ac_ct_AR="ar"
6902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903     break 2
6904   fi
6905 done
6906   done
6907 IFS=$as_save_IFS
6908
6909 fi
6910 fi
6911 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6912 if test -n "$ac_ct_AR"; then
6913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6914 $as_echo "$ac_ct_AR" >&6; }
6915 else
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6918 fi
6919
6920   if test "x$ac_ct_AR" = x; then
6921     AR="false"
6922   else
6923     case $cross_compiling:$ac_tool_warned in
6924 yes:)
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6927 ac_tool_warned=yes ;;
6928 esac
6929     AR=$ac_ct_AR
6930   fi
6931 else
6932   AR="$ac_cv_prog_AR"
6933 fi
6934
6935 test -z "$AR" && AR=ar
6936 test -z "$AR_FLAGS" && AR_FLAGS=cru
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948 if test -n "$ac_tool_prefix"; then
6949   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}strip; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_STRIP+:} false; then :
6954   $as_echo_n "(cached) " >&6
6955 else
6956   if test -n "$STRIP"; then
6957   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962   IFS=$as_save_IFS
6963   test -z "$as_dir" && as_dir=.
6964     for ac_exec_ext in '' $ac_executable_extensions; do
6965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968     break 2
6969   fi
6970 done
6971   done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 STRIP=$ac_cv_prog_STRIP
6977 if test -n "$STRIP"; then
6978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6979 $as_echo "$STRIP" >&6; }
6980 else
6981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985
6986 fi
6987 if test -z "$ac_cv_prog_STRIP"; then
6988   ac_ct_STRIP=$STRIP
6989   # Extract the first word of "strip", so it can be a program name with args.
6990 set dummy strip; ac_word=$2
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992 $as_echo_n "checking for $ac_word... " >&6; }
6993 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6994   $as_echo_n "(cached) " >&6
6995 else
6996   if test -n "$ac_ct_STRIP"; then
6997   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002   IFS=$as_save_IFS
7003   test -z "$as_dir" && as_dir=.
7004     for ac_exec_ext in '' $ac_executable_extensions; do
7005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006     ac_cv_prog_ac_ct_STRIP="strip"
7007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008     break 2
7009   fi
7010 done
7011   done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7017 if test -n "$ac_ct_STRIP"; then
7018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7019 $as_echo "$ac_ct_STRIP" >&6; }
7020 else
7021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7023 fi
7024
7025   if test "x$ac_ct_STRIP" = x; then
7026     STRIP=":"
7027   else
7028     case $cross_compiling:$ac_tool_warned in
7029 yes:)
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7032 ac_tool_warned=yes ;;
7033 esac
7034     STRIP=$ac_ct_STRIP
7035   fi
7036 else
7037   STRIP="$ac_cv_prog_STRIP"
7038 fi
7039
7040 test -z "$STRIP" && STRIP=:
7041
7042
7043
7044
7045
7046
7047 if test -n "$ac_tool_prefix"; then
7048   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7049 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_RANLIB+:} false; then :
7053   $as_echo_n "(cached) " >&6
7054 else
7055   if test -n "$RANLIB"; then
7056   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061   IFS=$as_save_IFS
7062   test -z "$as_dir" && as_dir=.
7063     for ac_exec_ext in '' $ac_executable_extensions; do
7064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067     break 2
7068   fi
7069 done
7070   done
7071 IFS=$as_save_IFS
7072
7073 fi
7074 fi
7075 RANLIB=$ac_cv_prog_RANLIB
7076 if test -n "$RANLIB"; then
7077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7078 $as_echo "$RANLIB" >&6; }
7079 else
7080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083
7084
7085 fi
7086 if test -z "$ac_cv_prog_RANLIB"; then
7087   ac_ct_RANLIB=$RANLIB
7088   # Extract the first word of "ranlib", so it can be a program name with args.
7089 set dummy ranlib; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7093   $as_echo_n "(cached) " >&6
7094 else
7095   if test -n "$ac_ct_RANLIB"; then
7096   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101   IFS=$as_save_IFS
7102   test -z "$as_dir" && as_dir=.
7103     for ac_exec_ext in '' $ac_executable_extensions; do
7104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105     ac_cv_prog_ac_ct_RANLIB="ranlib"
7106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107     break 2
7108   fi
7109 done
7110   done
7111 IFS=$as_save_IFS
7112
7113 fi
7114 fi
7115 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7116 if test -n "$ac_ct_RANLIB"; then
7117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7118 $as_echo "$ac_ct_RANLIB" >&6; }
7119 else
7120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7122 fi
7123
7124   if test "x$ac_ct_RANLIB" = x; then
7125     RANLIB=":"
7126   else
7127     case $cross_compiling:$ac_tool_warned in
7128 yes:)
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131 ac_tool_warned=yes ;;
7132 esac
7133     RANLIB=$ac_ct_RANLIB
7134   fi
7135 else
7136   RANLIB="$ac_cv_prog_RANLIB"
7137 fi
7138
7139 test -z "$RANLIB" && RANLIB=:
7140
7141
7142
7143
7144
7145
7146 # Determine commands to create old-style static archives.
7147 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7148 old_postinstall_cmds='chmod 644 $oldlib'
7149 old_postuninstall_cmds=
7150
7151 if test -n "$RANLIB"; then
7152   case $host_os in
7153   openbsd*)
7154     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7155     ;;
7156   *)
7157     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7158     ;;
7159   esac
7160   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7161 fi
7162
7163 case $host_os in
7164   darwin*)
7165     lock_old_archive_extraction=yes ;;
7166   *)
7167     lock_old_archive_extraction=no ;;
7168 esac
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190 for ac_prog in gawk mawk nawk awk
7191 do
7192   # Extract the first word of "$ac_prog", so it can be a program name with args.
7193 set dummy $ac_prog; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if ${ac_cv_prog_AWK+:} false; then :
7197   $as_echo_n "(cached) " >&6
7198 else
7199   if test -n "$AWK"; then
7200   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205   IFS=$as_save_IFS
7206   test -z "$as_dir" && as_dir=.
7207     for ac_exec_ext in '' $ac_executable_extensions; do
7208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209     ac_cv_prog_AWK="$ac_prog"
7210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211     break 2
7212   fi
7213 done
7214   done
7215 IFS=$as_save_IFS
7216
7217 fi
7218 fi
7219 AWK=$ac_cv_prog_AWK
7220 if test -n "$AWK"; then
7221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7222 $as_echo "$AWK" >&6; }
7223 else
7224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7226 fi
7227
7228
7229   test -n "$AWK" && break
7230 done
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250 # If no C compiler was specified, use CC.
7251 LTCC=${LTCC-"$CC"}
7252
7253 # If no C compiler flags were specified, use CFLAGS.
7254 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7255
7256 # Allow CC to be a program name with arguments.
7257 compiler=$CC
7258
7259
7260 # Check for command to grab the raw symbol name followed by C symbol from nm.
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7262 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7263 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7264   $as_echo_n "(cached) " >&6
7265 else
7266
7267 # These are sane defaults that work on at least a few old systems.
7268 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7269
7270 # Character class describing NM global symbol codes.
7271 symcode='[BCDEGRST]'
7272
7273 # Regexp to match symbols that can be accessed directly from C.
7274 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7275
7276 # Define system-specific variables.
7277 case $host_os in
7278 aix*)
7279   symcode='[BCDT]'
7280   ;;
7281 cygwin* | mingw* | pw32* | cegcc*)
7282   symcode='[ABCDGISTW]'
7283   ;;
7284 hpux*)
7285   if test "$host_cpu" = ia64; then
7286     symcode='[ABCDEGRST]'
7287   fi
7288   ;;
7289 irix* | nonstopux*)
7290   symcode='[BCDEGRST]'
7291   ;;
7292 osf*)
7293   symcode='[BCDEGQRST]'
7294   ;;
7295 solaris*)
7296   symcode='[BDRT]'
7297   ;;
7298 sco3.2v5*)
7299   symcode='[DT]'
7300   ;;
7301 sysv4.2uw2*)
7302   symcode='[DT]'
7303   ;;
7304 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7305   symcode='[ABDT]'
7306   ;;
7307 sysv4)
7308   symcode='[DFNSTU]'
7309   ;;
7310 esac
7311
7312 # If we're using GNU nm, then use its standard symbol codes.
7313 case `$NM -V 2>&1` in
7314 *GNU* | *'with BFD'*)
7315   symcode='[ABCDGIRSTW]' ;;
7316 esac
7317
7318 # Transform an extracted symbol line into a proper C declaration.
7319 # Some systems (esp. on ia64) link data and code symbols differently,
7320 # so use this general approach.
7321 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7322
7323 # Transform an extracted symbol line into symbol name and symbol address
7324 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7325 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'"
7326
7327 # Handle CRLF in mingw tool chain
7328 opt_cr=
7329 case $build_os in
7330 mingw*)
7331   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7332   ;;
7333 esac
7334
7335 # Try without a prefix underscore, then with it.
7336 for ac_symprfx in "" "_"; do
7337
7338   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7339   symxfrm="\\1 $ac_symprfx\\2 \\2"
7340
7341   # Write the raw and C identifiers.
7342   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7343     # Fake it for dumpbin and say T for any non-static function
7344     # and D for any global variable.
7345     # Also find C++ and __fastcall symbols from MSVC++,
7346     # which start with @ or ?.
7347     lt_cv_sys_global_symbol_pipe="$AWK '"\
7348 "     {last_section=section; section=\$ 3};"\
7349 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7350 "     \$ 0!~/External *\|/{next};"\
7351 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7352 "     {if(hide[section]) next};"\
7353 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7354 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7355 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7356 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7357 "     ' prfx=^$ac_symprfx"
7358   else
7359     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7360   fi
7361
7362   # Check to see that the pipe works correctly.
7363   pipe_works=no
7364
7365   rm -f conftest*
7366   cat > conftest.$ac_ext <<_LT_EOF
7367 #ifdef __cplusplus
7368 extern "C" {
7369 #endif
7370 char nm_test_var;
7371 void nm_test_func(void);
7372 void nm_test_func(void){}
7373 #ifdef __cplusplus
7374 }
7375 #endif
7376 int main(){nm_test_var='a';nm_test_func();return(0);}
7377 _LT_EOF
7378
7379   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7380   (eval $ac_compile) 2>&5
7381   ac_status=$?
7382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7383   test $ac_status = 0; }; then
7384     # Now try to grab the symbols.
7385     nlist=conftest.nm
7386     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7387   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7388   ac_status=$?
7389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7390   test $ac_status = 0; } && test -s "$nlist"; then
7391       # Try sorting and uniquifying the output.
7392       if sort "$nlist" | uniq > "$nlist"T; then
7393         mv -f "$nlist"T "$nlist"
7394       else
7395         rm -f "$nlist"T
7396       fi
7397
7398       # Make sure that we snagged all the symbols we need.
7399       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7400         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7401           cat <<_LT_EOF > conftest.$ac_ext
7402 #ifdef __cplusplus
7403 extern "C" {
7404 #endif
7405
7406 _LT_EOF
7407           # Now generate the symbol file.
7408           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7409
7410           cat <<_LT_EOF >> conftest.$ac_ext
7411
7412 /* The mapping between symbol names and symbols.  */
7413 const struct {
7414   const char *name;
7415   void       *address;
7416 }
7417 lt__PROGRAM__LTX_preloaded_symbols[] =
7418 {
7419   { "@PROGRAM@", (void *) 0 },
7420 _LT_EOF
7421           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7422           cat <<\_LT_EOF >> conftest.$ac_ext
7423   {0, (void *) 0}
7424 };
7425
7426 /* This works around a problem in FreeBSD linker */
7427 #ifdef FREEBSD_WORKAROUND
7428 static const void *lt_preloaded_setup() {
7429   return lt__PROGRAM__LTX_preloaded_symbols;
7430 }
7431 #endif
7432
7433 #ifdef __cplusplus
7434 }
7435 #endif
7436 _LT_EOF
7437           # Now try linking the two files.
7438           mv conftest.$ac_objext conftstm.$ac_objext
7439           lt_save_LIBS="$LIBS"
7440           lt_save_CFLAGS="$CFLAGS"
7441           LIBS="conftstm.$ac_objext"
7442           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7443           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7444   (eval $ac_link) 2>&5
7445   ac_status=$?
7446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7447   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7448             pipe_works=yes
7449           fi
7450           LIBS="$lt_save_LIBS"
7451           CFLAGS="$lt_save_CFLAGS"
7452         else
7453           echo "cannot find nm_test_func in $nlist" >&5
7454         fi
7455       else
7456         echo "cannot find nm_test_var in $nlist" >&5
7457       fi
7458     else
7459       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7460     fi
7461   else
7462     echo "$progname: failed program was:" >&5
7463     cat conftest.$ac_ext >&5
7464   fi
7465   rm -rf conftest* conftst*
7466
7467   # Do not use the global_symbol_pipe unless it works.
7468   if test "$pipe_works" = yes; then
7469     break
7470   else
7471     lt_cv_sys_global_symbol_pipe=
7472   fi
7473 done
7474
7475 fi
7476
7477 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7478   lt_cv_sys_global_symbol_to_cdecl=
7479 fi
7480 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7482 $as_echo "failed" >&6; }
7483 else
7484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7485 $as_echo "ok" >&6; }
7486 fi
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509 # Check whether --enable-libtool-lock was given.
7510 if test "${enable_libtool_lock+set}" = set; then :
7511   enableval=$enable_libtool_lock;
7512 fi
7513
7514 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7515
7516 # Some flags need to be propagated to the compiler or linker for good
7517 # libtool support.
7518 case $host in
7519 ia64-*-hpux*)
7520   # Find out which ABI we are using.
7521   echo 'int i;' > conftest.$ac_ext
7522   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7523   (eval $ac_compile) 2>&5
7524   ac_status=$?
7525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526   test $ac_status = 0; }; then
7527     case `/usr/bin/file conftest.$ac_objext` in
7528       *ELF-32*)
7529         HPUX_IA64_MODE="32"
7530         ;;
7531       *ELF-64*)
7532         HPUX_IA64_MODE="64"
7533         ;;
7534     esac
7535   fi
7536   rm -rf conftest*
7537   ;;
7538 *-*-irix6*)
7539   # Find out which ABI we are using.
7540   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7541   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7542   (eval $ac_compile) 2>&5
7543   ac_status=$?
7544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7545   test $ac_status = 0; }; then
7546     if test "$lt_cv_prog_gnu_ld" = yes; then
7547       case `/usr/bin/file conftest.$ac_objext` in
7548         *32-bit*)
7549           LD="${LD-ld} -melf32bsmip"
7550           ;;
7551         *N32*)
7552           LD="${LD-ld} -melf32bmipn32"
7553           ;;
7554         *64-bit*)
7555           LD="${LD-ld} -melf64bmip"
7556         ;;
7557       esac
7558     else
7559       case `/usr/bin/file conftest.$ac_objext` in
7560         *32-bit*)
7561           LD="${LD-ld} -32"
7562           ;;
7563         *N32*)
7564           LD="${LD-ld} -n32"
7565           ;;
7566         *64-bit*)
7567           LD="${LD-ld} -64"
7568           ;;
7569       esac
7570     fi
7571   fi
7572   rm -rf conftest*
7573   ;;
7574
7575 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7576 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7577   # Find out which ABI we are using.
7578   echo 'int i;' > conftest.$ac_ext
7579   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7580   (eval $ac_compile) 2>&5
7581   ac_status=$?
7582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7583   test $ac_status = 0; }; then
7584     case `/usr/bin/file conftest.o` in
7585       *32-bit*)
7586         case $host in
7587           x86_64-*kfreebsd*-gnu)
7588             LD="${LD-ld} -m elf_i386_fbsd"
7589             ;;
7590           x86_64-*linux*)
7591             case `/usr/bin/file conftest.o` in
7592               *x86-64*)
7593                 LD="${LD-ld} -m elf32_x86_64"
7594                 ;;
7595               *)
7596                 LD="${LD-ld} -m elf_i386"
7597                 ;;
7598             esac
7599             ;;
7600           powerpc64le-*linux*)
7601             LD="${LD-ld} -m elf32lppclinux"
7602             ;;
7603           powerpc64-*linux*)
7604             LD="${LD-ld} -m elf32ppclinux"
7605             ;;
7606           s390x-*linux*)
7607             LD="${LD-ld} -m elf_s390"
7608             ;;
7609           sparc64-*linux*)
7610             LD="${LD-ld} -m elf32_sparc"
7611             ;;
7612         esac
7613         ;;
7614       *64-bit*)
7615         case $host in
7616           x86_64-*kfreebsd*-gnu)
7617             LD="${LD-ld} -m elf_x86_64_fbsd"
7618             ;;
7619           x86_64-*linux*)
7620             LD="${LD-ld} -m elf_x86_64"
7621             ;;
7622           powerpcle-*linux*)
7623             LD="${LD-ld} -m elf64lppc"
7624             ;;
7625           powerpc-*linux*)
7626             LD="${LD-ld} -m elf64ppc"
7627             ;;
7628           s390*-*linux*|s390*-*tpf*)
7629             LD="${LD-ld} -m elf64_s390"
7630             ;;
7631           sparc*-*linux*)
7632             LD="${LD-ld} -m elf64_sparc"
7633             ;;
7634         esac
7635         ;;
7636     esac
7637   fi
7638   rm -rf conftest*
7639   ;;
7640
7641 *-*-sco3.2v5*)
7642   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7643   SAVE_CFLAGS="$CFLAGS"
7644   CFLAGS="$CFLAGS -belf"
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7646 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7647 if ${lt_cv_cc_needs_belf+:} false; then :
7648   $as_echo_n "(cached) " >&6
7649 else
7650   ac_ext=c
7651 ac_cpp='$CPP $CPPFLAGS'
7652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7655
7656      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h.  */
7658
7659 int
7660 main ()
7661 {
7662
7663   ;
7664   return 0;
7665 }
7666 _ACEOF
7667 if ac_fn_c_try_link "$LINENO"; then :
7668   lt_cv_cc_needs_belf=yes
7669 else
7670   lt_cv_cc_needs_belf=no
7671 fi
7672 rm -f core conftest.err conftest.$ac_objext \
7673     conftest$ac_exeext conftest.$ac_ext
7674      ac_ext=c
7675 ac_cpp='$CPP $CPPFLAGS'
7676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7679
7680 fi
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7682 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7683   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7684     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7685     CFLAGS="$SAVE_CFLAGS"
7686   fi
7687   ;;
7688 sparc*-*solaris*)
7689   # Find out which ABI we are using.
7690   echo 'int i;' > conftest.$ac_ext
7691   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7692   (eval $ac_compile) 2>&5
7693   ac_status=$?
7694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7695   test $ac_status = 0; }; then
7696     case `/usr/bin/file conftest.o` in
7697     *64-bit*)
7698       case $lt_cv_prog_gnu_ld in
7699       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7700       *)
7701         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7702           LD="${LD-ld} -64"
7703         fi
7704         ;;
7705       esac
7706       ;;
7707     esac
7708   fi
7709   rm -rf conftest*
7710   ;;
7711 esac
7712
7713 need_locks="$enable_libtool_lock"
7714
7715
7716   case $host_os in
7717     rhapsody* | darwin*)
7718     if test -n "$ac_tool_prefix"; then
7719   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7720 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7724   $as_echo_n "(cached) " >&6
7725 else
7726   if test -n "$DSYMUTIL"; then
7727   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7731 do
7732   IFS=$as_save_IFS
7733   test -z "$as_dir" && as_dir=.
7734     for ac_exec_ext in '' $ac_executable_extensions; do
7735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7736     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738     break 2
7739   fi
7740 done
7741   done
7742 IFS=$as_save_IFS
7743
7744 fi
7745 fi
7746 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7747 if test -n "$DSYMUTIL"; then
7748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7749 $as_echo "$DSYMUTIL" >&6; }
7750 else
7751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7753 fi
7754
7755
7756 fi
7757 if test -z "$ac_cv_prog_DSYMUTIL"; then
7758   ac_ct_DSYMUTIL=$DSYMUTIL
7759   # Extract the first word of "dsymutil", so it can be a program name with args.
7760 set dummy dsymutil; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7764   $as_echo_n "(cached) " >&6
7765 else
7766   if test -n "$ac_ct_DSYMUTIL"; then
7767   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7771 do
7772   IFS=$as_save_IFS
7773   test -z "$as_dir" && as_dir=.
7774     for ac_exec_ext in '' $ac_executable_extensions; do
7775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778     break 2
7779   fi
7780 done
7781   done
7782 IFS=$as_save_IFS
7783
7784 fi
7785 fi
7786 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7787 if test -n "$ac_ct_DSYMUTIL"; then
7788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7789 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7790 else
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7793 fi
7794
7795   if test "x$ac_ct_DSYMUTIL" = x; then
7796     DSYMUTIL=":"
7797   else
7798     case $cross_compiling:$ac_tool_warned in
7799 yes:)
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7802 ac_tool_warned=yes ;;
7803 esac
7804     DSYMUTIL=$ac_ct_DSYMUTIL
7805   fi
7806 else
7807   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7808 fi
7809
7810     if test -n "$ac_tool_prefix"; then
7811   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7812 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if ${ac_cv_prog_NMEDIT+:} false; then :
7816   $as_echo_n "(cached) " >&6
7817 else
7818   if test -n "$NMEDIT"; then
7819   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824   IFS=$as_save_IFS
7825   test -z "$as_dir" && as_dir=.
7826     for ac_exec_ext in '' $ac_executable_extensions; do
7827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830     break 2
7831   fi
7832 done
7833   done
7834 IFS=$as_save_IFS
7835
7836 fi
7837 fi
7838 NMEDIT=$ac_cv_prog_NMEDIT
7839 if test -n "$NMEDIT"; then
7840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7841 $as_echo "$NMEDIT" >&6; }
7842 else
7843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845 fi
7846
7847
7848 fi
7849 if test -z "$ac_cv_prog_NMEDIT"; then
7850   ac_ct_NMEDIT=$NMEDIT
7851   # Extract the first word of "nmedit", so it can be a program name with args.
7852 set dummy nmedit; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7856   $as_echo_n "(cached) " >&6
7857 else
7858   if test -n "$ac_ct_NMEDIT"; then
7859   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7863 do
7864   IFS=$as_save_IFS
7865   test -z "$as_dir" && as_dir=.
7866     for ac_exec_ext in '' $ac_executable_extensions; do
7867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870     break 2
7871   fi
7872 done
7873   done
7874 IFS=$as_save_IFS
7875
7876 fi
7877 fi
7878 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7879 if test -n "$ac_ct_NMEDIT"; then
7880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7881 $as_echo "$ac_ct_NMEDIT" >&6; }
7882 else
7883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7885 fi
7886
7887   if test "x$ac_ct_NMEDIT" = x; then
7888     NMEDIT=":"
7889   else
7890     case $cross_compiling:$ac_tool_warned in
7891 yes:)
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7894 ac_tool_warned=yes ;;
7895 esac
7896     NMEDIT=$ac_ct_NMEDIT
7897   fi
7898 else
7899   NMEDIT="$ac_cv_prog_NMEDIT"
7900 fi
7901
7902     if test -n "$ac_tool_prefix"; then
7903   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7904 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if ${ac_cv_prog_LIPO+:} false; then :
7908   $as_echo_n "(cached) " >&6
7909 else
7910   if test -n "$LIPO"; then
7911   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7912 else
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 for as_dir in $PATH
7915 do
7916   IFS=$as_save_IFS
7917   test -z "$as_dir" && as_dir=.
7918     for ac_exec_ext in '' $ac_executable_extensions; do
7919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7920     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922     break 2
7923   fi
7924 done
7925   done
7926 IFS=$as_save_IFS
7927
7928 fi
7929 fi
7930 LIPO=$ac_cv_prog_LIPO
7931 if test -n "$LIPO"; then
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7933 $as_echo "$LIPO" >&6; }
7934 else
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7937 fi
7938
7939
7940 fi
7941 if test -z "$ac_cv_prog_LIPO"; then
7942   ac_ct_LIPO=$LIPO
7943   # Extract the first word of "lipo", so it can be a program name with args.
7944 set dummy lipo; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7948   $as_echo_n "(cached) " >&6
7949 else
7950   if test -n "$ac_ct_LIPO"; then
7951   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7955 do
7956   IFS=$as_save_IFS
7957   test -z "$as_dir" && as_dir=.
7958     for ac_exec_ext in '' $ac_executable_extensions; do
7959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960     ac_cv_prog_ac_ct_LIPO="lipo"
7961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962     break 2
7963   fi
7964 done
7965   done
7966 IFS=$as_save_IFS
7967
7968 fi
7969 fi
7970 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7971 if test -n "$ac_ct_LIPO"; then
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7973 $as_echo "$ac_ct_LIPO" >&6; }
7974 else
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978
7979   if test "x$ac_ct_LIPO" = x; then
7980     LIPO=":"
7981   else
7982     case $cross_compiling:$ac_tool_warned in
7983 yes:)
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7986 ac_tool_warned=yes ;;
7987 esac
7988     LIPO=$ac_ct_LIPO
7989   fi
7990 else
7991   LIPO="$ac_cv_prog_LIPO"
7992 fi
7993
7994     if test -n "$ac_tool_prefix"; then
7995   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7996 set dummy ${ac_tool_prefix}otool; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if ${ac_cv_prog_OTOOL+:} false; then :
8000   $as_echo_n "(cached) " >&6
8001 else
8002   if test -n "$OTOOL"; then
8003   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8007 do
8008   IFS=$as_save_IFS
8009   test -z "$as_dir" && as_dir=.
8010     for ac_exec_ext in '' $ac_executable_extensions; do
8011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8012     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014     break 2
8015   fi
8016 done
8017   done
8018 IFS=$as_save_IFS
8019
8020 fi
8021 fi
8022 OTOOL=$ac_cv_prog_OTOOL
8023 if test -n "$OTOOL"; then
8024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8025 $as_echo "$OTOOL" >&6; }
8026 else
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8029 fi
8030
8031
8032 fi
8033 if test -z "$ac_cv_prog_OTOOL"; then
8034   ac_ct_OTOOL=$OTOOL
8035   # Extract the first word of "otool", so it can be a program name with args.
8036 set dummy otool; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8040   $as_echo_n "(cached) " >&6
8041 else
8042   if test -n "$ac_ct_OTOOL"; then
8043   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8044 else
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8047 do
8048   IFS=$as_save_IFS
8049   test -z "$as_dir" && as_dir=.
8050     for ac_exec_ext in '' $ac_executable_extensions; do
8051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052     ac_cv_prog_ac_ct_OTOOL="otool"
8053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054     break 2
8055   fi
8056 done
8057   done
8058 IFS=$as_save_IFS
8059
8060 fi
8061 fi
8062 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8063 if test -n "$ac_ct_OTOOL"; then
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8065 $as_echo "$ac_ct_OTOOL" >&6; }
8066 else
8067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8069 fi
8070
8071   if test "x$ac_ct_OTOOL" = x; then
8072     OTOOL=":"
8073   else
8074     case $cross_compiling:$ac_tool_warned in
8075 yes:)
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8078 ac_tool_warned=yes ;;
8079 esac
8080     OTOOL=$ac_ct_OTOOL
8081   fi
8082 else
8083   OTOOL="$ac_cv_prog_OTOOL"
8084 fi
8085
8086     if test -n "$ac_tool_prefix"; then
8087   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8088 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if ${ac_cv_prog_OTOOL64+:} false; then :
8092   $as_echo_n "(cached) " >&6
8093 else
8094   if test -n "$OTOOL64"; then
8095   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8096 else
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8099 do
8100   IFS=$as_save_IFS
8101   test -z "$as_dir" && as_dir=.
8102     for ac_exec_ext in '' $ac_executable_extensions; do
8103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8104     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106     break 2
8107   fi
8108 done
8109   done
8110 IFS=$as_save_IFS
8111
8112 fi
8113 fi
8114 OTOOL64=$ac_cv_prog_OTOOL64
8115 if test -n "$OTOOL64"; then
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8117 $as_echo "$OTOOL64" >&6; }
8118 else
8119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8121 fi
8122
8123
8124 fi
8125 if test -z "$ac_cv_prog_OTOOL64"; then
8126   ac_ct_OTOOL64=$OTOOL64
8127   # Extract the first word of "otool64", so it can be a program name with args.
8128 set dummy otool64; ac_word=$2
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130 $as_echo_n "checking for $ac_word... " >&6; }
8131 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8132   $as_echo_n "(cached) " >&6
8133 else
8134   if test -n "$ac_ct_OTOOL64"; then
8135   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8136 else
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8139 do
8140   IFS=$as_save_IFS
8141   test -z "$as_dir" && as_dir=.
8142     for ac_exec_ext in '' $ac_executable_extensions; do
8143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8144     ac_cv_prog_ac_ct_OTOOL64="otool64"
8145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146     break 2
8147   fi
8148 done
8149   done
8150 IFS=$as_save_IFS
8151
8152 fi
8153 fi
8154 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8155 if test -n "$ac_ct_OTOOL64"; then
8156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8157 $as_echo "$ac_ct_OTOOL64" >&6; }
8158 else
8159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8161 fi
8162
8163   if test "x$ac_ct_OTOOL64" = x; then
8164     OTOOL64=":"
8165   else
8166     case $cross_compiling:$ac_tool_warned in
8167 yes:)
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8170 ac_tool_warned=yes ;;
8171 esac
8172     OTOOL64=$ac_ct_OTOOL64
8173   fi
8174 else
8175   OTOOL64="$ac_cv_prog_OTOOL64"
8176 fi
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8205 $as_echo_n "checking for -single_module linker flag... " >&6; }
8206 if ${lt_cv_apple_cc_single_mod+:} false; then :
8207   $as_echo_n "(cached) " >&6
8208 else
8209   lt_cv_apple_cc_single_mod=no
8210       if test -z "${LT_MULTI_MODULE}"; then
8211         # By default we will add the -single_module flag. You can override
8212         # by either setting the environment variable LT_MULTI_MODULE
8213         # non-empty at configure time, or by adding -multi_module to the
8214         # link flags.
8215         rm -rf libconftest.dylib*
8216         echo "int foo(void){return 1;}" > conftest.c
8217         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8218 -dynamiclib -Wl,-single_module conftest.c" >&5
8219         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8220           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8221         _lt_result=$?
8222         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8223           lt_cv_apple_cc_single_mod=yes
8224         else
8225           cat conftest.err >&5
8226         fi
8227         rm -rf libconftest.dylib*
8228         rm -f conftest.*
8229       fi
8230 fi
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8232 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8234 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8235 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8236   $as_echo_n "(cached) " >&6
8237 else
8238   lt_cv_ld_exported_symbols_list=no
8239       save_LDFLAGS=$LDFLAGS
8240       echo "_main" > conftest.sym
8241       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8242       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h.  */
8244
8245 int
8246 main ()
8247 {
8248
8249   ;
8250   return 0;
8251 }
8252 _ACEOF
8253 if ac_fn_c_try_link "$LINENO"; then :
8254   lt_cv_ld_exported_symbols_list=yes
8255 else
8256   lt_cv_ld_exported_symbols_list=no
8257 fi
8258 rm -f core conftest.err conftest.$ac_objext \
8259     conftest$ac_exeext conftest.$ac_ext
8260         LDFLAGS="$save_LDFLAGS"
8261
8262 fi
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8264 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8266 $as_echo_n "checking for -force_load linker flag... " >&6; }
8267 if ${lt_cv_ld_force_load+:} false; then :
8268   $as_echo_n "(cached) " >&6
8269 else
8270   lt_cv_ld_force_load=no
8271       cat > conftest.c << _LT_EOF
8272 int forced_loaded() { return 2;}
8273 _LT_EOF
8274       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8275       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8276       echo "$AR cru libconftest.a conftest.o" >&5
8277       $AR cru libconftest.a conftest.o 2>&5
8278       cat > conftest.c << _LT_EOF
8279 int main() { return 0;}
8280 _LT_EOF
8281       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8282       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8283       _lt_result=$?
8284       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8285         lt_cv_ld_force_load=yes
8286       else
8287         cat conftest.err >&5
8288       fi
8289         rm -f conftest.err libconftest.a conftest conftest.c
8290         rm -rf conftest.dSYM
8291
8292 fi
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8294 $as_echo "$lt_cv_ld_force_load" >&6; }
8295     case $host_os in
8296     rhapsody* | darwin1.[012])
8297       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8298     darwin1.*)
8299       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8300     darwin*) # darwin 5.x on
8301       # if running on 10.5 or later, the deployment target defaults
8302       # to the OS version, if on x86, and 10.4, the deployment
8303       # target defaults to 10.4. Don't you love it?
8304       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8305         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8306           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8307         10.[012][,.]*)
8308           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8309         10.*)
8310           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8311       esac
8312     ;;
8313   esac
8314     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8315       _lt_dar_single_mod='$single_module'
8316     fi
8317     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8318       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8319     else
8320       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8321     fi
8322     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8323       _lt_dsymutil='~$DSYMUTIL $lib || :'
8324     else
8325       _lt_dsymutil=
8326     fi
8327     ;;
8328   esac
8329
8330 for ac_header in dlfcn.h
8331 do :
8332   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8333 "
8334 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8335   cat >>confdefs.h <<_ACEOF
8336 #define HAVE_DLFCN_H 1
8337 _ACEOF
8338
8339 fi
8340
8341 done
8342
8343
8344
8345 # autoconf.info says this should be called right after AC_INIT.
8346 ac_config_headers="$ac_config_headers config.h:config.in"
8347
8348
8349
8350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8351 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8352 if ${ac_cv_c_bigendian+:} false; then :
8353   $as_echo_n "(cached) " >&6
8354 else
8355   ac_cv_c_bigendian=unknown
8356     # See if we're dealing with a universal compiler.
8357     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h.  */
8359 #ifndef __APPLE_CC__
8360                not a universal capable compiler
8361              #endif
8362              typedef int dummy;
8363
8364 _ACEOF
8365 if ac_fn_c_try_compile "$LINENO"; then :
8366
8367         # Check for potential -arch flags.  It is not universal unless
8368         # there are at least two -arch flags with different values.
8369         ac_arch=
8370         ac_prev=
8371         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8372          if test -n "$ac_prev"; then
8373            case $ac_word in
8374              i?86 | x86_64 | ppc | ppc64)
8375                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8376                  ac_arch=$ac_word
8377                else
8378                  ac_cv_c_bigendian=universal
8379                  break
8380                fi
8381                ;;
8382            esac
8383            ac_prev=
8384          elif test "x$ac_word" = "x-arch"; then
8385            ac_prev=arch
8386          fi
8387        done
8388 fi
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390     if test $ac_cv_c_bigendian = unknown; then
8391       # See if sys/param.h defines the BYTE_ORDER macro.
8392       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h.  */
8394 #include <sys/types.h>
8395              #include <sys/param.h>
8396
8397 int
8398 main ()
8399 {
8400 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8401                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8402                      && LITTLE_ENDIAN)
8403               bogus endian macros
8404              #endif
8405
8406   ;
8407   return 0;
8408 }
8409 _ACEOF
8410 if ac_fn_c_try_compile "$LINENO"; then :
8411   # It does; now see whether it defined to BIG_ENDIAN or not.
8412          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h.  */
8414 #include <sys/types.h>
8415                 #include <sys/param.h>
8416
8417 int
8418 main ()
8419 {
8420 #if BYTE_ORDER != BIG_ENDIAN
8421                  not big endian
8422                 #endif
8423
8424   ;
8425   return 0;
8426 }
8427 _ACEOF
8428 if ac_fn_c_try_compile "$LINENO"; then :
8429   ac_cv_c_bigendian=yes
8430 else
8431   ac_cv_c_bigendian=no
8432 fi
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 fi
8435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8436     fi
8437     if test $ac_cv_c_bigendian = unknown; then
8438       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8439       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h.  */
8441 #include <limits.h>
8442
8443 int
8444 main ()
8445 {
8446 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8447               bogus endian macros
8448              #endif
8449
8450   ;
8451   return 0;
8452 }
8453 _ACEOF
8454 if ac_fn_c_try_compile "$LINENO"; then :
8455   # It does; now see whether it defined to _BIG_ENDIAN or not.
8456          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h.  */
8458 #include <limits.h>
8459
8460 int
8461 main ()
8462 {
8463 #ifndef _BIG_ENDIAN
8464                  not big endian
8465                 #endif
8466
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 if ac_fn_c_try_compile "$LINENO"; then :
8472   ac_cv_c_bigendian=yes
8473 else
8474   ac_cv_c_bigendian=no
8475 fi
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477 fi
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479     fi
8480     if test $ac_cv_c_bigendian = unknown; then
8481       # Compile a test program.
8482       if test "$cross_compiling" = yes; then :
8483   # Try to guess by grepping values from an object file.
8484          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h.  */
8486 short int ascii_mm[] =
8487                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8488                 short int ascii_ii[] =
8489                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8490                 int use_ascii (int i) {
8491                   return ascii_mm[i] + ascii_ii[i];
8492                 }
8493                 short int ebcdic_ii[] =
8494                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8495                 short int ebcdic_mm[] =
8496                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8497                 int use_ebcdic (int i) {
8498                   return ebcdic_mm[i] + ebcdic_ii[i];
8499                 }
8500                 extern int foo;
8501
8502 int
8503 main ()
8504 {
8505 return use_ascii (foo) == use_ebcdic (foo);
8506   ;
8507   return 0;
8508 }
8509 _ACEOF
8510 if ac_fn_c_try_compile "$LINENO"; then :
8511   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8512               ac_cv_c_bigendian=yes
8513             fi
8514             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8515               if test "$ac_cv_c_bigendian" = unknown; then
8516                 ac_cv_c_bigendian=no
8517               else
8518                 # finding both strings is unlikely to happen, but who knows?
8519                 ac_cv_c_bigendian=unknown
8520               fi
8521             fi
8522 fi
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 else
8525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h.  */
8527 $ac_includes_default
8528 int
8529 main ()
8530 {
8531
8532              /* Are we little or big endian?  From Harbison&Steele.  */
8533              union
8534              {
8535                long int l;
8536                char c[sizeof (long int)];
8537              } u;
8538              u.l = 1;
8539              return u.c[sizeof (long int) - 1] == 1;
8540
8541   ;
8542   return 0;
8543 }
8544 _ACEOF
8545 if ac_fn_c_try_run "$LINENO"; then :
8546   ac_cv_c_bigendian=no
8547 else
8548   ac_cv_c_bigendian=yes
8549 fi
8550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8551   conftest.$ac_objext conftest.beam conftest.$ac_ext
8552 fi
8553
8554     fi
8555 fi
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8557 $as_echo "$ac_cv_c_bigendian" >&6; }
8558  case $ac_cv_c_bigendian in #(
8559    yes)
8560      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8561 ;; #(
8562    no)
8563       ;; #(
8564    universal)
8565
8566 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8567
8568      ;; #(
8569    *)
8570      as_fn_error $? "unknown endianness
8571  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8572  esac
8573
8574
8575
8576
8577 # Put a plausible default for CC_FOR_BUILD in Makefile.
8578 if test -z "$CC_FOR_BUILD"; then
8579   if test "x$cross_compiling" = "xno"; then
8580     CC_FOR_BUILD='$(CC)'
8581   else
8582     CC_FOR_BUILD=gcc
8583   fi
8584 fi
8585
8586
8587
8588
8589 AR=${AR-ar}
8590
8591 if test -n "$ac_tool_prefix"; then
8592   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8593 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if ${ac_cv_prog_RANLIB+:} false; then :
8597   $as_echo_n "(cached) " >&6
8598 else
8599   if test -n "$RANLIB"; then
8600   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8601 else
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8604 do
8605   IFS=$as_save_IFS
8606   test -z "$as_dir" && as_dir=.
8607     for ac_exec_ext in '' $ac_executable_extensions; do
8608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8609     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611     break 2
8612   fi
8613 done
8614   done
8615 IFS=$as_save_IFS
8616
8617 fi
8618 fi
8619 RANLIB=$ac_cv_prog_RANLIB
8620 if test -n "$RANLIB"; then
8621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8622 $as_echo "$RANLIB" >&6; }
8623 else
8624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8626 fi
8627
8628
8629 fi
8630 if test -z "$ac_cv_prog_RANLIB"; then
8631   ac_ct_RANLIB=$RANLIB
8632   # Extract the first word of "ranlib", so it can be a program name with args.
8633 set dummy ranlib; ac_word=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8637   $as_echo_n "(cached) " >&6
8638 else
8639   if test -n "$ac_ct_RANLIB"; then
8640   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8641 else
8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 for as_dir in $PATH
8644 do
8645   IFS=$as_save_IFS
8646   test -z "$as_dir" && as_dir=.
8647     for ac_exec_ext in '' $ac_executable_extensions; do
8648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8649     ac_cv_prog_ac_ct_RANLIB="ranlib"
8650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651     break 2
8652   fi
8653 done
8654   done
8655 IFS=$as_save_IFS
8656
8657 fi
8658 fi
8659 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8660 if test -n "$ac_ct_RANLIB"; then
8661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8662 $as_echo "$ac_ct_RANLIB" >&6; }
8663 else
8664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 $as_echo "no" >&6; }
8666 fi
8667
8668   if test "x$ac_ct_RANLIB" = x; then
8669     RANLIB=":"
8670   else
8671     case $cross_compiling:$ac_tool_warned in
8672 yes:)
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8675 ac_tool_warned=yes ;;
8676 esac
8677     RANLIB=$ac_ct_RANLIB
8678   fi
8679 else
8680   RANLIB="$ac_cv_prog_RANLIB"
8681 fi
8682
8683
8684 # Some of the common include files depend on bfd.h, and bfd.h checks
8685 # that config.h is included first by testing that the PACKAGE macro
8686 # is defined.
8687 PACKAGE=sim
8688
8689 cat >>confdefs.h <<_ACEOF
8690 #define PACKAGE "$PACKAGE"
8691 _ACEOF
8692
8693
8694
8695 # Dependency checking.
8696 ac_config_commands="$ac_config_commands depdir"
8697
8698
8699 depcc="$CC"   am_compiler_list=
8700
8701 am_depcomp=$ac_aux_dir/depcomp
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8703 $as_echo_n "checking dependency style of $depcc... " >&6; }
8704 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8705   $as_echo_n "(cached) " >&6
8706 else
8707   if test -f "$am_depcomp"; then
8708   # We make a subdir and do the tests there.  Otherwise we can end up
8709   # making bogus files that we don't know about and never remove.  For
8710   # instance it was reported that on HP-UX the gcc test will end up
8711   # making a dummy file named `D' -- because `-MD' means `put the output
8712   # in D'.
8713   mkdir conftest.dir
8714   # Copy depcomp to subdir because otherwise we won't find it if we're
8715   # using a relative directory.
8716   cp "$am_depcomp" conftest.dir
8717   cd conftest.dir
8718   # We will build objects and dependencies in a subdirectory because
8719   # it helps to detect inapplicable dependency modes.  For instance
8720   # both Tru64's cc and ICC support -MD to output dependencies as a
8721   # side effect of compilation, but ICC will put the dependencies in
8722   # the current directory while Tru64 will put them in the object
8723   # directory.
8724   mkdir sub
8725
8726   am_cv_CC_dependencies_compiler_type=none
8727   if test "$am_compiler_list" = ""; then
8728      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8729   fi
8730   for depmode in $am_compiler_list; do
8731     if test $depmode = none; then break; fi
8732
8733     $as_echo "$as_me:$LINENO: trying $depmode" >&5
8734     # Setup a source with many dependencies, because some compilers
8735     # like to wrap large dependency lists on column 80 (with \), and
8736     # we should not choose a depcomp mode which is confused by this.
8737     #
8738     # We need to recreate these files for each test, as the compiler may
8739     # overwrite some of them when testing with obscure command lines.
8740     # This happens at least with the AIX C compiler.
8741     : > sub/conftest.c
8742     for i in 1 2 3 4 5 6; do
8743       echo '#include "conftst'$i'.h"' >> sub/conftest.c
8744       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8745       # Solaris 8's {/usr,}/bin/sh.
8746       touch sub/conftst$i.h
8747     done
8748     echo "include sub/conftest.Po" > confmf
8749
8750     # We check with `-c' and `-o' for the sake of the "dashmstdout"
8751     # mode.  It turns out that the SunPro C++ compiler does not properly
8752     # handle `-M -o', and we need to detect this.
8753     depcmd="depmode=$depmode \
8754        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8755        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8756        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8757     echo "| $depcmd" | sed -e 's/  */ /g' >&5
8758     if env $depcmd > conftest.err 2>&1 &&
8759        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8760        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8761        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8762       # icc doesn't choke on unknown options, it will just issue warnings
8763       # or remarks (even with -Werror).  So we grep stderr for any message
8764       # that says an option was ignored or not supported.
8765       # When given -MP, icc 7.0 and 7.1 complain thusly:
8766       #   icc: Command line warning: ignoring option '-M'; no argument required
8767       # The diagnosis changed in icc 8.0:
8768       #   icc: Command line remark: option '-MP' not supported
8769       if (grep 'ignoring option' conftest.err ||
8770           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8771         am_cv_CC_dependencies_compiler_type=$depmode
8772         $as_echo "$as_me:$LINENO: success" >&5
8773         break
8774       fi
8775     fi
8776     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8777     sed -e 's/^/| /' < conftest.err >&5
8778   done
8779
8780   cd ..
8781   rm -rf conftest.dir
8782 else
8783   am_cv_CC_dependencies_compiler_type=none
8784 fi
8785
8786 fi
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8788 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8789 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
8790 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
8791 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8792
8793 fi
8794
8795
8796 # Check for the 'make' the user wants to use.
8797 for ac_prog in make
8798 do
8799   # Extract the first word of "$ac_prog", so it can be a program name with args.
8800 set dummy $ac_prog; ac_word=$2
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8802 $as_echo_n "checking for $ac_word... " >&6; }
8803 if ${ac_cv_prog_MAKE+:} false; then :
8804   $as_echo_n "(cached) " >&6
8805 else
8806   if test -n "$MAKE"; then
8807   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
8808 else
8809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810 for as_dir in $PATH
8811 do
8812   IFS=$as_save_IFS
8813   test -z "$as_dir" && as_dir=.
8814     for ac_exec_ext in '' $ac_executable_extensions; do
8815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8816     ac_cv_prog_MAKE="$ac_prog"
8817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818     break 2
8819   fi
8820 done
8821   done
8822 IFS=$as_save_IFS
8823
8824 fi
8825 fi
8826 MAKE=$ac_cv_prog_MAKE
8827 if test -n "$MAKE"; then
8828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
8829 $as_echo "$MAKE" >&6; }
8830 else
8831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832 $as_echo "no" >&6; }
8833 fi
8834
8835
8836   test -n "$MAKE" && break
8837 done
8838
8839 MAKE_IS_GNU=
8840 case "`$MAKE --version 2>&1 | sed 1q`" in
8841   *GNU*)
8842     MAKE_IS_GNU=yes
8843     ;;
8844 esac
8845  if test "$MAKE_IS_GNU" = yes; then
8846   GMAKE_TRUE=
8847   GMAKE_FALSE='#'
8848 else
8849   GMAKE_TRUE='#'
8850   GMAKE_FALSE=
8851 fi
8852
8853
8854 ALL_LINGUAS=
8855 # If we haven't got the data from the intl directory,
8856 # assume NLS is disabled.
8857 USE_NLS=no
8858 LIBINTL=
8859 LIBINTL_DEP=
8860 INCINTL=
8861 XGETTEXT=
8862 GMSGFMT=
8863 POSUB=
8864
8865 if test -f  ../../intl/config.intl; then
8866   .  ../../intl/config.intl
8867 fi
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8869 $as_echo_n "checking whether NLS is requested... " >&6; }
8870 if test x"$USE_NLS" != xyes; then
8871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 $as_echo "no" >&6; }
8873 else
8874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8875 $as_echo "yes" >&6; }
8876
8877 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8878
8879
8880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8881 $as_echo_n "checking for catalogs to be installed... " >&6; }
8882   # Look for .po and .gmo files in the source directory.
8883   CATALOGS=
8884   XLINGUAS=
8885   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8886     # If there aren't any .gmo files the shell will give us the
8887     # literal string "../path/to/srcdir/po/*.gmo" which has to be
8888     # weeded out.
8889     case "$cat" in *\**)
8890       continue;;
8891     esac
8892     # The quadruple backslash is collapsed to a double backslash
8893     # by the backticks, then collapsed again by the double quotes,
8894     # leaving us with one backslash in the sed expression (right
8895     # before the dot that mustn't act as a wildcard).
8896     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8897     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8898     # The user is allowed to set LINGUAS to a list of languages to
8899     # install catalogs for.  If it's empty that means "all of them."
8900     if test "x$LINGUAS" = x; then
8901       CATALOGS="$CATALOGS $cat"
8902       XLINGUAS="$XLINGUAS $lang"
8903     else
8904       case "$LINGUAS" in *$lang*)
8905         CATALOGS="$CATALOGS $cat"
8906         XLINGUAS="$XLINGUAS $lang"
8907         ;;
8908       esac
8909     fi
8910   done
8911   LINGUAS="$XLINGUAS"
8912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8913 $as_echo "$LINGUAS" >&6; }
8914
8915
8916     DATADIRNAME=share
8917
8918   INSTOBJEXT=.mo
8919
8920   GENCAT=gencat
8921
8922   CATOBJEXT=.gmo
8923
8924 fi
8925
8926 # Check for common headers.
8927 # FIXME: Seems to me this can cause problems for i386-windows hosts.
8928 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
8929 for ac_header in stdlib.h string.h strings.h unistd.h time.h
8930 do :
8931   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8932 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8933 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8934   cat >>confdefs.h <<_ACEOF
8935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8936 _ACEOF
8937
8938 fi
8939
8940 done
8941
8942 for ac_header in sys/time.h sys/times.h sys/resource.h sys/mman.h
8943 do :
8944   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8947   cat >>confdefs.h <<_ACEOF
8948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8949 _ACEOF
8950
8951 fi
8952
8953 done
8954
8955 for ac_header in fcntl.h fpu_control.h
8956 do :
8957   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8958 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8959 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8960   cat >>confdefs.h <<_ACEOF
8961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8962 _ACEOF
8963
8964 fi
8965
8966 done
8967
8968 for ac_header in dlfcn.h errno.h sys/stat.h
8969 do :
8970   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8971 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8972 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8973   cat >>confdefs.h <<_ACEOF
8974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8975 _ACEOF
8976
8977 fi
8978
8979 done
8980
8981 for ac_func in getrusage time sigaction __setfpucw
8982 do :
8983   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8984 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8985 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8986   cat >>confdefs.h <<_ACEOF
8987 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8988 _ACEOF
8989
8990 fi
8991 done
8992
8993 for ac_func in mmap munmap lstat truncate ftruncate posix_fallocate
8994 do :
8995   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8996 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8997 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8998   cat >>confdefs.h <<_ACEOF
8999 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9000 _ACEOF
9001
9002 fi
9003 done
9004
9005 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
9006 #include <sys/types.h>
9007 #endif
9008 #ifdef HAVE_SYS_STAT_H
9009 #include <sys/stat.h>
9010 #endif
9011 "
9012 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
9013
9014 cat >>confdefs.h <<_ACEOF
9015 #define HAVE_STRUCT_STAT_ST_DEV 1
9016 _ACEOF
9017
9018
9019 fi
9020 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
9021 #include <sys/types.h>
9022 #endif
9023 #ifdef HAVE_SYS_STAT_H
9024 #include <sys/stat.h>
9025 #endif
9026 "
9027 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
9028
9029 cat >>confdefs.h <<_ACEOF
9030 #define HAVE_STRUCT_STAT_ST_INO 1
9031 _ACEOF
9032
9033
9034 fi
9035 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
9036 #include <sys/types.h>
9037 #endif
9038 #ifdef HAVE_SYS_STAT_H
9039 #include <sys/stat.h>
9040 #endif
9041 "
9042 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
9043
9044 cat >>confdefs.h <<_ACEOF
9045 #define HAVE_STRUCT_STAT_ST_MODE 1
9046 _ACEOF
9047
9048
9049 fi
9050 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
9051 #include <sys/types.h>
9052 #endif
9053 #ifdef HAVE_SYS_STAT_H
9054 #include <sys/stat.h>
9055 #endif
9056 "
9057 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
9058
9059 cat >>confdefs.h <<_ACEOF
9060 #define HAVE_STRUCT_STAT_ST_NLINK 1
9061 _ACEOF
9062
9063
9064 fi
9065 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
9066 #include <sys/types.h>
9067 #endif
9068 #ifdef HAVE_SYS_STAT_H
9069 #include <sys/stat.h>
9070 #endif
9071 "
9072 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
9073
9074 cat >>confdefs.h <<_ACEOF
9075 #define HAVE_STRUCT_STAT_ST_UID 1
9076 _ACEOF
9077
9078
9079 fi
9080 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
9081 #include <sys/types.h>
9082 #endif
9083 #ifdef HAVE_SYS_STAT_H
9084 #include <sys/stat.h>
9085 #endif
9086 "
9087 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
9088
9089 cat >>confdefs.h <<_ACEOF
9090 #define HAVE_STRUCT_STAT_ST_GID 1
9091 _ACEOF
9092
9093
9094 fi
9095 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
9096 #include <sys/types.h>
9097 #endif
9098 #ifdef HAVE_SYS_STAT_H
9099 #include <sys/stat.h>
9100 #endif
9101 "
9102 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
9103
9104 cat >>confdefs.h <<_ACEOF
9105 #define HAVE_STRUCT_STAT_ST_RDEV 1
9106 _ACEOF
9107
9108
9109 fi
9110 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
9111 #include <sys/types.h>
9112 #endif
9113 #ifdef HAVE_SYS_STAT_H
9114 #include <sys/stat.h>
9115 #endif
9116 "
9117 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
9118
9119 cat >>confdefs.h <<_ACEOF
9120 #define HAVE_STRUCT_STAT_ST_SIZE 1
9121 _ACEOF
9122
9123
9124 fi
9125 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
9126 #include <sys/types.h>
9127 #endif
9128 #ifdef HAVE_SYS_STAT_H
9129 #include <sys/stat.h>
9130 #endif
9131 "
9132 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
9133
9134 cat >>confdefs.h <<_ACEOF
9135 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9136 _ACEOF
9137
9138
9139 fi
9140 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
9141 #include <sys/types.h>
9142 #endif
9143 #ifdef HAVE_SYS_STAT_H
9144 #include <sys/stat.h>
9145 #endif
9146 "
9147 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
9148
9149 cat >>confdefs.h <<_ACEOF
9150 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9151 _ACEOF
9152
9153
9154 fi
9155 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
9156 #include <sys/types.h>
9157 #endif
9158 #ifdef HAVE_SYS_STAT_H
9159 #include <sys/stat.h>
9160 #endif
9161 "
9162 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
9163
9164 cat >>confdefs.h <<_ACEOF
9165 #define HAVE_STRUCT_STAT_ST_ATIME 1
9166 _ACEOF
9167
9168
9169 fi
9170 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
9171 #include <sys/types.h>
9172 #endif
9173 #ifdef HAVE_SYS_STAT_H
9174 #include <sys/stat.h>
9175 #endif
9176 "
9177 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
9178
9179 cat >>confdefs.h <<_ACEOF
9180 #define HAVE_STRUCT_STAT_ST_MTIME 1
9181 _ACEOF
9182
9183
9184 fi
9185 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
9186 #include <sys/types.h>
9187 #endif
9188 #ifdef HAVE_SYS_STAT_H
9189 #include <sys/stat.h>
9190 #endif
9191 "
9192 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
9193
9194 cat >>confdefs.h <<_ACEOF
9195 #define HAVE_STRUCT_STAT_ST_CTIME 1
9196 _ACEOF
9197
9198
9199 fi
9200
9201 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9202 #include <sys/socket.h>
9203
9204 "
9205 if test "x$ac_cv_type_socklen_t" = xyes; then :
9206
9207 cat >>confdefs.h <<_ACEOF
9208 #define HAVE_SOCKLEN_T 1
9209 _ACEOF
9210
9211
9212 fi
9213
9214
9215 # Check for socket libraries
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
9217 $as_echo_n "checking for bind in -lsocket... " >&6; }
9218 if ${ac_cv_lib_socket_bind+:} false; then :
9219   $as_echo_n "(cached) " >&6
9220 else
9221   ac_check_lib_save_LIBS=$LIBS
9222 LIBS="-lsocket  $LIBS"
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h.  */
9225
9226 /* Override any GCC internal prototype to avoid an error.
9227    Use char because int might match the return type of a GCC
9228    builtin and then its argument prototype would still apply.  */
9229 #ifdef __cplusplus
9230 extern "C"
9231 #endif
9232 char bind ();
9233 int
9234 main ()
9235 {
9236 return bind ();
9237   ;
9238   return 0;
9239 }
9240 _ACEOF
9241 if ac_fn_c_try_link "$LINENO"; then :
9242   ac_cv_lib_socket_bind=yes
9243 else
9244   ac_cv_lib_socket_bind=no
9245 fi
9246 rm -f core conftest.err conftest.$ac_objext \
9247     conftest$ac_exeext conftest.$ac_ext
9248 LIBS=$ac_check_lib_save_LIBS
9249 fi
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
9251 $as_echo "$ac_cv_lib_socket_bind" >&6; }
9252 if test "x$ac_cv_lib_socket_bind" = xyes; then :
9253   cat >>confdefs.h <<_ACEOF
9254 #define HAVE_LIBSOCKET 1
9255 _ACEOF
9256
9257   LIBS="-lsocket $LIBS"
9258
9259 fi
9260
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9262 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
9263 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
9264   $as_echo_n "(cached) " >&6
9265 else
9266   ac_check_lib_save_LIBS=$LIBS
9267 LIBS="-lnsl  $LIBS"
9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h.  */
9270
9271 /* Override any GCC internal prototype to avoid an error.
9272    Use char because int might match the return type of a GCC
9273    builtin and then its argument prototype would still apply.  */
9274 #ifdef __cplusplus
9275 extern "C"
9276 #endif
9277 char gethostbyname ();
9278 int
9279 main ()
9280 {
9281 return gethostbyname ();
9282   ;
9283   return 0;
9284 }
9285 _ACEOF
9286 if ac_fn_c_try_link "$LINENO"; then :
9287   ac_cv_lib_nsl_gethostbyname=yes
9288 else
9289   ac_cv_lib_nsl_gethostbyname=no
9290 fi
9291 rm -f core conftest.err conftest.$ac_objext \
9292     conftest$ac_exeext conftest.$ac_ext
9293 LIBS=$ac_check_lib_save_LIBS
9294 fi
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9296 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9297 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9298   cat >>confdefs.h <<_ACEOF
9299 #define HAVE_LIBNSL 1
9300 _ACEOF
9301
9302   LIBS="-lnsl $LIBS"
9303
9304 fi
9305
9306
9307 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
9308 # using the same condition.
9309
9310   # Use the system's zlib library.
9311   zlibdir="-L\$(top_builddir)/../zlib"
9312   zlibinc="-I\$(top_srcdir)/../zlib"
9313
9314 # Check whether --with-system-zlib was given.
9315 if test "${with_system_zlib+set}" = set; then :
9316   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
9317     zlibdir=
9318     zlibinc=
9319   fi
9320
9321 fi
9322
9323
9324
9325
9326
9327 # BFD uses libdl when when plugins enabled.
9328
9329   maybe_plugins=no
9330   for ac_header in dlfcn.h
9331 do :
9332   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9333 "
9334 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9335   cat >>confdefs.h <<_ACEOF
9336 #define HAVE_DLFCN_H 1
9337 _ACEOF
9338  maybe_plugins=yes
9339 fi
9340
9341 done
9342
9343   for ac_header in windows.h
9344 do :
9345   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
9346 "
9347 if test "x$ac_cv_header_windows_h" = xyes; then :
9348   cat >>confdefs.h <<_ACEOF
9349 #define HAVE_WINDOWS_H 1
9350 _ACEOF
9351  maybe_plugins=yes
9352 fi
9353
9354 done
9355
9356
9357   # Check whether --enable-plugins was given.
9358 if test "${enable_plugins+set}" = set; then :
9359   enableval=$enable_plugins; case "${enableval}" in
9360       no) plugins=no ;;
9361       *) plugins=yes
9362          if test "$maybe_plugins" != "yes" ; then
9363            as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
9364          fi ;;
9365      esac
9366 else
9367   plugins=$maybe_plugins
9368
9369 fi
9370
9371   if test "$plugins" = "yes"; then
9372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
9373 $as_echo_n "checking for library containing dlsym... " >&6; }
9374 if ${ac_cv_search_dlsym+:} false; then :
9375   $as_echo_n "(cached) " >&6
9376 else
9377   ac_func_search_save_LIBS=$LIBS
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h.  */
9380
9381 /* Override any GCC internal prototype to avoid an error.
9382    Use char because int might match the return type of a GCC
9383    builtin and then its argument prototype would still apply.  */
9384 #ifdef __cplusplus
9385 extern "C"
9386 #endif
9387 char dlsym ();
9388 int
9389 main ()
9390 {
9391 return dlsym ();
9392   ;
9393   return 0;
9394 }
9395 _ACEOF
9396 for ac_lib in '' dl; do
9397   if test -z "$ac_lib"; then
9398     ac_res="none required"
9399   else
9400     ac_res=-l$ac_lib
9401     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9402   fi
9403   if ac_fn_c_try_link "$LINENO"; then :
9404   ac_cv_search_dlsym=$ac_res
9405 fi
9406 rm -f core conftest.err conftest.$ac_objext \
9407     conftest$ac_exeext
9408   if ${ac_cv_search_dlsym+:} false; then :
9409   break
9410 fi
9411 done
9412 if ${ac_cv_search_dlsym+:} false; then :
9413
9414 else
9415   ac_cv_search_dlsym=no
9416 fi
9417 rm conftest.$ac_ext
9418 LIBS=$ac_func_search_save_LIBS
9419 fi
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
9421 $as_echo "$ac_cv_search_dlsym" >&6; }
9422 ac_res=$ac_cv_search_dlsym
9423 if test "$ac_res" != no; then :
9424   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9425
9426 fi
9427
9428   fi
9429
9430  if test "$plugins" = yes; then
9431   PLUGINS_TRUE=
9432   PLUGINS_FALSE='#'
9433 else
9434   PLUGINS_TRUE='#'
9435   PLUGINS_FALSE=
9436 fi
9437
9438
9439
9440
9441
9442 # Set options
9443 enable_dlopen=yes
9444
9445
9446
9447
9448   enable_win32_dll=no
9449
9450
9451             # Check whether --enable-shared was given.
9452 if test "${enable_shared+set}" = set; then :
9453   enableval=$enable_shared; p=${PACKAGE-default}
9454     case $enableval in
9455     yes) enable_shared=yes ;;
9456     no) enable_shared=no ;;
9457     *)
9458       enable_shared=no
9459       # Look at the argument we got.  We use all the common list separators.
9460       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9461       for pkg in $enableval; do
9462         IFS="$lt_save_ifs"
9463         if test "X$pkg" = "X$p"; then
9464           enable_shared=yes
9465         fi
9466       done
9467       IFS="$lt_save_ifs"
9468       ;;
9469     esac
9470 else
9471   enable_shared=yes
9472 fi
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482   # Check whether --enable-static was given.
9483 if test "${enable_static+set}" = set; then :
9484   enableval=$enable_static; p=${PACKAGE-default}
9485     case $enableval in
9486     yes) enable_static=yes ;;
9487     no) enable_static=no ;;
9488     *)
9489      enable_static=no
9490       # Look at the argument we got.  We use all the common list separators.
9491       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9492       for pkg in $enableval; do
9493         IFS="$lt_save_ifs"
9494         if test "X$pkg" = "X$p"; then
9495           enable_static=yes
9496         fi
9497       done
9498       IFS="$lt_save_ifs"
9499       ;;
9500     esac
9501 else
9502   enable_static=yes
9503 fi
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514 # Check whether --with-pic was given.
9515 if test "${with_pic+set}" = set; then :
9516   withval=$with_pic; pic_mode="$withval"
9517 else
9518   pic_mode=default
9519 fi
9520
9521
9522 test -z "$pic_mode" && pic_mode=default
9523
9524
9525
9526
9527
9528
9529
9530   # Check whether --enable-fast-install was given.
9531 if test "${enable_fast_install+set}" = set; then :
9532   enableval=$enable_fast_install; p=${PACKAGE-default}
9533     case $enableval in
9534     yes) enable_fast_install=yes ;;
9535     no) enable_fast_install=no ;;
9536     *)
9537       enable_fast_install=no
9538       # Look at the argument we got.  We use all the common list separators.
9539       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9540       for pkg in $enableval; do
9541         IFS="$lt_save_ifs"
9542         if test "X$pkg" = "X$p"; then
9543           enable_fast_install=yes
9544         fi
9545       done
9546       IFS="$lt_save_ifs"
9547       ;;
9548     esac
9549 else
9550   enable_fast_install=yes
9551 fi
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563 # This can be used to rebuild libtool when needed
9564 LIBTOOL_DEPS="$ltmain"
9565
9566 # Always use our own libtool.
9567 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594 test -z "$LN_S" && LN_S="ln -s"
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609 if test -n "${ZSH_VERSION+set}" ; then
9610    setopt NO_GLOB_SUBST
9611 fi
9612
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9614 $as_echo_n "checking for objdir... " >&6; }
9615 if ${lt_cv_objdir+:} false; then :
9616   $as_echo_n "(cached) " >&6
9617 else
9618   rm -f .libs 2>/dev/null
9619 mkdir .libs 2>/dev/null
9620 if test -d .libs; then
9621   lt_cv_objdir=.libs
9622 else
9623   # MS-DOS does not allow filenames that begin with a dot.
9624   lt_cv_objdir=_libs
9625 fi
9626 rmdir .libs 2>/dev/null
9627 fi
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9629 $as_echo "$lt_cv_objdir" >&6; }
9630 objdir=$lt_cv_objdir
9631
9632
9633
9634
9635
9636 cat >>confdefs.h <<_ACEOF
9637 #define LT_OBJDIR "$lt_cv_objdir/"
9638 _ACEOF
9639
9640
9641
9642
9643 case $host_os in
9644 aix3*)
9645   # AIX sometimes has problems with the GCC collect2 program.  For some
9646   # reason, if we set the COLLECT_NAMES environment variable, the problems
9647   # vanish in a puff of smoke.
9648   if test "X${COLLECT_NAMES+set}" != Xset; then
9649     COLLECT_NAMES=
9650     export COLLECT_NAMES
9651   fi
9652   ;;
9653 esac
9654
9655 # Global variables:
9656 ofile=libtool
9657 can_build_shared=yes
9658
9659 # All known linkers require a `.a' archive for static linking (except MSVC,
9660 # which needs '.lib').
9661 libext=a
9662
9663 with_gnu_ld="$lt_cv_prog_gnu_ld"
9664
9665 old_CC="$CC"
9666 old_CFLAGS="$CFLAGS"
9667
9668 # Set sane defaults for various variables
9669 test -z "$CC" && CC=cc
9670 test -z "$LTCC" && LTCC=$CC
9671 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9672 test -z "$LD" && LD=ld
9673 test -z "$ac_objext" && ac_objext=o
9674
9675 for cc_temp in $compiler""; do
9676   case $cc_temp in
9677     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9678     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9679     \-*) ;;
9680     *) break;;
9681   esac
9682 done
9683 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9684
9685
9686 # Only perform the check for file, if the check method requires it
9687 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9688 case $deplibs_check_method in
9689 file_magic*)
9690   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9692 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9693 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9694   $as_echo_n "(cached) " >&6
9695 else
9696   case $MAGIC_CMD in
9697 [\\/*] |  ?:[\\/]*)
9698   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9699   ;;
9700 *)
9701   lt_save_MAGIC_CMD="$MAGIC_CMD"
9702   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9703   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9704   for ac_dir in $ac_dummy; do
9705     IFS="$lt_save_ifs"
9706     test -z "$ac_dir" && ac_dir=.
9707     if test -f $ac_dir/${ac_tool_prefix}file; then
9708       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9709       if test -n "$file_magic_test_file"; then
9710         case $deplibs_check_method in
9711         "file_magic "*)
9712           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9713           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9714           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9715             $EGREP "$file_magic_regex" > /dev/null; then
9716             :
9717           else
9718             cat <<_LT_EOF 1>&2
9719
9720 *** Warning: the command libtool uses to detect shared libraries,
9721 *** $file_magic_cmd, produces output that libtool cannot recognize.
9722 *** The result is that libtool may fail to recognize shared libraries
9723 *** as such.  This will affect the creation of libtool libraries that
9724 *** depend on shared libraries, but programs linked with such libtool
9725 *** libraries will work regardless of this problem.  Nevertheless, you
9726 *** may want to report the problem to your system manager and/or to
9727 *** bug-libtool@gnu.org
9728
9729 _LT_EOF
9730           fi ;;
9731         esac
9732       fi
9733       break
9734     fi
9735   done
9736   IFS="$lt_save_ifs"
9737   MAGIC_CMD="$lt_save_MAGIC_CMD"
9738   ;;
9739 esac
9740 fi
9741
9742 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9743 if test -n "$MAGIC_CMD"; then
9744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9745 $as_echo "$MAGIC_CMD" >&6; }
9746 else
9747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748 $as_echo "no" >&6; }
9749 fi
9750
9751
9752
9753
9754
9755 if test -z "$lt_cv_path_MAGIC_CMD"; then
9756   if test -n "$ac_tool_prefix"; then
9757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9758 $as_echo_n "checking for file... " >&6; }
9759 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9760   $as_echo_n "(cached) " >&6
9761 else
9762   case $MAGIC_CMD in
9763 [\\/*] |  ?:[\\/]*)
9764   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9765   ;;
9766 *)
9767   lt_save_MAGIC_CMD="$MAGIC_CMD"
9768   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9769   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9770   for ac_dir in $ac_dummy; do
9771     IFS="$lt_save_ifs"
9772     test -z "$ac_dir" && ac_dir=.
9773     if test -f $ac_dir/file; then
9774       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9775       if test -n "$file_magic_test_file"; then
9776         case $deplibs_check_method in
9777         "file_magic "*)
9778           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9779           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9780           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9781             $EGREP "$file_magic_regex" > /dev/null; then
9782             :
9783           else
9784             cat <<_LT_EOF 1>&2
9785
9786 *** Warning: the command libtool uses to detect shared libraries,
9787 *** $file_magic_cmd, produces output that libtool cannot recognize.
9788 *** The result is that libtool may fail to recognize shared libraries
9789 *** as such.  This will affect the creation of libtool libraries that
9790 *** depend on shared libraries, but programs linked with such libtool
9791 *** libraries will work regardless of this problem.  Nevertheless, you
9792 *** may want to report the problem to your system manager and/or to
9793 *** bug-libtool@gnu.org
9794
9795 _LT_EOF
9796           fi ;;
9797         esac
9798       fi
9799       break
9800     fi
9801   done
9802   IFS="$lt_save_ifs"
9803   MAGIC_CMD="$lt_save_MAGIC_CMD"
9804   ;;
9805 esac
9806 fi
9807
9808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9809 if test -n "$MAGIC_CMD"; then
9810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9811 $as_echo "$MAGIC_CMD" >&6; }
9812 else
9813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9814 $as_echo "no" >&6; }
9815 fi
9816
9817
9818   else
9819     MAGIC_CMD=:
9820   fi
9821 fi
9822
9823   fi
9824   ;;
9825 esac
9826
9827 # Use C for the default configuration in the libtool script
9828
9829 lt_save_CC="$CC"
9830 ac_ext=c
9831 ac_cpp='$CPP $CPPFLAGS'
9832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9835
9836
9837 # Source file extension for C test sources.
9838 ac_ext=c
9839
9840 # Object file extension for compiled C test sources.
9841 objext=o
9842 objext=$objext
9843
9844 # Code to be used in simple compile tests
9845 lt_simple_compile_test_code="int some_variable = 0;"
9846
9847 # Code to be used in simple link tests
9848 lt_simple_link_test_code='int main(){return(0);}'
9849
9850
9851
9852
9853
9854
9855
9856 # If no C compiler was specified, use CC.
9857 LTCC=${LTCC-"$CC"}
9858
9859 # If no C compiler flags were specified, use CFLAGS.
9860 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9861
9862 # Allow CC to be a program name with arguments.
9863 compiler=$CC
9864
9865 # Save the default compiler, since it gets overwritten when the other
9866 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9867 compiler_DEFAULT=$CC
9868
9869 # save warnings/boilerplate of simple test code
9870 ac_outfile=conftest.$ac_objext
9871 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9872 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9873 _lt_compiler_boilerplate=`cat conftest.err`
9874 $RM conftest*
9875
9876 ac_outfile=conftest.$ac_objext
9877 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9878 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9879 _lt_linker_boilerplate=`cat conftest.err`
9880 $RM -r conftest*
9881
9882
9883 ## CAVEAT EMPTOR:
9884 ## There is no encapsulation within the following macros, do not change
9885 ## the running order or otherwise move them around unless you know exactly
9886 ## what you are doing...
9887 if test -n "$compiler"; then
9888
9889 lt_prog_compiler_no_builtin_flag=
9890
9891 if test "$GCC" = yes; then
9892   case $cc_basename in
9893   nvcc*)
9894     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9895   *)
9896     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9897   esac
9898
9899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9900 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9901 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9902   $as_echo_n "(cached) " >&6
9903 else
9904   lt_cv_prog_compiler_rtti_exceptions=no
9905    ac_outfile=conftest.$ac_objext
9906    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9907    lt_compiler_flag="-fno-rtti -fno-exceptions"
9908    # Insert the option either (1) after the last *FLAGS variable, or
9909    # (2) before a word containing "conftest.", or (3) at the end.
9910    # Note that $ac_compile itself does not contain backslashes and begins
9911    # with a dollar sign (not a hyphen), so the echo should work correctly.
9912    # The option is referenced via a variable to avoid confusing sed.
9913    lt_compile=`echo "$ac_compile" | $SED \
9914    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9915    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9916    -e 's:$: $lt_compiler_flag:'`
9917    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9918    (eval "$lt_compile" 2>conftest.err)
9919    ac_status=$?
9920    cat conftest.err >&5
9921    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922    if (exit $ac_status) && test -s "$ac_outfile"; then
9923      # The compiler can only warn and ignore the option if not recognized
9924      # So say no if there are warnings other than the usual output.
9925      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9926      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9927      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9928        lt_cv_prog_compiler_rtti_exceptions=yes
9929      fi
9930    fi
9931    $RM conftest*
9932
9933 fi
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9935 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9936
9937 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9938     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9939 else
9940     :
9941 fi
9942
9943 fi
9944
9945
9946
9947
9948
9949
9950   lt_prog_compiler_wl=
9951 lt_prog_compiler_pic=
9952 lt_prog_compiler_static=
9953
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9955 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9956
9957   if test "$GCC" = yes; then
9958     lt_prog_compiler_wl='-Wl,'
9959     lt_prog_compiler_static='-static'
9960
9961     case $host_os in
9962       aix*)
9963       # All AIX code is PIC.
9964       if test "$host_cpu" = ia64; then
9965         # AIX 5 now supports IA64 processor
9966         lt_prog_compiler_static='-Bstatic'
9967       fi
9968       lt_prog_compiler_pic='-fPIC'
9969       ;;
9970
9971     amigaos*)
9972       case $host_cpu in
9973       powerpc)
9974             # see comment about AmigaOS4 .so support
9975             lt_prog_compiler_pic='-fPIC'
9976         ;;
9977       m68k)
9978             # FIXME: we need at least 68020 code to build shared libraries, but
9979             # adding the `-m68020' flag to GCC prevents building anything better,
9980             # like `-m68040'.
9981             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9982         ;;
9983       esac
9984       ;;
9985
9986     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9987       # PIC is the default for these OSes.
9988       ;;
9989
9990     mingw* | cygwin* | pw32* | os2* | cegcc*)
9991       # This hack is so that the source file can tell whether it is being
9992       # built for inclusion in a dll (and should export symbols for example).
9993       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9994       # (--disable-auto-import) libraries
9995       lt_prog_compiler_pic='-DDLL_EXPORT'
9996       ;;
9997
9998     darwin* | rhapsody*)
9999       # PIC is the default on this platform
10000       # Common symbols not allowed in MH_DYLIB files
10001       lt_prog_compiler_pic='-fno-common'
10002       ;;
10003
10004     haiku*)
10005       # PIC is the default for Haiku.
10006       # The "-static" flag exists, but is broken.
10007       lt_prog_compiler_static=
10008       ;;
10009
10010     hpux*)
10011       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10012       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10013       # sets the default TLS model and affects inlining.
10014       case $host_cpu in
10015       hppa*64*)
10016         # +Z the default
10017         ;;
10018       *)
10019         lt_prog_compiler_pic='-fPIC'
10020         ;;
10021       esac
10022       ;;
10023
10024     interix[3-9]*)
10025       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10026       # Instead, we relocate shared libraries at runtime.
10027       ;;
10028
10029     msdosdjgpp*)
10030       # Just because we use GCC doesn't mean we suddenly get shared libraries
10031       # on systems that don't support them.
10032       lt_prog_compiler_can_build_shared=no
10033       enable_shared=no
10034       ;;
10035
10036     *nto* | *qnx*)
10037       # QNX uses GNU C++, but need to define -shared option too, otherwise
10038       # it will coredump.
10039       lt_prog_compiler_pic='-fPIC -shared'
10040       ;;
10041
10042     sysv4*MP*)
10043       if test -d /usr/nec; then
10044         lt_prog_compiler_pic=-Kconform_pic
10045       fi
10046       ;;
10047
10048     *)
10049       lt_prog_compiler_pic='-fPIC'
10050       ;;
10051     esac
10052
10053     case $cc_basename in
10054     nvcc*) # Cuda Compiler Driver 2.2
10055       lt_prog_compiler_wl='-Xlinker '
10056       lt_prog_compiler_pic='-Xcompiler -fPIC'
10057       ;;
10058     esac
10059   else
10060     # PORTME Check for flag to pass linker flags through the system compiler.
10061     case $host_os in
10062     aix*)
10063       lt_prog_compiler_wl='-Wl,'
10064       if test "$host_cpu" = ia64; then
10065         # AIX 5 now supports IA64 processor
10066         lt_prog_compiler_static='-Bstatic'
10067       else
10068         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10069       fi
10070       ;;
10071
10072     mingw* | cygwin* | pw32* | os2* | cegcc*)
10073       # This hack is so that the source file can tell whether it is being
10074       # built for inclusion in a dll (and should export symbols for example).
10075       lt_prog_compiler_pic='-DDLL_EXPORT'
10076       ;;
10077
10078     hpux9* | hpux10* | hpux11*)
10079       lt_prog_compiler_wl='-Wl,'
10080       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10081       # not for PA HP-UX.
10082       case $host_cpu in
10083       hppa*64*|ia64*)
10084         # +Z the default
10085         ;;
10086       *)
10087         lt_prog_compiler_pic='+Z'
10088         ;;
10089       esac
10090       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10091       lt_prog_compiler_static='${wl}-a ${wl}archive'
10092       ;;
10093
10094     irix5* | irix6* | nonstopux*)
10095       lt_prog_compiler_wl='-Wl,'
10096       # PIC (with -KPIC) is the default.
10097       lt_prog_compiler_static='-non_shared'
10098       ;;
10099
10100     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10101       case $cc_basename in
10102       # old Intel for x86_64 which still supported -KPIC.
10103       ecc*)
10104         lt_prog_compiler_wl='-Wl,'
10105         lt_prog_compiler_pic='-KPIC'
10106         lt_prog_compiler_static='-static'
10107         ;;
10108       # icc used to be incompatible with GCC.
10109       # ICC 10 doesn't accept -KPIC any more.
10110       icc* | ifort*)
10111         lt_prog_compiler_wl='-Wl,'
10112         lt_prog_compiler_pic='-fPIC'
10113         lt_prog_compiler_static='-static'
10114         ;;
10115       # Lahey Fortran 8.1.
10116       lf95*)
10117         lt_prog_compiler_wl='-Wl,'
10118         lt_prog_compiler_pic='--shared'
10119         lt_prog_compiler_static='--static'
10120         ;;
10121       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10122         # Portland Group compilers (*not* the Pentium gcc compiler,
10123         # which looks to be a dead project)
10124         lt_prog_compiler_wl='-Wl,'
10125         lt_prog_compiler_pic='-fpic'
10126         lt_prog_compiler_static='-Bstatic'
10127         ;;
10128       ccc*)
10129         lt_prog_compiler_wl='-Wl,'
10130         # All Alpha code is PIC.
10131         lt_prog_compiler_static='-non_shared'
10132         ;;
10133       xl* | bgxl* | bgf* | mpixl*)
10134         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10135         lt_prog_compiler_wl='-Wl,'
10136         lt_prog_compiler_pic='-qpic'
10137         lt_prog_compiler_static='-qstaticlink'
10138         ;;
10139       *)
10140         case `$CC -V 2>&1 | sed 5q` in
10141         *Sun\ F* | *Sun*Fortran*)
10142           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10143           lt_prog_compiler_pic='-KPIC'
10144           lt_prog_compiler_static='-Bstatic'
10145           lt_prog_compiler_wl=''
10146           ;;
10147         *Sun\ C*)
10148           # Sun C 5.9
10149           lt_prog_compiler_pic='-KPIC'
10150           lt_prog_compiler_static='-Bstatic'
10151           lt_prog_compiler_wl='-Wl,'
10152           ;;
10153         esac
10154         ;;
10155       esac
10156       ;;
10157
10158     newsos6)
10159       lt_prog_compiler_pic='-KPIC'
10160       lt_prog_compiler_static='-Bstatic'
10161       ;;
10162
10163     *nto* | *qnx*)
10164       # QNX uses GNU C++, but need to define -shared option too, otherwise
10165       # it will coredump.
10166       lt_prog_compiler_pic='-fPIC -shared'
10167       ;;
10168
10169     osf3* | osf4* | osf5*)
10170       lt_prog_compiler_wl='-Wl,'
10171       # All OSF/1 code is PIC.
10172       lt_prog_compiler_static='-non_shared'
10173       ;;
10174
10175     rdos*)
10176       lt_prog_compiler_static='-non_shared'
10177       ;;
10178
10179     solaris*)
10180       lt_prog_compiler_pic='-KPIC'
10181       lt_prog_compiler_static='-Bstatic'
10182       case $cc_basename in
10183       f77* | f90* | f95*)
10184         lt_prog_compiler_wl='-Qoption ld ';;
10185       *)
10186         lt_prog_compiler_wl='-Wl,';;
10187       esac
10188       ;;
10189
10190     sunos4*)
10191       lt_prog_compiler_wl='-Qoption ld '
10192       lt_prog_compiler_pic='-PIC'
10193       lt_prog_compiler_static='-Bstatic'
10194       ;;
10195
10196     sysv4 | sysv4.2uw2* | sysv4.3*)
10197       lt_prog_compiler_wl='-Wl,'
10198       lt_prog_compiler_pic='-KPIC'
10199       lt_prog_compiler_static='-Bstatic'
10200       ;;
10201
10202     sysv4*MP*)
10203       if test -d /usr/nec ;then
10204         lt_prog_compiler_pic='-Kconform_pic'
10205         lt_prog_compiler_static='-Bstatic'
10206       fi
10207       ;;
10208
10209     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10210       lt_prog_compiler_wl='-Wl,'
10211       lt_prog_compiler_pic='-KPIC'
10212       lt_prog_compiler_static='-Bstatic'
10213       ;;
10214
10215     unicos*)
10216       lt_prog_compiler_wl='-Wl,'
10217       lt_prog_compiler_can_build_shared=no
10218       ;;
10219
10220     uts4*)
10221       lt_prog_compiler_pic='-pic'
10222       lt_prog_compiler_static='-Bstatic'
10223       ;;
10224
10225     *)
10226       lt_prog_compiler_can_build_shared=no
10227       ;;
10228     esac
10229   fi
10230
10231 case $host_os in
10232   # For platforms which do not support PIC, -DPIC is meaningless:
10233   *djgpp*)
10234     lt_prog_compiler_pic=
10235     ;;
10236   *)
10237     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10238     ;;
10239 esac
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10241 $as_echo "$lt_prog_compiler_pic" >&6; }
10242
10243
10244
10245
10246
10247
10248 #
10249 # Check to make sure the PIC flag actually works.
10250 #
10251 if test -n "$lt_prog_compiler_pic"; then
10252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10253 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10254 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10255   $as_echo_n "(cached) " >&6
10256 else
10257   lt_cv_prog_compiler_pic_works=no
10258    ac_outfile=conftest.$ac_objext
10259    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10260    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10261    # Insert the option either (1) after the last *FLAGS variable, or
10262    # (2) before a word containing "conftest.", or (3) at the end.
10263    # Note that $ac_compile itself does not contain backslashes and begins
10264    # with a dollar sign (not a hyphen), so the echo should work correctly.
10265    # The option is referenced via a variable to avoid confusing sed.
10266    lt_compile=`echo "$ac_compile" | $SED \
10267    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10268    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10269    -e 's:$: $lt_compiler_flag:'`
10270    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10271    (eval "$lt_compile" 2>conftest.err)
10272    ac_status=$?
10273    cat conftest.err >&5
10274    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275    if (exit $ac_status) && test -s "$ac_outfile"; then
10276      # The compiler can only warn and ignore the option if not recognized
10277      # So say no if there are warnings other than the usual output.
10278      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10279      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10280      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10281        lt_cv_prog_compiler_pic_works=yes
10282      fi
10283    fi
10284    $RM conftest*
10285
10286 fi
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10288 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10289
10290 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10291     case $lt_prog_compiler_pic in
10292      "" | " "*) ;;
10293      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10294      esac
10295 else
10296     lt_prog_compiler_pic=
10297      lt_prog_compiler_can_build_shared=no
10298 fi
10299
10300 fi
10301
10302
10303
10304
10305
10306
10307 #
10308 # Check to make sure the static flag actually works.
10309 #
10310 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10312 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10313 if ${lt_cv_prog_compiler_static_works+:} false; then :
10314   $as_echo_n "(cached) " >&6
10315 else
10316   lt_cv_prog_compiler_static_works=no
10317    save_LDFLAGS="$LDFLAGS"
10318    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10319    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10320    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10321      # The linker can only warn and ignore the option if not recognized
10322      # So say no if there are warnings
10323      if test -s conftest.err; then
10324        # Append any errors to the config.log.
10325        cat conftest.err 1>&5
10326        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10327        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10328        if diff conftest.exp conftest.er2 >/dev/null; then
10329          lt_cv_prog_compiler_static_works=yes
10330        fi
10331      else
10332        lt_cv_prog_compiler_static_works=yes
10333      fi
10334    fi
10335    $RM -r conftest*
10336    LDFLAGS="$save_LDFLAGS"
10337
10338 fi
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10340 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10341
10342 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10343     :
10344 else
10345     lt_prog_compiler_static=
10346 fi
10347
10348
10349
10350
10351
10352
10353
10354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10355 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10356 if ${lt_cv_prog_compiler_c_o+:} false; then :
10357   $as_echo_n "(cached) " >&6
10358 else
10359   lt_cv_prog_compiler_c_o=no
10360    $RM -r conftest 2>/dev/null
10361    mkdir conftest
10362    cd conftest
10363    mkdir out
10364    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10365
10366    lt_compiler_flag="-o out/conftest2.$ac_objext"
10367    # Insert the option either (1) after the last *FLAGS variable, or
10368    # (2) before a word containing "conftest.", or (3) at the end.
10369    # Note that $ac_compile itself does not contain backslashes and begins
10370    # with a dollar sign (not a hyphen), so the echo should work correctly.
10371    lt_compile=`echo "$ac_compile" | $SED \
10372    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10373    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10374    -e 's:$: $lt_compiler_flag:'`
10375    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10376    (eval "$lt_compile" 2>out/conftest.err)
10377    ac_status=$?
10378    cat out/conftest.err >&5
10379    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10381    then
10382      # The compiler can only warn and ignore the option if not recognized
10383      # So say no if there are warnings
10384      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10385      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10386      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10387        lt_cv_prog_compiler_c_o=yes
10388      fi
10389    fi
10390    chmod u+w . 2>&5
10391    $RM conftest*
10392    # SGI C++ compiler will create directory out/ii_files/ for
10393    # template instantiation
10394    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10395    $RM out/* && rmdir out
10396    cd ..
10397    $RM -r conftest
10398    $RM conftest*
10399
10400 fi
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10402 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10403
10404
10405
10406
10407
10408
10409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10410 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10411 if ${lt_cv_prog_compiler_c_o+:} false; then :
10412   $as_echo_n "(cached) " >&6
10413 else
10414   lt_cv_prog_compiler_c_o=no
10415    $RM -r conftest 2>/dev/null
10416    mkdir conftest
10417    cd conftest
10418    mkdir out
10419    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10420
10421    lt_compiler_flag="-o out/conftest2.$ac_objext"
10422    # Insert the option either (1) after the last *FLAGS variable, or
10423    # (2) before a word containing "conftest.", or (3) at the end.
10424    # Note that $ac_compile itself does not contain backslashes and begins
10425    # with a dollar sign (not a hyphen), so the echo should work correctly.
10426    lt_compile=`echo "$ac_compile" | $SED \
10427    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10428    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10429    -e 's:$: $lt_compiler_flag:'`
10430    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10431    (eval "$lt_compile" 2>out/conftest.err)
10432    ac_status=$?
10433    cat out/conftest.err >&5
10434    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10436    then
10437      # The compiler can only warn and ignore the option if not recognized
10438      # So say no if there are warnings
10439      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10440      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10441      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10442        lt_cv_prog_compiler_c_o=yes
10443      fi
10444    fi
10445    chmod u+w . 2>&5
10446    $RM conftest*
10447    # SGI C++ compiler will create directory out/ii_files/ for
10448    # template instantiation
10449    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10450    $RM out/* && rmdir out
10451    cd ..
10452    $RM -r conftest
10453    $RM conftest*
10454
10455 fi
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10457 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10458
10459
10460
10461
10462 hard_links="nottested"
10463 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10464   # do not overwrite the value of need_locks provided by the user
10465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10466 $as_echo_n "checking if we can lock with hard links... " >&6; }
10467   hard_links=yes
10468   $RM conftest*
10469   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10470   touch conftest.a
10471   ln conftest.a conftest.b 2>&5 || hard_links=no
10472   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10474 $as_echo "$hard_links" >&6; }
10475   if test "$hard_links" = no; then
10476     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10477 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10478     need_locks=warn
10479   fi
10480 else
10481   need_locks=no
10482 fi
10483
10484
10485
10486
10487
10488
10489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10490 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10491
10492   runpath_var=
10493   allow_undefined_flag=
10494   always_export_symbols=no
10495   archive_cmds=
10496   archive_expsym_cmds=
10497   compiler_needs_object=no
10498   enable_shared_with_static_runtimes=no
10499   export_dynamic_flag_spec=
10500   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10501   hardcode_automatic=no
10502   hardcode_direct=no
10503   hardcode_direct_absolute=no
10504   hardcode_libdir_flag_spec=
10505   hardcode_libdir_flag_spec_ld=
10506   hardcode_libdir_separator=
10507   hardcode_minus_L=no
10508   hardcode_shlibpath_var=unsupported
10509   inherit_rpath=no
10510   link_all_deplibs=unknown
10511   module_cmds=
10512   module_expsym_cmds=
10513   old_archive_from_new_cmds=
10514   old_archive_from_expsyms_cmds=
10515   thread_safe_flag_spec=
10516   whole_archive_flag_spec=
10517   # include_expsyms should be a list of space-separated symbols to be *always*
10518   # included in the symbol list
10519   include_expsyms=
10520   # exclude_expsyms can be an extended regexp of symbols to exclude
10521   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10522   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10523   # as well as any symbol that contains `d'.
10524   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10525   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10526   # platforms (ab)use it in PIC code, but their linkers get confused if
10527   # the symbol is explicitly referenced.  Since portable code cannot
10528   # rely on this symbol name, it's probably fine to never include it in
10529   # preloaded symbol tables.
10530   # Exclude shared library initialization/finalization symbols.
10531   extract_expsyms_cmds=
10532
10533   case $host_os in
10534   cygwin* | mingw* | pw32* | cegcc*)
10535     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10536     # When not using gcc, we currently assume that we are using
10537     # Microsoft Visual C++.
10538     if test "$GCC" != yes; then
10539       with_gnu_ld=no
10540     fi
10541     ;;
10542   interix*)
10543     # we just hope/assume this is gcc and not c89 (= MSVC++)
10544     with_gnu_ld=yes
10545     ;;
10546   openbsd*)
10547     with_gnu_ld=no
10548     ;;
10549   esac
10550
10551   ld_shlibs=yes
10552
10553   # On some targets, GNU ld is compatible enough with the native linker
10554   # that we're better off using the native interface for both.
10555   lt_use_gnu_ld_interface=no
10556   if test "$with_gnu_ld" = yes; then
10557     case $host_os in
10558       aix*)
10559         # The AIX port of GNU ld has always aspired to compatibility
10560         # with the native linker.  However, as the warning in the GNU ld
10561         # block says, versions before 2.19.5* couldn't really create working
10562         # shared libraries, regardless of the interface used.
10563         case `$LD -v 2>&1` in
10564           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10565           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10566           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10567           *)
10568             lt_use_gnu_ld_interface=yes
10569             ;;
10570         esac
10571         ;;
10572       *)
10573         lt_use_gnu_ld_interface=yes
10574         ;;
10575     esac
10576   fi
10577
10578   if test "$lt_use_gnu_ld_interface" = yes; then
10579     # If archive_cmds runs LD, not CC, wlarc should be empty
10580     wlarc='${wl}'
10581
10582     # Set some defaults for GNU ld with shared library support. These
10583     # are reset later if shared libraries are not supported. Putting them
10584     # here allows them to be overridden if necessary.
10585     runpath_var=LD_RUN_PATH
10586     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10587     export_dynamic_flag_spec='${wl}--export-dynamic'
10588     # ancient GNU ld didn't support --whole-archive et. al.
10589     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10590       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10591     else
10592       whole_archive_flag_spec=
10593     fi
10594     supports_anon_versioning=no
10595     case `$LD -v 2>&1` in
10596       *GNU\ gold*) supports_anon_versioning=yes ;;
10597       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10598       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10599       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10600       *\ 2.11.*) ;; # other 2.11 versions
10601       *) supports_anon_versioning=yes ;;
10602     esac
10603
10604     # See if GNU ld supports shared libraries.
10605     case $host_os in
10606     aix[3-9]*)
10607       # On AIX/PPC, the GNU linker is very broken
10608       if test "$host_cpu" != ia64; then
10609         ld_shlibs=no
10610         cat <<_LT_EOF 1>&2
10611
10612 *** Warning: the GNU linker, at least up to release 2.19, is reported
10613 *** to be unable to reliably create shared libraries on AIX.
10614 *** Therefore, libtool is disabling shared libraries support.  If you
10615 *** really care for shared libraries, you may want to install binutils
10616 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10617 *** You will then need to restart the configuration process.
10618
10619 _LT_EOF
10620       fi
10621       ;;
10622
10623     amigaos*)
10624       case $host_cpu in
10625       powerpc)
10626             # see comment about AmigaOS4 .so support
10627             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10628             archive_expsym_cmds=''
10629         ;;
10630       m68k)
10631             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)'
10632             hardcode_libdir_flag_spec='-L$libdir'
10633             hardcode_minus_L=yes
10634         ;;
10635       esac
10636       ;;
10637
10638     beos*)
10639       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10640         allow_undefined_flag=unsupported
10641         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10642         # support --undefined.  This deserves some investigation.  FIXME
10643         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10644       else
10645         ld_shlibs=no
10646       fi
10647       ;;
10648
10649     cygwin* | mingw* | pw32* | cegcc*)
10650       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10651       # as there is no search path for DLLs.
10652       hardcode_libdir_flag_spec='-L$libdir'
10653       export_dynamic_flag_spec='${wl}--export-all-symbols'
10654       allow_undefined_flag=unsupported
10655       always_export_symbols=no
10656       enable_shared_with_static_runtimes=yes
10657       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10658
10659       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10660         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10661         # If the export-symbols file already is a .def file (1st line
10662         # is EXPORTS), use it as is; otherwise, prepend...
10663         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10664           cp $export_symbols $output_objdir/$soname.def;
10665         else
10666           echo EXPORTS > $output_objdir/$soname.def;
10667           cat $export_symbols >> $output_objdir/$soname.def;
10668         fi~
10669         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10670       else
10671         ld_shlibs=no
10672       fi
10673       ;;
10674
10675     haiku*)
10676       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10677       link_all_deplibs=yes
10678       ;;
10679
10680     interix[3-9]*)
10681       hardcode_direct=no
10682       hardcode_shlibpath_var=no
10683       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10684       export_dynamic_flag_spec='${wl}-E'
10685       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10686       # Instead, shared libraries are loaded at an image base (0x10000000 by
10687       # default) and relocated if they conflict, which is a slow very memory
10688       # consuming and fragmenting process.  To avoid this, we pick a random,
10689       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10690       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10691       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10692       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'
10693       ;;
10694
10695     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10696       tmp_diet=no
10697       if test "$host_os" = linux-dietlibc; then
10698         case $cc_basename in
10699           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10700         esac
10701       fi
10702       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10703          && test "$tmp_diet" = no
10704       then
10705         tmp_addflag=' $pic_flag'
10706         tmp_sharedflag='-shared'
10707         case $cc_basename,$host_cpu in
10708         pgcc*)                          # Portland Group C compiler
10709           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'
10710           tmp_addflag=' $pic_flag'
10711           ;;
10712         pgf77* | pgf90* | pgf95* | pgfortran*)
10713                                         # Portland Group f77 and f90 compilers
10714           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'
10715           tmp_addflag=' $pic_flag -Mnomain' ;;
10716         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10717           tmp_addflag=' -i_dynamic' ;;
10718         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10719           tmp_addflag=' -i_dynamic -nofor_main' ;;
10720         ifc* | ifort*)                  # Intel Fortran compiler
10721           tmp_addflag=' -nofor_main' ;;
10722         lf95*)                          # Lahey Fortran 8.1
10723           whole_archive_flag_spec=
10724           tmp_sharedflag='--shared' ;;
10725         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10726           tmp_sharedflag='-qmkshrobj'
10727           tmp_addflag= ;;
10728         nvcc*)  # Cuda Compiler Driver 2.2
10729           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'
10730           compiler_needs_object=yes
10731           ;;
10732         esac
10733         case `$CC -V 2>&1 | sed 5q` in
10734         *Sun\ C*)                       # Sun C 5.9
10735           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'
10736           compiler_needs_object=yes
10737           tmp_sharedflag='-G' ;;
10738         *Sun\ F*)                       # Sun Fortran 8.3
10739           tmp_sharedflag='-G' ;;
10740         esac
10741         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10742
10743         if test "x$supports_anon_versioning" = xyes; then
10744           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10745             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10746             echo "local: *; };" >> $output_objdir/$libname.ver~
10747             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10748         fi
10749
10750         case $cc_basename in
10751         xlf* | bgf* | bgxlf* | mpixlf*)
10752           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10753           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10754           hardcode_libdir_flag_spec=
10755           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10756           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10757           if test "x$supports_anon_versioning" = xyes; then
10758             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10759               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10760               echo "local: *; };" >> $output_objdir/$libname.ver~
10761               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10762           fi
10763           ;;
10764         esac
10765       else
10766         ld_shlibs=no
10767       fi
10768       ;;
10769
10770     netbsd*)
10771       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10772         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10773         wlarc=
10774       else
10775         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10776         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10777       fi
10778       ;;
10779
10780     solaris*)
10781       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10782         ld_shlibs=no
10783         cat <<_LT_EOF 1>&2
10784
10785 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10786 *** create shared libraries on Solaris systems.  Therefore, libtool
10787 *** is disabling shared libraries support.  We urge you to upgrade GNU
10788 *** binutils to release 2.9.1 or newer.  Another option is to modify
10789 *** your PATH or compiler configuration so that the native linker is
10790 *** used, and then restart.
10791
10792 _LT_EOF
10793       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10794         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10795         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10796       else
10797         ld_shlibs=no
10798       fi
10799       ;;
10800
10801     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10802       case `$LD -v 2>&1` in
10803         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10804         ld_shlibs=no
10805         cat <<_LT_EOF 1>&2
10806
10807 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10808 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10809 *** is disabling shared libraries support.  We urge you to upgrade GNU
10810 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10811 *** your PATH or compiler configuration so that the native linker is
10812 *** used, and then restart.
10813
10814 _LT_EOF
10815         ;;
10816         *)
10817           # For security reasons, it is highly recommended that you always
10818           # use absolute paths for naming shared libraries, and exclude the
10819           # DT_RUNPATH tag from executables and libraries.  But doing so
10820           # requires that you compile everything twice, which is a pain.
10821           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10822             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10823             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10824             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10825           else
10826             ld_shlibs=no
10827           fi
10828         ;;
10829       esac
10830       ;;
10831
10832     sunos4*)
10833       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10834       wlarc=
10835       hardcode_direct=yes
10836       hardcode_shlibpath_var=no
10837       ;;
10838
10839     *)
10840       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10841         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10842         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10843       else
10844         ld_shlibs=no
10845       fi
10846       ;;
10847     esac
10848
10849     if test "$ld_shlibs" = no; then
10850       runpath_var=
10851       hardcode_libdir_flag_spec=
10852       export_dynamic_flag_spec=
10853       whole_archive_flag_spec=
10854     fi
10855   else
10856     # PORTME fill in a description of your system's linker (not GNU ld)
10857     case $host_os in
10858     aix3*)
10859       allow_undefined_flag=unsupported
10860       always_export_symbols=yes
10861       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'
10862       # Note: this linker hardcodes the directories in LIBPATH if there
10863       # are no directories specified by -L.
10864       hardcode_minus_L=yes
10865       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10866         # Neither direct hardcoding nor static linking is supported with a
10867         # broken collect2.
10868         hardcode_direct=unsupported
10869       fi
10870       ;;
10871
10872     aix[4-9]*)
10873       if test "$host_cpu" = ia64; then
10874         # On IA64, the linker does run time linking by default, so we don't
10875         # have to do anything special.
10876         aix_use_runtimelinking=no
10877         exp_sym_flag='-Bexport'
10878         no_entry_flag=""
10879       else
10880         # If we're using GNU nm, then we don't want the "-C" option.
10881         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10882         # Also, AIX nm treats weak defined symbols like other global
10883         # defined symbols, whereas GNU nm marks them as "W".
10884         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10885           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'
10886         else
10887           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10888         fi
10889         aix_use_runtimelinking=no
10890
10891         # Test if we are trying to use run time linking or normal
10892         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10893         # need to do runtime linking.
10894         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10895           for ld_flag in $LDFLAGS; do
10896           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10897             aix_use_runtimelinking=yes
10898             break
10899           fi
10900           done
10901           ;;
10902         esac
10903
10904         exp_sym_flag='-bexport'
10905         no_entry_flag='-bnoentry'
10906       fi
10907
10908       # When large executables or shared objects are built, AIX ld can
10909       # have problems creating the table of contents.  If linking a library
10910       # or program results in "error TOC overflow" add -mminimal-toc to
10911       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10912       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10913
10914       archive_cmds=''
10915       hardcode_direct=yes
10916       hardcode_direct_absolute=yes
10917       hardcode_libdir_separator=':'
10918       link_all_deplibs=yes
10919       file_list_spec='${wl}-f,'
10920
10921       if test "$GCC" = yes; then
10922         case $host_os in aix4.[012]|aix4.[012].*)
10923         # We only want to do this on AIX 4.2 and lower, the check
10924         # below for broken collect2 doesn't work under 4.3+
10925           collect2name=`${CC} -print-prog-name=collect2`
10926           if test -f "$collect2name" &&
10927            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10928           then
10929           # We have reworked collect2
10930           :
10931           else
10932           # We have old collect2
10933           hardcode_direct=unsupported
10934           # It fails to find uninstalled libraries when the uninstalled
10935           # path is not listed in the libpath.  Setting hardcode_minus_L
10936           # to unsupported forces relinking
10937           hardcode_minus_L=yes
10938           hardcode_libdir_flag_spec='-L$libdir'
10939           hardcode_libdir_separator=
10940           fi
10941           ;;
10942         esac
10943         shared_flag='-shared'
10944         if test "$aix_use_runtimelinking" = yes; then
10945           shared_flag="$shared_flag "'${wl}-G'
10946         fi
10947       else
10948         # not using gcc
10949         if test "$host_cpu" = ia64; then
10950         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10951         # chokes on -Wl,-G. The following line is correct:
10952           shared_flag='-G'
10953         else
10954           if test "$aix_use_runtimelinking" = yes; then
10955             shared_flag='${wl}-G'
10956           else
10957             shared_flag='${wl}-bM:SRE'
10958           fi
10959         fi
10960       fi
10961
10962       export_dynamic_flag_spec='${wl}-bexpall'
10963       # It seems that -bexpall does not export symbols beginning with
10964       # underscore (_), so it is better to generate a list of symbols to export.
10965       always_export_symbols=yes
10966       if test "$aix_use_runtimelinking" = yes; then
10967         # Warning - without using the other runtime loading flags (-brtl),
10968         # -berok will link without error, but may produce a broken library.
10969         allow_undefined_flag='-berok'
10970         # Determine the default libpath from the value encoded in an
10971         # empty executable.
10972         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h.  */
10974
10975 int
10976 main ()
10977 {
10978
10979   ;
10980   return 0;
10981 }
10982 _ACEOF
10983 if ac_fn_c_try_link "$LINENO"; then :
10984
10985 lt_aix_libpath_sed='
10986     /Import File Strings/,/^$/ {
10987         /^0/ {
10988             s/^0  *\(.*\)$/\1/
10989             p
10990         }
10991     }'
10992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10993 # Check for a 64-bit object if we didn't find anything.
10994 if test -z "$aix_libpath"; then
10995   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10996 fi
10997 fi
10998 rm -f core conftest.err conftest.$ac_objext \
10999     conftest$ac_exeext conftest.$ac_ext
11000 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11001
11002         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11003         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"
11004       else
11005         if test "$host_cpu" = ia64; then
11006           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11007           allow_undefined_flag="-z nodefs"
11008           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"
11009         else
11010          # Determine the default libpath from the value encoded in an
11011          # empty executable.
11012          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013 /* end confdefs.h.  */
11014
11015 int
11016 main ()
11017 {
11018
11019   ;
11020   return 0;
11021 }
11022 _ACEOF
11023 if ac_fn_c_try_link "$LINENO"; then :
11024
11025 lt_aix_libpath_sed='
11026     /Import File Strings/,/^$/ {
11027         /^0/ {
11028             s/^0  *\(.*\)$/\1/
11029             p
11030         }
11031     }'
11032 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11033 # Check for a 64-bit object if we didn't find anything.
11034 if test -z "$aix_libpath"; then
11035   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11036 fi
11037 fi
11038 rm -f core conftest.err conftest.$ac_objext \
11039     conftest$ac_exeext conftest.$ac_ext
11040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11041
11042          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11043           # Warning - without using the other run time loading flags,
11044           # -berok will link without error, but may produce a broken library.
11045           no_undefined_flag=' ${wl}-bernotok'
11046           allow_undefined_flag=' ${wl}-berok'
11047           if test "$with_gnu_ld" = yes; then
11048             # We only use this code for GNU lds that support --whole-archive.
11049             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11050           else
11051             # Exported symbols can be pulled into shared objects from archives
11052             whole_archive_flag_spec='$convenience'
11053           fi
11054           archive_cmds_need_lc=yes
11055           # This is similar to how AIX traditionally builds its shared libraries.
11056           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'
11057         fi
11058       fi
11059       ;;
11060
11061     amigaos*)
11062       case $host_cpu in
11063       powerpc)
11064             # see comment about AmigaOS4 .so support
11065             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11066             archive_expsym_cmds=''
11067         ;;
11068       m68k)
11069             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)'
11070             hardcode_libdir_flag_spec='-L$libdir'
11071             hardcode_minus_L=yes
11072         ;;
11073       esac
11074       ;;
11075
11076     bsdi[45]*)
11077       export_dynamic_flag_spec=-rdynamic
11078       ;;
11079
11080     cygwin* | mingw* | pw32* | cegcc*)
11081       # When not using gcc, we currently assume that we are using
11082       # Microsoft Visual C++.
11083       # hardcode_libdir_flag_spec is actually meaningless, as there is
11084       # no search path for DLLs.
11085       hardcode_libdir_flag_spec=' '
11086       allow_undefined_flag=unsupported
11087       # Tell ltmain to make .lib files, not .a files.
11088       libext=lib
11089       # Tell ltmain to make .dll files, not .so files.
11090       shrext_cmds=".dll"
11091       # FIXME: Setting linknames here is a bad hack.
11092       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11093       # The linker will automatically build a .lib file if we build a DLL.
11094       old_archive_from_new_cmds='true'
11095       # FIXME: Should let the user specify the lib program.
11096       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11097       fix_srcfile_path='`cygpath -w "$srcfile"`'
11098       enable_shared_with_static_runtimes=yes
11099       ;;
11100
11101     darwin* | rhapsody*)
11102
11103
11104   archive_cmds_need_lc=no
11105   hardcode_direct=no
11106   hardcode_automatic=yes
11107   hardcode_shlibpath_var=unsupported
11108   if test "$lt_cv_ld_force_load" = "yes"; then
11109     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\"`'
11110   else
11111     whole_archive_flag_spec=''
11112   fi
11113   link_all_deplibs=yes
11114   allow_undefined_flag="$_lt_dar_allow_undefined"
11115   case $cc_basename in
11116      ifort*) _lt_dar_can_shared=yes ;;
11117      *) _lt_dar_can_shared=$GCC ;;
11118   esac
11119   if test "$_lt_dar_can_shared" = "yes"; then
11120     output_verbose_link_cmd=func_echo_all
11121     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11122     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11123     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}"
11124     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}"
11125
11126   else
11127   ld_shlibs=no
11128   fi
11129
11130       ;;
11131
11132     dgux*)
11133       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11134       hardcode_libdir_flag_spec='-L$libdir'
11135       hardcode_shlibpath_var=no
11136       ;;
11137
11138     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11139     # support.  Future versions do this automatically, but an explicit c++rt0.o
11140     # does not break anything, and helps significantly (at the cost of a little
11141     # extra space).
11142     freebsd2.2*)
11143       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11144       hardcode_libdir_flag_spec='-R$libdir'
11145       hardcode_direct=yes
11146       hardcode_shlibpath_var=no
11147       ;;
11148
11149     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11150     freebsd2.*)
11151       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11152       hardcode_direct=yes
11153       hardcode_minus_L=yes
11154       hardcode_shlibpath_var=no
11155       ;;
11156
11157     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11158     freebsd* | dragonfly*)
11159       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11160       hardcode_libdir_flag_spec='-R$libdir'
11161       hardcode_direct=yes
11162       hardcode_shlibpath_var=no
11163       ;;
11164
11165     hpux9*)
11166       if test "$GCC" = yes; then
11167         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'
11168       else
11169         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'
11170       fi
11171       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11172       hardcode_libdir_separator=:
11173       hardcode_direct=yes
11174
11175       # hardcode_minus_L: Not really in the search PATH,
11176       # but as the default location of the library.
11177       hardcode_minus_L=yes
11178       export_dynamic_flag_spec='${wl}-E'
11179       ;;
11180
11181     hpux10*)
11182       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11183         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11184       else
11185         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11186       fi
11187       if test "$with_gnu_ld" = no; then
11188         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11189         hardcode_libdir_flag_spec_ld='+b $libdir'
11190         hardcode_libdir_separator=:
11191         hardcode_direct=yes
11192         hardcode_direct_absolute=yes
11193         export_dynamic_flag_spec='${wl}-E'
11194         # hardcode_minus_L: Not really in the search PATH,
11195         # but as the default location of the library.
11196         hardcode_minus_L=yes
11197       fi
11198       ;;
11199
11200     hpux11*)
11201       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11202         case $host_cpu in
11203         hppa*64*)
11204           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11205           ;;
11206         ia64*)
11207           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11208           ;;
11209         *)
11210           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11211           ;;
11212         esac
11213       else
11214         case $host_cpu in
11215         hppa*64*)
11216           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11217           ;;
11218         ia64*)
11219           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11220           ;;
11221         *)
11222
11223           # Older versions of the 11.00 compiler do not understand -b yet
11224           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11225           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11226 $as_echo_n "checking if $CC understands -b... " >&6; }
11227 if ${lt_cv_prog_compiler__b+:} false; then :
11228   $as_echo_n "(cached) " >&6
11229 else
11230   lt_cv_prog_compiler__b=no
11231    save_LDFLAGS="$LDFLAGS"
11232    LDFLAGS="$LDFLAGS -b"
11233    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11234    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11235      # The linker can only warn and ignore the option if not recognized
11236      # So say no if there are warnings
11237      if test -s conftest.err; then
11238        # Append any errors to the config.log.
11239        cat conftest.err 1>&5
11240        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11241        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11242        if diff conftest.exp conftest.er2 >/dev/null; then
11243          lt_cv_prog_compiler__b=yes
11244        fi
11245      else
11246        lt_cv_prog_compiler__b=yes
11247      fi
11248    fi
11249    $RM -r conftest*
11250    LDFLAGS="$save_LDFLAGS"
11251
11252 fi
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11254 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11255
11256 if test x"$lt_cv_prog_compiler__b" = xyes; then
11257     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11258 else
11259     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11260 fi
11261
11262           ;;
11263         esac
11264       fi
11265       if test "$with_gnu_ld" = no; then
11266         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11267         hardcode_libdir_separator=:
11268
11269         case $host_cpu in
11270         hppa*64*|ia64*)
11271           hardcode_direct=no
11272           hardcode_shlibpath_var=no
11273           ;;
11274         *)
11275           hardcode_direct=yes
11276           hardcode_direct_absolute=yes
11277           export_dynamic_flag_spec='${wl}-E'
11278
11279           # hardcode_minus_L: Not really in the search PATH,
11280           # but as the default location of the library.
11281           hardcode_minus_L=yes
11282           ;;
11283         esac
11284       fi
11285       ;;
11286
11287     irix5* | irix6* | nonstopux*)
11288       if test "$GCC" = yes; then
11289         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'
11290         # Try to use the -exported_symbol ld option, if it does not
11291         # work, assume that -exports_file does not work either and
11292         # implicitly export all symbols.
11293         save_LDFLAGS="$LDFLAGS"
11294         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11295         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h.  */
11297 int foo(void) {}
11298 _ACEOF
11299 if ac_fn_c_try_link "$LINENO"; then :
11300   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'
11301
11302 fi
11303 rm -f core conftest.err conftest.$ac_objext \
11304     conftest$ac_exeext conftest.$ac_ext
11305         LDFLAGS="$save_LDFLAGS"
11306       else
11307         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'
11308         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'
11309       fi
11310       archive_cmds_need_lc='no'
11311       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11312       hardcode_libdir_separator=:
11313       inherit_rpath=yes
11314       link_all_deplibs=yes
11315       ;;
11316
11317     netbsd*)
11318       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11319         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11320       else
11321         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11322       fi
11323       hardcode_libdir_flag_spec='-R$libdir'
11324       hardcode_direct=yes
11325       hardcode_shlibpath_var=no
11326       ;;
11327
11328     newsos6)
11329       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11330       hardcode_direct=yes
11331       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11332       hardcode_libdir_separator=:
11333       hardcode_shlibpath_var=no
11334       ;;
11335
11336     *nto* | *qnx*)
11337       ;;
11338
11339     openbsd*)
11340       if test -f /usr/libexec/ld.so; then
11341         hardcode_direct=yes
11342         hardcode_shlibpath_var=no
11343         hardcode_direct_absolute=yes
11344         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11345           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11346           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11347           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11348           export_dynamic_flag_spec='${wl}-E'
11349         else
11350           case $host_os in
11351            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11352              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11353              hardcode_libdir_flag_spec='-R$libdir'
11354              ;;
11355            *)
11356              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11357              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11358              ;;
11359           esac
11360         fi
11361       else
11362         ld_shlibs=no
11363       fi
11364       ;;
11365
11366     os2*)
11367       hardcode_libdir_flag_spec='-L$libdir'
11368       hardcode_minus_L=yes
11369       allow_undefined_flag=unsupported
11370       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'
11371       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11372       ;;
11373
11374     osf3*)
11375       if test "$GCC" = yes; then
11376         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11377         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'
11378       else
11379         allow_undefined_flag=' -expect_unresolved \*'
11380         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'
11381       fi
11382       archive_cmds_need_lc='no'
11383       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11384       hardcode_libdir_separator=:
11385       ;;
11386
11387     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11388       if test "$GCC" = yes; then
11389         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11390         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'
11391         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11392       else
11393         allow_undefined_flag=' -expect_unresolved \*'
11394         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'
11395         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~
11396         $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'
11397
11398         # Both c and cxx compiler support -rpath directly
11399         hardcode_libdir_flag_spec='-rpath $libdir'
11400       fi
11401       archive_cmds_need_lc='no'
11402       hardcode_libdir_separator=:
11403       ;;
11404
11405     solaris*)
11406       no_undefined_flag=' -z defs'
11407       if test "$GCC" = yes; then
11408         wlarc='${wl}'
11409         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11410         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11411           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11412       else
11413         case `$CC -V 2>&1` in
11414         *"Compilers 5.0"*)
11415           wlarc=''
11416           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11417           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11418           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11419           ;;
11420         *)
11421           wlarc='${wl}'
11422           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11423           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11424           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11425           ;;
11426         esac
11427       fi
11428       hardcode_libdir_flag_spec='-R$libdir'
11429       hardcode_shlibpath_var=no
11430       case $host_os in
11431       solaris2.[0-5] | solaris2.[0-5].*) ;;
11432       *)
11433         # The compiler driver will combine and reorder linker options,
11434         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11435         # but is careful enough not to reorder.
11436         # Supported since Solaris 2.6 (maybe 2.5.1?)
11437         if test "$GCC" = yes; then
11438           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11439         else
11440           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11441         fi
11442         ;;
11443       esac
11444       link_all_deplibs=yes
11445       ;;
11446
11447     sunos4*)
11448       if test "x$host_vendor" = xsequent; then
11449         # Use $CC to link under sequent, because it throws in some extra .o
11450         # files that make .init and .fini sections work.
11451         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11452       else
11453         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11454       fi
11455       hardcode_libdir_flag_spec='-L$libdir'
11456       hardcode_direct=yes
11457       hardcode_minus_L=yes
11458       hardcode_shlibpath_var=no
11459       ;;
11460
11461     sysv4)
11462       case $host_vendor in
11463         sni)
11464           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11465           hardcode_direct=yes # is this really true???
11466         ;;
11467         siemens)
11468           ## LD is ld it makes a PLAMLIB
11469           ## CC just makes a GrossModule.
11470           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11471           reload_cmds='$CC -r -o $output$reload_objs'
11472           hardcode_direct=no
11473         ;;
11474         motorola)
11475           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11476           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11477         ;;
11478       esac
11479       runpath_var='LD_RUN_PATH'
11480       hardcode_shlibpath_var=no
11481       ;;
11482
11483     sysv4.3*)
11484       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11485       hardcode_shlibpath_var=no
11486       export_dynamic_flag_spec='-Bexport'
11487       ;;
11488
11489     sysv4*MP*)
11490       if test -d /usr/nec; then
11491         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11492         hardcode_shlibpath_var=no
11493         runpath_var=LD_RUN_PATH
11494         hardcode_runpath_var=yes
11495         ld_shlibs=yes
11496       fi
11497       ;;
11498
11499     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11500       no_undefined_flag='${wl}-z,text'
11501       archive_cmds_need_lc=no
11502       hardcode_shlibpath_var=no
11503       runpath_var='LD_RUN_PATH'
11504
11505       if test "$GCC" = yes; then
11506         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11507         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11508       else
11509         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11510         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11511       fi
11512       ;;
11513
11514     sysv5* | sco3.2v5* | sco5v6*)
11515       # Note: We can NOT use -z defs as we might desire, because we do not
11516       # link with -lc, and that would cause any symbols used from libc to
11517       # always be unresolved, which means just about no library would
11518       # ever link correctly.  If we're not using GNU ld we use -z text
11519       # though, which does catch some bad symbols but isn't as heavy-handed
11520       # as -z defs.
11521       no_undefined_flag='${wl}-z,text'
11522       allow_undefined_flag='${wl}-z,nodefs'
11523       archive_cmds_need_lc=no
11524       hardcode_shlibpath_var=no
11525       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11526       hardcode_libdir_separator=':'
11527       link_all_deplibs=yes
11528       export_dynamic_flag_spec='${wl}-Bexport'
11529       runpath_var='LD_RUN_PATH'
11530
11531       if test "$GCC" = yes; then
11532         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11533         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11534       else
11535         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11536         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11537       fi
11538       ;;
11539
11540     uts4*)
11541       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11542       hardcode_libdir_flag_spec='-L$libdir'
11543       hardcode_shlibpath_var=no
11544       ;;
11545
11546     *)
11547       ld_shlibs=no
11548       ;;
11549     esac
11550
11551     if test x$host_vendor = xsni; then
11552       case $host in
11553       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11554         export_dynamic_flag_spec='${wl}-Blargedynsym'
11555         ;;
11556       esac
11557     fi
11558   fi
11559
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11561 $as_echo "$ld_shlibs" >&6; }
11562 test "$ld_shlibs" = no && can_build_shared=no
11563
11564 with_gnu_ld=$with_gnu_ld
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580 #
11581 # Do we need to explicitly link libc?
11582 #
11583 case "x$archive_cmds_need_lc" in
11584 x|xyes)
11585   # Assume -lc should be added
11586   archive_cmds_need_lc=yes
11587
11588   if test "$enable_shared" = yes && test "$GCC" = yes; then
11589     case $archive_cmds in
11590     *'~'*)
11591       # FIXME: we may have to deal with multi-command sequences.
11592       ;;
11593     '$CC '*)
11594       # Test whether the compiler implicitly links with -lc since on some
11595       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11596       # to ld, don't add -lc before -lgcc.
11597       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11598 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11599 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11600   $as_echo_n "(cached) " >&6
11601 else
11602   $RM conftest*
11603         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11604
11605         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11606   (eval $ac_compile) 2>&5
11607   ac_status=$?
11608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11609   test $ac_status = 0; } 2>conftest.err; then
11610           soname=conftest
11611           lib=conftest
11612           libobjs=conftest.$ac_objext
11613           deplibs=
11614           wl=$lt_prog_compiler_wl
11615           pic_flag=$lt_prog_compiler_pic
11616           compiler_flags=-v
11617           linker_flags=-v
11618           verstring=
11619           output_objdir=.
11620           libname=conftest
11621           lt_save_allow_undefined_flag=$allow_undefined_flag
11622           allow_undefined_flag=
11623           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11624   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11625   ac_status=$?
11626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11627   test $ac_status = 0; }
11628           then
11629             lt_cv_archive_cmds_need_lc=no
11630           else
11631             lt_cv_archive_cmds_need_lc=yes
11632           fi
11633           allow_undefined_flag=$lt_save_allow_undefined_flag
11634         else
11635           cat conftest.err 1>&5
11636         fi
11637         $RM conftest*
11638
11639 fi
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11641 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11642       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11643       ;;
11644     esac
11645   fi
11646   ;;
11647 esac
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11806 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11807
11808 if test "$GCC" = yes; then
11809   case $host_os in
11810     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11811     *) lt_awk_arg="/^libraries:/" ;;
11812   esac
11813   case $host_os in
11814     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11815     *) lt_sed_strip_eq="s,=/,/,g" ;;
11816   esac
11817   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11818   case $lt_search_path_spec in
11819   *\;*)
11820     # if the path contains ";" then we assume it to be the separator
11821     # otherwise default to the standard path separator (i.e. ":") - it is
11822     # assumed that no part of a normal pathname contains ";" but that should
11823     # okay in the real world where ";" in dirpaths is itself problematic.
11824     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11825     ;;
11826   *)
11827     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11828     ;;
11829   esac
11830   # Ok, now we have the path, separated by spaces, we can step through it
11831   # and add multilib dir if necessary.
11832   lt_tmp_lt_search_path_spec=
11833   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11834   for lt_sys_path in $lt_search_path_spec; do
11835     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11836       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11837     else
11838       test -d "$lt_sys_path" && \
11839         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11840     fi
11841   done
11842   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11843 BEGIN {RS=" "; FS="/|\n";} {
11844   lt_foo="";
11845   lt_count=0;
11846   for (lt_i = NF; lt_i > 0; lt_i--) {
11847     if ($lt_i != "" && $lt_i != ".") {
11848       if ($lt_i == "..") {
11849         lt_count++;
11850       } else {
11851         if (lt_count == 0) {
11852           lt_foo="/" $lt_i lt_foo;
11853         } else {
11854           lt_count--;
11855         }
11856       }
11857     }
11858   }
11859   if (lt_foo != "") { lt_freq[lt_foo]++; }
11860   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11861 }'`
11862   # AWK program above erroneously prepends '/' to C:/dos/paths
11863   # for these hosts.
11864   case $host_os in
11865     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11866       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11867   esac
11868   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11869 else
11870   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11871 fi
11872 library_names_spec=
11873 libname_spec='lib$name'
11874 soname_spec=
11875 shrext_cmds=".so"
11876 postinstall_cmds=
11877 postuninstall_cmds=
11878 finish_cmds=
11879 finish_eval=
11880 shlibpath_var=
11881 shlibpath_overrides_runpath=unknown
11882 version_type=none
11883 dynamic_linker="$host_os ld.so"
11884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11885 need_lib_prefix=unknown
11886 hardcode_into_libs=no
11887
11888 # when you set need_version to no, make sure it does not cause -set_version
11889 # flags to be left without arguments
11890 need_version=unknown
11891
11892 case $host_os in
11893 aix3*)
11894   version_type=linux
11895   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11896   shlibpath_var=LIBPATH
11897
11898   # AIX 3 has no versioning support, so we append a major version to the name.
11899   soname_spec='${libname}${release}${shared_ext}$major'
11900   ;;
11901
11902 aix[4-9]*)
11903   version_type=linux
11904   need_lib_prefix=no
11905   need_version=no
11906   hardcode_into_libs=yes
11907   if test "$host_cpu" = ia64; then
11908     # AIX 5 supports IA64
11909     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11910     shlibpath_var=LD_LIBRARY_PATH
11911   else
11912     # With GCC up to 2.95.x, collect2 would create an import file
11913     # for dependence libraries.  The import file would start with
11914     # the line `#! .'.  This would cause the generated library to
11915     # depend on `.', always an invalid library.  This was fixed in
11916     # development snapshots of GCC prior to 3.0.
11917     case $host_os in
11918       aix4 | aix4.[01] | aix4.[01].*)
11919       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11920            echo ' yes '
11921            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11922         :
11923       else
11924         can_build_shared=no
11925       fi
11926       ;;
11927     esac
11928     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11929     # soname into executable. Probably we can add versioning support to
11930     # collect2, so additional links can be useful in future.
11931     if test "$aix_use_runtimelinking" = yes; then
11932       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11933       # instead of lib<name>.a to let people know that these are not
11934       # typical AIX shared libraries.
11935       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11936     else
11937       # We preserve .a as extension for shared libraries through AIX4.2
11938       # and later when we are not doing run time linking.
11939       library_names_spec='${libname}${release}.a $libname.a'
11940       soname_spec='${libname}${release}${shared_ext}$major'
11941     fi
11942     shlibpath_var=LIBPATH
11943   fi
11944   ;;
11945
11946 amigaos*)
11947   case $host_cpu in
11948   powerpc)
11949     # Since July 2007 AmigaOS4 officially supports .so libraries.
11950     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11952     ;;
11953   m68k)
11954     library_names_spec='$libname.ixlibrary $libname.a'
11955     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11956     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'
11957     ;;
11958   esac
11959   ;;
11960
11961 beos*)
11962   library_names_spec='${libname}${shared_ext}'
11963   dynamic_linker="$host_os ld.so"
11964   shlibpath_var=LIBRARY_PATH
11965   ;;
11966
11967 bsdi[45]*)
11968   version_type=linux
11969   need_version=no
11970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11971   soname_spec='${libname}${release}${shared_ext}$major'
11972   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11973   shlibpath_var=LD_LIBRARY_PATH
11974   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11975   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11976   # the default ld.so.conf also contains /usr/contrib/lib and
11977   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11978   # libtool to hard-code these into programs
11979   ;;
11980
11981 cygwin* | mingw* | pw32* | cegcc*)
11982   version_type=windows
11983   shrext_cmds=".dll"
11984   need_version=no
11985   need_lib_prefix=no
11986
11987   case $GCC,$host_os in
11988   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11989     library_names_spec='$libname.dll.a'
11990     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11991     postinstall_cmds='base_file=`basename \${file}`~
11992       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11993       dldir=$destdir/`dirname \$dlpath`~
11994       test -d \$dldir || mkdir -p \$dldir~
11995       $install_prog $dir/$dlname \$dldir/$dlname~
11996       chmod a+x \$dldir/$dlname~
11997       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11998         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11999       fi'
12000     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12001       dlpath=$dir/\$dldll~
12002        $RM \$dlpath'
12003     shlibpath_overrides_runpath=yes
12004
12005     case $host_os in
12006     cygwin*)
12007       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12008       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12009
12010       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12011       ;;
12012     mingw* | cegcc*)
12013       # MinGW DLLs use traditional 'lib' prefix
12014       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12015       ;;
12016     pw32*)
12017       # pw32 DLLs use 'pw' prefix rather than 'lib'
12018       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12019       ;;
12020     esac
12021     ;;
12022
12023   *)
12024     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12025     ;;
12026   esac
12027   dynamic_linker='Win32 ld.exe'
12028   # FIXME: first we should search . and the directory the executable is in
12029   shlibpath_var=PATH
12030   ;;
12031
12032 darwin* | rhapsody*)
12033   dynamic_linker="$host_os dyld"
12034   version_type=darwin
12035   need_lib_prefix=no
12036   need_version=no
12037   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12038   soname_spec='${libname}${release}${major}$shared_ext'
12039   shlibpath_overrides_runpath=yes
12040   shlibpath_var=DYLD_LIBRARY_PATH
12041   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12042
12043   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12044   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12045   ;;
12046
12047 dgux*)
12048   version_type=linux
12049   need_lib_prefix=no
12050   need_version=no
12051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12052   soname_spec='${libname}${release}${shared_ext}$major'
12053   shlibpath_var=LD_LIBRARY_PATH
12054   ;;
12055
12056 freebsd* | dragonfly*)
12057   # DragonFly does not have aout.  When/if they implement a new
12058   # versioning mechanism, adjust this.
12059   if test -x /usr/bin/objformat; then
12060     objformat=`/usr/bin/objformat`
12061   else
12062     case $host_os in
12063     freebsd[23].*) objformat=aout ;;
12064     *) objformat=elf ;;
12065     esac
12066   fi
12067   version_type=freebsd-$objformat
12068   case $version_type in
12069     freebsd-elf*)
12070       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12071       need_version=no
12072       need_lib_prefix=no
12073       ;;
12074     freebsd-*)
12075       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12076       need_version=yes
12077       ;;
12078   esac
12079   shlibpath_var=LD_LIBRARY_PATH
12080   case $host_os in
12081   freebsd2.*)
12082     shlibpath_overrides_runpath=yes
12083     ;;
12084   freebsd3.[01]* | freebsdelf3.[01]*)
12085     shlibpath_overrides_runpath=yes
12086     hardcode_into_libs=yes
12087     ;;
12088   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12089   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12090     shlibpath_overrides_runpath=no
12091     hardcode_into_libs=yes
12092     ;;
12093   *) # from 4.6 on, and DragonFly
12094     shlibpath_overrides_runpath=yes
12095     hardcode_into_libs=yes
12096     ;;
12097   esac
12098   ;;
12099
12100 gnu*)
12101   version_type=linux
12102   need_lib_prefix=no
12103   need_version=no
12104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12105   soname_spec='${libname}${release}${shared_ext}$major'
12106   shlibpath_var=LD_LIBRARY_PATH
12107   hardcode_into_libs=yes
12108   ;;
12109
12110 haiku*)
12111   version_type=linux
12112   need_lib_prefix=no
12113   need_version=no
12114   dynamic_linker="$host_os runtime_loader"
12115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12116   soname_spec='${libname}${release}${shared_ext}$major'
12117   shlibpath_var=LIBRARY_PATH
12118   shlibpath_overrides_runpath=yes
12119   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12120   hardcode_into_libs=yes
12121   ;;
12122
12123 hpux9* | hpux10* | hpux11*)
12124   # Give a soname corresponding to the major version so that dld.sl refuses to
12125   # link against other versions.
12126   version_type=sunos
12127   need_lib_prefix=no
12128   need_version=no
12129   case $host_cpu in
12130   ia64*)
12131     shrext_cmds='.so'
12132     hardcode_into_libs=yes
12133     dynamic_linker="$host_os dld.so"
12134     shlibpath_var=LD_LIBRARY_PATH
12135     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12136     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12137     soname_spec='${libname}${release}${shared_ext}$major'
12138     if test "X$HPUX_IA64_MODE" = X32; then
12139       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12140     else
12141       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12142     fi
12143     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12144     ;;
12145   hppa*64*)
12146     shrext_cmds='.sl'
12147     hardcode_into_libs=yes
12148     dynamic_linker="$host_os dld.sl"
12149     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12150     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12151     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12152     soname_spec='${libname}${release}${shared_ext}$major'
12153     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12154     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12155     ;;
12156   *)
12157     shrext_cmds='.sl'
12158     dynamic_linker="$host_os dld.sl"
12159     shlibpath_var=SHLIB_PATH
12160     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12161     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12162     soname_spec='${libname}${release}${shared_ext}$major'
12163     ;;
12164   esac
12165   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12166   postinstall_cmds='chmod 555 $lib'
12167   # or fails outright, so override atomically:
12168   install_override_mode=555
12169   ;;
12170
12171 interix[3-9]*)
12172   version_type=linux
12173   need_lib_prefix=no
12174   need_version=no
12175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12176   soname_spec='${libname}${release}${shared_ext}$major'
12177   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12178   shlibpath_var=LD_LIBRARY_PATH
12179   shlibpath_overrides_runpath=no
12180   hardcode_into_libs=yes
12181   ;;
12182
12183 irix5* | irix6* | nonstopux*)
12184   case $host_os in
12185     nonstopux*) version_type=nonstopux ;;
12186     *)
12187         if test "$lt_cv_prog_gnu_ld" = yes; then
12188                 version_type=linux
12189         else
12190                 version_type=irix
12191         fi ;;
12192   esac
12193   need_lib_prefix=no
12194   need_version=no
12195   soname_spec='${libname}${release}${shared_ext}$major'
12196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12197   case $host_os in
12198   irix5* | nonstopux*)
12199     libsuff= shlibsuff=
12200     ;;
12201   *)
12202     case $LD in # libtool.m4 will add one of these switches to LD
12203     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12204       libsuff= shlibsuff= libmagic=32-bit;;
12205     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12206       libsuff=32 shlibsuff=N32 libmagic=N32;;
12207     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12208       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12209     *) libsuff= shlibsuff= libmagic=never-match;;
12210     esac
12211     ;;
12212   esac
12213   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12214   shlibpath_overrides_runpath=no
12215   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12216   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12217   hardcode_into_libs=yes
12218   ;;
12219
12220 # No shared lib support for Linux oldld, aout, or coff.
12221 linux*oldld* | linux*aout* | linux*coff*)
12222   dynamic_linker=no
12223   ;;
12224
12225 # This must be Linux ELF.
12226 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12227   version_type=linux
12228   need_lib_prefix=no
12229   need_version=no
12230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12231   soname_spec='${libname}${release}${shared_ext}$major'
12232   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12233   shlibpath_var=LD_LIBRARY_PATH
12234   shlibpath_overrides_runpath=no
12235
12236   # Some binutils ld are patched to set DT_RUNPATH
12237   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12238   $as_echo_n "(cached) " >&6
12239 else
12240   lt_cv_shlibpath_overrides_runpath=no
12241     save_LDFLAGS=$LDFLAGS
12242     save_libdir=$libdir
12243     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12244          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12245     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h.  */
12247
12248 int
12249 main ()
12250 {
12251
12252   ;
12253   return 0;
12254 }
12255 _ACEOF
12256 if ac_fn_c_try_link "$LINENO"; then :
12257   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12258   lt_cv_shlibpath_overrides_runpath=yes
12259 fi
12260 fi
12261 rm -f core conftest.err conftest.$ac_objext \
12262     conftest$ac_exeext conftest.$ac_ext
12263     LDFLAGS=$save_LDFLAGS
12264     libdir=$save_libdir
12265
12266 fi
12267
12268   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12269
12270   # This implies no fast_install, which is unacceptable.
12271   # Some rework will be needed to allow for fast_install
12272   # before this can be enabled.
12273   hardcode_into_libs=yes
12274
12275   # Append ld.so.conf contents to the search path
12276   if test -f /etc/ld.so.conf; then
12277     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' ' '`
12278     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12279   fi
12280
12281   # We used to test for /lib/ld.so.1 and disable shared libraries on
12282   # powerpc, because MkLinux only supported shared libraries with the
12283   # GNU dynamic linker.  Since this was broken with cross compilers,
12284   # most powerpc-linux boxes support dynamic linking these days and
12285   # people can always --disable-shared, the test was removed, and we
12286   # assume the GNU/Linux dynamic linker is in use.
12287   dynamic_linker='GNU/Linux ld.so'
12288   ;;
12289
12290 netbsd*)
12291   version_type=sunos
12292   need_lib_prefix=no
12293   need_version=no
12294   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12296     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12297     dynamic_linker='NetBSD (a.out) ld.so'
12298   else
12299     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12300     soname_spec='${libname}${release}${shared_ext}$major'
12301     dynamic_linker='NetBSD ld.elf_so'
12302   fi
12303   shlibpath_var=LD_LIBRARY_PATH
12304   shlibpath_overrides_runpath=yes
12305   hardcode_into_libs=yes
12306   ;;
12307
12308 newsos6)
12309   version_type=linux
12310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12311   shlibpath_var=LD_LIBRARY_PATH
12312   shlibpath_overrides_runpath=yes
12313   ;;
12314
12315 *nto* | *qnx*)
12316   version_type=qnx
12317   need_lib_prefix=no
12318   need_version=no
12319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12320   soname_spec='${libname}${release}${shared_ext}$major'
12321   shlibpath_var=LD_LIBRARY_PATH
12322   shlibpath_overrides_runpath=no
12323   hardcode_into_libs=yes
12324   dynamic_linker='ldqnx.so'
12325   ;;
12326
12327 openbsd*)
12328   version_type=sunos
12329   sys_lib_dlsearch_path_spec="/usr/lib"
12330   need_lib_prefix=no
12331   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12332   case $host_os in
12333     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12334     *)                          need_version=no  ;;
12335   esac
12336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12337   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12338   shlibpath_var=LD_LIBRARY_PATH
12339   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12340     case $host_os in
12341       openbsd2.[89] | openbsd2.[89].*)
12342         shlibpath_overrides_runpath=no
12343         ;;
12344       *)
12345         shlibpath_overrides_runpath=yes
12346         ;;
12347       esac
12348   else
12349     shlibpath_overrides_runpath=yes
12350   fi
12351   ;;
12352
12353 os2*)
12354   libname_spec='$name'
12355   shrext_cmds=".dll"
12356   need_lib_prefix=no
12357   library_names_spec='$libname${shared_ext} $libname.a'
12358   dynamic_linker='OS/2 ld.exe'
12359   shlibpath_var=LIBPATH
12360   ;;
12361
12362 osf3* | osf4* | osf5*)
12363   version_type=osf
12364   need_lib_prefix=no
12365   need_version=no
12366   soname_spec='${libname}${release}${shared_ext}$major'
12367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12368   shlibpath_var=LD_LIBRARY_PATH
12369   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12370   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12371   ;;
12372
12373 rdos*)
12374   dynamic_linker=no
12375   ;;
12376
12377 solaris*)
12378   version_type=linux
12379   need_lib_prefix=no
12380   need_version=no
12381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12382   soname_spec='${libname}${release}${shared_ext}$major'
12383   shlibpath_var=LD_LIBRARY_PATH
12384   shlibpath_overrides_runpath=yes
12385   hardcode_into_libs=yes
12386   # ldd complains unless libraries are executable
12387   postinstall_cmds='chmod +x $lib'
12388   ;;
12389
12390 sunos4*)
12391   version_type=sunos
12392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12393   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12394   shlibpath_var=LD_LIBRARY_PATH
12395   shlibpath_overrides_runpath=yes
12396   if test "$with_gnu_ld" = yes; then
12397     need_lib_prefix=no
12398   fi
12399   need_version=yes
12400   ;;
12401
12402 sysv4 | sysv4.3*)
12403   version_type=linux
12404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12405   soname_spec='${libname}${release}${shared_ext}$major'
12406   shlibpath_var=LD_LIBRARY_PATH
12407   case $host_vendor in
12408     sni)
12409       shlibpath_overrides_runpath=no
12410       need_lib_prefix=no
12411       runpath_var=LD_RUN_PATH
12412       ;;
12413     siemens)
12414       need_lib_prefix=no
12415       ;;
12416     motorola)
12417       need_lib_prefix=no
12418       need_version=no
12419       shlibpath_overrides_runpath=no
12420       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12421       ;;
12422   esac
12423   ;;
12424
12425 sysv4*MP*)
12426   if test -d /usr/nec ;then
12427     version_type=linux
12428     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12429     soname_spec='$libname${shared_ext}.$major'
12430     shlibpath_var=LD_LIBRARY_PATH
12431   fi
12432   ;;
12433
12434 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12435   version_type=freebsd-elf
12436   need_lib_prefix=no
12437   need_version=no
12438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12439   soname_spec='${libname}${release}${shared_ext}$major'
12440   shlibpath_var=LD_LIBRARY_PATH
12441   shlibpath_overrides_runpath=yes
12442   hardcode_into_libs=yes
12443   if test "$with_gnu_ld" = yes; then
12444     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12445   else
12446     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12447     case $host_os in
12448       sco3.2v5*)
12449         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12450         ;;
12451     esac
12452   fi
12453   sys_lib_dlsearch_path_spec='/usr/lib'
12454   ;;
12455
12456 tpf*)
12457   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12458   version_type=linux
12459   need_lib_prefix=no
12460   need_version=no
12461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12462   shlibpath_var=LD_LIBRARY_PATH
12463   shlibpath_overrides_runpath=no
12464   hardcode_into_libs=yes
12465   ;;
12466
12467 uts4*)
12468   version_type=linux
12469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12470   soname_spec='${libname}${release}${shared_ext}$major'
12471   shlibpath_var=LD_LIBRARY_PATH
12472   ;;
12473
12474 *)
12475   dynamic_linker=no
12476   ;;
12477 esac
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12479 $as_echo "$dynamic_linker" >&6; }
12480 test "$dynamic_linker" = no && can_build_shared=no
12481
12482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12483 if test "$GCC" = yes; then
12484   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12485 fi
12486
12487 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12488   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12489 fi
12490 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12491   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12492 fi
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12586 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12587 hardcode_action=
12588 if test -n "$hardcode_libdir_flag_spec" ||
12589    test -n "$runpath_var" ||
12590    test "X$hardcode_automatic" = "Xyes" ; then
12591
12592   # We can hardcode non-existent directories.
12593   if test "$hardcode_direct" != no &&
12594      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12595      # have to relink, otherwise we might link with an installed library
12596      # when we should be linking with a yet-to-be-installed one
12597      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12598      test "$hardcode_minus_L" != no; then
12599     # Linking always hardcodes the temporary library directory.
12600     hardcode_action=relink
12601   else
12602     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12603     hardcode_action=immediate
12604   fi
12605 else
12606   # We cannot hardcode anything, or else we can only hardcode existing
12607   # directories.
12608   hardcode_action=unsupported
12609 fi
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12611 $as_echo "$hardcode_action" >&6; }
12612
12613 if test "$hardcode_action" = relink ||
12614    test "$inherit_rpath" = yes; then
12615   # Fast installation is not supported
12616   enable_fast_install=no
12617 elif test "$shlibpath_overrides_runpath" = yes ||
12618      test "$enable_shared" = no; then
12619   # Fast installation is not necessary
12620   enable_fast_install=needless
12621 fi
12622
12623
12624
12625
12626
12627
12628   if test "x$enable_dlopen" != xyes; then
12629   enable_dlopen=unknown
12630   enable_dlopen_self=unknown
12631   enable_dlopen_self_static=unknown
12632 else
12633   lt_cv_dlopen=no
12634   lt_cv_dlopen_libs=
12635
12636   case $host_os in
12637   beos*)
12638     lt_cv_dlopen="load_add_on"
12639     lt_cv_dlopen_libs=
12640     lt_cv_dlopen_self=yes
12641     ;;
12642
12643   mingw* | pw32* | cegcc*)
12644     lt_cv_dlopen="LoadLibrary"
12645     lt_cv_dlopen_libs=
12646     ;;
12647
12648   cygwin*)
12649     lt_cv_dlopen="dlopen"
12650     lt_cv_dlopen_libs=
12651     ;;
12652
12653   darwin*)
12654   # if libdl is installed we need to link against it
12655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12656 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12657 if ${ac_cv_lib_dl_dlopen+:} false; then :
12658   $as_echo_n "(cached) " >&6
12659 else
12660   ac_check_lib_save_LIBS=$LIBS
12661 LIBS="-ldl  $LIBS"
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h.  */
12664
12665 /* Override any GCC internal prototype to avoid an error.
12666    Use char because int might match the return type of a GCC
12667    builtin and then its argument prototype would still apply.  */
12668 #ifdef __cplusplus
12669 extern "C"
12670 #endif
12671 char dlopen ();
12672 int
12673 main ()
12674 {
12675 return dlopen ();
12676   ;
12677   return 0;
12678 }
12679 _ACEOF
12680 if ac_fn_c_try_link "$LINENO"; then :
12681   ac_cv_lib_dl_dlopen=yes
12682 else
12683   ac_cv_lib_dl_dlopen=no
12684 fi
12685 rm -f core conftest.err conftest.$ac_objext \
12686     conftest$ac_exeext conftest.$ac_ext
12687 LIBS=$ac_check_lib_save_LIBS
12688 fi
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12690 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12691 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12692   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12693 else
12694
12695     lt_cv_dlopen="dyld"
12696     lt_cv_dlopen_libs=
12697     lt_cv_dlopen_self=yes
12698
12699 fi
12700
12701     ;;
12702
12703   *)
12704     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12705 if test "x$ac_cv_func_shl_load" = xyes; then :
12706   lt_cv_dlopen="shl_load"
12707 else
12708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12709 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12710 if ${ac_cv_lib_dld_shl_load+:} false; then :
12711   $as_echo_n "(cached) " >&6
12712 else
12713   ac_check_lib_save_LIBS=$LIBS
12714 LIBS="-ldld  $LIBS"
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h.  */
12717
12718 /* Override any GCC internal prototype to avoid an error.
12719    Use char because int might match the return type of a GCC
12720    builtin and then its argument prototype would still apply.  */
12721 #ifdef __cplusplus
12722 extern "C"
12723 #endif
12724 char shl_load ();
12725 int
12726 main ()
12727 {
12728 return shl_load ();
12729   ;
12730   return 0;
12731 }
12732 _ACEOF
12733 if ac_fn_c_try_link "$LINENO"; then :
12734   ac_cv_lib_dld_shl_load=yes
12735 else
12736   ac_cv_lib_dld_shl_load=no
12737 fi
12738 rm -f core conftest.err conftest.$ac_objext \
12739     conftest$ac_exeext conftest.$ac_ext
12740 LIBS=$ac_check_lib_save_LIBS
12741 fi
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12743 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12744 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12745   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12746 else
12747   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12748 if test "x$ac_cv_func_dlopen" = xyes; then :
12749   lt_cv_dlopen="dlopen"
12750 else
12751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12752 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12753 if ${ac_cv_lib_dl_dlopen+:} false; then :
12754   $as_echo_n "(cached) " >&6
12755 else
12756   ac_check_lib_save_LIBS=$LIBS
12757 LIBS="-ldl  $LIBS"
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h.  */
12760
12761 /* Override any GCC internal prototype to avoid an error.
12762    Use char because int might match the return type of a GCC
12763    builtin and then its argument prototype would still apply.  */
12764 #ifdef __cplusplus
12765 extern "C"
12766 #endif
12767 char dlopen ();
12768 int
12769 main ()
12770 {
12771 return dlopen ();
12772   ;
12773   return 0;
12774 }
12775 _ACEOF
12776 if ac_fn_c_try_link "$LINENO"; then :
12777   ac_cv_lib_dl_dlopen=yes
12778 else
12779   ac_cv_lib_dl_dlopen=no
12780 fi
12781 rm -f core conftest.err conftest.$ac_objext \
12782     conftest$ac_exeext conftest.$ac_ext
12783 LIBS=$ac_check_lib_save_LIBS
12784 fi
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12786 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12787 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12788   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12789 else
12790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12791 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12792 if ${ac_cv_lib_svld_dlopen+:} false; then :
12793   $as_echo_n "(cached) " >&6
12794 else
12795   ac_check_lib_save_LIBS=$LIBS
12796 LIBS="-lsvld  $LIBS"
12797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h.  */
12799
12800 /* Override any GCC internal prototype to avoid an error.
12801    Use char because int might match the return type of a GCC
12802    builtin and then its argument prototype would still apply.  */
12803 #ifdef __cplusplus
12804 extern "C"
12805 #endif
12806 char dlopen ();
12807 int
12808 main ()
12809 {
12810 return dlopen ();
12811   ;
12812   return 0;
12813 }
12814 _ACEOF
12815 if ac_fn_c_try_link "$LINENO"; then :
12816   ac_cv_lib_svld_dlopen=yes
12817 else
12818   ac_cv_lib_svld_dlopen=no
12819 fi
12820 rm -f core conftest.err conftest.$ac_objext \
12821     conftest$ac_exeext conftest.$ac_ext
12822 LIBS=$ac_check_lib_save_LIBS
12823 fi
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12825 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12826 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12827   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12828 else
12829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12830 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12831 if ${ac_cv_lib_dld_dld_link+:} false; then :
12832   $as_echo_n "(cached) " >&6
12833 else
12834   ac_check_lib_save_LIBS=$LIBS
12835 LIBS="-ldld  $LIBS"
12836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12837 /* end confdefs.h.  */
12838
12839 /* Override any GCC internal prototype to avoid an error.
12840    Use char because int might match the return type of a GCC
12841    builtin and then its argument prototype would still apply.  */
12842 #ifdef __cplusplus
12843 extern "C"
12844 #endif
12845 char dld_link ();
12846 int
12847 main ()
12848 {
12849 return dld_link ();
12850   ;
12851   return 0;
12852 }
12853 _ACEOF
12854 if ac_fn_c_try_link "$LINENO"; then :
12855   ac_cv_lib_dld_dld_link=yes
12856 else
12857   ac_cv_lib_dld_dld_link=no
12858 fi
12859 rm -f core conftest.err conftest.$ac_objext \
12860     conftest$ac_exeext conftest.$ac_ext
12861 LIBS=$ac_check_lib_save_LIBS
12862 fi
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12864 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12865 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12866   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12867 fi
12868
12869
12870 fi
12871
12872
12873 fi
12874
12875
12876 fi
12877
12878
12879 fi
12880
12881
12882 fi
12883
12884     ;;
12885   esac
12886
12887   if test "x$lt_cv_dlopen" != xno; then
12888     enable_dlopen=yes
12889   else
12890     enable_dlopen=no
12891   fi
12892
12893   case $lt_cv_dlopen in
12894   dlopen)
12895     save_CPPFLAGS="$CPPFLAGS"
12896     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12897
12898     save_LDFLAGS="$LDFLAGS"
12899     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12900
12901     save_LIBS="$LIBS"
12902     LIBS="$lt_cv_dlopen_libs $LIBS"
12903
12904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12905 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12906 if ${lt_cv_dlopen_self+:} false; then :
12907   $as_echo_n "(cached) " >&6
12908 else
12909           if test "$cross_compiling" = yes; then :
12910   lt_cv_dlopen_self=cross
12911 else
12912   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12913   lt_status=$lt_dlunknown
12914   cat > conftest.$ac_ext <<_LT_EOF
12915 #line 12915 "configure"
12916 #include "confdefs.h"
12917
12918 #if HAVE_DLFCN_H
12919 #include <dlfcn.h>
12920 #endif
12921
12922 #include <stdio.h>
12923
12924 #ifdef RTLD_GLOBAL
12925 #  define LT_DLGLOBAL           RTLD_GLOBAL
12926 #else
12927 #  ifdef DL_GLOBAL
12928 #    define LT_DLGLOBAL         DL_GLOBAL
12929 #  else
12930 #    define LT_DLGLOBAL         0
12931 #  endif
12932 #endif
12933
12934 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12935    find out it does not work in some platform. */
12936 #ifndef LT_DLLAZY_OR_NOW
12937 #  ifdef RTLD_LAZY
12938 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12939 #  else
12940 #    ifdef DL_LAZY
12941 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12942 #    else
12943 #      ifdef RTLD_NOW
12944 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12945 #      else
12946 #        ifdef DL_NOW
12947 #          define LT_DLLAZY_OR_NOW      DL_NOW
12948 #        else
12949 #          define LT_DLLAZY_OR_NOW      0
12950 #        endif
12951 #      endif
12952 #    endif
12953 #  endif
12954 #endif
12955
12956 /* When -fvisbility=hidden is used, assume the code has been annotated
12957    correspondingly for the symbols needed.  */
12958 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12959 void fnord () __attribute__((visibility("default")));
12960 #endif
12961
12962 void fnord () { int i=42; }
12963 int main ()
12964 {
12965   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12966   int status = $lt_dlunknown;
12967
12968   if (self)
12969     {
12970       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12971       else
12972         {
12973           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12974           else puts (dlerror ());
12975         }
12976       /* dlclose (self); */
12977     }
12978   else
12979     puts (dlerror ());
12980
12981   return status;
12982 }
12983 _LT_EOF
12984   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12985   (eval $ac_link) 2>&5
12986   ac_status=$?
12987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12988   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12989     (./conftest; exit; ) >&5 2>/dev/null
12990     lt_status=$?
12991     case x$lt_status in
12992       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12993       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12994       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12995     esac
12996   else :
12997     # compilation failed
12998     lt_cv_dlopen_self=no
12999   fi
13000 fi
13001 rm -fr conftest*
13002
13003
13004 fi
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13006 $as_echo "$lt_cv_dlopen_self" >&6; }
13007
13008     if test "x$lt_cv_dlopen_self" = xyes; then
13009       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13010       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13011 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13012 if ${lt_cv_dlopen_self_static+:} false; then :
13013   $as_echo_n "(cached) " >&6
13014 else
13015           if test "$cross_compiling" = yes; then :
13016   lt_cv_dlopen_self_static=cross
13017 else
13018   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13019   lt_status=$lt_dlunknown
13020   cat > conftest.$ac_ext <<_LT_EOF
13021 #line 13021 "configure"
13022 #include "confdefs.h"
13023
13024 #if HAVE_DLFCN_H
13025 #include <dlfcn.h>
13026 #endif
13027
13028 #include <stdio.h>
13029
13030 #ifdef RTLD_GLOBAL
13031 #  define LT_DLGLOBAL           RTLD_GLOBAL
13032 #else
13033 #  ifdef DL_GLOBAL
13034 #    define LT_DLGLOBAL         DL_GLOBAL
13035 #  else
13036 #    define LT_DLGLOBAL         0
13037 #  endif
13038 #endif
13039
13040 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13041    find out it does not work in some platform. */
13042 #ifndef LT_DLLAZY_OR_NOW
13043 #  ifdef RTLD_LAZY
13044 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13045 #  else
13046 #    ifdef DL_LAZY
13047 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13048 #    else
13049 #      ifdef RTLD_NOW
13050 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13051 #      else
13052 #        ifdef DL_NOW
13053 #          define LT_DLLAZY_OR_NOW      DL_NOW
13054 #        else
13055 #          define LT_DLLAZY_OR_NOW      0
13056 #        endif
13057 #      endif
13058 #    endif
13059 #  endif
13060 #endif
13061
13062 /* When -fvisbility=hidden is used, assume the code has been annotated
13063    correspondingly for the symbols needed.  */
13064 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13065 void fnord () __attribute__((visibility("default")));
13066 #endif
13067
13068 void fnord () { int i=42; }
13069 int main ()
13070 {
13071   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13072   int status = $lt_dlunknown;
13073
13074   if (self)
13075     {
13076       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13077       else
13078         {
13079           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13080           else puts (dlerror ());
13081         }
13082       /* dlclose (self); */
13083     }
13084   else
13085     puts (dlerror ());
13086
13087   return status;
13088 }
13089 _LT_EOF
13090   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13091   (eval $ac_link) 2>&5
13092   ac_status=$?
13093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13094   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13095     (./conftest; exit; ) >&5 2>/dev/null
13096     lt_status=$?
13097     case x$lt_status in
13098       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13099       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13100       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13101     esac
13102   else :
13103     # compilation failed
13104     lt_cv_dlopen_self_static=no
13105   fi
13106 fi
13107 rm -fr conftest*
13108
13109
13110 fi
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13112 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13113     fi
13114
13115     CPPFLAGS="$save_CPPFLAGS"
13116     LDFLAGS="$save_LDFLAGS"
13117     LIBS="$save_LIBS"
13118     ;;
13119   esac
13120
13121   case $lt_cv_dlopen_self in
13122   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13123   *) enable_dlopen_self=unknown ;;
13124   esac
13125
13126   case $lt_cv_dlopen_self_static in
13127   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13128   *) enable_dlopen_self_static=unknown ;;
13129   esac
13130 fi
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148 striplib=
13149 old_striplib=
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13151 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13152 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13153   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13154   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13156 $as_echo "yes" >&6; }
13157 else
13158 # FIXME - insert some real tests, host_os isn't really good enough
13159   case $host_os in
13160   darwin*)
13161     if test -n "$STRIP" ; then
13162       striplib="$STRIP -x"
13163       old_striplib="$STRIP -S"
13164       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13165 $as_echo "yes" >&6; }
13166     else
13167       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13169     fi
13170     ;;
13171   *)
13172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173 $as_echo "no" >&6; }
13174     ;;
13175   esac
13176 fi
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189   # Report which library types will actually be built
13190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13191 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13193 $as_echo "$can_build_shared" >&6; }
13194
13195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13196 $as_echo_n "checking whether to build shared libraries... " >&6; }
13197   test "$can_build_shared" = "no" && enable_shared=no
13198
13199   # On AIX, shared libraries and static libraries use the same namespace, and
13200   # are all built from PIC.
13201   case $host_os in
13202   aix3*)
13203     test "$enable_shared" = yes && enable_static=no
13204     if test -n "$RANLIB"; then
13205       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13206       postinstall_cmds='$RANLIB $lib'
13207     fi
13208     ;;
13209
13210   aix[4-9]*)
13211     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13212       test "$enable_shared" = yes && enable_static=no
13213     fi
13214     ;;
13215   esac
13216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13217 $as_echo "$enable_shared" >&6; }
13218
13219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13220 $as_echo_n "checking whether to build static libraries... " >&6; }
13221   # Make sure either enable_shared or enable_static is yes.
13222   test "$enable_shared" = yes || enable_static=yes
13223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13224 $as_echo "$enable_static" >&6; }
13225
13226
13227
13228
13229 fi
13230 ac_ext=c
13231 ac_cpp='$CPP $CPPFLAGS'
13232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13235
13236 CC="$lt_save_CC"
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250         ac_config_commands="$ac_config_commands libtool"
13251
13252
13253
13254
13255 # Only expand once:
13256
13257
13258
13259
13260 . ${srcdir}/../../bfd/configure.host
13261
13262
13263
13264
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13266 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13267     # Check whether --enable-maintainer-mode was given.
13268 if test "${enable_maintainer_mode+set}" = set; then :
13269   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13270 else
13271   USE_MAINTAINER_MODE=no
13272 fi
13273
13274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13275 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13276    if test $USE_MAINTAINER_MODE = yes; then
13277   MAINTAINER_MODE_TRUE=
13278   MAINTAINER_MODE_FALSE='#'
13279 else
13280   MAINTAINER_MODE_TRUE='#'
13281   MAINTAINER_MODE_FALSE=
13282 fi
13283
13284   MAINT=$MAINTAINER_MODE_TRUE
13285
13286
13287
13288
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
13290 $as_echo_n "checking for sim debug setting... " >&6; }
13291 sim_debug="0"
13292 # Check whether --enable-sim-debug was given.
13293 if test "${enable_sim_debug+set}" = set; then :
13294   enableval=$enable_sim_debug; case "${enableval}" in
13295   yes) sim_debug="7";;
13296   no)  sim_debug="0";;
13297   *)   sim_debug="($enableval)";;
13298 esac
13299 fi
13300 if test "$sim_debug" != "0"; then
13301
13302 cat >>confdefs.h <<_ACEOF
13303 #define DEBUG $sim_debug
13304 _ACEOF
13305
13306 fi
13307
13308 cat >>confdefs.h <<_ACEOF
13309 #define WITH_DEBUG $sim_debug
13310 _ACEOF
13311
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
13313 $as_echo "$sim_debug" >&6; }
13314
13315
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
13317 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
13318 sim_stdio="0"
13319 # Check whether --enable-sim-stdio was given.
13320 if test "${enable_sim_stdio+set}" = set; then :
13321   enableval=$enable_sim_stdio; case "${enableval}" in
13322   yes)  sim_stdio="DO_USE_STDIO";;
13323   no)   sim_stdio="DONT_USE_STDIO";;
13324   *)    as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
13325 esac
13326 fi
13327
13328 cat >>confdefs.h <<_ACEOF
13329 #define WITH_STDIO $sim_stdio
13330 _ACEOF
13331
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
13333 $as_echo "$sim_stdio" >&6; }
13334
13335
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
13337 $as_echo_n "checking for sim trace settings... " >&6; }
13338 sim_trace="~TRACE_debug"
13339 # Check whether --enable-sim-trace was given.
13340 if test "${enable_sim_trace+set}" = set; then :
13341   enableval=$enable_sim_trace; case "${enableval}" in
13342   yes)  sim_trace="-1";;
13343   no)   sim_trace="0";;
13344   [-0-9]*)
13345         sim_trace="'(${enableval})'";;
13346   [[:lower:]]*)
13347         sim_trace=""
13348         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13349           if test x"$sim_trace" = x; then
13350             sim_trace="(TRACE_$x"
13351           else
13352             sim_trace="${sim_trace}|TRACE_$x"
13353           fi
13354         done
13355         sim_trace="$sim_trace)" ;;
13356 esac
13357 fi
13358
13359 cat >>confdefs.h <<_ACEOF
13360 #define WITH_TRACE $sim_trace
13361 _ACEOF
13362
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
13364 $as_echo "$sim_trace" >&6; }
13365
13366
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
13368 $as_echo_n "checking for sim profile settings... " >&6; }
13369 profile="1"
13370 sim_profile="-1"
13371 # Check whether --enable-sim-profile was given.
13372 if test "${enable_sim_profile+set}" = set; then :
13373   enableval=$enable_sim_profile; case "${enableval}" in
13374   yes)  profile="1" sim_profile="-1";;
13375   no)   profile="0" sim_profile="0";;
13376   [-0-9]*)
13377         profile="(${enableval})" sim_profile="(${enableval})";;
13378   [a-z]*)
13379     profile="1"
13380         sim_profile=""
13381         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13382           if test x"$sim_profile" = x; then
13383             sim_profile="(PROFILE_$x"
13384           else
13385             sim_profile="${sim_profile}|PROFILE_$x"
13386           fi
13387         done
13388         sim_profile="$sim_profile)" ;;
13389 esac
13390 fi
13391
13392 cat >>confdefs.h <<_ACEOF
13393 #define PROFILE $profile
13394 _ACEOF
13395
13396
13397 cat >>confdefs.h <<_ACEOF
13398 #define WITH_PROFILE $sim_profile
13399 _ACEOF
13400
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
13402 $as_echo "$sim_profile" >&6; }
13403
13404
13405
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
13407 $as_echo_n "checking whether to enable sim asserts... " >&6; }
13408 sim_assert="1"
13409 # Check whether --enable-sim-assert was given.
13410 if test "${enable_sim_assert+set}" = set; then :
13411   enableval=$enable_sim_assert; case "${enableval}" in
13412   yes)  sim_assert="1";;
13413   no)   sim_assert="0";;
13414   *)    as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
13415 esac
13416 fi
13417
13418 cat >>confdefs.h <<_ACEOF
13419 #define WITH_ASSERT $sim_assert
13420 _ACEOF
13421
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
13423 $as_echo "$sim_assert" >&6; }
13424
13425
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
13427 $as_echo_n "checking default sim environment setting... " >&6; }
13428 sim_environment="ALL_ENVIRONMENT"
13429 # Check whether --enable-sim-environment was given.
13430 if test "${enable_sim_environment+set}" = set; then :
13431   enableval=$enable_sim_environment; case "${enableval}" in
13432   all | ALL)             sim_environment="ALL_ENVIRONMENT";;
13433   user | USER)           sim_environment="USER_ENVIRONMENT";;
13434   virtual | VIRTUAL)     sim_environment="VIRTUAL_ENVIRONMENT";;
13435   operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
13436   *)   as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
13437 esac
13438 fi
13439
13440 cat >>confdefs.h <<_ACEOF
13441 #define WITH_ENVIRONMENT $sim_environment
13442 _ACEOF
13443
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
13445 $as_echo "$sim_environment" >&6; }
13446
13447
13448 sim_inline="-DDEFAULT_INLINE=0"
13449 # Check whether --enable-sim-inline was given.
13450 if test "${enable_sim_inline+set}" = set; then :
13451   enableval=$enable_sim_inline; sim_inline=""
13452 case "$enableval" in
13453   no)           sim_inline="-DDEFAULT_INLINE=0";;
13454   0)            sim_inline="-DDEFAULT_INLINE=0";;
13455   yes | 2)      sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
13456   1)            sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
13457   *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13458        new_flag=""
13459        case "$x" in
13460          *_INLINE=*)    new_flag="-D$x";;
13461          *=*)           new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
13462          *_INLINE)      new_flag="-D$x=ALL_C_INLINE";;
13463          *)             new_flag="-D$x""_INLINE=ALL_C_INLINE";;
13464        esac
13465        if test x"$sim_inline" = x""; then
13466          sim_inline="$new_flag"
13467        else
13468          sim_inline="$sim_inline $new_flag"
13469        fi
13470      done;;
13471 esac
13472 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
13473   echo "Setting inline flags = $sim_inline" 6>&1
13474 fi
13475 fi
13476
13477
13478
13479
13480 # Check whether --with-pkgversion was given.
13481 if test "${with_pkgversion+set}" = set; then :
13482   withval=$with_pkgversion; case "$withval" in
13483       yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
13484       no)  PKGVERSION= ;;
13485       *)   PKGVERSION="($withval) " ;;
13486      esac
13487 else
13488   PKGVERSION="(SIM) "
13489
13490 fi
13491
13492
13493
13494
13495
13496 # Check whether --with-bugurl was given.
13497 if test "${with_bugurl+set}" = set; then :
13498   withval=$with_bugurl; case "$withval" in
13499       yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
13500       no)  BUGURL=
13501            ;;
13502       *)   BUGURL="$withval"
13503            ;;
13504      esac
13505 else
13506   BUGURL="http://www.gnu.org/software/gdb/bugs/"
13507
13508 fi
13509
13510   case ${BUGURL} in
13511   "")
13512     REPORT_BUGS_TO=
13513     REPORT_BUGS_TEXI=
13514     ;;
13515   *)
13516     REPORT_BUGS_TO="<$BUGURL>"
13517     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
13518     ;;
13519   esac;
13520
13521
13522
13523
13524 cat >>confdefs.h <<_ACEOF
13525 #define PKGVERSION "$PKGVERSION"
13526 _ACEOF
13527
13528
13529 cat >>confdefs.h <<_ACEOF
13530 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
13531 _ACEOF
13532
13533
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13535 $as_echo_n "checking return type of signal handlers... " >&6; }
13536 if ${ac_cv_type_signal+:} false; then :
13537   $as_echo_n "(cached) " >&6
13538 else
13539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h.  */
13541 #include <sys/types.h>
13542 #include <signal.h>
13543
13544 int
13545 main ()
13546 {
13547 return *(signal (0, 0)) (0) == 1;
13548   ;
13549   return 0;
13550 }
13551 _ACEOF
13552 if ac_fn_c_try_compile "$LINENO"; then :
13553   ac_cv_type_signal=int
13554 else
13555   ac_cv_type_signal=void
13556 fi
13557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13558 fi
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13560 $as_echo "$ac_cv_type_signal" >&6; }
13561
13562 cat >>confdefs.h <<_ACEOF
13563 #define RETSIGTYPE $ac_cv_type_signal
13564 _ACEOF
13565
13566
13567
13568
13569
13570
13571
13572 wire_alignment="NONSTRICT_ALIGNMENT"
13573 default_alignment=""
13574
13575 # Check whether --enable-sim-alignment was given.
13576 if test "${enable_sim_alignment+set}" = set; then :
13577   enableval=$enable_sim_alignment; case "${enableval}" in
13578   strict | STRICT)       sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
13579   nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
13580   forced | FORCED)       sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
13581   yes) if test x"$wire_alignment" != x; then
13582          sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
13583        else
13584          if test x"$default_alignment" != x; then
13585            sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
13586          else
13587            echo "No hard-wired alignment for target $target" 1>&6
13588            sim_alignment="-DWITH_ALIGNMENT=0"
13589          fi
13590        fi;;
13591   no)  if test x"$default_alignment" != x; then
13592          sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
13593        else
13594          if test x"$wire_alignment" != x; then
13595            sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
13596          else
13597            echo "No default alignment for target $target" 1>&6
13598            sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
13599          fi
13600        fi;;
13601   *)   as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
13602 esac
13603 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
13604   echo "Setting alignment flags = $sim_alignment" 6>&1
13605 fi
13606 else
13607   if test x"$default_alignment" != x; then
13608   sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
13609 else
13610   if test x"$wire_alignment" != x; then
13611     sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
13612   else
13613     sim_alignment=
13614   fi
13615 fi
13616 fi
13617
13618
13619 # Check whether --enable-werror was given.
13620 if test "${enable_werror+set}" = set; then :
13621   enableval=$enable_werror; case "${enableval}" in
13622      yes | y) ERROR_ON_WARNING="yes" ;;
13623      no | n)  ERROR_ON_WARNING="no" ;;
13624      *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13625    esac
13626 fi
13627
13628
13629 # Enable -Werror by default when using gcc
13630 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13631     ERROR_ON_WARNING=yes
13632 fi
13633
13634 WERROR_CFLAGS=""
13635 if test "${ERROR_ON_WARNING}" = yes ; then
13636 # NOTE: Disabled in the sim dir due to most sims generating warnings.
13637 #    WERROR_CFLAGS="-Werror"
13638      true
13639 fi
13640
13641 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13642 -Wpointer-sign \
13643 -Wno-unused -Wunused-value -Wunused-function \
13644 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
13645 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
13646 -Wold-style-declaration -Wold-style-definition"
13647
13648 # Enable -Wno-format by default when using gcc on mingw since many
13649 # GCC versions complain about %I64.
13650 case "${host}" in
13651   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
13652   *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
13653 esac
13654
13655 # Check whether --enable-build-warnings was given.
13656 if test "${enable_build_warnings+set}" = set; then :
13657   enableval=$enable_build_warnings; case "${enableval}" in
13658   yes)  ;;
13659   no)   build_warnings="-w";;
13660   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13661         build_warnings="${build_warnings} ${t}";;
13662   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13663         build_warnings="${t} ${build_warnings}";;
13664   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13665 esac
13666 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13667   echo "Setting compiler warning flags = $build_warnings" 6>&1
13668 fi
13669 fi
13670 # Check whether --enable-sim-build-warnings was given.
13671 if test "${enable_sim_build_warnings+set}" = set; then :
13672   enableval=$enable_sim_build_warnings; case "${enableval}" in
13673   yes)  ;;
13674   no)   build_warnings="-w";;
13675   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13676         build_warnings="${build_warnings} ${t}";;
13677   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13678         build_warnings="${t} ${build_warnings}";;
13679   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13680 esac
13681 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13682   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13683 fi
13684 fi
13685 WARN_CFLAGS=""
13686 if test "x${build_warnings}" != x -a "x$GCC" = xyes
13687 then
13688     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13689 $as_echo_n "checking compiler warning flags... " >&6; }
13690     # Separate out the -Werror flag as some files just cannot be
13691     # compiled with it enabled.
13692     for w in ${build_warnings}; do
13693         case $w in
13694         -Werr*) WERROR_CFLAGS=-Werror ;;
13695         *) # Check that GCC accepts it
13696             saved_CFLAGS="$CFLAGS"
13697             CFLAGS="$CFLAGS $w"
13698             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h.  */
13700
13701 int
13702 main ()
13703 {
13704
13705   ;
13706   return 0;
13707 }
13708 _ACEOF
13709 if ac_fn_c_try_compile "$LINENO"; then :
13710   WARN_CFLAGS="${WARN_CFLAGS} $w"
13711 fi
13712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13713             CFLAGS="$saved_CFLAGS"
13714         esac
13715     done
13716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13717 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13718 fi
13719
13720
13721 default_sim_reserved_bits="1"
13722 # Check whether --enable-sim-reserved-bits was given.
13723 if test "${enable_sim_reserved_bits+set}" = set; then :
13724   enableval=$enable_sim_reserved_bits; case "${enableval}" in
13725   yes)  sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
13726   no)   sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
13727   *)    as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
13728 esac
13729 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
13730   echo "Setting reserved flags = $sim_reserved_bits" 6>&1
13731 fi
13732 else
13733   sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
13734 fi
13735
13736
13737 # DEPRECATED
13738 #
13739 # Instead of defining a `subtarget' macro, code should be checking
13740 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
13741 # in question.
13742 #
13743 case "${target}" in
13744   mips64vr*-*-*)        SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
13745   mips*tx39*)           SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
13746   mips*-sde-elf*)       SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
13747   mips*-mti-elf*)       SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
13748   mipsisa32*-*-*)       SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
13749   mipsisa64*-*-*)       SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
13750   *)                    SIM_SUBTARGET="";;
13751 esac
13752
13753
13754
13755
13756 #
13757 # Select the byte order of the target
13758 #
13759 mips_endian=
13760 default_endian=
13761 case "${target}" in
13762   mips64el*-*-*)        mips_endian=LITTLE ;;
13763   mips64vr*el-*-*)      default_endian=LITTLE ;;
13764   mips64*-*-*)          default_endian=BIG ;;
13765   mips16*-*-*)          default_endian=BIG ;;
13766   mipsisa32*-*-*)       default_endian=BIG ;;
13767   mipsisa64*-*-*)       default_endian=BIG ;;
13768   mips*-*-*)            default_endian=BIG ;;
13769   *)                    default_endian=BIG ;;
13770 esac
13771
13772 wire_endian="$mips_endian"
13773 default_endian="$default_endian"
13774 # Check whether --enable-sim-endian was given.
13775 if test "${enable_sim_endian+set}" = set; then :
13776   enableval=$enable_sim_endian; case "${enableval}" in
13777   b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";;
13778   l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
13779   yes)   if test x"$wire_endian" != x; then
13780            sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
13781          else
13782           if test x"$default_endian" != x; then
13783              sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
13784            else
13785              echo "No hard-wired endian for target $target" 1>&6
13786              sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
13787            fi
13788          fi;;
13789   no)    if test x"$default_endian" != x; then
13790            sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
13791          else
13792            if test x"$wire_endian" != x; then
13793              sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
13794            else
13795              echo "No default endian for target $target" 1>&6
13796              sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
13797            fi
13798          fi;;
13799   *)     as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
13800 esac
13801 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
13802   echo "Setting endian flags = $sim_endian" 6>&1
13803 fi
13804 else
13805   if test x"$default_endian" != x; then
13806   sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
13807 else
13808   if test x"$wire_endian" != x; then
13809     sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
13810   else
13811     sim_endian=
13812   fi
13813 fi
13814 fi
13815
13816
13817
13818
13819 #
13820 # Select the bitsize of the target
13821 #
13822 mips_addr_bitsize=
13823 case "${target}" in
13824   mips*-sde-elf*)       mips_bitsize=64 ; mips_msb=63 ;;
13825   mips*-mti-elf*)       mips_bitsize=64 ; mips_msb=63 ;;
13826   mips64*-*-*)          mips_bitsize=64 ; mips_msb=63 ;;
13827   mips16*-*-*)          mips_bitsize=64 ; mips_msb=63 ;;
13828   mipsisa32*-*-*)       mips_bitsize=32 ; mips_msb=31 ;;
13829   mipsisa64*-*-*)       mips_bitsize=64 ; mips_msb=63 ;;
13830   mips*-*-*)            mips_bitsize=32 ; mips_msb=31 ;;
13831   *)                    mips_bitsize=64 ; mips_msb=63 ;;
13832 esac
13833 wire_word_bitsize="$mips_bitsize"
13834 wire_word_msb="$mips_msb"
13835 wire_address_bitsize="$mips_addr_bitsize"
13836 wire_cell_bitsize=""
13837 # Check whether --enable-sim-bitsize was given.
13838 if test "${enable_sim_bitsize+set}" = set; then :
13839   enableval=$enable_sim_bitsize; sim_bitsize=
13840 case "${enableval}" in
13841   64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
13842   32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
13843   64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
13844   32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
13845   32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
13846         sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
13847       else
13848         sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
13849       fi ;;
13850   64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
13851         sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
13852       else
13853         sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
13854       fi ;;
13855   *)  as_fn_error $? "\"--enable-sim-bitsize was given $enableval.  Expected 32 or 64\"" "$LINENO" 5 ;;
13856 esac
13857 # address bitsize
13858 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
13859 case x"${tmp}" in
13860   x ) ;;
13861   x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
13862   x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
13863   * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval.  Expected 32 or 64\"" "$LINENO" 5 ;;
13864 esac
13865 # cell bitsize
13866 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
13867 case x"${tmp}" in
13868   x ) ;;
13869   x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
13870   x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
13871   * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval.  Expected 32 or 64\"" "$LINENO" 5 ;;
13872 esac
13873 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
13874   echo "Setting bitsize flags = $sim_bitsize" 6>&1
13875 fi
13876 else
13877   sim_bitsize=""
13878 if test x"$wire_word_bitsize" != x; then
13879   sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
13880 fi
13881 if test x"$wire_word_msb" != x; then
13882   sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
13883 fi
13884 if test x"$wire_address_bitsize" != x; then
13885   sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
13886 fi
13887 if test x"$wire_cell_bitsize" != x; then
13888   sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
13889 fi
13890 fi
13891
13892
13893
13894
13895 #
13896 # Select the floating hardware support of the target
13897 #
13898 mips_fpu=HARDWARE_FLOATING_POINT
13899 mips_fpu_bitsize=
13900 case "${target}" in
13901   mips*tx39*)           mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
13902   mips*-sde-elf*)       mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
13903   mips*-mti-elf*)       mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
13904   mips64*-*-*)          mips_fpu=HARD_FLOATING_POINT ;;
13905   mips16*-*-*)          mips_fpu=HARD_FLOATING_POINT ;;
13906   mipsisa32*-*-*)       mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
13907   mipsisa64*-*-*)       mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
13908   mips*-*-*)            mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
13909   *)                    mips_fpu=HARD_FLOATING_POINT ;;
13910 esac
13911
13912 default_sim_float="$mips_fpu"
13913 default_sim_float_bitsize="$mips_fpu_bitsize"
13914 # Check whether --enable-sim-float was given.
13915 if test "${enable_sim_float+set}" = set; then :
13916   enableval=$enable_sim_float; case "${enableval}" in
13917   yes | hard)   sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
13918   no | soft)    sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
13919   32)           sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
13920   64)           sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
13921   *)            as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
13922 esac
13923 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
13924   echo "Setting float flags = $sim_float" 6>&1
13925 fi
13926 else
13927
13928 sim_float=
13929 if test x"${default_sim_float}" != x""; then
13930   sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
13931 fi
13932 if test x"${default_sim_float_bitsize}" != x""; then
13933   sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
13934 fi
13935
13936 fi
13937
13938
13939
13940
13941 #
13942 # Select the IGEN architecture
13943 #
13944 sim_gen=IGEN
13945 sim_igen_machine="-M mipsIV"
13946 sim_m16_machine="-M mips16,mipsIII"
13947 sim_igen_filter="32,64,f"
13948 sim_m16_filter="16"
13949 sim_mach_default="mips8000"
13950
13951 case "${target}" in
13952   mips*tx39*)           sim_gen=IGEN
13953                         sim_igen_filter="32,f"
13954                         sim_igen_machine="-M r3900"
13955                         ;;
13956   mips64vr43*-*-*)      sim_gen=IGEN
13957                         sim_igen_machine="-M mipsIV"
13958                         sim_mach_default="mips8000"
13959                         ;;
13960   mips64vr5*-*-*)       sim_gen=IGEN
13961                         sim_igen_machine="-M vr5000"
13962                         sim_mach_default="mips5000"
13963                         ;;
13964   mips64vr41*)          sim_gen=M16
13965                         sim_igen_machine="-M vr4100"
13966                         sim_m16_machine="-M vr4100"
13967                         sim_igen_filter="32,64,f"
13968                         sim_m16_filter="16"
13969                         sim_mach_default="mips4100"
13970                         ;;
13971   mips64vr-*-* | mips64vrel-*-*)
13972                         sim_gen=MULTI
13973                         sim_multi_configs="\
13974                           vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
13975                           vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
13976                           vr5000:mipsIV:32,64,f:mips4300,mips5000\
13977                           vr5400:mipsIV,vr5400:32,64,f:mips5400\
13978                           vr5500:mipsIV,vr5500:32,64,f:mips5500"
13979                         sim_multi_default=mips5000
13980                         ;;
13981   mips*-sde-elf* | mips*-mti-elf*)
13982                         sim_gen=MULTI
13983                         sim_multi_configs="\
13984                           micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
13985                           mips64r2:mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,64,f:mipsisa64r2"
13986                         sim_multi_default=mipsisa64r2
13987                         ;;
13988   mips64*-*-*)          sim_igen_filter="32,64,f"
13989                         sim_gen=IGEN
13990                         ;;
13991   mips16*-*-*)          sim_gen=M16
13992                         sim_igen_filter="32,64,f"
13993                         sim_m16_filter="16"
13994                         ;;
13995   mipsisa32r2*-*-*)     sim_gen=MULTI
13996                         sim_multi_configs="\
13997                           micromips:micromips32,micromipsdsp:32,f:mips_micromips\
13998                           mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
13999                         sim_multi_default=mipsisa32r2
14000                         ;;
14001   mipsisa32*-*-*)       sim_gen=M16
14002                         sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
14003                         sim_m16_machine="-M mips16,mips16e,mips32"
14004                         sim_igen_filter="32,f"
14005                         sim_mach_default="mipsisa32"
14006                         ;;
14007   mipsisa64r2*-*-*)     sim_gen=M16
14008                         sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
14009                         sim_m16_machine="-M mips16,mips16e,mips64r2"
14010                         sim_igen_filter="32,64,f"
14011                         sim_mach_default="mipsisa64r2"
14012                         ;;
14013   mipsisa64sb1*-*-*)    sim_gen=IGEN
14014                         sim_igen_machine="-M mips64,mips3d,sb1"
14015                         sim_igen_filter="32,64,f"
14016                         sim_mach_default="mips_sb1"
14017                         ;;
14018   mipsisa64*-*-*)       sim_gen=M16
14019                         sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
14020                         sim_m16_machine="-M mips16,mips16e,mips64"
14021                         sim_igen_filter="32,64,f"
14022                         sim_mach_default="mipsisa64"
14023                         ;;
14024   mips*lsi*)            sim_gen=M16
14025                         sim_igen_machine="-M mipsIII,mips16"
14026                         sim_m16_machine="-M mips16,mipsIII"
14027                         sim_igen_filter="32,f"
14028                         sim_m16_filter="16"
14029                         sim_mach_default="mips4000"
14030                         ;;
14031   mips*-*-*)            sim_gen=IGEN
14032                         sim_igen_filter="32,f"
14033                         ;;
14034 esac
14035
14036 # The MULTI generator can combine several simulation engines into one.
14037 # executable.  A configuration which uses the MULTI should set two
14038 # variables: ${sim_multi_configs} and ${sim_multi_default}.
14039 #
14040 # ${sim_multi_configs} is the list of engines to build.  Each
14041 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
14042 # where:
14043 #
14044 # - NAME is a C-compatible prefix for the engine,
14045 # - MACHINE is a -M argument,
14046 # - FILTER is a -F argument, and
14047 # - BFDMACHS is a comma-separated list of bfd machines that the
14048 #     simulator can run.
14049 #
14050 # Each entry will have a separate simulation engine whose prefix is
14051 # m32<NAME>.  If the machine list includes "mips16", there will also
14052 # be a mips16 engine, prefix m16<NAME>.  The mips16 engine will be
14053 # generated using the same machine list as the 32-bit version,
14054 # but the filter will be "16" instead of FILTER.
14055 #
14056 # The simulator compares the bfd mach against BFDMACHS to decide
14057 # which engine to use.  Entries in BFDMACHS should be bfd_mach
14058 # values with "bfd_mach_" removed.  ${sim_multi_default} says
14059 # which entry should be the default.
14060 if test ${sim_gen} = MULTI; then
14061
14062   # Simple sanity check.
14063   if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
14064     as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
14065   fi
14066
14067   # Start in a known state.
14068   rm -f multi-include.h multi-run.c
14069   sim_multi_flags=
14070   sim_multi_src=
14071   sim_multi_obj=
14072   sim_multi_igen_configs=
14073   sim_seen_default=no
14074
14075   cat << __EOF__ > multi-run.c
14076 /* Main entry point for MULTI simulators.
14077    Copyright (C) 2003-2018 Free Software Foundation, Inc.
14078
14079    This program is free software; you can redistribute it and/or modify
14080    it under the terms of the GNU General Public License as published by
14081    the Free Software Foundation; either version 3 of the License, or
14082    (at your option) any later version.
14083
14084    This program is distributed in the hope that it will be useful,
14085    but WITHOUT ANY WARRANTY; without even the implied warranty of
14086    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14087    GNU General Public License for more details.
14088
14089    You should have received a copy of the GNU General Public License
14090    along with this program.  If not, see <http://www.gnu.org/licenses/>.
14091
14092    --
14093
14094    This file was generated by sim/mips/configure.  */
14095
14096 #include "sim-main.h"
14097 #include "multi-include.h"
14098 #include "elf-bfd.h"
14099 #include "elf/mips.h"
14100
14101 #define SD sd
14102 #define CPU cpu
14103
14104 void
14105 sim_engine_run (SIM_DESC sd,
14106                 int next_cpu_nr,
14107                 int nr_cpus,
14108                 int signal) /* ignore */
14109 {
14110   int mach;
14111
14112   if (STATE_ARCHITECTURE (sd) == NULL)
14113     mach = bfd_mach_${sim_multi_default};
14114   else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
14115            & EF_MIPS_ARCH_ASE_MICROMIPS)
14116     mach = bfd_mach_mips_micromips;
14117   else
14118     mach = STATE_ARCHITECTURE (SD)->mach;
14119
14120   switch (mach)
14121     {
14122 __EOF__
14123
14124   for fc in ${sim_multi_configs}; do
14125
14126     # Split up the entry.  ${c} contains the first three elements.
14127     # Note: outer sqaure brackets are m4 quotes.
14128     c=`echo ${fc} | sed 's/:[^:]*$//'`
14129     bfdmachs=`echo ${fc} | sed 's/.*://'`
14130     name=`echo ${c} | sed 's/:.*//'`
14131     machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
14132     filter=`echo ${c} | sed 's/.*://'`
14133
14134     # Build the following lists:
14135     #
14136     #   sim_multi_flags: all -M and -F flags used by the simulator
14137     #   sim_multi_src: all makefile-generated source files
14138     #   sim_multi_obj: the objects for ${sim_multi_src}
14139     #   sim_multi_igen_configs: igen configuration strings.
14140     #
14141     # Each entry in ${sim_multi_igen_configs} is a prefix (m32
14142     # or m16) followed by the NAME, MACHINE and FILTER part of
14143     # the ${sim_multi_configs} entry.
14144     sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
14145
14146     # Check whether special handling is needed.
14147     case ${c} in
14148       *:*mips16*:*)
14149         # Run igen twice, once for normal mode and once for mips16.
14150         ws="m32 m16"
14151
14152         # The top-level function for the mips16 simulator is
14153         # in a file m16${name}_run.c, generated by the
14154         # tmp-run-multi Makefile rule.
14155         sim_multi_src="${sim_multi_src} m16${name}_run.c"
14156         sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
14157         sim_multi_flags="${sim_multi_flags} -F 16"
14158         ;;
14159       *:*micromips32*:*)
14160         # Run igen thrice, once for micromips32, once for micromips16,
14161         # and once for m32.
14162         ws="micromips_m32 micromips16 micromips32"
14163
14164         # The top-level function for the micromips simulator is
14165         # in a file micromips${name}_run.c, generated by the
14166         # tmp-run-multi Makefile rule.
14167         sim_multi_src="${sim_multi_src} micromips${name}_run.c"
14168         sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
14169         sim_multi_flags="${sim_multi_flags} -F 16,32"
14170         ;;
14171       *:*micromips64*:*)
14172         # Run igen thrice, once for micromips64, once for micromips16,
14173         # and once for m64.
14174         ws="micromips_m64 micromips16 micromips64"
14175
14176         # The top-level function for the micromips simulator is
14177         # in a file micromips${name}_run.c, generated by the
14178         # tmp-run-multi Makefile rule.
14179         sim_multi_src="${sim_multi_src} micromips${name}_run.c"
14180         sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
14181         sim_multi_flags="${sim_multi_flags} -F 16,32,64"
14182         ;;
14183       *)
14184         ws=m32
14185         ;;
14186     esac
14187
14188     # Now add the list of igen-generated files to ${sim_multi_src}
14189     # and ${sim_multi_obj}.
14190     for w in ${ws}; do
14191       for base in engine icache idecode model semantics support; do
14192         sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
14193         sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
14194         sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
14195       done
14196       sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
14197     done
14198
14199     # Add an include for the engine.h file.  This file declares the
14200     # top-level foo_engine_run() function.
14201     echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
14202
14203     # Add case statements for this engine to sim_engine_run().
14204     for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
14205       echo "    case bfd_mach_${mach}:" >> multi-run.c
14206       if test ${mach} = ${sim_multi_default}; then
14207         echo "    default:" >> multi-run.c
14208         sim_seen_default=yes
14209       fi
14210     done
14211     echo "      ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
14212       >> multi-run.c
14213     echo "      break;" >> multi-run.c
14214   done
14215
14216   # Check whether we added a 'default:' label.
14217   if test ${sim_seen_default} = no; then
14218     as_fn_error $? "Error in configure.ac: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
14219   fi
14220
14221   cat << __EOF__ >> multi-run.c
14222     }
14223 }
14224
14225 int
14226 mips_mach_multi (SIM_DESC sd)
14227 {
14228   if (STATE_ARCHITECTURE (sd) == NULL)
14229     return bfd_mach_${sim_multi_default};
14230
14231   switch (STATE_ARCHITECTURE (SD)->mach)
14232     {
14233 __EOF__
14234
14235   # Add case statements for this engine to mips_mach_multi().
14236   for fc in ${sim_multi_configs}; do
14237
14238     # Split up the entry.  ${c} contains the first three elements.
14239     # Note: outer sqaure brackets are m4 quotes.
14240     c=`echo ${fc} | sed 's/:[^:]*$//'`
14241     bfdmachs=`echo ${fc} | sed 's/.*://'`
14242
14243     for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
14244       echo "    case bfd_mach_${mach}:" >> multi-run.c
14245     done
14246   done
14247
14248   cat << __EOF__ >> multi-run.c
14249       return (STATE_ARCHITECTURE (SD)->mach);
14250     default:
14251       return bfd_mach_${sim_multi_default};
14252     }
14253 }
14254 __EOF__
14255
14256   SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
14257 else
14258   # For clean-extra
14259   sim_multi_src=doesnt-exist.c
14260
14261   if test x"${sim_mach_default}" = x""; then
14262     as_fn_error $? "Error in configure.ac: \${sim_mach_default} not defined" "$LINENO" 5
14263   fi
14264   SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
14265 fi
14266 sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
14267 sim_m16_flags=" -F ${sim_m16_filter}  ${sim_m16_machine}  ${sim_igen_smp}"
14268 sim_micromips16_flags=" -F ${sim_micromips16_filter}  ${sim_micromips16_machine}  ${sim_igen_smp}"
14269 sim_micromips_flags=" -F ${sim_micromips_filter}  ${sim_micromips_machine}  ${sim_igen_smp}"
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279 #
14280 # Add simulated hardware devices
14281 #
14282 hw_enabled=no
14283 case "${target}" in
14284   mips*tx39*)
14285         hw_enabled=yes
14286         hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
14287         ;;
14288   *)
14289         ;;
14290 esac
14291
14292 if test "$hw_devices"; then
14293   hardware="$hw_devices"
14294 else
14295   hardware="cfi core pal glue"
14296 fi
14297 hardware="$hardware $hw_extra_devices"
14298
14299 sim_hw_cflags="-DWITH_HW=1"
14300 sim_hw="$hardware"
14301 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
14302
14303 # Check whether --enable-sim-hardware was given.
14304 if test "${enable_sim_hardware+set}" = set; then :
14305   enableval=$enable_sim_hardware;
14306 else
14307   enable_sim_hardware="$hw_enabled"
14308 fi
14309
14310 case ${enable_sim_hardware} in
14311   yes|no) ;;
14312   ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
14313   *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
14314   *)  hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
14315 esac
14316
14317 if test "$enable_sim_hardware" = no; then
14318   sim_hw_objs=
14319   sim_hw_cflags="-DWITH_HW=0"
14320   sim_hw=
14321 else
14322   sim_hw_cflags="-DWITH_HW=1"
14323   # remove duplicates
14324   sim_hw=""
14325   sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
14326   for i in $hardware ; do
14327     case " $sim_hw " in
14328       *" $i "*) ;;
14329       *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
14330     esac
14331   done
14332   # mingw does not support sockser
14333   case ${host} in
14334     *mingw*) ;;
14335     *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
14336        # that you instatiate.  Instead, other code will call into it directly.
14337        # At some point, we should convert it over.
14338        sim_hw_objs="$sim_hw_objs dv-sockser.o"
14339
14340 cat >>confdefs.h <<_ACEOF
14341 #define HAVE_DV_SOCKSER 1
14342 _ACEOF
14343
14344        ;;
14345   esac
14346   if test x"$silent" != x"yes"; then
14347     echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
14348   fi
14349     case " $hardware " in
14350     *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
14351 $as_echo_n "checking for log2 in -lm... " >&6; }
14352 if ${ac_cv_lib_m_log2+:} false; then :
14353   $as_echo_n "(cached) " >&6
14354 else
14355   ac_check_lib_save_LIBS=$LIBS
14356 LIBS="-lm  $LIBS"
14357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h.  */
14359
14360 /* Override any GCC internal prototype to avoid an error.
14361    Use char because int might match the return type of a GCC
14362    builtin and then its argument prototype would still apply.  */
14363 #ifdef __cplusplus
14364 extern "C"
14365 #endif
14366 char log2 ();
14367 int
14368 main ()
14369 {
14370 return log2 ();
14371   ;
14372   return 0;
14373 }
14374 _ACEOF
14375 if ac_fn_c_try_link "$LINENO"; then :
14376   ac_cv_lib_m_log2=yes
14377 else
14378   ac_cv_lib_m_log2=no
14379 fi
14380 rm -f core conftest.err conftest.$ac_objext \
14381     conftest$ac_exeext conftest.$ac_ext
14382 LIBS=$ac_check_lib_save_LIBS
14383 fi
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
14385 $as_echo "$ac_cv_lib_m_log2" >&6; }
14386 if test "x$ac_cv_lib_m_log2" = xyes; then :
14387   cat >>confdefs.h <<_ACEOF
14388 #define HAVE_LIBM 1
14389 _ACEOF
14390
14391   LIBS="-lm $LIBS"
14392
14393 fi
14394 ;;
14395   esac
14396 fi
14397
14398
14399
14400 # Choose simulator engine
14401 case "${target}" in
14402   *)    mips_igen_engine="engine.o"
14403         ;;
14404 esac
14405
14406
14407
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14409 $as_echo_n "checking for X... " >&6; }
14410
14411
14412 # Check whether --with-x was given.
14413 if test "${with_x+set}" = set; then :
14414   withval=$with_x;
14415 fi
14416
14417 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14418 if test "x$with_x" = xno; then
14419   # The user explicitly disabled X.
14420   have_x=disabled
14421 else
14422   case $x_includes,$x_libraries in #(
14423     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14424     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14425   $as_echo_n "(cached) " >&6
14426 else
14427   # One or both of the vars are not set, and there is no cached value.
14428 ac_x_includes=no ac_x_libraries=no
14429 rm -f -r conftest.dir
14430 if mkdir conftest.dir; then
14431   cd conftest.dir
14432   cat >Imakefile <<'_ACEOF'
14433 incroot:
14434         @echo incroot='${INCROOT}'
14435 usrlibdir:
14436         @echo usrlibdir='${USRLIBDIR}'
14437 libdir:
14438         @echo libdir='${LIBDIR}'
14439 _ACEOF
14440   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14441     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14442     for ac_var in incroot usrlibdir libdir; do
14443       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14444     done
14445     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14446     for ac_extension in a so sl dylib la dll; do
14447       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14448          test -f "$ac_im_libdir/libX11.$ac_extension"; then
14449         ac_im_usrlibdir=$ac_im_libdir; break
14450       fi
14451     done
14452     # Screen out bogus values from the imake configuration.  They are
14453     # bogus both because they are the default anyway, and because
14454     # using them would break gcc on systems where it needs fixed includes.
14455     case $ac_im_incroot in
14456         /usr/include) ac_x_includes= ;;
14457         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14458     esac
14459     case $ac_im_usrlibdir in
14460         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14461         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14462     esac
14463   fi
14464   cd ..
14465   rm -f -r conftest.dir
14466 fi
14467
14468 # Standard set of common directories for X headers.
14469 # Check X11 before X11Rn because it is often a symlink to the current release.
14470 ac_x_header_dirs='
14471 /usr/X11/include
14472 /usr/X11R7/include
14473 /usr/X11R6/include
14474 /usr/X11R5/include
14475 /usr/X11R4/include
14476
14477 /usr/include/X11
14478 /usr/include/X11R7
14479 /usr/include/X11R6
14480 /usr/include/X11R5
14481 /usr/include/X11R4
14482
14483 /usr/local/X11/include
14484 /usr/local/X11R7/include
14485 /usr/local/X11R6/include
14486 /usr/local/X11R5/include
14487 /usr/local/X11R4/include
14488
14489 /usr/local/include/X11
14490 /usr/local/include/X11R7
14491 /usr/local/include/X11R6
14492 /usr/local/include/X11R5
14493 /usr/local/include/X11R4
14494
14495 /usr/X386/include
14496 /usr/x386/include
14497 /usr/XFree86/include/X11
14498
14499 /usr/include
14500 /usr/local/include
14501 /usr/unsupported/include
14502 /usr/athena/include
14503 /usr/local/x11r5/include
14504 /usr/lpp/Xamples/include
14505
14506 /usr/openwin/include
14507 /usr/openwin/share/include'
14508
14509 if test "$ac_x_includes" = no; then
14510   # Guess where to find include files, by looking for Xlib.h.
14511   # First, try using that file with no special directory specified.
14512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h.  */
14514 #include <X11/Xlib.h>
14515 _ACEOF
14516 if ac_fn_c_try_cpp "$LINENO"; then :
14517   # We can compile using X headers with no special include directory.
14518 ac_x_includes=
14519 else
14520   for ac_dir in $ac_x_header_dirs; do
14521   if test -r "$ac_dir/X11/Xlib.h"; then
14522     ac_x_includes=$ac_dir
14523     break
14524   fi
14525 done
14526 fi
14527 rm -f conftest.err conftest.i conftest.$ac_ext
14528 fi # $ac_x_includes = no
14529
14530 if test "$ac_x_libraries" = no; then
14531   # Check for the libraries.
14532   # See if we find them without any special options.
14533   # Don't add to $LIBS permanently.
14534   ac_save_LIBS=$LIBS
14535   LIBS="-lX11 $LIBS"
14536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537 /* end confdefs.h.  */
14538 #include <X11/Xlib.h>
14539 int
14540 main ()
14541 {
14542 XrmInitialize ()
14543   ;
14544   return 0;
14545 }
14546 _ACEOF
14547 if ac_fn_c_try_link "$LINENO"; then :
14548   LIBS=$ac_save_LIBS
14549 # We can link X programs with no special library path.
14550 ac_x_libraries=
14551 else
14552   LIBS=$ac_save_LIBS
14553 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14554 do
14555   # Don't even attempt the hair of trying to link an X program!
14556   for ac_extension in a so sl dylib la dll; do
14557     if test -r "$ac_dir/libX11.$ac_extension"; then
14558       ac_x_libraries=$ac_dir
14559       break 2
14560     fi
14561   done
14562 done
14563 fi
14564 rm -f core conftest.err conftest.$ac_objext \
14565     conftest$ac_exeext conftest.$ac_ext
14566 fi # $ac_x_libraries = no
14567
14568 case $ac_x_includes,$ac_x_libraries in #(
14569   no,* | *,no | *\'*)
14570     # Didn't find X, or a directory has "'" in its name.
14571     ac_cv_have_x="have_x=no";; #(
14572   *)
14573     # Record where we found X for the cache.
14574     ac_cv_have_x="have_x=yes\
14575         ac_x_includes='$ac_x_includes'\
14576         ac_x_libraries='$ac_x_libraries'"
14577 esac
14578 fi
14579 ;; #(
14580     *) have_x=yes;;
14581   esac
14582   eval "$ac_cv_have_x"
14583 fi # $with_x != no
14584
14585 if test "$have_x" != yes; then
14586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14587 $as_echo "$have_x" >&6; }
14588   no_x=yes
14589 else
14590   # If each of the values was on the command line, it overrides each guess.
14591   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14592   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14593   # Update the cache value to reflect the command line values.
14594   ac_cv_have_x="have_x=yes\
14595         ac_x_includes='$x_includes'\
14596         ac_x_libraries='$x_libraries'"
14597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14598 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14599 fi
14600
14601 mips_extra_libs=""
14602
14603
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
14605 $as_echo_n "checking for fabs in -lm... " >&6; }
14606 if ${ac_cv_lib_m_fabs+:} false; then :
14607   $as_echo_n "(cached) " >&6
14608 else
14609   ac_check_lib_save_LIBS=$LIBS
14610 LIBS="-lm  $LIBS"
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h.  */
14613
14614 /* Override any GCC internal prototype to avoid an error.
14615    Use char because int might match the return type of a GCC
14616    builtin and then its argument prototype would still apply.  */
14617 #ifdef __cplusplus
14618 extern "C"
14619 #endif
14620 char fabs ();
14621 int
14622 main ()
14623 {
14624 return fabs ();
14625   ;
14626   return 0;
14627 }
14628 _ACEOF
14629 if ac_fn_c_try_link "$LINENO"; then :
14630   ac_cv_lib_m_fabs=yes
14631 else
14632   ac_cv_lib_m_fabs=no
14633 fi
14634 rm -f core conftest.err conftest.$ac_objext \
14635     conftest$ac_exeext conftest.$ac_ext
14636 LIBS=$ac_check_lib_save_LIBS
14637 fi
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
14639 $as_echo "$ac_cv_lib_m_fabs" >&6; }
14640 if test "x$ac_cv_lib_m_fabs" = xyes; then :
14641   cat >>confdefs.h <<_ACEOF
14642 #define HAVE_LIBM 1
14643 _ACEOF
14644
14645   LIBS="-lm $LIBS"
14646
14647 fi
14648
14649 for ac_func in aint anint sqrt
14650 do :
14651   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14652 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14653 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14654   cat >>confdefs.h <<_ACEOF
14655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14656 _ACEOF
14657
14658 fi
14659 done
14660
14661
14662
14663 cgen_breaks=""
14664 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
14665 cgen_breaks="break cgen_rtx_error";
14666 fi
14667
14668 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
14669
14670 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
14671
14672 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
14673
14674 ac_config_commands="$ac_config_commands Makefile"
14675
14676 ac_config_commands="$ac_config_commands stamp-h"
14677
14678 cat >confcache <<\_ACEOF
14679 # This file is a shell script that caches the results of configure
14680 # tests run on this system so they can be shared between configure
14681 # scripts and configure runs, see configure's option --config-cache.
14682 # It is not useful on other systems.  If it contains results you don't
14683 # want to keep, you may remove or edit it.
14684 #
14685 # config.status only pays attention to the cache file if you give it
14686 # the --recheck option to rerun configure.
14687 #
14688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14690 # following values.
14691
14692 _ACEOF
14693
14694 # The following way of writing the cache mishandles newlines in values,
14695 # but we know of no workaround that is simple, portable, and efficient.
14696 # So, we kill variables containing newlines.
14697 # Ultrix sh set writes to stderr and can't be redirected directly,
14698 # and sets the high bit in the cache file unless we assign to the vars.
14699 (
14700   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14701     eval ac_val=\$$ac_var
14702     case $ac_val in #(
14703     *${as_nl}*)
14704       case $ac_var in #(
14705       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14706 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14707       esac
14708       case $ac_var in #(
14709       _ | IFS | as_nl) ;; #(
14710       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14711       *) { eval $ac_var=; unset $ac_var;} ;;
14712       esac ;;
14713     esac
14714   done
14715
14716   (set) 2>&1 |
14717     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14718     *${as_nl}ac_space=\ *)
14719       # `set' does not quote correctly, so add quotes: double-quote
14720       # substitution turns \\\\ into \\, and sed turns \\ into \.
14721       sed -n \
14722         "s/'/'\\\\''/g;
14723           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14724       ;; #(
14725     *)
14726       # `set' quotes correctly as required by POSIX, so do not add quotes.
14727       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14728       ;;
14729     esac |
14730     sort
14731 ) |
14732   sed '
14733      /^ac_cv_env_/b end
14734      t clear
14735      :clear
14736      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14737      t end
14738      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14739      :end' >>confcache
14740 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14741   if test -w "$cache_file"; then
14742     if test "x$cache_file" != "x/dev/null"; then
14743       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14744 $as_echo "$as_me: updating cache $cache_file" >&6;}
14745       if test ! -f "$cache_file" || test -h "$cache_file"; then
14746         cat confcache >"$cache_file"
14747       else
14748         case $cache_file in #(
14749         */* | ?:*)
14750           mv -f confcache "$cache_file"$$ &&
14751           mv -f "$cache_file"$$ "$cache_file" ;; #(
14752         *)
14753           mv -f confcache "$cache_file" ;;
14754         esac
14755       fi
14756     fi
14757   else
14758     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14759 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14760   fi
14761 fi
14762 rm -f confcache
14763
14764 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14765 # Let make expand exec_prefix.
14766 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14767
14768 DEFS=-DHAVE_CONFIG_H
14769
14770 ac_libobjs=
14771 ac_ltlibobjs=
14772 U=
14773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14774   # 1. Remove the extension, and $U if already installed.
14775   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14776   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14777   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14778   #    will be set to the directory where LIBOBJS objects are built.
14779   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14780   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14781 done
14782 LIBOBJS=$ac_libobjs
14783
14784 LTLIBOBJS=$ac_ltlibobjs
14785
14786
14787
14788 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
14789   as_fn_error $? "conditional \"GMAKE\" was never defined.
14790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14791 fi
14792 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
14793   as_fn_error $? "conditional \"PLUGINS\" was never defined.
14794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14795 fi
14796 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14797   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14799 fi
14800
14801 : "${CONFIG_STATUS=./config.status}"
14802 ac_write_fail=0
14803 ac_clean_files_save=$ac_clean_files
14804 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14806 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14807 as_write_fail=0
14808 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14809 #! $SHELL
14810 # Generated by $as_me.
14811 # Run this file to recreate the current configuration.
14812 # Compiler output produced by configure, useful for debugging
14813 # configure, is in config.log if it exists.
14814
14815 debug=false
14816 ac_cs_recheck=false
14817 ac_cs_silent=false
14818
14819 SHELL=\${CONFIG_SHELL-$SHELL}
14820 export SHELL
14821 _ASEOF
14822 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14823 ## -------------------- ##
14824 ## M4sh Initialization. ##
14825 ## -------------------- ##
14826
14827 # Be more Bourne compatible
14828 DUALCASE=1; export DUALCASE # for MKS sh
14829 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14830   emulate sh
14831   NULLCMD=:
14832   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14833   # is contrary to our usage.  Disable this feature.
14834   alias -g '${1+"$@"}'='"$@"'
14835   setopt NO_GLOB_SUBST
14836 else
14837   case `(set -o) 2>/dev/null` in #(
14838   *posix*) :
14839     set -o posix ;; #(
14840   *) :
14841      ;;
14842 esac
14843 fi
14844
14845
14846 as_nl='
14847 '
14848 export as_nl
14849 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14850 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14851 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14852 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14853 # Prefer a ksh shell builtin over an external printf program on Solaris,
14854 # but without wasting forks for bash or zsh.
14855 if test -z "$BASH_VERSION$ZSH_VERSION" \
14856     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14857   as_echo='print -r --'
14858   as_echo_n='print -rn --'
14859 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14860   as_echo='printf %s\n'
14861   as_echo_n='printf %s'
14862 else
14863   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14864     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14865     as_echo_n='/usr/ucb/echo -n'
14866   else
14867     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14868     as_echo_n_body='eval
14869       arg=$1;
14870       case $arg in #(
14871       *"$as_nl"*)
14872         expr "X$arg" : "X\\(.*\\)$as_nl";
14873         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14874       esac;
14875       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14876     '
14877     export as_echo_n_body
14878     as_echo_n='sh -c $as_echo_n_body as_echo'
14879   fi
14880   export as_echo_body
14881   as_echo='sh -c $as_echo_body as_echo'
14882 fi
14883
14884 # The user is always right.
14885 if test "${PATH_SEPARATOR+set}" != set; then
14886   PATH_SEPARATOR=:
14887   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14888     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14889       PATH_SEPARATOR=';'
14890   }
14891 fi
14892
14893
14894 # IFS
14895 # We need space, tab and new line, in precisely that order.  Quoting is
14896 # there to prevent editors from complaining about space-tab.
14897 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14898 # splitting by setting IFS to empty value.)
14899 IFS=" ""        $as_nl"
14900
14901 # Find who we are.  Look in the path if we contain no directory separator.
14902 as_myself=
14903 case $0 in #((
14904   *[\\/]* ) as_myself=$0 ;;
14905   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14906 for as_dir in $PATH
14907 do
14908   IFS=$as_save_IFS
14909   test -z "$as_dir" && as_dir=.
14910     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14911   done
14912 IFS=$as_save_IFS
14913
14914      ;;
14915 esac
14916 # We did not find ourselves, most probably we were run as `sh COMMAND'
14917 # in which case we are not to be found in the path.
14918 if test "x$as_myself" = x; then
14919   as_myself=$0
14920 fi
14921 if test ! -f "$as_myself"; then
14922   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14923   exit 1
14924 fi
14925
14926 # Unset variables that we do not need and which cause bugs (e.g. in
14927 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14928 # suppresses any "Segmentation fault" message there.  '((' could
14929 # trigger a bug in pdksh 5.2.14.
14930 for as_var in BASH_ENV ENV MAIL MAILPATH
14931 do eval test x\${$as_var+set} = xset \
14932   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14933 done
14934 PS1='$ '
14935 PS2='> '
14936 PS4='+ '
14937
14938 # NLS nuisances.
14939 LC_ALL=C
14940 export LC_ALL
14941 LANGUAGE=C
14942 export LANGUAGE
14943
14944 # CDPATH.
14945 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14946
14947
14948 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14949 # ----------------------------------------
14950 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14951 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14952 # script with STATUS, using 1 if that was 0.
14953 as_fn_error ()
14954 {
14955   as_status=$1; test $as_status -eq 0 && as_status=1
14956   if test "$4"; then
14957     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14958     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14959   fi
14960   $as_echo "$as_me: error: $2" >&2
14961   as_fn_exit $as_status
14962 } # as_fn_error
14963
14964
14965 # as_fn_set_status STATUS
14966 # -----------------------
14967 # Set $? to STATUS, without forking.
14968 as_fn_set_status ()
14969 {
14970   return $1
14971 } # as_fn_set_status
14972
14973 # as_fn_exit STATUS
14974 # -----------------
14975 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14976 as_fn_exit ()
14977 {
14978   set +e
14979   as_fn_set_status $1
14980   exit $1
14981 } # as_fn_exit
14982
14983 # as_fn_unset VAR
14984 # ---------------
14985 # Portably unset VAR.
14986 as_fn_unset ()
14987 {
14988   { eval $1=; unset $1;}
14989 }
14990 as_unset=as_fn_unset
14991 # as_fn_append VAR VALUE
14992 # ----------------------
14993 # Append the text in VALUE to the end of the definition contained in VAR. Take
14994 # advantage of any shell optimizations that allow amortized linear growth over
14995 # repeated appends, instead of the typical quadratic growth present in naive
14996 # implementations.
14997 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14998   eval 'as_fn_append ()
14999   {
15000     eval $1+=\$2
15001   }'
15002 else
15003   as_fn_append ()
15004   {
15005     eval $1=\$$1\$2
15006   }
15007 fi # as_fn_append
15008
15009 # as_fn_arith ARG...
15010 # ------------------
15011 # Perform arithmetic evaluation on the ARGs, and store the result in the
15012 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15013 # must be portable across $(()) and expr.
15014 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15015   eval 'as_fn_arith ()
15016   {
15017     as_val=$(( $* ))
15018   }'
15019 else
15020   as_fn_arith ()
15021   {
15022     as_val=`expr "$@" || test $? -eq 1`
15023   }
15024 fi # as_fn_arith
15025
15026
15027 if expr a : '\(a\)' >/dev/null 2>&1 &&
15028    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15029   as_expr=expr
15030 else
15031   as_expr=false
15032 fi
15033
15034 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15035   as_basename=basename
15036 else
15037   as_basename=false
15038 fi
15039
15040 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15041   as_dirname=dirname
15042 else
15043   as_dirname=false
15044 fi
15045
15046 as_me=`$as_basename -- "$0" ||
15047 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15048          X"$0" : 'X\(//\)$' \| \
15049          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15050 $as_echo X/"$0" |
15051     sed '/^.*\/\([^/][^/]*\)\/*$/{
15052             s//\1/
15053             q
15054           }
15055           /^X\/\(\/\/\)$/{
15056             s//\1/
15057             q
15058           }
15059           /^X\/\(\/\).*/{
15060             s//\1/
15061             q
15062           }
15063           s/.*/./; q'`
15064
15065 # Avoid depending upon Character Ranges.
15066 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15067 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15068 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15069 as_cr_digits='0123456789'
15070 as_cr_alnum=$as_cr_Letters$as_cr_digits
15071
15072 ECHO_C= ECHO_N= ECHO_T=
15073 case `echo -n x` in #(((((
15074 -n*)
15075   case `echo 'xy\c'` in
15076   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15077   xy)  ECHO_C='\c';;
15078   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15079        ECHO_T=' ';;
15080   esac;;
15081 *)
15082   ECHO_N='-n';;
15083 esac
15084
15085 rm -f conf$$ conf$$.exe conf$$.file
15086 if test -d conf$$.dir; then
15087   rm -f conf$$.dir/conf$$.file
15088 else
15089   rm -f conf$$.dir
15090   mkdir conf$$.dir 2>/dev/null
15091 fi
15092 if (echo >conf$$.file) 2>/dev/null; then
15093   if ln -s conf$$.file conf$$ 2>/dev/null; then
15094     as_ln_s='ln -s'
15095     # ... but there are two gotchas:
15096     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15097     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15098     # In both cases, we have to default to `cp -pR'.
15099     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15100       as_ln_s='cp -pR'
15101   elif ln conf$$.file conf$$ 2>/dev/null; then
15102     as_ln_s=ln
15103   else
15104     as_ln_s='cp -pR'
15105   fi
15106 else
15107   as_ln_s='cp -pR'
15108 fi
15109 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15110 rmdir conf$$.dir 2>/dev/null
15111
15112
15113 # as_fn_mkdir_p
15114 # -------------
15115 # Create "$as_dir" as a directory, including parents if necessary.
15116 as_fn_mkdir_p ()
15117 {
15118
15119   case $as_dir in #(
15120   -*) as_dir=./$as_dir;;
15121   esac
15122   test -d "$as_dir" || eval $as_mkdir_p || {
15123     as_dirs=
15124     while :; do
15125       case $as_dir in #(
15126       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15127       *) as_qdir=$as_dir;;
15128       esac
15129       as_dirs="'$as_qdir' $as_dirs"
15130       as_dir=`$as_dirname -- "$as_dir" ||
15131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15132          X"$as_dir" : 'X\(//\)[^/]' \| \
15133          X"$as_dir" : 'X\(//\)$' \| \
15134          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15135 $as_echo X"$as_dir" |
15136     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15137             s//\1/
15138             q
15139           }
15140           /^X\(\/\/\)[^/].*/{
15141             s//\1/
15142             q
15143           }
15144           /^X\(\/\/\)$/{
15145             s//\1/
15146             q
15147           }
15148           /^X\(\/\).*/{
15149             s//\1/
15150             q
15151           }
15152           s/.*/./; q'`
15153       test -d "$as_dir" && break
15154     done
15155     test -z "$as_dirs" || eval "mkdir $as_dirs"
15156   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15157
15158
15159 } # as_fn_mkdir_p
15160 if mkdir -p . 2>/dev/null; then
15161   as_mkdir_p='mkdir -p "$as_dir"'
15162 else
15163   test -d ./-p && rmdir ./-p
15164   as_mkdir_p=false
15165 fi
15166
15167
15168 # as_fn_executable_p FILE
15169 # -----------------------
15170 # Test if FILE is an executable regular file.
15171 as_fn_executable_p ()
15172 {
15173   test -f "$1" && test -x "$1"
15174 } # as_fn_executable_p
15175 as_test_x='test -x'
15176 as_executable_p=as_fn_executable_p
15177
15178 # Sed expression to map a string onto a valid CPP name.
15179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15180
15181 # Sed expression to map a string onto a valid variable name.
15182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15183
15184
15185 exec 6>&1
15186 ## ----------------------------------- ##
15187 ## Main body of $CONFIG_STATUS script. ##
15188 ## ----------------------------------- ##
15189 _ASEOF
15190 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15191
15192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15193 # Save the log message, to keep $0 and so on meaningful, and to
15194 # report actual input values of CONFIG_FILES etc. instead of their
15195 # values after options handling.
15196 ac_log="
15197 This file was extended by $as_me, which was
15198 generated by GNU Autoconf 2.69.  Invocation command line was
15199
15200   CONFIG_FILES    = $CONFIG_FILES
15201   CONFIG_HEADERS  = $CONFIG_HEADERS
15202   CONFIG_LINKS    = $CONFIG_LINKS
15203   CONFIG_COMMANDS = $CONFIG_COMMANDS
15204   $ $0 $@
15205
15206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15207 "
15208
15209 _ACEOF
15210
15211 case $ac_config_files in *"
15212 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15213 esac
15214
15215 case $ac_config_headers in *"
15216 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15217 esac
15218
15219
15220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15221 # Files that config.status was made for.
15222 config_files="$ac_config_files"
15223 config_headers="$ac_config_headers"
15224 config_commands="$ac_config_commands"
15225
15226 _ACEOF
15227
15228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15229 ac_cs_usage="\
15230 \`$as_me' instantiates files and other configuration actions
15231 from templates according to the current configuration.  Unless the files
15232 and actions are specified as TAGs, all are instantiated by default.
15233
15234 Usage: $0 [OPTION]... [TAG]...
15235
15236   -h, --help       print this help, then exit
15237   -V, --version    print version number and configuration settings, then exit
15238       --config     print configuration, then exit
15239   -q, --quiet, --silent
15240                    do not print progress messages
15241   -d, --debug      don't remove temporary files
15242       --recheck    update $as_me by reconfiguring in the same conditions
15243       --file=FILE[:TEMPLATE]
15244                    instantiate the configuration file FILE
15245       --header=FILE[:TEMPLATE]
15246                    instantiate the configuration header FILE
15247
15248 Configuration files:
15249 $config_files
15250
15251 Configuration headers:
15252 $config_headers
15253
15254 Configuration commands:
15255 $config_commands
15256
15257 Report bugs to the package provider."
15258
15259 _ACEOF
15260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15261 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15262 ac_cs_version="\\
15263 config.status
15264 configured by $0, generated by GNU Autoconf 2.69,
15265   with options \\"\$ac_cs_config\\"
15266
15267 Copyright (C) 2012 Free Software Foundation, Inc.
15268 This config.status script is free software; the Free Software Foundation
15269 gives unlimited permission to copy, distribute and modify it."
15270
15271 ac_pwd='$ac_pwd'
15272 srcdir='$srcdir'
15273 INSTALL='$INSTALL'
15274 AWK='$AWK'
15275 test -n "\$AWK" || AWK=awk
15276 _ACEOF
15277
15278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15279 # The default lists apply if the user does not specify any file.
15280 ac_need_defaults=:
15281 while test $# != 0
15282 do
15283   case $1 in
15284   --*=?*)
15285     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15286     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15287     ac_shift=:
15288     ;;
15289   --*=)
15290     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15291     ac_optarg=
15292     ac_shift=:
15293     ;;
15294   *)
15295     ac_option=$1
15296     ac_optarg=$2
15297     ac_shift=shift
15298     ;;
15299   esac
15300
15301   case $ac_option in
15302   # Handling of the options.
15303   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15304     ac_cs_recheck=: ;;
15305   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15306     $as_echo "$ac_cs_version"; exit ;;
15307   --config | --confi | --conf | --con | --co | --c )
15308     $as_echo "$ac_cs_config"; exit ;;
15309   --debug | --debu | --deb | --de | --d | -d )
15310     debug=: ;;
15311   --file | --fil | --fi | --f )
15312     $ac_shift
15313     case $ac_optarg in
15314     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15315     '') as_fn_error $? "missing file argument" ;;
15316     esac
15317     as_fn_append CONFIG_FILES " '$ac_optarg'"
15318     ac_need_defaults=false;;
15319   --header | --heade | --head | --hea )
15320     $ac_shift
15321     case $ac_optarg in
15322     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15323     esac
15324     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15325     ac_need_defaults=false;;
15326   --he | --h)
15327     # Conflict between --help and --header
15328     as_fn_error $? "ambiguous option: \`$1'
15329 Try \`$0 --help' for more information.";;
15330   --help | --hel | -h )
15331     $as_echo "$ac_cs_usage"; exit ;;
15332   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15333   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15334     ac_cs_silent=: ;;
15335
15336   # This is an error.
15337   -*) as_fn_error $? "unrecognized option: \`$1'
15338 Try \`$0 --help' for more information." ;;
15339
15340   *) as_fn_append ac_config_targets " $1"
15341      ac_need_defaults=false ;;
15342
15343   esac
15344   shift
15345 done
15346
15347 ac_configure_extra_args=
15348
15349 if $ac_cs_silent; then
15350   exec 6>/dev/null
15351   ac_configure_extra_args="$ac_configure_extra_args --silent"
15352 fi
15353
15354 _ACEOF
15355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15356 if \$ac_cs_recheck; then
15357   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15358   shift
15359   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15360   CONFIG_SHELL='$SHELL'
15361   export CONFIG_SHELL
15362   exec "\$@"
15363 fi
15364
15365 _ACEOF
15366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15367 exec 5>>config.log
15368 {
15369   echo
15370   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15371 ## Running $as_me. ##
15372 _ASBOX
15373   $as_echo "$ac_log"
15374 } >&5
15375
15376 _ACEOF
15377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15378 #
15379 # INIT-COMMANDS
15380 #
15381 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15382
15383
15384 # The HP-UX ksh and POSIX shell print the target directory to stdout
15385 # if CDPATH is set.
15386 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15387
15388 sed_quote_subst='$sed_quote_subst'
15389 double_quote_subst='$double_quote_subst'
15390 delay_variable_subst='$delay_variable_subst'
15391 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15392 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15393 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15394 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15395 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15396 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15397 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15398 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15399 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15400 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15401 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15402 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15403 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15404 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15405 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15406 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15407 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15408 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15409 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15410 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15411 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15412 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15413 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15414 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15415 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15416 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15417 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15418 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15419 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15420 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15421 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15422 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15423 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15424 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15425 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15426 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15427 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15428 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15429 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15430 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15431 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15432 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15433 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15434 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15435 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15436 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15437 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15438 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15439 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"`'
15440 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15441 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15442 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15443 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15444 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15445 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15446 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15447 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15448 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15449 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15450 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15451 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15452 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15453 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15454 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15455 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15456 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15457 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15458 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15459 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15460 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15461 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15462 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15463 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15464 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15465 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15466 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15467 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15468 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15469 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15470 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15471 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15472 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15473 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15474 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15475 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15476 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15477 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15478 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15479 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15480 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15481 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15482 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15483 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15484 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15485 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15486 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15487 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15488 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15489 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15490 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15491 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15492 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15493 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15494 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15495 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15496 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15497 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15498 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15499 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15500 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15501 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15502 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15503 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15504 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15505 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15506 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15507 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15508 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15509 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15510 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15511
15512 LTCC='$LTCC'
15513 LTCFLAGS='$LTCFLAGS'
15514 compiler='$compiler_DEFAULT'
15515
15516 # A function that is used when there is no print builtin or printf.
15517 func_fallback_echo ()
15518 {
15519   eval 'cat <<_LTECHO_EOF
15520 \$1
15521 _LTECHO_EOF'
15522 }
15523
15524 # Quote evaled strings.
15525 for var in SHELL \
15526 ECHO \
15527 SED \
15528 GREP \
15529 EGREP \
15530 FGREP \
15531 LD \
15532 NM \
15533 LN_S \
15534 lt_SP2NL \
15535 lt_NL2SP \
15536 reload_flag \
15537 OBJDUMP \
15538 deplibs_check_method \
15539 file_magic_cmd \
15540 AR \
15541 AR_FLAGS \
15542 STRIP \
15543 RANLIB \
15544 CC \
15545 CFLAGS \
15546 compiler \
15547 lt_cv_sys_global_symbol_pipe \
15548 lt_cv_sys_global_symbol_to_cdecl \
15549 lt_cv_sys_global_symbol_to_c_name_address \
15550 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15551 lt_prog_compiler_no_builtin_flag \
15552 lt_prog_compiler_wl \
15553 lt_prog_compiler_pic \
15554 lt_prog_compiler_static \
15555 lt_cv_prog_compiler_c_o \
15556 need_locks \
15557 DSYMUTIL \
15558 NMEDIT \
15559 LIPO \
15560 OTOOL \
15561 OTOOL64 \
15562 shrext_cmds \
15563 export_dynamic_flag_spec \
15564 whole_archive_flag_spec \
15565 compiler_needs_object \
15566 with_gnu_ld \
15567 allow_undefined_flag \
15568 no_undefined_flag \
15569 hardcode_libdir_flag_spec \
15570 hardcode_libdir_flag_spec_ld \
15571 hardcode_libdir_separator \
15572 fix_srcfile_path \
15573 exclude_expsyms \
15574 include_expsyms \
15575 file_list_spec \
15576 variables_saved_for_relink \
15577 libname_spec \
15578 library_names_spec \
15579 soname_spec \
15580 install_override_mode \
15581 finish_eval \
15582 old_striplib \
15583 striplib; do
15584     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15585     *[\\\\\\\`\\"\\\$]*)
15586       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15587       ;;
15588     *)
15589       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15590       ;;
15591     esac
15592 done
15593
15594 # Double-quote double-evaled strings.
15595 for var in reload_cmds \
15596 old_postinstall_cmds \
15597 old_postuninstall_cmds \
15598 old_archive_cmds \
15599 extract_expsyms_cmds \
15600 old_archive_from_new_cmds \
15601 old_archive_from_expsyms_cmds \
15602 archive_cmds \
15603 archive_expsym_cmds \
15604 module_cmds \
15605 module_expsym_cmds \
15606 export_symbols_cmds \
15607 prelink_cmds \
15608 postinstall_cmds \
15609 postuninstall_cmds \
15610 finish_cmds \
15611 sys_lib_search_path_spec \
15612 sys_lib_dlsearch_path_spec; do
15613     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15614     *[\\\\\\\`\\"\\\$]*)
15615       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15616       ;;
15617     *)
15618       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15619       ;;
15620     esac
15621 done
15622
15623 ac_aux_dir='$ac_aux_dir'
15624 xsi_shell='$xsi_shell'
15625 lt_shell_append='$lt_shell_append'
15626
15627 # See if we are running on zsh, and set the options which allow our
15628 # commands through without removal of \ escapes INIT.
15629 if test -n "\${ZSH_VERSION+set}" ; then
15630    setopt NO_GLOB_SUBST
15631 fi
15632
15633
15634     PACKAGE='$PACKAGE'
15635     VERSION='$VERSION'
15636     TIMESTAMP='$TIMESTAMP'
15637     RM='$RM'
15638     ofile='$ofile'
15639
15640
15641
15642
15643 _ACEOF
15644
15645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15646
15647 # Handling of arguments.
15648 for ac_config_target in $ac_config_targets
15649 do
15650   case $ac_config_target in
15651     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15652     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
15653     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15654     "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
15655     "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
15656     ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
15657     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
15658     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
15659
15660   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15661   esac
15662 done
15663
15664
15665 # If the user did not use the arguments to specify the items to instantiate,
15666 # then the envvar interface is used.  Set only those that are not.
15667 # We use the long form for the default assignment because of an extremely
15668 # bizarre bug on SunOS 4.1.3.
15669 if $ac_need_defaults; then
15670   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15671   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15672   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15673 fi
15674
15675 # Have a temporary directory for convenience.  Make it in the build tree
15676 # simply because there is no reason against having it here, and in addition,
15677 # creating and moving files from /tmp can sometimes cause problems.
15678 # Hook for its removal unless debugging.
15679 # Note that there is a small window in which the directory will not be cleaned:
15680 # after its creation but before its name has been assigned to `$tmp'.
15681 $debug ||
15682 {
15683   tmp= ac_tmp=
15684   trap 'exit_status=$?
15685   : "${ac_tmp:=$tmp}"
15686   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15687 ' 0
15688   trap 'as_fn_exit 1' 1 2 13 15
15689 }
15690 # Create a (secure) tmp directory for tmp files.
15691
15692 {
15693   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15694   test -d "$tmp"
15695 }  ||
15696 {
15697   tmp=./conf$$-$RANDOM
15698   (umask 077 && mkdir "$tmp")
15699 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15700 ac_tmp=$tmp
15701
15702 # Set up the scripts for CONFIG_FILES section.
15703 # No need to generate them if there are no CONFIG_FILES.
15704 # This happens for instance with `./config.status config.h'.
15705 if test -n "$CONFIG_FILES"; then
15706
15707
15708 ac_cr=`echo X | tr X '\015'`
15709 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15710 # But we know of no other shell where ac_cr would be empty at this
15711 # point, so we can use a bashism as a fallback.
15712 if test "x$ac_cr" = x; then
15713   eval ac_cr=\$\'\\r\'
15714 fi
15715 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15716 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15717   ac_cs_awk_cr='\\r'
15718 else
15719   ac_cs_awk_cr=$ac_cr
15720 fi
15721
15722 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15723 _ACEOF
15724
15725
15726 {
15727   echo "cat >conf$$subs.awk <<_ACEOF" &&
15728   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15729   echo "_ACEOF"
15730 } >conf$$subs.sh ||
15731   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15732 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15733 ac_delim='%!_!# '
15734 for ac_last_try in false false false false false :; do
15735   . ./conf$$subs.sh ||
15736     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15737
15738   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15739   if test $ac_delim_n = $ac_delim_num; then
15740     break
15741   elif $ac_last_try; then
15742     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15743   else
15744     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15745   fi
15746 done
15747 rm -f conf$$subs.sh
15748
15749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15750 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15751 _ACEOF
15752 sed -n '
15753 h
15754 s/^/S["/; s/!.*/"]=/
15755 p
15756 g
15757 s/^[^!]*!//
15758 :repl
15759 t repl
15760 s/'"$ac_delim"'$//
15761 t delim
15762 :nl
15763 h
15764 s/\(.\{148\}\)..*/\1/
15765 t more1
15766 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15767 p
15768 n
15769 b repl
15770 :more1
15771 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15772 p
15773 g
15774 s/.\{148\}//
15775 t nl
15776 :delim
15777 h
15778 s/\(.\{148\}\)..*/\1/
15779 t more2
15780 s/["\\]/\\&/g; s/^/"/; s/$/"/
15781 p
15782 b
15783 :more2
15784 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15785 p
15786 g
15787 s/.\{148\}//
15788 t delim
15789 ' <conf$$subs.awk | sed '
15790 /^[^""]/{
15791   N
15792   s/\n//
15793 }
15794 ' >>$CONFIG_STATUS || ac_write_fail=1
15795 rm -f conf$$subs.awk
15796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15797 _ACAWK
15798 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15799   for (key in S) S_is_set[key] = 1
15800   FS = "\a"
15801
15802 }
15803 {
15804   line = $ 0
15805   nfields = split(line, field, "@")
15806   substed = 0
15807   len = length(field[1])
15808   for (i = 2; i < nfields; i++) {
15809     key = field[i]
15810     keylen = length(key)
15811     if (S_is_set[key]) {
15812       value = S[key]
15813       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15814       len += length(value) + length(field[++i])
15815       substed = 1
15816     } else
15817       len += 1 + keylen
15818   }
15819
15820   print line
15821 }
15822
15823 _ACAWK
15824 _ACEOF
15825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15826 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15827   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15828 else
15829   cat
15830 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15831   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15832 _ACEOF
15833
15834 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15835 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15836 # trailing colons and then remove the whole line if VPATH becomes empty
15837 # (actually we leave an empty line to preserve line numbers).
15838 if test "x$srcdir" = x.; then
15839   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15840 h
15841 s///
15842 s/^/:/
15843 s/[      ]*$/:/
15844 s/:\$(srcdir):/:/g
15845 s/:\${srcdir}:/:/g
15846 s/:@srcdir@:/:/g
15847 s/^:*//
15848 s/:*$//
15849 x
15850 s/\(=[   ]*\).*/\1/
15851 G
15852 s/\n//
15853 s/^[^=]*=[       ]*$//
15854 }'
15855 fi
15856
15857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15858 fi # test -n "$CONFIG_FILES"
15859
15860 # Set up the scripts for CONFIG_HEADERS section.
15861 # No need to generate them if there are no CONFIG_HEADERS.
15862 # This happens for instance with `./config.status Makefile'.
15863 if test -n "$CONFIG_HEADERS"; then
15864 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15865 BEGIN {
15866 _ACEOF
15867
15868 # Transform confdefs.h into an awk script `defines.awk', embedded as
15869 # here-document in config.status, that substitutes the proper values into
15870 # config.h.in to produce config.h.
15871
15872 # Create a delimiter string that does not exist in confdefs.h, to ease
15873 # handling of long lines.
15874 ac_delim='%!_!# '
15875 for ac_last_try in false false :; do
15876   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15877   if test -z "$ac_tt"; then
15878     break
15879   elif $ac_last_try; then
15880     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15881   else
15882     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15883   fi
15884 done
15885
15886 # For the awk script, D is an array of macro values keyed by name,
15887 # likewise P contains macro parameters if any.  Preserve backslash
15888 # newline sequences.
15889
15890 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15891 sed -n '
15892 s/.\{148\}/&'"$ac_delim"'/g
15893 t rset
15894 :rset
15895 s/^[     ]*#[    ]*define[       ][      ]*/ /
15896 t def
15897 d
15898 :def
15899 s/\\$//
15900 t bsnl
15901 s/["\\]/\\&/g
15902 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15903 D["\1"]=" \3"/p
15904 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15905 d
15906 :bsnl
15907 s/["\\]/\\&/g
15908 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15909 D["\1"]=" \3\\\\\\n"\\/p
15910 t cont
15911 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15912 t cont
15913 d
15914 :cont
15915 n
15916 s/.\{148\}/&'"$ac_delim"'/g
15917 t clear
15918 :clear
15919 s/\\$//
15920 t bsnlc
15921 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15922 d
15923 :bsnlc
15924 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15925 b cont
15926 ' <confdefs.h | sed '
15927 s/'"$ac_delim"'/"\\\
15928 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15929
15930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15931   for (key in D) D_is_set[key] = 1
15932   FS = "\a"
15933 }
15934 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15935   line = \$ 0
15936   split(line, arg, " ")
15937   if (arg[1] == "#") {
15938     defundef = arg[2]
15939     mac1 = arg[3]
15940   } else {
15941     defundef = substr(arg[1], 2)
15942     mac1 = arg[2]
15943   }
15944   split(mac1, mac2, "(") #)
15945   macro = mac2[1]
15946   prefix = substr(line, 1, index(line, defundef) - 1)
15947   if (D_is_set[macro]) {
15948     # Preserve the white space surrounding the "#".
15949     print prefix "define", macro P[macro] D[macro]
15950     next
15951   } else {
15952     # Replace #undef with comments.  This is necessary, for example,
15953     # in the case of _POSIX_SOURCE, which is predefined and required
15954     # on some systems where configure will not decide to define it.
15955     if (defundef == "undef") {
15956       print "/*", prefix defundef, macro, "*/"
15957       next
15958     }
15959   }
15960 }
15961 { print }
15962 _ACAWK
15963 _ACEOF
15964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15965   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15966 fi # test -n "$CONFIG_HEADERS"
15967
15968
15969 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15970 shift
15971 for ac_tag
15972 do
15973   case $ac_tag in
15974   :[FHLC]) ac_mode=$ac_tag; continue;;
15975   esac
15976   case $ac_mode$ac_tag in
15977   :[FHL]*:*);;
15978   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15979   :[FH]-) ac_tag=-:-;;
15980   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15981   esac
15982   ac_save_IFS=$IFS
15983   IFS=:
15984   set x $ac_tag
15985   IFS=$ac_save_IFS
15986   shift
15987   ac_file=$1
15988   shift
15989
15990   case $ac_mode in
15991   :L) ac_source=$1;;
15992   :[FH])
15993     ac_file_inputs=
15994     for ac_f
15995     do
15996       case $ac_f in
15997       -) ac_f="$ac_tmp/stdin";;
15998       *) # Look for the file first in the build tree, then in the source tree
15999          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16000          # because $ac_f cannot contain `:'.
16001          test -f "$ac_f" ||
16002            case $ac_f in
16003            [\\/$]*) false;;
16004            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16005            esac ||
16006            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16007       esac
16008       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16009       as_fn_append ac_file_inputs " '$ac_f'"
16010     done
16011
16012     # Let's still pretend it is `configure' which instantiates (i.e., don't
16013     # use $as_me), people would be surprised to read:
16014     #    /* config.h.  Generated by config.status.  */
16015     configure_input='Generated from '`
16016           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16017         `' by configure.'
16018     if test x"$ac_file" != x-; then
16019       configure_input="$ac_file.  $configure_input"
16020       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16021 $as_echo "$as_me: creating $ac_file" >&6;}
16022     fi
16023     # Neutralize special characters interpreted by sed in replacement strings.
16024     case $configure_input in #(
16025     *\&* | *\|* | *\\* )
16026        ac_sed_conf_input=`$as_echo "$configure_input" |
16027        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16028     *) ac_sed_conf_input=$configure_input;;
16029     esac
16030
16031     case $ac_tag in
16032     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16033       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16034     esac
16035     ;;
16036   esac
16037
16038   ac_dir=`$as_dirname -- "$ac_file" ||
16039 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16040          X"$ac_file" : 'X\(//\)[^/]' \| \
16041          X"$ac_file" : 'X\(//\)$' \| \
16042          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16043 $as_echo X"$ac_file" |
16044     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16045             s//\1/
16046             q
16047           }
16048           /^X\(\/\/\)[^/].*/{
16049             s//\1/
16050             q
16051           }
16052           /^X\(\/\/\)$/{
16053             s//\1/
16054             q
16055           }
16056           /^X\(\/\).*/{
16057             s//\1/
16058             q
16059           }
16060           s/.*/./; q'`
16061   as_dir="$ac_dir"; as_fn_mkdir_p
16062   ac_builddir=.
16063
16064 case "$ac_dir" in
16065 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16066 *)
16067   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16068   # A ".." for each directory in $ac_dir_suffix.
16069   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16070   case $ac_top_builddir_sub in
16071   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16072   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16073   esac ;;
16074 esac
16075 ac_abs_top_builddir=$ac_pwd
16076 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16077 # for backward compatibility:
16078 ac_top_builddir=$ac_top_build_prefix
16079
16080 case $srcdir in
16081   .)  # We are building in place.
16082     ac_srcdir=.
16083     ac_top_srcdir=$ac_top_builddir_sub
16084     ac_abs_top_srcdir=$ac_pwd ;;
16085   [\\/]* | ?:[\\/]* )  # Absolute name.
16086     ac_srcdir=$srcdir$ac_dir_suffix;
16087     ac_top_srcdir=$srcdir
16088     ac_abs_top_srcdir=$srcdir ;;
16089   *) # Relative name.
16090     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16091     ac_top_srcdir=$ac_top_build_prefix$srcdir
16092     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16093 esac
16094 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16095
16096
16097   case $ac_mode in
16098   :F)
16099   #
16100   # CONFIG_FILE
16101   #
16102
16103   case $INSTALL in
16104   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16105   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16106   esac
16107 _ACEOF
16108
16109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16110 # If the template does not know about datarootdir, expand it.
16111 # FIXME: This hack should be removed a few years after 2.60.
16112 ac_datarootdir_hack=; ac_datarootdir_seen=
16113 ac_sed_dataroot='
16114 /datarootdir/ {
16115   p
16116   q
16117 }
16118 /@datadir@/p
16119 /@docdir@/p
16120 /@infodir@/p
16121 /@localedir@/p
16122 /@mandir@/p'
16123 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16124 *datarootdir*) ac_datarootdir_seen=yes;;
16125 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16126   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16127 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16128 _ACEOF
16129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16130   ac_datarootdir_hack='
16131   s&@datadir@&$datadir&g
16132   s&@docdir@&$docdir&g
16133   s&@infodir@&$infodir&g
16134   s&@localedir@&$localedir&g
16135   s&@mandir@&$mandir&g
16136   s&\\\${datarootdir}&$datarootdir&g' ;;
16137 esac
16138 _ACEOF
16139
16140 # Neutralize VPATH when `$srcdir' = `.'.
16141 # Shell code in configure.ac might set extrasub.
16142 # FIXME: do we really want to maintain this feature?
16143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16144 ac_sed_extra="$ac_vpsub
16145 $extrasub
16146 _ACEOF
16147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16148 :t
16149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16150 s|@configure_input@|$ac_sed_conf_input|;t t
16151 s&@top_builddir@&$ac_top_builddir_sub&;t t
16152 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16153 s&@srcdir@&$ac_srcdir&;t t
16154 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16155 s&@top_srcdir@&$ac_top_srcdir&;t t
16156 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16157 s&@builddir@&$ac_builddir&;t t
16158 s&@abs_builddir@&$ac_abs_builddir&;t t
16159 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16160 s&@INSTALL@&$ac_INSTALL&;t t
16161 $ac_datarootdir_hack
16162 "
16163 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16164   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16165
16166 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16167   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16168   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16169       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16170   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16171 which seems to be undefined.  Please make sure it is defined" >&5
16172 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16173 which seems to be undefined.  Please make sure it is defined" >&2;}
16174
16175   rm -f "$ac_tmp/stdin"
16176   case $ac_file in
16177   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16178   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16179   esac \
16180   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16181  ;;
16182   :H)
16183   #
16184   # CONFIG_HEADER
16185   #
16186   if test x"$ac_file" != x-; then
16187     {
16188       $as_echo "/* $configure_input  */" \
16189       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16190     } >"$ac_tmp/config.h" \
16191       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16192     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16193       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16194 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16195     else
16196       rm -f "$ac_file"
16197       mv "$ac_tmp/config.h" "$ac_file" \
16198         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16199     fi
16200   else
16201     $as_echo "/* $configure_input  */" \
16202       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16203       || as_fn_error $? "could not create -" "$LINENO" 5
16204   fi
16205  ;;
16206
16207   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16208 $as_echo "$as_me: executing $ac_file commands" >&6;}
16209  ;;
16210   esac
16211
16212
16213   case $ac_file$ac_mode in
16214     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
16215     "libtool":C)
16216
16217     # See if we are running on zsh, and set the options which allow our
16218     # commands through without removal of \ escapes.
16219     if test -n "${ZSH_VERSION+set}" ; then
16220       setopt NO_GLOB_SUBST
16221     fi
16222
16223     cfgfile="${ofile}T"
16224     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16225     $RM "$cfgfile"
16226
16227     cat <<_LT_EOF >> "$cfgfile"
16228 #! $SHELL
16229
16230 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16231 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16233 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16234 #
16235 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16236 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16237 #   Written by Gordon Matzigkeit, 1996
16238 #
16239 #   This file is part of GNU Libtool.
16240 #
16241 # GNU Libtool is free software; you can redistribute it and/or
16242 # modify it under the terms of the GNU General Public License as
16243 # published by the Free Software Foundation; either version 2 of
16244 # the License, or (at your option) any later version.
16245 #
16246 # As a special exception to the GNU General Public License,
16247 # if you distribute this file as part of a program or library that
16248 # is built using GNU Libtool, you may include this file under the
16249 # same distribution terms that you use for the rest of that program.
16250 #
16251 # GNU Libtool is distributed in the hope that it will be useful,
16252 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16253 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16254 # GNU General Public License for more details.
16255 #
16256 # You should have received a copy of the GNU General Public License
16257 # along with GNU Libtool; see the file COPYING.  If not, a copy
16258 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16259 # obtained by writing to the Free Software Foundation, Inc.,
16260 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16261
16262
16263 # The names of the tagged configurations supported by this script.
16264 available_tags=""
16265
16266 # ### BEGIN LIBTOOL CONFIG
16267
16268 # Which release of libtool.m4 was used?
16269 macro_version=$macro_version
16270 macro_revision=$macro_revision
16271
16272 # Whether or not to build shared libraries.
16273 build_libtool_libs=$enable_shared
16274
16275 # Whether or not to build static libraries.
16276 build_old_libs=$enable_static
16277
16278 # What type of objects to build.
16279 pic_mode=$pic_mode
16280
16281 # Whether or not to optimize for fast installation.
16282 fast_install=$enable_fast_install
16283
16284 # Shell to use when invoking shell scripts.
16285 SHELL=$lt_SHELL
16286
16287 # An echo program that protects backslashes.
16288 ECHO=$lt_ECHO
16289
16290 # The host system.
16291 host_alias=$host_alias
16292 host=$host
16293 host_os=$host_os
16294
16295 # The build system.
16296 build_alias=$build_alias
16297 build=$build
16298 build_os=$build_os
16299
16300 # A sed program that does not truncate output.
16301 SED=$lt_SED
16302
16303 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16304 Xsed="\$SED -e 1s/^X//"
16305
16306 # A grep program that handles long lines.
16307 GREP=$lt_GREP
16308
16309 # An ERE matcher.
16310 EGREP=$lt_EGREP
16311
16312 # A literal string matcher.
16313 FGREP=$lt_FGREP
16314
16315 # A BSD- or MS-compatible name lister.
16316 NM=$lt_NM
16317
16318 # Whether we need soft or hard links.
16319 LN_S=$lt_LN_S
16320
16321 # What is the maximum length of a command?
16322 max_cmd_len=$max_cmd_len
16323
16324 # Object file suffix (normally "o").
16325 objext=$ac_objext
16326
16327 # Executable file suffix (normally "").
16328 exeext=$exeext
16329
16330 # whether the shell understands "unset".
16331 lt_unset=$lt_unset
16332
16333 # turn spaces into newlines.
16334 SP2NL=$lt_lt_SP2NL
16335
16336 # turn newlines into spaces.
16337 NL2SP=$lt_lt_NL2SP
16338
16339 # An object symbol dumper.
16340 OBJDUMP=$lt_OBJDUMP
16341
16342 # Method to check whether dependent libraries are shared objects.
16343 deplibs_check_method=$lt_deplibs_check_method
16344
16345 # Command to use when deplibs_check_method == "file_magic".
16346 file_magic_cmd=$lt_file_magic_cmd
16347
16348 # The archiver.
16349 AR=$lt_AR
16350 AR_FLAGS=$lt_AR_FLAGS
16351
16352 # A symbol stripping program.
16353 STRIP=$lt_STRIP
16354
16355 # Commands used to install an old-style archive.
16356 RANLIB=$lt_RANLIB
16357 old_postinstall_cmds=$lt_old_postinstall_cmds
16358 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16359
16360 # Whether to use a lock for old archive extraction.
16361 lock_old_archive_extraction=$lock_old_archive_extraction
16362
16363 # A C compiler.
16364 LTCC=$lt_CC
16365
16366 # LTCC compiler flags.
16367 LTCFLAGS=$lt_CFLAGS
16368
16369 # Take the output of nm and produce a listing of raw symbols and C names.
16370 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16371
16372 # Transform the output of nm in a proper C declaration.
16373 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16374
16375 # Transform the output of nm in a C name address pair.
16376 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16377
16378 # Transform the output of nm in a C name address pair when lib prefix is needed.
16379 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16380
16381 # The name of the directory that contains temporary libtool files.
16382 objdir=$objdir
16383
16384 # Used to examine libraries when file_magic_cmd begins with "file".
16385 MAGIC_CMD=$MAGIC_CMD
16386
16387 # Must we lock files when doing compilation?
16388 need_locks=$lt_need_locks
16389
16390 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16391 DSYMUTIL=$lt_DSYMUTIL
16392
16393 # Tool to change global to local symbols on Mac OS X.
16394 NMEDIT=$lt_NMEDIT
16395
16396 # Tool to manipulate fat objects and archives on Mac OS X.
16397 LIPO=$lt_LIPO
16398
16399 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16400 OTOOL=$lt_OTOOL
16401
16402 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16403 OTOOL64=$lt_OTOOL64
16404
16405 # Old archive suffix (normally "a").
16406 libext=$libext
16407
16408 # Shared library suffix (normally ".so").
16409 shrext_cmds=$lt_shrext_cmds
16410
16411 # The commands to extract the exported symbol list from a shared archive.
16412 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16413
16414 # Variables whose values should be saved in libtool wrapper scripts and
16415 # restored at link time.
16416 variables_saved_for_relink=$lt_variables_saved_for_relink
16417
16418 # Do we need the "lib" prefix for modules?
16419 need_lib_prefix=$need_lib_prefix
16420
16421 # Do we need a version for libraries?
16422 need_version=$need_version
16423
16424 # Library versioning type.
16425 version_type=$version_type
16426
16427 # Shared library runtime path variable.
16428 runpath_var=$runpath_var
16429
16430 # Shared library path variable.
16431 shlibpath_var=$shlibpath_var
16432
16433 # Is shlibpath searched before the hard-coded library search path?
16434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16435
16436 # Format of library name prefix.
16437 libname_spec=$lt_libname_spec
16438
16439 # List of archive names.  First name is the real one, the rest are links.
16440 # The last name is the one that the linker finds with -lNAME
16441 library_names_spec=$lt_library_names_spec
16442
16443 # The coded name of the library, if different from the real name.
16444 soname_spec=$lt_soname_spec
16445
16446 # Permission mode override for installation of shared libraries.
16447 install_override_mode=$lt_install_override_mode
16448
16449 # Command to use after installation of a shared archive.
16450 postinstall_cmds=$lt_postinstall_cmds
16451
16452 # Command to use after uninstallation of a shared archive.
16453 postuninstall_cmds=$lt_postuninstall_cmds
16454
16455 # Commands used to finish a libtool library installation in a directory.
16456 finish_cmds=$lt_finish_cmds
16457
16458 # As "finish_cmds", except a single script fragment to be evaled but
16459 # not shown.
16460 finish_eval=$lt_finish_eval
16461
16462 # Whether we should hardcode library paths into libraries.
16463 hardcode_into_libs=$hardcode_into_libs
16464
16465 # Compile-time system search path for libraries.
16466 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16467
16468 # Run-time system search path for libraries.
16469 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16470
16471 # Whether dlopen is supported.
16472 dlopen_support=$enable_dlopen
16473
16474 # Whether dlopen of programs is supported.
16475 dlopen_self=$enable_dlopen_self
16476
16477 # Whether dlopen of statically linked programs is supported.
16478 dlopen_self_static=$enable_dlopen_self_static
16479
16480 # Commands to strip libraries.
16481 old_striplib=$lt_old_striplib
16482 striplib=$lt_striplib
16483
16484
16485 # The linker used to build libraries.
16486 LD=$lt_LD
16487
16488 # How to create reloadable object files.
16489 reload_flag=$lt_reload_flag
16490 reload_cmds=$lt_reload_cmds
16491
16492 # Commands used to build an old-style archive.
16493 old_archive_cmds=$lt_old_archive_cmds
16494
16495 # A language specific compiler.
16496 CC=$lt_compiler
16497
16498 # Is the compiler the GNU compiler?
16499 with_gcc=$GCC
16500
16501 # Compiler flag to turn off builtin functions.
16502 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16503
16504 # How to pass a linker flag through the compiler.
16505 wl=$lt_lt_prog_compiler_wl
16506
16507 # Additional compiler flags for building library objects.
16508 pic_flag=$lt_lt_prog_compiler_pic
16509
16510 # Compiler flag to prevent dynamic linking.
16511 link_static_flag=$lt_lt_prog_compiler_static
16512
16513 # Does compiler simultaneously support -c and -o options?
16514 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16515
16516 # Whether or not to add -lc for building shared libraries.
16517 build_libtool_need_lc=$archive_cmds_need_lc
16518
16519 # Whether or not to disallow shared libs when runtime libs are static.
16520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16521
16522 # Compiler flag to allow reflexive dlopens.
16523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16524
16525 # Compiler flag to generate shared objects directly from archives.
16526 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16527
16528 # Whether the compiler copes with passing no objects directly.
16529 compiler_needs_object=$lt_compiler_needs_object
16530
16531 # Create an old-style archive from a shared archive.
16532 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16533
16534 # Create a temporary old-style archive to link instead of a shared archive.
16535 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16536
16537 # Commands used to build a shared archive.
16538 archive_cmds=$lt_archive_cmds
16539 archive_expsym_cmds=$lt_archive_expsym_cmds
16540
16541 # Commands used to build a loadable module if different from building
16542 # a shared archive.
16543 module_cmds=$lt_module_cmds
16544 module_expsym_cmds=$lt_module_expsym_cmds
16545
16546 # Whether we are building with GNU ld or not.
16547 with_gnu_ld=$lt_with_gnu_ld
16548
16549 # Flag that allows shared libraries with undefined symbols to be built.
16550 allow_undefined_flag=$lt_allow_undefined_flag
16551
16552 # Flag that enforces no undefined symbols.
16553 no_undefined_flag=$lt_no_undefined_flag
16554
16555 # Flag to hardcode \$libdir into a binary during linking.
16556 # This must work even if \$libdir does not exist
16557 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16558
16559 # If ld is used when linking, flag to hardcode \$libdir into a binary
16560 # during linking.  This must work even if \$libdir does not exist.
16561 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16562
16563 # Whether we need a single "-rpath" flag with a separated argument.
16564 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16565
16566 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16567 # DIR into the resulting binary.
16568 hardcode_direct=$hardcode_direct
16569
16570 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16571 # DIR into the resulting binary and the resulting library dependency is
16572 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16573 # library is relocated.
16574 hardcode_direct_absolute=$hardcode_direct_absolute
16575
16576 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16577 # into the resulting binary.
16578 hardcode_minus_L=$hardcode_minus_L
16579
16580 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16581 # into the resulting binary.
16582 hardcode_shlibpath_var=$hardcode_shlibpath_var
16583
16584 # Set to "yes" if building a shared library automatically hardcodes DIR
16585 # into the library and all subsequent libraries and executables linked
16586 # against it.
16587 hardcode_automatic=$hardcode_automatic
16588
16589 # Set to yes if linker adds runtime paths of dependent libraries
16590 # to runtime path list.
16591 inherit_rpath=$inherit_rpath
16592
16593 # Whether libtool must link a program against all its dependency libraries.
16594 link_all_deplibs=$link_all_deplibs
16595
16596 # Fix the shell variable \$srcfile for the compiler.
16597 fix_srcfile_path=$lt_fix_srcfile_path
16598
16599 # Set to "yes" if exported symbols are required.
16600 always_export_symbols=$always_export_symbols
16601
16602 # The commands to list exported symbols.
16603 export_symbols_cmds=$lt_export_symbols_cmds
16604
16605 # Symbols that should not be listed in the preloaded symbols.
16606 exclude_expsyms=$lt_exclude_expsyms
16607
16608 # Symbols that must always be exported.
16609 include_expsyms=$lt_include_expsyms
16610
16611 # Commands necessary for linking programs (against libraries) with templates.
16612 prelink_cmds=$lt_prelink_cmds
16613
16614 # Specify filename containing input files.
16615 file_list_spec=$lt_file_list_spec
16616
16617 # How to hardcode a shared library path into an executable.
16618 hardcode_action=$hardcode_action
16619
16620 # ### END LIBTOOL CONFIG
16621
16622 _LT_EOF
16623
16624   case $host_os in
16625   aix3*)
16626     cat <<\_LT_EOF >> "$cfgfile"
16627 # AIX sometimes has problems with the GCC collect2 program.  For some
16628 # reason, if we set the COLLECT_NAMES environment variable, the problems
16629 # vanish in a puff of smoke.
16630 if test "X${COLLECT_NAMES+set}" != Xset; then
16631   COLLECT_NAMES=
16632   export COLLECT_NAMES
16633 fi
16634 _LT_EOF
16635     ;;
16636   esac
16637
16638
16639 ltmain="$ac_aux_dir/ltmain.sh"
16640
16641
16642   # We use sed instead of cat because bash on DJGPP gets confused if
16643   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16644   # text mode, it properly converts lines to CR/LF.  This bash problem
16645   # is reportedly fixed, but why not run on old versions too?
16646   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16647     || (rm -f "$cfgfile"; exit 1)
16648
16649   case $xsi_shell in
16650   yes)
16651     cat << \_LT_EOF >> "$cfgfile"
16652
16653 # func_dirname file append nondir_replacement
16654 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16655 # otherwise set result to NONDIR_REPLACEMENT.
16656 func_dirname ()
16657 {
16658   case ${1} in
16659     */*) func_dirname_result="${1%/*}${2}" ;;
16660     *  ) func_dirname_result="${3}" ;;
16661   esac
16662 }
16663
16664 # func_basename file
16665 func_basename ()
16666 {
16667   func_basename_result="${1##*/}"
16668 }
16669
16670 # func_dirname_and_basename file append nondir_replacement
16671 # perform func_basename and func_dirname in a single function
16672 # call:
16673 #   dirname:  Compute the dirname of FILE.  If nonempty,
16674 #             add APPEND to the result, otherwise set result
16675 #             to NONDIR_REPLACEMENT.
16676 #             value returned in "$func_dirname_result"
16677 #   basename: Compute filename of FILE.
16678 #             value retuned in "$func_basename_result"
16679 # Implementation must be kept synchronized with func_dirname
16680 # and func_basename. For efficiency, we do not delegate to
16681 # those functions but instead duplicate the functionality here.
16682 func_dirname_and_basename ()
16683 {
16684   case ${1} in
16685     */*) func_dirname_result="${1%/*}${2}" ;;
16686     *  ) func_dirname_result="${3}" ;;
16687   esac
16688   func_basename_result="${1##*/}"
16689 }
16690
16691 # func_stripname prefix suffix name
16692 # strip PREFIX and SUFFIX off of NAME.
16693 # PREFIX and SUFFIX must not contain globbing or regex special
16694 # characters, hashes, percent signs, but SUFFIX may contain a leading
16695 # dot (in which case that matches only a dot).
16696 func_stripname ()
16697 {
16698   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16699   # positional parameters, so assign one to ordinary parameter first.
16700   func_stripname_result=${3}
16701   func_stripname_result=${func_stripname_result#"${1}"}
16702   func_stripname_result=${func_stripname_result%"${2}"}
16703 }
16704
16705 # func_opt_split
16706 func_opt_split ()
16707 {
16708   func_opt_split_opt=${1%%=*}
16709   func_opt_split_arg=${1#*=}
16710 }
16711
16712 # func_lo2o object
16713 func_lo2o ()
16714 {
16715   case ${1} in
16716     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16717     *)    func_lo2o_result=${1} ;;
16718   esac
16719 }
16720
16721 # func_xform libobj-or-source
16722 func_xform ()
16723 {
16724   func_xform_result=${1%.*}.lo
16725 }
16726
16727 # func_arith arithmetic-term...
16728 func_arith ()
16729 {
16730   func_arith_result=$(( $* ))
16731 }
16732
16733 # func_len string
16734 # STRING may not start with a hyphen.
16735 func_len ()
16736 {
16737   func_len_result=${#1}
16738 }
16739
16740 _LT_EOF
16741     ;;
16742   *) # Bourne compatible functions.
16743     cat << \_LT_EOF >> "$cfgfile"
16744
16745 # func_dirname file append nondir_replacement
16746 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16747 # otherwise set result to NONDIR_REPLACEMENT.
16748 func_dirname ()
16749 {
16750   # Extract subdirectory from the argument.
16751   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16752   if test "X$func_dirname_result" = "X${1}"; then
16753     func_dirname_result="${3}"
16754   else
16755     func_dirname_result="$func_dirname_result${2}"
16756   fi
16757 }
16758
16759 # func_basename file
16760 func_basename ()
16761 {
16762   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16763 }
16764
16765
16766 # func_stripname prefix suffix name
16767 # strip PREFIX and SUFFIX off of NAME.
16768 # PREFIX and SUFFIX must not contain globbing or regex special
16769 # characters, hashes, percent signs, but SUFFIX may contain a leading
16770 # dot (in which case that matches only a dot).
16771 # func_strip_suffix prefix name
16772 func_stripname ()
16773 {
16774   case ${2} in
16775     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16776     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16777   esac
16778 }
16779
16780 # sed scripts:
16781 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16782 my_sed_long_arg='1s/^-[^=]*=//'
16783
16784 # func_opt_split
16785 func_opt_split ()
16786 {
16787   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16788   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16789 }
16790
16791 # func_lo2o object
16792 func_lo2o ()
16793 {
16794   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16795 }
16796
16797 # func_xform libobj-or-source
16798 func_xform ()
16799 {
16800   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16801 }
16802
16803 # func_arith arithmetic-term...
16804 func_arith ()
16805 {
16806   func_arith_result=`expr "$@"`
16807 }
16808
16809 # func_len string
16810 # STRING may not start with a hyphen.
16811 func_len ()
16812 {
16813   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16814 }
16815
16816 _LT_EOF
16817 esac
16818
16819 case $lt_shell_append in
16820   yes)
16821     cat << \_LT_EOF >> "$cfgfile"
16822
16823 # func_append var value
16824 # Append VALUE to the end of shell variable VAR.
16825 func_append ()
16826 {
16827   eval "$1+=\$2"
16828 }
16829 _LT_EOF
16830     ;;
16831   *)
16832     cat << \_LT_EOF >> "$cfgfile"
16833
16834 # func_append var value
16835 # Append VALUE to the end of shell variable VAR.
16836 func_append ()
16837 {
16838   eval "$1=\$$1\$2"
16839 }
16840
16841 _LT_EOF
16842     ;;
16843   esac
16844
16845
16846   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16847     || (rm -f "$cfgfile"; exit 1)
16848
16849   mv -f "$cfgfile" "$ofile" ||
16850     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16851   chmod +x "$ofile"
16852
16853  ;;
16854     "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
16855  rm -f Makesim1.tmp Makesim2.tmp Makefile
16856  sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
16857  sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
16858  sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
16859         -e '/^## COMMON_POST_/ r Makesim2.tmp' \
16860         <Makefile.sim >Makefile
16861  rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
16862  ;;
16863     "stamp-h":C) echo > stamp-h ;;
16864
16865   esac
16866 done # for ac_tag
16867
16868
16869 as_fn_exit 0
16870 _ACEOF
16871 ac_clean_files=$ac_clean_files_save
16872
16873 test $ac_write_fail = 0 ||
16874   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16875
16876
16877 # configure is writing to config.log, and then calls config.status.
16878 # config.status does its own redirection, appending to config.log.
16879 # Unfortunately, on DOS this fails, as config.log is still kept open
16880 # by configure, so config.status won't be able to write to it; its
16881 # output is simply discarded.  So we exec the FD to /dev/null,
16882 # effectively closing config.log, so it can be properly (re)opened and
16883 # appended to by config.status.  When coming back to configure, we
16884 # need to make the FD available again.
16885 if test "$no_create" != yes; then
16886   ac_cs_success=:
16887   ac_config_status_args=
16888   test "$silent" = yes &&
16889     ac_config_status_args="$ac_config_status_args --quiet"
16890   exec 5>/dev/null
16891   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16892   exec 5>>config.log
16893   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16894   # would make configure fail if this is the last instruction.
16895   $ac_cs_success || as_fn_exit 1
16896 fi
16897 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16898   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16899 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16900 fi
16901
16902