1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sim 0.
4#
5# Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='sim'
593PACKAGE_TARNAME='sim'
594PACKAGE_VERSION='0'
595PACKAGE_STRING='sim 0'
596PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
597PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
598
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_header_list=
636ac_func_list=
637enable_option_checking=no
638ac_subst_vars='am__EXEEXT_FALSE
639am__EXEEXT_TRUE
640LTLIBOBJS
641include_makefile
642SIM_RX_CYCLE_ACCURATE_FLAGS
643SIM_RISCV_BITSIZE
644SIM_FRV_TRAPDUMP_FLAGS
645sim_float
646sim_bitsize
647SIM_INLINE
648SIM_HW_SOCKSER
649SIM_HW_CFLAGS
650SIM_ENABLE_HW_FALSE
651SIM_ENABLE_HW_TRUE
652cgen
653cgendir
654CGEN_MAINT
655ENABLE_SIM_FALSE
656ENABLE_SIM_TRUE
657SIM_ENABLE_IGEN_FALSE
658SIM_ENABLE_IGEN_TRUE
659SIM_ENABLE_ARCH_examples_FALSE
660SIM_ENABLE_ARCH_examples_TRUE
661CC_FOR_TARGET_EXAMPLE_SYNACOR
662LD_FOR_TARGET_EXAMPLE_SYNACOR
663AS_FOR_TARGET_EXAMPLE_SYNACOR
664SIM_ENABLE_ARCH_v850_FALSE
665SIM_ENABLE_ARCH_v850_TRUE
666CC_FOR_TARGET_V850
667LD_FOR_TARGET_V850
668AS_FOR_TARGET_V850
669SIM_ENABLE_ARCH_erc32_FALSE
670SIM_ENABLE_ARCH_erc32_TRUE
671CC_FOR_TARGET_ERC32
672LD_FOR_TARGET_ERC32
673AS_FOR_TARGET_ERC32
674SIM_ENABLE_ARCH_sh_FALSE
675SIM_ENABLE_ARCH_sh_TRUE
676CC_FOR_TARGET_SH
677LD_FOR_TARGET_SH
678AS_FOR_TARGET_SH
679SIM_ENABLE_ARCH_rx_FALSE
680SIM_ENABLE_ARCH_rx_TRUE
681CC_FOR_TARGET_RX
682LD_FOR_TARGET_RX
683AS_FOR_TARGET_RX
684SIM_ENABLE_ARCH_rl78_FALSE
685SIM_ENABLE_ARCH_rl78_TRUE
686CC_FOR_TARGET_RL78
687LD_FOR_TARGET_RL78
688AS_FOR_TARGET_RL78
689SIM_ENABLE_ARCH_riscv_FALSE
690SIM_ENABLE_ARCH_riscv_TRUE
691CC_FOR_TARGET_RISCV
692LD_FOR_TARGET_RISCV
693AS_FOR_TARGET_RISCV
694SIM_ENABLE_ARCH_pru_FALSE
695SIM_ENABLE_ARCH_pru_TRUE
696CC_FOR_TARGET_PRU
697LD_FOR_TARGET_PRU
698AS_FOR_TARGET_PRU
699SIM_ENABLE_ARCH_ppc_FALSE
700SIM_ENABLE_ARCH_ppc_TRUE
701CC_FOR_TARGET_PPC
702LD_FOR_TARGET_PPC
703AS_FOR_TARGET_PPC
704SIM_ENABLE_ARCH_or1k_FALSE
705SIM_ENABLE_ARCH_or1k_TRUE
706CC_FOR_TARGET_OR1K
707LD_FOR_TARGET_OR1K
708AS_FOR_TARGET_OR1K
709SIM_ENABLE_ARCH_msp430_FALSE
710SIM_ENABLE_ARCH_msp430_TRUE
711CC_FOR_TARGET_MSP430
712LD_FOR_TARGET_MSP430
713AS_FOR_TARGET_MSP430
714SIM_ENABLE_ARCH_moxie_FALSE
715SIM_ENABLE_ARCH_moxie_TRUE
716CC_FOR_TARGET_MOXIE
717LD_FOR_TARGET_MOXIE
718AS_FOR_TARGET_MOXIE
719SIM_ENABLE_ARCH_mn10300_FALSE
720SIM_ENABLE_ARCH_mn10300_TRUE
721CC_FOR_TARGET_MN10300
722LD_FOR_TARGET_MN10300
723AS_FOR_TARGET_MN10300
724SIM_ENABLE_ARCH_mips_FALSE
725SIM_ENABLE_ARCH_mips_TRUE
726CC_FOR_TARGET_MIPS
727LD_FOR_TARGET_MIPS
728AS_FOR_TARGET_MIPS
729subdirs
730SIM_ENABLE_ARCH_microblaze_FALSE
731SIM_ENABLE_ARCH_microblaze_TRUE
732CC_FOR_TARGET_MICROBLAZE
733LD_FOR_TARGET_MICROBLAZE
734AS_FOR_TARGET_MICROBLAZE
735SIM_ENABLE_ARCH_mcore_FALSE
736SIM_ENABLE_ARCH_mcore_TRUE
737CC_FOR_TARGET_MCORE
738LD_FOR_TARGET_MCORE
739AS_FOR_TARGET_MCORE
740SIM_ENABLE_ARCH_m68hc11_FALSE
741SIM_ENABLE_ARCH_m68hc11_TRUE
742CC_FOR_TARGET_M68HC11
743LD_FOR_TARGET_M68HC11
744AS_FOR_TARGET_M68HC11
745SIM_ENABLE_ARCH_m32r_FALSE
746SIM_ENABLE_ARCH_m32r_TRUE
747CC_FOR_TARGET_M32R
748LD_FOR_TARGET_M32R
749AS_FOR_TARGET_M32R
750SIM_ENABLE_ARCH_m32c_FALSE
751SIM_ENABLE_ARCH_m32c_TRUE
752CC_FOR_TARGET_M32C
753LD_FOR_TARGET_M32C
754AS_FOR_TARGET_M32C
755SIM_ENABLE_ARCH_lm32_FALSE
756SIM_ENABLE_ARCH_lm32_TRUE
757CC_FOR_TARGET_LM32
758LD_FOR_TARGET_LM32
759AS_FOR_TARGET_LM32
760SIM_ENABLE_ARCH_iq2000_FALSE
761SIM_ENABLE_ARCH_iq2000_TRUE
762CC_FOR_TARGET_IQ2000
763LD_FOR_TARGET_IQ2000
764AS_FOR_TARGET_IQ2000
765SIM_ENABLE_ARCH_h8300_FALSE
766SIM_ENABLE_ARCH_h8300_TRUE
767CC_FOR_TARGET_H8300
768LD_FOR_TARGET_H8300
769AS_FOR_TARGET_H8300
770SIM_ENABLE_ARCH_ft32_FALSE
771SIM_ENABLE_ARCH_ft32_TRUE
772CC_FOR_TARGET_FT32
773LD_FOR_TARGET_FT32
774AS_FOR_TARGET_FT32
775SIM_ENABLE_ARCH_frv_FALSE
776SIM_ENABLE_ARCH_frv_TRUE
777CC_FOR_TARGET_FRV
778LD_FOR_TARGET_FRV
779AS_FOR_TARGET_FRV
780SIM_ENABLE_ARCH_d10v_FALSE
781SIM_ENABLE_ARCH_d10v_TRUE
782CC_FOR_TARGET_D10V
783LD_FOR_TARGET_D10V
784AS_FOR_TARGET_D10V
785SIM_ENABLE_ARCH_cris_FALSE
786SIM_ENABLE_ARCH_cris_TRUE
787CC_FOR_TARGET_CRIS
788LD_FOR_TARGET_CRIS
789AS_FOR_TARGET_CRIS
790SIM_ENABLE_ARCH_cr16_FALSE
791SIM_ENABLE_ARCH_cr16_TRUE
792CC_FOR_TARGET_CR16
793LD_FOR_TARGET_CR16
794AS_FOR_TARGET_CR16
795SIM_ENABLE_ARCH_bpf_FALSE
796SIM_ENABLE_ARCH_bpf_TRUE
797CC_FOR_TARGET_BPF
798LD_FOR_TARGET_BPF
799AS_FOR_TARGET_BPF
800SIM_ENABLE_ARCH_bfin_FALSE
801SIM_ENABLE_ARCH_bfin_TRUE
802CC_FOR_TARGET_BFIN
803LD_FOR_TARGET_BFIN
804AS_FOR_TARGET_BFIN
805SIM_ENABLE_ARCH_avr_FALSE
806SIM_ENABLE_ARCH_avr_TRUE
807CC_FOR_TARGET_AVR
808LD_FOR_TARGET_AVR
809AS_FOR_TARGET_AVR
810SIM_ENABLE_ARCH_arm_FALSE
811SIM_ENABLE_ARCH_arm_TRUE
812CC_FOR_TARGET_ARM
813LD_FOR_TARGET_ARM
814AS_FOR_TARGET_ARM
815SIM_ENABLE_ARCH_aarch64_FALSE
816SIM_ENABLE_ARCH_aarch64_TRUE
817CC_FOR_TARGET_AARCH64
818LD_FOR_TARGET_AARCH64
819AS_FOR_TARGET_AARCH64
820LD_FOR_TARGET
821AS_FOR_TARGET
822CC_FOR_TARGET
823SIM_COMMON_BUILD_FALSE
824SIM_COMMON_BUILD_TRUE
825SIM_ENABLED_ARCHES
826SIM_SUBDIRS
827SIM_PRIMARY_TARGET
828AM_BACKSLASH
829AM_DEFAULT_VERBOSITY
830AM_DEFAULT_V
831AM_V
832am__fastdepCC_FALSE
833am__fastdepCC_TRUE
834CCDEPMODE
835am__nodep
836AMDEPBACKSLASH
837AMDEP_FALSE
838AMDEP_TRUE
839am__quote
840am__include
841DEPDIR
842am__untar
843am__tar
844AMTAR
845am__leading_dot
846SET_MAKE
847mkdir_p
848MKDIR_P
849INSTALL_STRIP_PROGRAM
850install_sh
851MAKEINFO
852AUTOHEADER
853AUTOMAKE
854AUTOCONF
855ACLOCAL
856VERSION
857PACKAGE
858CYGPATH_W
859am__isrc
860MAINT
861MAINTAINER_MODE_FALSE
862MAINTAINER_MODE_TRUE
863READLINE_CFLAGS
864READLINE_LIB
865TERMCAP_LIB
866SDL_LIBS
867SDL_CFLAGS
868OTOOL64
869OTOOL
870LIPO
871NMEDIT
872DSYMUTIL
873AWK
874STRIP
875OBJDUMP
876LN_S
877NM
878ac_ct_DUMPBIN
879DUMPBIN
880LD
881FGREP
882SED
883LIBTOOL
884LIBOBJS
885C_DIALECT
886PKG_CONFIG_LIBDIR
887PKG_CONFIG_PATH
888PKG_CONFIG
889RANLIB
890AR
891LDFLAGS_FOR_BUILD
892CPPFLAGS_FOR_BUILD
893CFLAGS_FOR_BUILD
894RANLIB_FOR_BUILD
895CC_FOR_BUILD
896AR_FOR_BUILD
897DTC
898INSTALL_DATA
899INSTALL_SCRIPT
900INSTALL_PROGRAM
901EGREP
902GREP
903CPP
904OBJEXT
905EXEEXT
906ac_ct_CC
907CPPFLAGS
908LDFLAGS
909CFLAGS
910CC
911target_os
912target_vendor
913target_cpu
914target
915host_os
916host_vendor
917host_cpu
918host
919build_os
920build_vendor
921build_cpu
922build
923REPORT_BUGS_TEXI
924REPORT_BUGS_TO
925PKGVERSION
926target_alias
927host_alias
928build_alias
929LIBS
930ECHO_T
931ECHO_N
932ECHO_C
933DEFS
934mandir
935localedir
936libdir
937psdir
938pdfdir
939dvidir
940htmldir
941infodir
942docdir
943oldincludedir
944includedir
945localstatedir
946sharedstatedir
947sysconfdir
948datadir
949datarootdir
950libexecdir
951sbindir
952bindir
953program_transform_name
954prefix
955exec_prefix
956PACKAGE_URL
957PACKAGE_BUGREPORT
958PACKAGE_STRING
959PACKAGE_VERSION
960PACKAGE_TARNAME
961PACKAGE_NAME
962PATH_SEPARATOR
963SHELL
964SIM_TOOLCHAIN_VARS
965WERROR_CFLAGS
966WARN_CFLAGS'
967ac_subst_files=''
968ac_user_opts='
969enable_option_checking
970with_pkgversion
971with_bugurl
972enable_shared
973enable_static
974with_pic
975enable_fast_install
976with_gnu_ld
977enable_libtool_lock
978enable_maintainer_mode
979enable_dependency_tracking
980enable_silent_rules
981enable_sim
982enable_example_sims
983enable_targets
984enable_sim_alignment
985enable_sim_assert
986enable_cgen_maint
987enable_sim_debug
988enable_sim_endian
989enable_sim_environment
990enable_sim_hardware
991enable_sim_inline
992enable_sim_profile
993enable_sim_reserved_bits
994enable_sim_scache
995enable_sim_stdio
996enable_sim_trace
997enable_werror
998enable_build_warnings
999enable_sim_build_warnings
1000enable_sim_frv_trapdump
1001enable_sim_rx_cycle_accurate
1002'
1003      ac_precious_vars='build_alias
1004host_alias
1005target_alias
1006CC
1007CFLAGS
1008LDFLAGS
1009LIBS
1010CPPFLAGS
1011CPP
1012PKG_CONFIG
1013PKG_CONFIG_PATH
1014PKG_CONFIG_LIBDIR
1015SDL_CFLAGS
1016SDL_LIBS
1017AS_FOR_TARGET_AARCH64
1018LD_FOR_TARGET_AARCH64
1019CC_FOR_TARGET_AARCH64
1020AS_FOR_TARGET_ARM
1021LD_FOR_TARGET_ARM
1022CC_FOR_TARGET_ARM
1023AS_FOR_TARGET_AVR
1024LD_FOR_TARGET_AVR
1025CC_FOR_TARGET_AVR
1026AS_FOR_TARGET_BFIN
1027LD_FOR_TARGET_BFIN
1028CC_FOR_TARGET_BFIN
1029AS_FOR_TARGET_BPF
1030LD_FOR_TARGET_BPF
1031CC_FOR_TARGET_BPF
1032AS_FOR_TARGET_CR16
1033LD_FOR_TARGET_CR16
1034CC_FOR_TARGET_CR16
1035AS_FOR_TARGET_CRIS
1036LD_FOR_TARGET_CRIS
1037CC_FOR_TARGET_CRIS
1038AS_FOR_TARGET_D10V
1039LD_FOR_TARGET_D10V
1040CC_FOR_TARGET_D10V
1041AS_FOR_TARGET_FRV
1042LD_FOR_TARGET_FRV
1043CC_FOR_TARGET_FRV
1044AS_FOR_TARGET_FT32
1045LD_FOR_TARGET_FT32
1046CC_FOR_TARGET_FT32
1047AS_FOR_TARGET_H8300
1048LD_FOR_TARGET_H8300
1049CC_FOR_TARGET_H8300
1050AS_FOR_TARGET_IQ2000
1051LD_FOR_TARGET_IQ2000
1052CC_FOR_TARGET_IQ2000
1053AS_FOR_TARGET_LM32
1054LD_FOR_TARGET_LM32
1055CC_FOR_TARGET_LM32
1056AS_FOR_TARGET_M32C
1057LD_FOR_TARGET_M32C
1058CC_FOR_TARGET_M32C
1059AS_FOR_TARGET_M32R
1060LD_FOR_TARGET_M32R
1061CC_FOR_TARGET_M32R
1062AS_FOR_TARGET_M68HC11
1063LD_FOR_TARGET_M68HC11
1064CC_FOR_TARGET_M68HC11
1065AS_FOR_TARGET_MCORE
1066LD_FOR_TARGET_MCORE
1067CC_FOR_TARGET_MCORE
1068AS_FOR_TARGET_MICROBLAZE
1069LD_FOR_TARGET_MICROBLAZE
1070CC_FOR_TARGET_MICROBLAZE
1071AS_FOR_TARGET_MIPS
1072LD_FOR_TARGET_MIPS
1073CC_FOR_TARGET_MIPS
1074AS_FOR_TARGET_MN10300
1075LD_FOR_TARGET_MN10300
1076CC_FOR_TARGET_MN10300
1077AS_FOR_TARGET_MOXIE
1078LD_FOR_TARGET_MOXIE
1079CC_FOR_TARGET_MOXIE
1080AS_FOR_TARGET_MSP430
1081LD_FOR_TARGET_MSP430
1082CC_FOR_TARGET_MSP430
1083AS_FOR_TARGET_OR1K
1084LD_FOR_TARGET_OR1K
1085CC_FOR_TARGET_OR1K
1086AS_FOR_TARGET_PPC
1087LD_FOR_TARGET_PPC
1088CC_FOR_TARGET_PPC
1089AS_FOR_TARGET_PRU
1090LD_FOR_TARGET_PRU
1091CC_FOR_TARGET_PRU
1092AS_FOR_TARGET_RISCV
1093LD_FOR_TARGET_RISCV
1094CC_FOR_TARGET_RISCV
1095AS_FOR_TARGET_RL78
1096LD_FOR_TARGET_RL78
1097CC_FOR_TARGET_RL78
1098AS_FOR_TARGET_RX
1099LD_FOR_TARGET_RX
1100CC_FOR_TARGET_RX
1101AS_FOR_TARGET_SH
1102LD_FOR_TARGET_SH
1103CC_FOR_TARGET_SH
1104AS_FOR_TARGET_ERC32
1105LD_FOR_TARGET_ERC32
1106CC_FOR_TARGET_ERC32
1107AS_FOR_TARGET_V850
1108LD_FOR_TARGET_V850
1109CC_FOR_TARGET_V850
1110AS_FOR_TARGET_EXAMPLE_SYNACOR
1111LD_FOR_TARGET_EXAMPLE_SYNACOR
1112CC_FOR_TARGET_EXAMPLE_SYNACOR'
1113ac_subdirs_all='mips
1114ppc'
1115
1116# Initialize some variables set by options.
1117ac_init_help=
1118ac_init_version=false
1119ac_unrecognized_opts=
1120ac_unrecognized_sep=
1121# The variables have the same names as the options, with
1122# dashes changed to underlines.
1123cache_file=/dev/null
1124exec_prefix=NONE
1125no_create=
1126no_recursion=
1127prefix=NONE
1128program_prefix=NONE
1129program_suffix=NONE
1130program_transform_name=s,x,x,
1131silent=
1132site=
1133srcdir=
1134verbose=
1135x_includes=NONE
1136x_libraries=NONE
1137
1138# Installation directory options.
1139# These are left unexpanded so users can "make install exec_prefix=/foo"
1140# and all the variables that are supposed to be based on exec_prefix
1141# by default will actually change.
1142# Use braces instead of parens because sh, perl, etc. also accept them.
1143# (The list follows the same order as the GNU Coding Standards.)
1144bindir='${exec_prefix}/bin'
1145sbindir='${exec_prefix}/sbin'
1146libexecdir='${exec_prefix}/libexec'
1147datarootdir='${prefix}/share'
1148datadir='${datarootdir}'
1149sysconfdir='${prefix}/etc'
1150sharedstatedir='${prefix}/com'
1151localstatedir='${prefix}/var'
1152includedir='${prefix}/include'
1153oldincludedir='/usr/include'
1154docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1155infodir='${datarootdir}/info'
1156htmldir='${docdir}'
1157dvidir='${docdir}'
1158pdfdir='${docdir}'
1159psdir='${docdir}'
1160libdir='${exec_prefix}/lib'
1161localedir='${datarootdir}/locale'
1162mandir='${datarootdir}/man'
1163
1164ac_prev=
1165ac_dashdash=
1166for ac_option
1167do
1168  # If the previous option needs an argument, assign it.
1169  if test -n "$ac_prev"; then
1170    eval $ac_prev=\$ac_option
1171    ac_prev=
1172    continue
1173  fi
1174
1175  case $ac_option in
1176  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1177  *=)   ac_optarg= ;;
1178  *)    ac_optarg=yes ;;
1179  esac
1180
1181  # Accept the important Cygnus configure options, so we can diagnose typos.
1182
1183  case $ac_dashdash$ac_option in
1184  --)
1185    ac_dashdash=yes ;;
1186
1187  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1188    ac_prev=bindir ;;
1189  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1190    bindir=$ac_optarg ;;
1191
1192  -build | --build | --buil | --bui | --bu)
1193    ac_prev=build_alias ;;
1194  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1195    build_alias=$ac_optarg ;;
1196
1197  -cache-file | --cache-file | --cache-fil | --cache-fi \
1198  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1199    ac_prev=cache_file ;;
1200  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1201  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1202    cache_file=$ac_optarg ;;
1203
1204  --config-cache | -C)
1205    cache_file=config.cache ;;
1206
1207  -datadir | --datadir | --datadi | --datad)
1208    ac_prev=datadir ;;
1209  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1210    datadir=$ac_optarg ;;
1211
1212  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1213  | --dataroo | --dataro | --datar)
1214    ac_prev=datarootdir ;;
1215  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1216  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1217    datarootdir=$ac_optarg ;;
1218
1219  -disable-* | --disable-*)
1220    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1221    # Reject names that are not valid shell variable names.
1222    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223      as_fn_error $? "invalid feature name: $ac_useropt"
1224    ac_useropt_orig=$ac_useropt
1225    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226    case $ac_user_opts in
1227      *"
1228"enable_$ac_useropt"
1229"*) ;;
1230      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1231	 ac_unrecognized_sep=', ';;
1232    esac
1233    eval enable_$ac_useropt=no ;;
1234
1235  -docdir | --docdir | --docdi | --doc | --do)
1236    ac_prev=docdir ;;
1237  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1238    docdir=$ac_optarg ;;
1239
1240  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1241    ac_prev=dvidir ;;
1242  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1243    dvidir=$ac_optarg ;;
1244
1245  -enable-* | --enable-*)
1246    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1247    # Reject names that are not valid shell variable names.
1248    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249      as_fn_error $? "invalid feature name: $ac_useropt"
1250    ac_useropt_orig=$ac_useropt
1251    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252    case $ac_user_opts in
1253      *"
1254"enable_$ac_useropt"
1255"*) ;;
1256      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1257	 ac_unrecognized_sep=', ';;
1258    esac
1259    eval enable_$ac_useropt=\$ac_optarg ;;
1260
1261  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1262  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1263  | --exec | --exe | --ex)
1264    ac_prev=exec_prefix ;;
1265  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1266  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1267  | --exec=* | --exe=* | --ex=*)
1268    exec_prefix=$ac_optarg ;;
1269
1270  -gas | --gas | --ga | --g)
1271    # Obsolete; use --with-gas.
1272    with_gas=yes ;;
1273
1274  -help | --help | --hel | --he | -h)
1275    ac_init_help=long ;;
1276  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1277    ac_init_help=recursive ;;
1278  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1279    ac_init_help=short ;;
1280
1281  -host | --host | --hos | --ho)
1282    ac_prev=host_alias ;;
1283  -host=* | --host=* | --hos=* | --ho=*)
1284    host_alias=$ac_optarg ;;
1285
1286  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1287    ac_prev=htmldir ;;
1288  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1289  | --ht=*)
1290    htmldir=$ac_optarg ;;
1291
1292  -includedir | --includedir | --includedi | --included | --include \
1293  | --includ | --inclu | --incl | --inc)
1294    ac_prev=includedir ;;
1295  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1296  | --includ=* | --inclu=* | --incl=* | --inc=*)
1297    includedir=$ac_optarg ;;
1298
1299  -infodir | --infodir | --infodi | --infod | --info | --inf)
1300    ac_prev=infodir ;;
1301  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1302    infodir=$ac_optarg ;;
1303
1304  -libdir | --libdir | --libdi | --libd)
1305    ac_prev=libdir ;;
1306  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1307    libdir=$ac_optarg ;;
1308
1309  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1310  | --libexe | --libex | --libe)
1311    ac_prev=libexecdir ;;
1312  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1313  | --libexe=* | --libex=* | --libe=*)
1314    libexecdir=$ac_optarg ;;
1315
1316  -localedir | --localedir | --localedi | --localed | --locale)
1317    ac_prev=localedir ;;
1318  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1319    localedir=$ac_optarg ;;
1320
1321  -localstatedir | --localstatedir | --localstatedi | --localstated \
1322  | --localstate | --localstat | --localsta | --localst | --locals)
1323    ac_prev=localstatedir ;;
1324  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1325  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1326    localstatedir=$ac_optarg ;;
1327
1328  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1329    ac_prev=mandir ;;
1330  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1331    mandir=$ac_optarg ;;
1332
1333  -nfp | --nfp | --nf)
1334    # Obsolete; use --without-fp.
1335    with_fp=no ;;
1336
1337  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1338  | --no-cr | --no-c | -n)
1339    no_create=yes ;;
1340
1341  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1342  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1343    no_recursion=yes ;;
1344
1345  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1346  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1347  | --oldin | --oldi | --old | --ol | --o)
1348    ac_prev=oldincludedir ;;
1349  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1350  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1351  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1352    oldincludedir=$ac_optarg ;;
1353
1354  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1355    ac_prev=prefix ;;
1356  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1357    prefix=$ac_optarg ;;
1358
1359  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1360  | --program-pre | --program-pr | --program-p)
1361    ac_prev=program_prefix ;;
1362  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1363  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1364    program_prefix=$ac_optarg ;;
1365
1366  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1367  | --program-suf | --program-su | --program-s)
1368    ac_prev=program_suffix ;;
1369  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1370  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1371    program_suffix=$ac_optarg ;;
1372
1373  -program-transform-name | --program-transform-name \
1374  | --program-transform-nam | --program-transform-na \
1375  | --program-transform-n | --program-transform- \
1376  | --program-transform | --program-transfor \
1377  | --program-transfo | --program-transf \
1378  | --program-trans | --program-tran \
1379  | --progr-tra | --program-tr | --program-t)
1380    ac_prev=program_transform_name ;;
1381  -program-transform-name=* | --program-transform-name=* \
1382  | --program-transform-nam=* | --program-transform-na=* \
1383  | --program-transform-n=* | --program-transform-=* \
1384  | --program-transform=* | --program-transfor=* \
1385  | --program-transfo=* | --program-transf=* \
1386  | --program-trans=* | --program-tran=* \
1387  | --progr-tra=* | --program-tr=* | --program-t=*)
1388    program_transform_name=$ac_optarg ;;
1389
1390  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1391    ac_prev=pdfdir ;;
1392  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1393    pdfdir=$ac_optarg ;;
1394
1395  -psdir | --psdir | --psdi | --psd | --ps)
1396    ac_prev=psdir ;;
1397  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1398    psdir=$ac_optarg ;;
1399
1400  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1401  | -silent | --silent | --silen | --sile | --sil)
1402    silent=yes ;;
1403
1404  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1405    ac_prev=sbindir ;;
1406  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1407  | --sbi=* | --sb=*)
1408    sbindir=$ac_optarg ;;
1409
1410  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1411  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1412  | --sharedst | --shareds | --shared | --share | --shar \
1413  | --sha | --sh)
1414    ac_prev=sharedstatedir ;;
1415  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1416  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1417  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1418  | --sha=* | --sh=*)
1419    sharedstatedir=$ac_optarg ;;
1420
1421  -site | --site | --sit)
1422    ac_prev=site ;;
1423  -site=* | --site=* | --sit=*)
1424    site=$ac_optarg ;;
1425
1426  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1427    ac_prev=srcdir ;;
1428  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1429    srcdir=$ac_optarg ;;
1430
1431  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1432  | --syscon | --sysco | --sysc | --sys | --sy)
1433    ac_prev=sysconfdir ;;
1434  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1435  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1436    sysconfdir=$ac_optarg ;;
1437
1438  -target | --target | --targe | --targ | --tar | --ta | --t)
1439    ac_prev=target_alias ;;
1440  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1441    target_alias=$ac_optarg ;;
1442
1443  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1444    verbose=yes ;;
1445
1446  -version | --version | --versio | --versi | --vers | -V)
1447    ac_init_version=: ;;
1448
1449  -with-* | --with-*)
1450    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1451    # Reject names that are not valid shell variable names.
1452    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1453      as_fn_error $? "invalid package name: $ac_useropt"
1454    ac_useropt_orig=$ac_useropt
1455    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1456    case $ac_user_opts in
1457      *"
1458"with_$ac_useropt"
1459"*) ;;
1460      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1461	 ac_unrecognized_sep=', ';;
1462    esac
1463    eval with_$ac_useropt=\$ac_optarg ;;
1464
1465  -without-* | --without-*)
1466    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1467    # Reject names that are not valid shell variable names.
1468    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1469      as_fn_error $? "invalid package name: $ac_useropt"
1470    ac_useropt_orig=$ac_useropt
1471    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1472    case $ac_user_opts in
1473      *"
1474"with_$ac_useropt"
1475"*) ;;
1476      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1477	 ac_unrecognized_sep=', ';;
1478    esac
1479    eval with_$ac_useropt=no ;;
1480
1481  --x)
1482    # Obsolete; use --with-x.
1483    with_x=yes ;;
1484
1485  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1486  | --x-incl | --x-inc | --x-in | --x-i)
1487    ac_prev=x_includes ;;
1488  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1489  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1490    x_includes=$ac_optarg ;;
1491
1492  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1493  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1494    ac_prev=x_libraries ;;
1495  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1496  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1497    x_libraries=$ac_optarg ;;
1498
1499  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1500Try \`$0 --help' for more information"
1501    ;;
1502
1503  *=*)
1504    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1505    # Reject names that are not valid shell variable names.
1506    case $ac_envvar in #(
1507      '' | [0-9]* | *[!_$as_cr_alnum]* )
1508      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1509    esac
1510    eval $ac_envvar=\$ac_optarg
1511    export $ac_envvar ;;
1512
1513  *)
1514    # FIXME: should be removed in autoconf 3.0.
1515    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1516    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1517      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1518    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1519    ;;
1520
1521  esac
1522done
1523
1524if test -n "$ac_prev"; then
1525  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1526  as_fn_error $? "missing argument to $ac_option"
1527fi
1528
1529if test -n "$ac_unrecognized_opts"; then
1530  case $enable_option_checking in
1531    no) ;;
1532    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1533    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1534  esac
1535fi
1536
1537# Check all directory arguments for consistency.
1538for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1539		datadir sysconfdir sharedstatedir localstatedir includedir \
1540		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1541		libdir localedir mandir
1542do
1543  eval ac_val=\$$ac_var
1544  # Remove trailing slashes.
1545  case $ac_val in
1546    */ )
1547      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1548      eval $ac_var=\$ac_val;;
1549  esac
1550  # Be sure to have absolute directory names.
1551  case $ac_val in
1552    [\\/$]* | ?:[\\/]* )  continue;;
1553    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1554  esac
1555  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1556done
1557
1558# There might be people who depend on the old broken behavior: `$host'
1559# used to hold the argument of --host etc.
1560# FIXME: To remove some day.
1561build=$build_alias
1562host=$host_alias
1563target=$target_alias
1564
1565# FIXME: To remove some day.
1566if test "x$host_alias" != x; then
1567  if test "x$build_alias" = x; then
1568    cross_compiling=maybe
1569  elif test "x$build_alias" != "x$host_alias"; then
1570    cross_compiling=yes
1571  fi
1572fi
1573
1574ac_tool_prefix=
1575test -n "$host_alias" && ac_tool_prefix=$host_alias-
1576
1577test "$silent" = yes && exec 6>/dev/null
1578
1579
1580ac_pwd=`pwd` && test -n "$ac_pwd" &&
1581ac_ls_di=`ls -di .` &&
1582ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1583  as_fn_error $? "working directory cannot be determined"
1584test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1585  as_fn_error $? "pwd does not report name of working directory"
1586
1587
1588# Find the source files, if location was not specified.
1589if test -z "$srcdir"; then
1590  ac_srcdir_defaulted=yes
1591  # Try the directory containing this script, then the parent directory.
1592  ac_confdir=`$as_dirname -- "$as_myself" ||
1593$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1594	 X"$as_myself" : 'X\(//\)[^/]' \| \
1595	 X"$as_myself" : 'X\(//\)$' \| \
1596	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1597$as_echo X"$as_myself" |
1598    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1599	    s//\1/
1600	    q
1601	  }
1602	  /^X\(\/\/\)[^/].*/{
1603	    s//\1/
1604	    q
1605	  }
1606	  /^X\(\/\/\)$/{
1607	    s//\1/
1608	    q
1609	  }
1610	  /^X\(\/\).*/{
1611	    s//\1/
1612	    q
1613	  }
1614	  s/.*/./; q'`
1615  srcdir=$ac_confdir
1616  if test ! -r "$srcdir/$ac_unique_file"; then
1617    srcdir=..
1618  fi
1619else
1620  ac_srcdir_defaulted=no
1621fi
1622if test ! -r "$srcdir/$ac_unique_file"; then
1623  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1624  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1625fi
1626ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1627ac_abs_confdir=`(
1628	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1629	pwd)`
1630# When building in place, set srcdir=.
1631if test "$ac_abs_confdir" = "$ac_pwd"; then
1632  srcdir=.
1633fi
1634# Remove unnecessary trailing slashes from srcdir.
1635# Double slashes in file names in object file debugging info
1636# mess up M-x gdb in Emacs.
1637case $srcdir in
1638*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1639esac
1640for ac_var in $ac_precious_vars; do
1641  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1642  eval ac_env_${ac_var}_value=\$${ac_var}
1643  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1644  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1645done
1646
1647#
1648# Report the --help message.
1649#
1650if test "$ac_init_help" = "long"; then
1651  # Omit some internal or obsolete options to make the list less imposing.
1652  # This message is too long to be a string in the A/UX 3.1 sh.
1653  cat <<_ACEOF
1654\`configure' configures sim 0 to adapt to many kinds of systems.
1655
1656Usage: $0 [OPTION]... [VAR=VALUE]...
1657
1658To assign environment variables (e.g., CC, CFLAGS...), specify them as
1659VAR=VALUE.  See below for descriptions of some of the useful variables.
1660
1661Defaults for the options are specified in brackets.
1662
1663Configuration:
1664  -h, --help              display this help and exit
1665      --help=short        display options specific to this package
1666      --help=recursive    display the short help of all the included packages
1667  -V, --version           display version information and exit
1668  -q, --quiet, --silent   do not print \`checking ...' messages
1669      --cache-file=FILE   cache test results in FILE [disabled]
1670  -C, --config-cache      alias for \`--cache-file=config.cache'
1671  -n, --no-create         do not create output files
1672      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1673
1674Installation directories:
1675  --prefix=PREFIX         install architecture-independent files in PREFIX
1676                          [$ac_default_prefix]
1677  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1678                          [PREFIX]
1679
1680By default, \`make install' will install all the files in
1681\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1682an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1683for instance \`--prefix=\$HOME'.
1684
1685For better control, use the options below.
1686
1687Fine tuning of the installation directories:
1688  --bindir=DIR            user executables [EPREFIX/bin]
1689  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1690  --libexecdir=DIR        program executables [EPREFIX/libexec]
1691  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1692  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1693  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1694  --libdir=DIR            object code libraries [EPREFIX/lib]
1695  --includedir=DIR        C header files [PREFIX/include]
1696  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1697  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1698  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1699  --infodir=DIR           info documentation [DATAROOTDIR/info]
1700  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1701  --mandir=DIR            man documentation [DATAROOTDIR/man]
1702  --docdir=DIR            documentation root [DATAROOTDIR/doc/sim]
1703  --htmldir=DIR           html documentation [DOCDIR]
1704  --dvidir=DIR            dvi documentation [DOCDIR]
1705  --pdfdir=DIR            pdf documentation [DOCDIR]
1706  --psdir=DIR             ps documentation [DOCDIR]
1707_ACEOF
1708
1709  cat <<\_ACEOF
1710
1711Program names:
1712  --program-prefix=PREFIX            prepend PREFIX to installed program names
1713  --program-suffix=SUFFIX            append SUFFIX to installed program names
1714  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1715
1716System types:
1717  --build=BUILD     configure for building on BUILD [guessed]
1718  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1719  --target=TARGET   configure for building compilers for TARGET [HOST]
1720_ACEOF
1721fi
1722
1723if test -n "$ac_init_help"; then
1724  case $ac_init_help in
1725     short | recursive ) echo "Configuration of sim 0:";;
1726   esac
1727  cat <<\_ACEOF
1728
1729Optional Features:
1730  --disable-option-checking  ignore unrecognized --enable/--with options
1731  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1732  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1733  --enable-shared[=PKGS]  build shared libraries [default=yes]
1734  --enable-static[=PKGS]  build static libraries [default=yes]
1735  --enable-fast-install[=PKGS]
1736                          optimize for fast installation [default=yes]
1737  --disable-libtool-lock  avoid locking (might break parallel builds)
1738  --enable-maintainer-mode
1739                          enable make rules and dependencies not useful (and
1740                          sometimes confusing) to the casual installer
1741  --enable-dependency-tracking
1742                          do not reject slow dependency extractors
1743  --disable-dependency-tracking
1744                          speeds up one-time build
1745  --enable-silent-rules   less verbose build output (undo: "make V=1")
1746  --disable-silent-rules  verbose build output (undo: "make V=0")
1747  --enable-sim            Enable the GNU simulator
1748  --enable-example-sims   enable example GNU simulators
1749  --enable-targets        alternative target configurations
1750  --enable-sim-alignment=align
1751                          Specify strict, nonstrict or forced alignment of
1752                          memory accesses
1753  --enable-sim-assert     Specify whether to perform random assertions
1754  --enable-cgen-maint=DIR build cgen generated files
1755  --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1756                          itself)
1757  --enable-sim-endian=endian
1758                          Specify target byte endian orientation
1759  --enable-sim-environment=environment
1760                          Specify mixed, user, virtual or operating
1761                          environment
1762  --enable-sim-hardware   Whether to enable hardware/device simulation
1763  --enable-sim-inline=inlines
1764                          Specify which functions should be inlined
1765  --enable-sim-profile=opts
1766                          Enable profiling flags
1767  --enable-sim-reserved-bits
1768                          Specify whether to check reserved bits in
1769                          instruction
1770  --enable-sim-scache=size
1771                          Specify simulator execution cache size
1772  --enable-sim-stdio      Specify whether to use stdio for console
1773                          input/output
1774  --enable-sim-trace=opts Enable tracing of simulated programs
1775  --enable-werror         treat compile warnings as errors
1776  --enable-build-warnings enable build-time compiler warnings if gcc is used
1777  --enable-sim-build-warnings
1778                          enable SIM specific build-time compiler warnings if
1779                          gcc is used
1780  --enable-sim-frv-trapdump
1781                          Make unknown traps dump the registers
1782  --disable-sim-rx-cycle-accurate
1783                          Disable cycle accurate simulation (faster runtime)
1784
1785Optional Packages:
1786  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1787  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1788  --with-pkgversion=PKG   Use PKG in the version string in place of "SIM"
1789  --with-bugurl=URL       Direct users to URL to report a bug
1790  --with-pic              try to use only PIC/non-PIC objects [default=use
1791                          both]
1792  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1793
1794Some influential environment variables:
1795  CC          C compiler command
1796  CFLAGS      C compiler flags
1797  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1798              nonstandard directory <lib dir>
1799  LIBS        libraries to pass to the linker, e.g. -l<library>
1800  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1801              you have headers in a nonstandard directory <include dir>
1802  CPP         C preprocessor
1803  PKG_CONFIG  path to pkg-config utility
1804  PKG_CONFIG_PATH
1805              directories to add to pkg-config's search path
1806  PKG_CONFIG_LIBDIR
1807              path overriding pkg-config's built-in search path
1808  SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
1809  SDL_LIBS    linker flags for SDL, overriding pkg-config
1810  AS_FOR_TARGET_AARCH64
1811              Assembler for aarch64 tests
1812  LD_FOR_TARGET_AARCH64
1813              Linker for aarch64 tests
1814  CC_FOR_TARGET_AARCH64
1815              C compiler for aarch64 tests
1816  AS_FOR_TARGET_ARM
1817              Assembler for arm tests
1818  LD_FOR_TARGET_ARM
1819              Linker for arm tests
1820  CC_FOR_TARGET_ARM
1821              C compiler for arm tests
1822  AS_FOR_TARGET_AVR
1823              Assembler for avr tests
1824  LD_FOR_TARGET_AVR
1825              Linker for avr tests
1826  CC_FOR_TARGET_AVR
1827              C compiler for avr tests
1828  AS_FOR_TARGET_BFIN
1829              Assembler for bfin tests
1830  LD_FOR_TARGET_BFIN
1831              Linker for bfin tests
1832  CC_FOR_TARGET_BFIN
1833              C compiler for bfin tests
1834  AS_FOR_TARGET_BPF
1835              Assembler for bpf tests
1836  LD_FOR_TARGET_BPF
1837              Linker for bpf tests
1838  CC_FOR_TARGET_BPF
1839              C compiler for bpf tests
1840  AS_FOR_TARGET_CR16
1841              Assembler for cr16 tests
1842  LD_FOR_TARGET_CR16
1843              Linker for cr16 tests
1844  CC_FOR_TARGET_CR16
1845              C compiler for cr16 tests
1846  AS_FOR_TARGET_CRIS
1847              Assembler for cris tests
1848  LD_FOR_TARGET_CRIS
1849              Linker for cris tests
1850  CC_FOR_TARGET_CRIS
1851              C compiler for cris tests
1852  AS_FOR_TARGET_D10V
1853              Assembler for d10v tests
1854  LD_FOR_TARGET_D10V
1855              Linker for d10v tests
1856  CC_FOR_TARGET_D10V
1857              C compiler for d10v tests
1858  AS_FOR_TARGET_FRV
1859              Assembler for frv tests
1860  LD_FOR_TARGET_FRV
1861              Linker for frv tests
1862  CC_FOR_TARGET_FRV
1863              C compiler for frv tests
1864  AS_FOR_TARGET_FT32
1865              Assembler for ft32 tests
1866  LD_FOR_TARGET_FT32
1867              Linker for ft32 tests
1868  CC_FOR_TARGET_FT32
1869              C compiler for ft32 tests
1870  AS_FOR_TARGET_H8300
1871              Assembler for h8300 tests
1872  LD_FOR_TARGET_H8300
1873              Linker for h8300 tests
1874  CC_FOR_TARGET_H8300
1875              C compiler for h8300 tests
1876  AS_FOR_TARGET_IQ2000
1877              Assembler for iq2000 tests
1878  LD_FOR_TARGET_IQ2000
1879              Linker for iq2000 tests
1880  CC_FOR_TARGET_IQ2000
1881              C compiler for iq2000 tests
1882  AS_FOR_TARGET_LM32
1883              Assembler for lm32 tests
1884  LD_FOR_TARGET_LM32
1885              Linker for lm32 tests
1886  CC_FOR_TARGET_LM32
1887              C compiler for lm32 tests
1888  AS_FOR_TARGET_M32C
1889              Assembler for m32c tests
1890  LD_FOR_TARGET_M32C
1891              Linker for m32c tests
1892  CC_FOR_TARGET_M32C
1893              C compiler for m32c tests
1894  AS_FOR_TARGET_M32R
1895              Assembler for m32r tests
1896  LD_FOR_TARGET_M32R
1897              Linker for m32r tests
1898  CC_FOR_TARGET_M32R
1899              C compiler for m32r tests
1900  AS_FOR_TARGET_M68HC11
1901              Assembler for m68hc11 tests
1902  LD_FOR_TARGET_M68HC11
1903              Linker for m68hc11 tests
1904  CC_FOR_TARGET_M68HC11
1905              C compiler for m68hc11 tests
1906  AS_FOR_TARGET_MCORE
1907              Assembler for mcore tests
1908  LD_FOR_TARGET_MCORE
1909              Linker for mcore tests
1910  CC_FOR_TARGET_MCORE
1911              C compiler for mcore tests
1912  AS_FOR_TARGET_MICROBLAZE
1913              Assembler for microblaze tests
1914  LD_FOR_TARGET_MICROBLAZE
1915              Linker for microblaze tests
1916  CC_FOR_TARGET_MICROBLAZE
1917              C compiler for microblaze tests
1918  AS_FOR_TARGET_MIPS
1919              Assembler for mips tests
1920  LD_FOR_TARGET_MIPS
1921              Linker for mips tests
1922  CC_FOR_TARGET_MIPS
1923              C compiler for mips tests
1924  AS_FOR_TARGET_MN10300
1925              Assembler for mn10300 tests
1926  LD_FOR_TARGET_MN10300
1927              Linker for mn10300 tests
1928  CC_FOR_TARGET_MN10300
1929              C compiler for mn10300 tests
1930  AS_FOR_TARGET_MOXIE
1931              Assembler for moxie tests
1932  LD_FOR_TARGET_MOXIE
1933              Linker for moxie tests
1934  CC_FOR_TARGET_MOXIE
1935              C compiler for moxie tests
1936  AS_FOR_TARGET_MSP430
1937              Assembler for msp430 tests
1938  LD_FOR_TARGET_MSP430
1939              Linker for msp430 tests
1940  CC_FOR_TARGET_MSP430
1941              C compiler for msp430 tests
1942  AS_FOR_TARGET_OR1K
1943              Assembler for or1k tests
1944  LD_FOR_TARGET_OR1K
1945              Linker for or1k tests
1946  CC_FOR_TARGET_OR1K
1947              C compiler for or1k tests
1948  AS_FOR_TARGET_PPC
1949              Assembler for ppc tests
1950  LD_FOR_TARGET_PPC
1951              Linker for ppc tests
1952  CC_FOR_TARGET_PPC
1953              C compiler for ppc tests
1954  AS_FOR_TARGET_PRU
1955              Assembler for pru tests
1956  LD_FOR_TARGET_PRU
1957              Linker for pru tests
1958  CC_FOR_TARGET_PRU
1959              C compiler for pru tests
1960  AS_FOR_TARGET_RISCV
1961              Assembler for riscv tests
1962  LD_FOR_TARGET_RISCV
1963              Linker for riscv tests
1964  CC_FOR_TARGET_RISCV
1965              C compiler for riscv tests
1966  AS_FOR_TARGET_RL78
1967              Assembler for rl78 tests
1968  LD_FOR_TARGET_RL78
1969              Linker for rl78 tests
1970  CC_FOR_TARGET_RL78
1971              C compiler for rl78 tests
1972  AS_FOR_TARGET_RX
1973              Assembler for rx tests
1974  LD_FOR_TARGET_RX
1975              Linker for rx tests
1976  CC_FOR_TARGET_RX
1977              C compiler for rx tests
1978  AS_FOR_TARGET_SH
1979              Assembler for sh tests
1980  LD_FOR_TARGET_SH
1981              Linker for sh tests
1982  CC_FOR_TARGET_SH
1983              C compiler for sh tests
1984  AS_FOR_TARGET_ERC32
1985              Assembler for erc32 tests
1986  LD_FOR_TARGET_ERC32
1987              Linker for erc32 tests
1988  CC_FOR_TARGET_ERC32
1989              C compiler for erc32 tests
1990  AS_FOR_TARGET_V850
1991              Assembler for v850 tests
1992  LD_FOR_TARGET_V850
1993              Linker for v850 tests
1994  CC_FOR_TARGET_V850
1995              C compiler for v850 tests
1996  AS_FOR_TARGET_EXAMPLE_SYNACOR
1997              Assembler for example-synacor tests
1998  LD_FOR_TARGET_EXAMPLE_SYNACOR
1999              Linker for example-synacor tests
2000  CC_FOR_TARGET_EXAMPLE_SYNACOR
2001              C compiler for example-synacor tests
2002
2003Use these variables to override the choices made by `configure' or to help
2004it to find libraries and programs with nonstandard names/locations.
2005
2006Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2007sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2008_ACEOF
2009ac_status=$?
2010fi
2011
2012if test "$ac_init_help" = "recursive"; then
2013  # If there are subdirs, report their specific --help.
2014  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2015    test -d "$ac_dir" ||
2016      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2017      continue
2018    ac_builddir=.
2019
2020case "$ac_dir" in
2021.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2022*)
2023  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2024  # A ".." for each directory in $ac_dir_suffix.
2025  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2026  case $ac_top_builddir_sub in
2027  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2028  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2029  esac ;;
2030esac
2031ac_abs_top_builddir=$ac_pwd
2032ac_abs_builddir=$ac_pwd$ac_dir_suffix
2033# for backward compatibility:
2034ac_top_builddir=$ac_top_build_prefix
2035
2036case $srcdir in
2037  .)  # We are building in place.
2038    ac_srcdir=.
2039    ac_top_srcdir=$ac_top_builddir_sub
2040    ac_abs_top_srcdir=$ac_pwd ;;
2041  [\\/]* | ?:[\\/]* )  # Absolute name.
2042    ac_srcdir=$srcdir$ac_dir_suffix;
2043    ac_top_srcdir=$srcdir
2044    ac_abs_top_srcdir=$srcdir ;;
2045  *) # Relative name.
2046    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2047    ac_top_srcdir=$ac_top_build_prefix$srcdir
2048    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2049esac
2050ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2051
2052    cd "$ac_dir" || { ac_status=$?; continue; }
2053    # Check for guested configure.
2054    if test -f "$ac_srcdir/configure.gnu"; then
2055      echo &&
2056      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2057    elif test -f "$ac_srcdir/configure"; then
2058      echo &&
2059      $SHELL "$ac_srcdir/configure" --help=recursive
2060    else
2061      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2062    fi || ac_status=$?
2063    cd "$ac_pwd" || { ac_status=$?; break; }
2064  done
2065fi
2066
2067test -n "$ac_init_help" && exit $ac_status
2068if $ac_init_version; then
2069  cat <<\_ACEOF
2070sim configure 0
2071generated by GNU Autoconf 2.69
2072
2073Copyright (C) 2012 Free Software Foundation, Inc.
2074This configure script is free software; the Free Software Foundation
2075gives unlimited permission to copy, distribute and modify it.
2076_ACEOF
2077  exit
2078fi
2079
2080## ------------------------ ##
2081## Autoconf initialization. ##
2082## ------------------------ ##
2083
2084# ac_fn_c_try_compile LINENO
2085# --------------------------
2086# Try to compile conftest.$ac_ext, and return whether this succeeded.
2087ac_fn_c_try_compile ()
2088{
2089  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090  rm -f conftest.$ac_objext
2091  if { { ac_try="$ac_compile"
2092case "(($ac_try" in
2093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094  *) ac_try_echo=$ac_try;;
2095esac
2096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097$as_echo "$ac_try_echo"; } >&5
2098  (eval "$ac_compile") 2>conftest.err
2099  ac_status=$?
2100  if test -s conftest.err; then
2101    grep -v '^ *+' conftest.err >conftest.er1
2102    cat conftest.er1 >&5
2103    mv -f conftest.er1 conftest.err
2104  fi
2105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106  test $ac_status = 0; } && {
2107	 test -z "$ac_c_werror_flag" ||
2108	 test ! -s conftest.err
2109       } && test -s conftest.$ac_objext; then :
2110  ac_retval=0
2111else
2112  $as_echo "$as_me: failed program was:" >&5
2113sed 's/^/| /' conftest.$ac_ext >&5
2114
2115	ac_retval=1
2116fi
2117  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118  as_fn_set_status $ac_retval
2119
2120} # ac_fn_c_try_compile
2121
2122# ac_fn_c_try_cpp LINENO
2123# ----------------------
2124# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2125ac_fn_c_try_cpp ()
2126{
2127  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128  if { { ac_try="$ac_cpp conftest.$ac_ext"
2129case "(($ac_try" in
2130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131  *) ac_try_echo=$ac_try;;
2132esac
2133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134$as_echo "$ac_try_echo"; } >&5
2135  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2136  ac_status=$?
2137  if test -s conftest.err; then
2138    grep -v '^ *+' conftest.err >conftest.er1
2139    cat conftest.er1 >&5
2140    mv -f conftest.er1 conftest.err
2141  fi
2142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2143  test $ac_status = 0; } > conftest.i && {
2144	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2145	 test ! -s conftest.err
2146       }; then :
2147  ac_retval=0
2148else
2149  $as_echo "$as_me: failed program was:" >&5
2150sed 's/^/| /' conftest.$ac_ext >&5
2151
2152    ac_retval=1
2153fi
2154  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155  as_fn_set_status $ac_retval
2156
2157} # ac_fn_c_try_cpp
2158
2159# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2160# -------------------------------------------------------
2161# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2162# the include files in INCLUDES and setting the cache variable VAR
2163# accordingly.
2164ac_fn_c_check_header_mongrel ()
2165{
2166  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167  if eval \${$3+:} false; then :
2168  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169$as_echo_n "checking for $2... " >&6; }
2170if eval \${$3+:} false; then :
2171  $as_echo_n "(cached) " >&6
2172fi
2173eval ac_res=\$$3
2174	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175$as_echo "$ac_res" >&6; }
2176else
2177  # Is the header compilable?
2178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2179$as_echo_n "checking $2 usability... " >&6; }
2180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h.  */
2182$4
2183#include <$2>
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186  ac_header_compiler=yes
2187else
2188  ac_header_compiler=no
2189fi
2190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2192$as_echo "$ac_header_compiler" >&6; }
2193
2194# Is the header present?
2195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2196$as_echo_n "checking $2 presence... " >&6; }
2197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198/* end confdefs.h.  */
2199#include <$2>
2200_ACEOF
2201if ac_fn_c_try_cpp "$LINENO"; then :
2202  ac_header_preproc=yes
2203else
2204  ac_header_preproc=no
2205fi
2206rm -f conftest.err conftest.i conftest.$ac_ext
2207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2208$as_echo "$ac_header_preproc" >&6; }
2209
2210# So?  What about this header?
2211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2212  yes:no: )
2213    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2214$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2215    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2216$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2217    ;;
2218  no:yes:* )
2219    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2220$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2221    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2222$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2223    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2224$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2225    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2226$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2227    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2228$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2229( $as_echo "## -------------------------------------------------------------------------------------- ##
2230## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
2231## -------------------------------------------------------------------------------------- ##"
2232     ) | sed "s/^/$as_me: WARNING:     /" >&2
2233    ;;
2234esac
2235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2236$as_echo_n "checking for $2... " >&6; }
2237if eval \${$3+:} false; then :
2238  $as_echo_n "(cached) " >&6
2239else
2240  eval "$3=\$ac_header_compiler"
2241fi
2242eval ac_res=\$$3
2243	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244$as_echo "$ac_res" >&6; }
2245fi
2246  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2247
2248} # ac_fn_c_check_header_mongrel
2249
2250# ac_fn_c_try_run LINENO
2251# ----------------------
2252# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2253# that executables *can* be run.
2254ac_fn_c_try_run ()
2255{
2256  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257  if { { ac_try="$ac_link"
2258case "(($ac_try" in
2259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260  *) ac_try_echo=$ac_try;;
2261esac
2262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2263$as_echo "$ac_try_echo"; } >&5
2264  (eval "$ac_link") 2>&5
2265  ac_status=$?
2266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2268  { { case "(($ac_try" in
2269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270  *) ac_try_echo=$ac_try;;
2271esac
2272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273$as_echo "$ac_try_echo"; } >&5
2274  (eval "$ac_try") 2>&5
2275  ac_status=$?
2276  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2277  test $ac_status = 0; }; }; then :
2278  ac_retval=0
2279else
2280  $as_echo "$as_me: program exited with status $ac_status" >&5
2281       $as_echo "$as_me: failed program was:" >&5
2282sed 's/^/| /' conftest.$ac_ext >&5
2283
2284       ac_retval=$ac_status
2285fi
2286  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2287  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288  as_fn_set_status $ac_retval
2289
2290} # ac_fn_c_try_run
2291
2292# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2293# -------------------------------------------------------
2294# Tests whether HEADER exists and can be compiled using the include files in
2295# INCLUDES, setting the cache variable VAR accordingly.
2296ac_fn_c_check_header_compile ()
2297{
2298  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2300$as_echo_n "checking for $2... " >&6; }
2301if eval \${$3+:} false; then :
2302  $as_echo_n "(cached) " >&6
2303else
2304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305/* end confdefs.h.  */
2306$4
2307#include <$2>
2308_ACEOF
2309if ac_fn_c_try_compile "$LINENO"; then :
2310  eval "$3=yes"
2311else
2312  eval "$3=no"
2313fi
2314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315fi
2316eval ac_res=\$$3
2317	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318$as_echo "$ac_res" >&6; }
2319  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320
2321} # ac_fn_c_check_header_compile
2322
2323# ac_fn_c_try_link LINENO
2324# -----------------------
2325# Try to link conftest.$ac_ext, and return whether this succeeded.
2326ac_fn_c_try_link ()
2327{
2328  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2329  rm -f conftest.$ac_objext conftest$ac_exeext
2330  if { { ac_try="$ac_link"
2331case "(($ac_try" in
2332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333  *) ac_try_echo=$ac_try;;
2334esac
2335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2336$as_echo "$ac_try_echo"; } >&5
2337  (eval "$ac_link") 2>conftest.err
2338  ac_status=$?
2339  if test -s conftest.err; then
2340    grep -v '^ *+' conftest.err >conftest.er1
2341    cat conftest.er1 >&5
2342    mv -f conftest.er1 conftest.err
2343  fi
2344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2345  test $ac_status = 0; } && {
2346	 test -z "$ac_c_werror_flag" ||
2347	 test ! -s conftest.err
2348       } && test -s conftest$ac_exeext && {
2349	 test "$cross_compiling" = yes ||
2350	 test -x conftest$ac_exeext
2351       }; then :
2352  ac_retval=0
2353else
2354  $as_echo "$as_me: failed program was:" >&5
2355sed 's/^/| /' conftest.$ac_ext >&5
2356
2357	ac_retval=1
2358fi
2359  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2360  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2361  # interfere with the next link command; also delete a directory that is
2362  # left behind by Apple's compiler.  We do this before executing the actions.
2363  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2364  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365  as_fn_set_status $ac_retval
2366
2367} # ac_fn_c_try_link
2368
2369# ac_fn_c_check_func LINENO FUNC VAR
2370# ----------------------------------
2371# Tests whether FUNC exists, setting the cache variable VAR accordingly
2372ac_fn_c_check_func ()
2373{
2374  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2376$as_echo_n "checking for $2... " >&6; }
2377if eval \${$3+:} false; then :
2378  $as_echo_n "(cached) " >&6
2379else
2380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381/* end confdefs.h.  */
2382/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2383   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2384#define $2 innocuous_$2
2385
2386/* System header to define __stub macros and hopefully few prototypes,
2387    which can conflict with char $2 (); below.
2388    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2389    <limits.h> exists even on freestanding compilers.  */
2390
2391#ifdef __STDC__
2392# include <limits.h>
2393#else
2394# include <assert.h>
2395#endif
2396
2397#undef $2
2398
2399/* Override any GCC internal prototype to avoid an error.
2400   Use char because int might match the return type of a GCC
2401   builtin and then its argument prototype would still apply.  */
2402#ifdef __cplusplus
2403extern "C"
2404#endif
2405char $2 ();
2406/* The GNU C library defines this for functions which it implements
2407    to always fail with ENOSYS.  Some functions are actually named
2408    something starting with __ and the normal name is an alias.  */
2409#if defined __stub_$2 || defined __stub___$2
2410choke me
2411#endif
2412
2413int
2414main ()
2415{
2416return $2 ();
2417  ;
2418  return 0;
2419}
2420_ACEOF
2421if ac_fn_c_try_link "$LINENO"; then :
2422  eval "$3=yes"
2423else
2424  eval "$3=no"
2425fi
2426rm -f core conftest.err conftest.$ac_objext \
2427    conftest$ac_exeext conftest.$ac_ext
2428fi
2429eval ac_res=\$$3
2430	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431$as_echo "$ac_res" >&6; }
2432  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2433
2434} # ac_fn_c_check_func
2435
2436# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2437# ----------------------------------------------------
2438# Tries to find if the field MEMBER exists in type AGGR, after including
2439# INCLUDES, setting cache variable VAR accordingly.
2440ac_fn_c_check_member ()
2441{
2442  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2444$as_echo_n "checking for $2.$3... " >&6; }
2445if eval \${$4+:} false; then :
2446  $as_echo_n "(cached) " >&6
2447else
2448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449/* end confdefs.h.  */
2450$5
2451int
2452main ()
2453{
2454static $2 ac_aggr;
2455if (ac_aggr.$3)
2456return 0;
2457  ;
2458  return 0;
2459}
2460_ACEOF
2461if ac_fn_c_try_compile "$LINENO"; then :
2462  eval "$4=yes"
2463else
2464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465/* end confdefs.h.  */
2466$5
2467int
2468main ()
2469{
2470static $2 ac_aggr;
2471if (sizeof ac_aggr.$3)
2472return 0;
2473  ;
2474  return 0;
2475}
2476_ACEOF
2477if ac_fn_c_try_compile "$LINENO"; then :
2478  eval "$4=yes"
2479else
2480  eval "$4=no"
2481fi
2482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2483fi
2484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485fi
2486eval ac_res=\$$4
2487	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488$as_echo "$ac_res" >&6; }
2489  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2490
2491} # ac_fn_c_check_member
2492
2493# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2494# ---------------------------------------------
2495# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2496# accordingly.
2497ac_fn_c_check_decl ()
2498{
2499  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2500  as_decl_name=`echo $2|sed 's/ *(.*//'`
2501  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2503$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2504if eval \${$3+:} false; then :
2505  $as_echo_n "(cached) " >&6
2506else
2507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508/* end confdefs.h.  */
2509$4
2510int
2511main ()
2512{
2513#ifndef $as_decl_name
2514#ifdef __cplusplus
2515  (void) $as_decl_use;
2516#else
2517  (void) $as_decl_name;
2518#endif
2519#endif
2520
2521  ;
2522  return 0;
2523}
2524_ACEOF
2525if ac_fn_c_try_compile "$LINENO"; then :
2526  eval "$3=yes"
2527else
2528  eval "$3=no"
2529fi
2530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2531fi
2532eval ac_res=\$$3
2533	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2534$as_echo "$ac_res" >&6; }
2535  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2536
2537} # ac_fn_c_check_decl
2538
2539# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2540# -------------------------------------------
2541# Tests whether TYPE exists after having included INCLUDES, setting cache
2542# variable VAR accordingly.
2543ac_fn_c_check_type ()
2544{
2545  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2547$as_echo_n "checking for $2... " >&6; }
2548if eval \${$3+:} false; then :
2549  $as_echo_n "(cached) " >&6
2550else
2551  eval "$3=no"
2552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553/* end confdefs.h.  */
2554$4
2555int
2556main ()
2557{
2558if (sizeof ($2))
2559	 return 0;
2560  ;
2561  return 0;
2562}
2563_ACEOF
2564if ac_fn_c_try_compile "$LINENO"; then :
2565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566/* end confdefs.h.  */
2567$4
2568int
2569main ()
2570{
2571if (sizeof (($2)))
2572	    return 0;
2573  ;
2574  return 0;
2575}
2576_ACEOF
2577if ac_fn_c_try_compile "$LINENO"; then :
2578
2579else
2580  eval "$3=yes"
2581fi
2582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583fi
2584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585fi
2586eval ac_res=\$$3
2587	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2588$as_echo "$ac_res" >&6; }
2589  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2590
2591} # ac_fn_c_check_type
2592cat >config.log <<_ACEOF
2593This file contains any messages produced by compilers while
2594running configure, to aid debugging if configure makes a mistake.
2595
2596It was created by sim $as_me 0, which was
2597generated by GNU Autoconf 2.69.  Invocation command line was
2598
2599  $ $0 $@
2600
2601_ACEOF
2602exec 5>>config.log
2603{
2604cat <<_ASUNAME
2605## --------- ##
2606## Platform. ##
2607## --------- ##
2608
2609hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2610uname -m = `(uname -m) 2>/dev/null || echo unknown`
2611uname -r = `(uname -r) 2>/dev/null || echo unknown`
2612uname -s = `(uname -s) 2>/dev/null || echo unknown`
2613uname -v = `(uname -v) 2>/dev/null || echo unknown`
2614
2615/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2616/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2617
2618/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2619/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2620/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2621/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2622/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2623/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2624/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2625
2626_ASUNAME
2627
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631  IFS=$as_save_IFS
2632  test -z "$as_dir" && as_dir=.
2633    $as_echo "PATH: $as_dir"
2634  done
2635IFS=$as_save_IFS
2636
2637} >&5
2638
2639cat >&5 <<_ACEOF
2640
2641
2642## ----------- ##
2643## Core tests. ##
2644## ----------- ##
2645
2646_ACEOF
2647
2648
2649# Keep a trace of the command line.
2650# Strip out --no-create and --no-recursion so they do not pile up.
2651# Strip out --silent because we don't want to record it for future runs.
2652# Also quote any args containing shell meta-characters.
2653# Make two passes to allow for proper duplicate-argument suppression.
2654ac_configure_args=
2655ac_configure_args0=
2656ac_configure_args1=
2657ac_must_keep_next=false
2658for ac_pass in 1 2
2659do
2660  for ac_arg
2661  do
2662    case $ac_arg in
2663    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2664    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2665    | -silent | --silent | --silen | --sile | --sil)
2666      continue ;;
2667    *\'*)
2668      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2669    esac
2670    case $ac_pass in
2671    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2672    2)
2673      as_fn_append ac_configure_args1 " '$ac_arg'"
2674      if test $ac_must_keep_next = true; then
2675	ac_must_keep_next=false # Got value, back to normal.
2676      else
2677	case $ac_arg in
2678	  *=* | --config-cache | -C | -disable-* | --disable-* \
2679	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2680	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2681	  | -with-* | --with-* | -without-* | --without-* | --x)
2682	    case "$ac_configure_args0 " in
2683	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2684	    esac
2685	    ;;
2686	  -* ) ac_must_keep_next=true ;;
2687	esac
2688      fi
2689      as_fn_append ac_configure_args " '$ac_arg'"
2690      ;;
2691    esac
2692  done
2693done
2694{ ac_configure_args0=; unset ac_configure_args0;}
2695{ ac_configure_args1=; unset ac_configure_args1;}
2696
2697# When interrupted or exit'd, cleanup temporary files, and complete
2698# config.log.  We remove comments because anyway the quotes in there
2699# would cause problems or look ugly.
2700# WARNING: Use '\'' to represent an apostrophe within the trap.
2701# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2702trap 'exit_status=$?
2703  # Save into config.log some information that might help in debugging.
2704  {
2705    echo
2706
2707    $as_echo "## ---------------- ##
2708## Cache variables. ##
2709## ---------------- ##"
2710    echo
2711    # The following way of writing the cache mishandles newlines in values,
2712(
2713  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2714    eval ac_val=\$$ac_var
2715    case $ac_val in #(
2716    *${as_nl}*)
2717      case $ac_var in #(
2718      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2719$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2720      esac
2721      case $ac_var in #(
2722      _ | IFS | as_nl) ;; #(
2723      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2724      *) { eval $ac_var=; unset $ac_var;} ;;
2725      esac ;;
2726    esac
2727  done
2728  (set) 2>&1 |
2729    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2730    *${as_nl}ac_space=\ *)
2731      sed -n \
2732	"s/'\''/'\''\\\\'\'''\''/g;
2733	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2734      ;; #(
2735    *)
2736      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2737      ;;
2738    esac |
2739    sort
2740)
2741    echo
2742
2743    $as_echo "## ----------------- ##
2744## Output variables. ##
2745## ----------------- ##"
2746    echo
2747    for ac_var in $ac_subst_vars
2748    do
2749      eval ac_val=\$$ac_var
2750      case $ac_val in
2751      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2752      esac
2753      $as_echo "$ac_var='\''$ac_val'\''"
2754    done | sort
2755    echo
2756
2757    if test -n "$ac_subst_files"; then
2758      $as_echo "## ------------------- ##
2759## File substitutions. ##
2760## ------------------- ##"
2761      echo
2762      for ac_var in $ac_subst_files
2763      do
2764	eval ac_val=\$$ac_var
2765	case $ac_val in
2766	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2767	esac
2768	$as_echo "$ac_var='\''$ac_val'\''"
2769      done | sort
2770      echo
2771    fi
2772
2773    if test -s confdefs.h; then
2774      $as_echo "## ----------- ##
2775## confdefs.h. ##
2776## ----------- ##"
2777      echo
2778      cat confdefs.h
2779      echo
2780    fi
2781    test "$ac_signal" != 0 &&
2782      $as_echo "$as_me: caught signal $ac_signal"
2783    $as_echo "$as_me: exit $exit_status"
2784  } >&5
2785  rm -f core *.core core.conftest.* &&
2786    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2787    exit $exit_status
2788' 0
2789for ac_signal in 1 2 13 15; do
2790  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2791done
2792ac_signal=0
2793
2794# confdefs.h avoids OS command line length limits that DEFS can exceed.
2795rm -f -r conftest* confdefs.h
2796
2797$as_echo "/* confdefs.h */" > confdefs.h
2798
2799# Predefined preprocessor variables.
2800
2801cat >>confdefs.h <<_ACEOF
2802#define PACKAGE_NAME "$PACKAGE_NAME"
2803_ACEOF
2804
2805cat >>confdefs.h <<_ACEOF
2806#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2807_ACEOF
2808
2809cat >>confdefs.h <<_ACEOF
2810#define PACKAGE_VERSION "$PACKAGE_VERSION"
2811_ACEOF
2812
2813cat >>confdefs.h <<_ACEOF
2814#define PACKAGE_STRING "$PACKAGE_STRING"
2815_ACEOF
2816
2817cat >>confdefs.h <<_ACEOF
2818#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2819_ACEOF
2820
2821cat >>confdefs.h <<_ACEOF
2822#define PACKAGE_URL "$PACKAGE_URL"
2823_ACEOF
2824
2825
2826# Let the site file select an alternate cache file if it wants to.
2827# Prefer an explicitly selected file to automatically selected ones.
2828ac_site_file1=NONE
2829ac_site_file2=NONE
2830if test -n "$CONFIG_SITE"; then
2831  # We do not want a PATH search for config.site.
2832  case $CONFIG_SITE in #((
2833    -*)  ac_site_file1=./$CONFIG_SITE;;
2834    */*) ac_site_file1=$CONFIG_SITE;;
2835    *)   ac_site_file1=./$CONFIG_SITE;;
2836  esac
2837elif test "x$prefix" != xNONE; then
2838  ac_site_file1=$prefix/share/config.site
2839  ac_site_file2=$prefix/etc/config.site
2840else
2841  ac_site_file1=$ac_default_prefix/share/config.site
2842  ac_site_file2=$ac_default_prefix/etc/config.site
2843fi
2844for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2845do
2846  test "x$ac_site_file" = xNONE && continue
2847  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2848    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2849$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2850    sed 's/^/| /' "$ac_site_file" >&5
2851    . "$ac_site_file" \
2852      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2854as_fn_error $? "failed to load site script $ac_site_file
2855See \`config.log' for more details" "$LINENO" 5; }
2856  fi
2857done
2858
2859if test -r "$cache_file"; then
2860  # Some versions of bash will fail to source /dev/null (special files
2861  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2862  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2863    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2864$as_echo "$as_me: loading cache $cache_file" >&6;}
2865    case $cache_file in
2866      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2867      *)                      . "./$cache_file";;
2868    esac
2869  fi
2870else
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2872$as_echo "$as_me: creating cache $cache_file" >&6;}
2873  >$cache_file
2874fi
2875
2876as_fn_append ac_header_list " dlfcn.h"
2877as_fn_append ac_header_list " fcntl.h"
2878as_fn_append ac_header_list " fpu_control.h"
2879as_fn_append ac_header_list " termios.h"
2880as_fn_append ac_header_list " unistd.h"
2881as_fn_append ac_header_list " utime.h"
2882as_fn_append ac_header_list " linux/if_tun.h"
2883as_fn_append ac_header_list " linux/mii.h"
2884as_fn_append ac_header_list " linux/types.h"
2885as_fn_append ac_header_list " net/if.h"
2886as_fn_append ac_header_list " netinet/in.h"
2887as_fn_append ac_header_list " netinet/tcp.h"
2888as_fn_append ac_header_list " sys/ioctl.h"
2889as_fn_append ac_header_list " sys/mman.h"
2890as_fn_append ac_header_list " sys/mount.h"
2891as_fn_append ac_header_list " sys/param.h"
2892as_fn_append ac_header_list " sys/resource.h"
2893as_fn_append ac_header_list " sys/socket.h"
2894as_fn_append ac_header_list " sys/stat.h"
2895as_fn_append ac_header_list " sys/statfs.h"
2896as_fn_append ac_header_list " sys/termio.h"
2897as_fn_append ac_header_list " sys/termios.h"
2898as_fn_append ac_header_list " sys/types.h"
2899as_fn_append ac_header_list " sys/vfs.h"
2900as_fn_append ac_func_list " __setfpucw"
2901as_fn_append ac_func_list " access"
2902as_fn_append ac_func_list " aint"
2903as_fn_append ac_func_list " anint"
2904as_fn_append ac_func_list " cfgetispeed"
2905as_fn_append ac_func_list " cfgetospeed"
2906as_fn_append ac_func_list " cfsetispeed"
2907as_fn_append ac_func_list " cfsetospeed"
2908as_fn_append ac_func_list " chdir"
2909as_fn_append ac_func_list " chmod"
2910as_fn_append ac_func_list " dup"
2911as_fn_append ac_func_list " dup2"
2912as_fn_append ac_func_list " execv"
2913as_fn_append ac_func_list " execve"
2914as_fn_append ac_func_list " fcntl"
2915as_fn_append ac_func_list " fork"
2916as_fn_append ac_func_list " fstat"
2917as_fn_append ac_func_list " fstatfs"
2918as_fn_append ac_func_list " ftruncate"
2919as_fn_append ac_func_list " getdirentries"
2920as_fn_append ac_func_list " getegid"
2921as_fn_append ac_func_list " geteuid"
2922as_fn_append ac_func_list " getgid"
2923as_fn_append ac_func_list " getpid"
2924as_fn_append ac_func_list " getppid"
2925as_fn_append ac_func_list " getrusage"
2926as_fn_append ac_func_list " gettimeofday"
2927as_fn_append ac_func_list " getuid"
2928as_fn_append ac_func_list " ioctl"
2929as_fn_append ac_func_list " kill"
2930as_fn_append ac_func_list " link"
2931as_fn_append ac_func_list " lseek"
2932as_fn_append ac_func_list " lstat"
2933as_fn_append ac_func_list " mkdir"
2934as_fn_append ac_func_list " mmap"
2935as_fn_append ac_func_list " munmap"
2936as_fn_append ac_func_list " pipe"
2937as_fn_append ac_func_list " posix_fallocate"
2938as_fn_append ac_func_list " pread"
2939as_fn_append ac_func_list " rmdir"
2940as_fn_append ac_func_list " setregid"
2941as_fn_append ac_func_list " setreuid"
2942as_fn_append ac_func_list " setgid"
2943as_fn_append ac_func_list " setuid"
2944as_fn_append ac_func_list " sigaction"
2945as_fn_append ac_func_list " sigprocmask"
2946as_fn_append ac_func_list " sqrt"
2947as_fn_append ac_func_list " stat"
2948as_fn_append ac_func_list " strsignal"
2949as_fn_append ac_func_list " symlink"
2950as_fn_append ac_func_list " tcdrain"
2951as_fn_append ac_func_list " tcflow"
2952as_fn_append ac_func_list " tcflush"
2953as_fn_append ac_func_list " tcgetattr"
2954as_fn_append ac_func_list " tcgetpgrp"
2955as_fn_append ac_func_list " tcsendbreak"
2956as_fn_append ac_func_list " tcsetattr"
2957as_fn_append ac_func_list " tcsetpgrp"
2958as_fn_append ac_func_list " time"
2959as_fn_append ac_func_list " truncate"
2960as_fn_append ac_func_list " umask"
2961as_fn_append ac_func_list " unlink"
2962as_fn_append ac_func_list " utime"
2963# Check that the precious variables saved in the cache have kept the same
2964# value.
2965ac_cache_corrupted=false
2966for ac_var in $ac_precious_vars; do
2967  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2968  eval ac_new_set=\$ac_env_${ac_var}_set
2969  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2970  eval ac_new_val=\$ac_env_${ac_var}_value
2971  case $ac_old_set,$ac_new_set in
2972    set,)
2973      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2974$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2975      ac_cache_corrupted=: ;;
2976    ,set)
2977      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2978$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2979      ac_cache_corrupted=: ;;
2980    ,);;
2981    *)
2982      if test "x$ac_old_val" != "x$ac_new_val"; then
2983	# differences in whitespace do not lead to failure.
2984	ac_old_val_w=`echo x $ac_old_val`
2985	ac_new_val_w=`echo x $ac_new_val`
2986	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2987	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2988$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2989	  ac_cache_corrupted=:
2990	else
2991	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2992$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2993	  eval $ac_var=\$ac_old_val
2994	fi
2995	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2996$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2997	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2998$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2999      fi;;
3000  esac
3001  # Pass precious variables to config.status.
3002  if test "$ac_new_set" = set; then
3003    case $ac_new_val in
3004    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3005    *) ac_arg=$ac_var=$ac_new_val ;;
3006    esac
3007    case " $ac_configure_args " in
3008      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3009      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3010    esac
3011  fi
3012done
3013if $ac_cache_corrupted; then
3014  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3017$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3018  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3019fi
3020## -------------------- ##
3021## Main body of script. ##
3022## -------------------- ##
3023
3024ac_ext=c
3025ac_cpp='$CPP $CPPFLAGS'
3026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029
3030
3031
3032
3033
3034
3035
3036
3037# Check whether --with-pkgversion was given.
3038if test "${with_pkgversion+set}" = set; then :
3039  withval=$with_pkgversion; case "$withval" in
3040      yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
3041      no)  PKGVERSION= ;;
3042      *)   PKGVERSION="($withval) " ;;
3043     esac
3044else
3045  PKGVERSION="(SIM) "
3046
3047fi
3048
3049
3050
3051
3052cat >>confdefs.h <<_ACEOF
3053#define PKGVERSION "$PKGVERSION"
3054_ACEOF
3055
3056
3057
3058# Check whether --with-bugurl was given.
3059if test "${with_bugurl+set}" = set; then :
3060  withval=$with_bugurl; case "$withval" in
3061      yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
3062      no)  BUGURL=
3063	   ;;
3064      *)   BUGURL="$withval"
3065	   ;;
3066     esac
3067else
3068  BUGURL="$PACKAGE_BUGREPORT"
3069
3070fi
3071
3072  case ${BUGURL} in
3073  "")
3074    REPORT_BUGS_TO=
3075    REPORT_BUGS_TEXI=
3076    ;;
3077  *)
3078    REPORT_BUGS_TO="<$BUGURL>"
3079    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3080    ;;
3081  esac;
3082
3083
3084
3085
3086cat >>confdefs.h <<_ACEOF
3087#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3088_ACEOF
3089
3090
3091ac_config_headers="$ac_config_headers config.h"
3092
3093
3094ac_aux_dir=
3095for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3096  if test -f "$ac_dir/install-sh"; then
3097    ac_aux_dir=$ac_dir
3098    ac_install_sh="$ac_aux_dir/install-sh -c"
3099    break
3100  elif test -f "$ac_dir/install.sh"; then
3101    ac_aux_dir=$ac_dir
3102    ac_install_sh="$ac_aux_dir/install.sh -c"
3103    break
3104  elif test -f "$ac_dir/shtool"; then
3105    ac_aux_dir=$ac_dir
3106    ac_install_sh="$ac_aux_dir/shtool install -c"
3107    break
3108  fi
3109done
3110if test -z "$ac_aux_dir"; then
3111  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3112fi
3113
3114# These three variables are undocumented and unsupported,
3115# and are intended to be withdrawn in a future Autoconf release.
3116# They can cause serious problems if a builder's source tree is in a directory
3117# whose full name contains unusual characters.
3118ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3119ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3120ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3121
3122
3123# Make sure we can run config.sub.
3124$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3125  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3126
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3128$as_echo_n "checking build system type... " >&6; }
3129if ${ac_cv_build+:} false; then :
3130  $as_echo_n "(cached) " >&6
3131else
3132  ac_build_alias=$build_alias
3133test "x$ac_build_alias" = x &&
3134  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3135test "x$ac_build_alias" = x &&
3136  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3137ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3138  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3139
3140fi
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3142$as_echo "$ac_cv_build" >&6; }
3143case $ac_cv_build in
3144*-*-*) ;;
3145*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3146esac
3147build=$ac_cv_build
3148ac_save_IFS=$IFS; IFS='-'
3149set x $ac_cv_build
3150shift
3151build_cpu=$1
3152build_vendor=$2
3153shift; shift
3154# Remember, the first character of IFS is used to create $*,
3155# except with old shells:
3156build_os=$*
3157IFS=$ac_save_IFS
3158case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3159
3160
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3162$as_echo_n "checking host system type... " >&6; }
3163if ${ac_cv_host+:} false; then :
3164  $as_echo_n "(cached) " >&6
3165else
3166  if test "x$host_alias" = x; then
3167  ac_cv_host=$ac_cv_build
3168else
3169  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3170    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3171fi
3172
3173fi
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3175$as_echo "$ac_cv_host" >&6; }
3176case $ac_cv_host in
3177*-*-*) ;;
3178*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3179esac
3180host=$ac_cv_host
3181ac_save_IFS=$IFS; IFS='-'
3182set x $ac_cv_host
3183shift
3184host_cpu=$1
3185host_vendor=$2
3186shift; shift
3187# Remember, the first character of IFS is used to create $*,
3188# except with old shells:
3189host_os=$*
3190IFS=$ac_save_IFS
3191case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3192
3193
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3195$as_echo_n "checking target system type... " >&6; }
3196if ${ac_cv_target+:} false; then :
3197  $as_echo_n "(cached) " >&6
3198else
3199  if test "x$target_alias" = x; then
3200  ac_cv_target=$ac_cv_host
3201else
3202  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3203    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3204fi
3205
3206fi
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3208$as_echo "$ac_cv_target" >&6; }
3209case $ac_cv_target in
3210*-*-*) ;;
3211*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3212esac
3213target=$ac_cv_target
3214ac_save_IFS=$IFS; IFS='-'
3215set x $ac_cv_target
3216shift
3217target_cpu=$1
3218target_vendor=$2
3219shift; shift
3220# Remember, the first character of IFS is used to create $*,
3221# except with old shells:
3222target_os=$*
3223IFS=$ac_save_IFS
3224case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3225
3226
3227# The aliases save the names the user supplied, while $host etc.
3228# will get canonicalized.
3229test -n "$target_alias" &&
3230  test "$program_prefix$program_suffix$program_transform_name" = \
3231    NONENONEs,x,x, &&
3232  program_prefix=${target_alias}-
3233# Expand $ac_aux_dir to an absolute path.
3234am_aux_dir=`cd "$ac_aux_dir" && pwd`
3235
3236ac_ext=c
3237ac_cpp='$CPP $CPPFLAGS'
3238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241if test -n "$ac_tool_prefix"; then
3242  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3243set dummy ${ac_tool_prefix}gcc; ac_word=$2
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245$as_echo_n "checking for $ac_word... " >&6; }
3246if ${ac_cv_prog_CC+:} false; then :
3247  $as_echo_n "(cached) " >&6
3248else
3249  if test -n "$CC"; then
3250  ac_cv_prog_CC="$CC" # Let the user override the test.
3251else
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255  IFS=$as_save_IFS
3256  test -z "$as_dir" && as_dir=.
3257    for ac_exec_ext in '' $ac_executable_extensions; do
3258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261    break 2
3262  fi
3263done
3264  done
3265IFS=$as_save_IFS
3266
3267fi
3268fi
3269CC=$ac_cv_prog_CC
3270if test -n "$CC"; then
3271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3272$as_echo "$CC" >&6; }
3273else
3274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275$as_echo "no" >&6; }
3276fi
3277
3278
3279fi
3280if test -z "$ac_cv_prog_CC"; then
3281  ac_ct_CC=$CC
3282  # Extract the first word of "gcc", so it can be a program name with args.
3283set dummy gcc; ac_word=$2
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285$as_echo_n "checking for $ac_word... " >&6; }
3286if ${ac_cv_prog_ac_ct_CC+:} false; then :
3287  $as_echo_n "(cached) " >&6
3288else
3289  if test -n "$ac_ct_CC"; then
3290  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3291else
3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293for as_dir in $PATH
3294do
3295  IFS=$as_save_IFS
3296  test -z "$as_dir" && as_dir=.
3297    for ac_exec_ext in '' $ac_executable_extensions; do
3298  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299    ac_cv_prog_ac_ct_CC="gcc"
3300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301    break 2
3302  fi
3303done
3304  done
3305IFS=$as_save_IFS
3306
3307fi
3308fi
3309ac_ct_CC=$ac_cv_prog_ac_ct_CC
3310if test -n "$ac_ct_CC"; then
3311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3312$as_echo "$ac_ct_CC" >&6; }
3313else
3314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315$as_echo "no" >&6; }
3316fi
3317
3318  if test "x$ac_ct_CC" = x; then
3319    CC=""
3320  else
3321    case $cross_compiling:$ac_tool_warned in
3322yes:)
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3325ac_tool_warned=yes ;;
3326esac
3327    CC=$ac_ct_CC
3328  fi
3329else
3330  CC="$ac_cv_prog_CC"
3331fi
3332
3333if test -z "$CC"; then
3334          if test -n "$ac_tool_prefix"; then
3335    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3336set dummy ${ac_tool_prefix}cc; ac_word=$2
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338$as_echo_n "checking for $ac_word... " >&6; }
3339if ${ac_cv_prog_CC+:} false; then :
3340  $as_echo_n "(cached) " >&6
3341else
3342  if test -n "$CC"; then
3343  ac_cv_prog_CC="$CC" # Let the user override the test.
3344else
3345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346for as_dir in $PATH
3347do
3348  IFS=$as_save_IFS
3349  test -z "$as_dir" && as_dir=.
3350    for ac_exec_ext in '' $ac_executable_extensions; do
3351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352    ac_cv_prog_CC="${ac_tool_prefix}cc"
3353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354    break 2
3355  fi
3356done
3357  done
3358IFS=$as_save_IFS
3359
3360fi
3361fi
3362CC=$ac_cv_prog_CC
3363if test -n "$CC"; then
3364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3365$as_echo "$CC" >&6; }
3366else
3367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368$as_echo "no" >&6; }
3369fi
3370
3371
3372  fi
3373fi
3374if test -z "$CC"; then
3375  # Extract the first word of "cc", so it can be a program name with args.
3376set dummy cc; ac_word=$2
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378$as_echo_n "checking for $ac_word... " >&6; }
3379if ${ac_cv_prog_CC+:} false; then :
3380  $as_echo_n "(cached) " >&6
3381else
3382  if test -n "$CC"; then
3383  ac_cv_prog_CC="$CC" # Let the user override the test.
3384else
3385  ac_prog_rejected=no
3386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387for as_dir in $PATH
3388do
3389  IFS=$as_save_IFS
3390  test -z "$as_dir" && as_dir=.
3391    for ac_exec_ext in '' $ac_executable_extensions; do
3392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3394       ac_prog_rejected=yes
3395       continue
3396     fi
3397    ac_cv_prog_CC="cc"
3398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399    break 2
3400  fi
3401done
3402  done
3403IFS=$as_save_IFS
3404
3405if test $ac_prog_rejected = yes; then
3406  # We found a bogon in the path, so make sure we never use it.
3407  set dummy $ac_cv_prog_CC
3408  shift
3409  if test $# != 0; then
3410    # We chose a different compiler from the bogus one.
3411    # However, it has the same basename, so the bogon will be chosen
3412    # first if we set CC to just the basename; use the full file name.
3413    shift
3414    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3415  fi
3416fi
3417fi
3418fi
3419CC=$ac_cv_prog_CC
3420if test -n "$CC"; then
3421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422$as_echo "$CC" >&6; }
3423else
3424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425$as_echo "no" >&6; }
3426fi
3427
3428
3429fi
3430if test -z "$CC"; then
3431  if test -n "$ac_tool_prefix"; then
3432  for ac_prog in cl.exe
3433  do
3434    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3435set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437$as_echo_n "checking for $ac_word... " >&6; }
3438if ${ac_cv_prog_CC+:} false; then :
3439  $as_echo_n "(cached) " >&6
3440else
3441  if test -n "$CC"; then
3442  ac_cv_prog_CC="$CC" # Let the user override the test.
3443else
3444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445for as_dir in $PATH
3446do
3447  IFS=$as_save_IFS
3448  test -z "$as_dir" && as_dir=.
3449    for ac_exec_ext in '' $ac_executable_extensions; do
3450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453    break 2
3454  fi
3455done
3456  done
3457IFS=$as_save_IFS
3458
3459fi
3460fi
3461CC=$ac_cv_prog_CC
3462if test -n "$CC"; then
3463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3464$as_echo "$CC" >&6; }
3465else
3466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467$as_echo "no" >&6; }
3468fi
3469
3470
3471    test -n "$CC" && break
3472  done
3473fi
3474if test -z "$CC"; then
3475  ac_ct_CC=$CC
3476  for ac_prog in cl.exe
3477do
3478  # Extract the first word of "$ac_prog", so it can be a program name with args.
3479set dummy $ac_prog; ac_word=$2
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481$as_echo_n "checking for $ac_word... " >&6; }
3482if ${ac_cv_prog_ac_ct_CC+:} false; then :
3483  $as_echo_n "(cached) " >&6
3484else
3485  if test -n "$ac_ct_CC"; then
3486  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3487else
3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491  IFS=$as_save_IFS
3492  test -z "$as_dir" && as_dir=.
3493    for ac_exec_ext in '' $ac_executable_extensions; do
3494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495    ac_cv_prog_ac_ct_CC="$ac_prog"
3496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497    break 2
3498  fi
3499done
3500  done
3501IFS=$as_save_IFS
3502
3503fi
3504fi
3505ac_ct_CC=$ac_cv_prog_ac_ct_CC
3506if test -n "$ac_ct_CC"; then
3507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3508$as_echo "$ac_ct_CC" >&6; }
3509else
3510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511$as_echo "no" >&6; }
3512fi
3513
3514
3515  test -n "$ac_ct_CC" && break
3516done
3517
3518  if test "x$ac_ct_CC" = x; then
3519    CC=""
3520  else
3521    case $cross_compiling:$ac_tool_warned in
3522yes:)
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3525ac_tool_warned=yes ;;
3526esac
3527    CC=$ac_ct_CC
3528  fi
3529fi
3530
3531fi
3532
3533
3534test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536as_fn_error $? "no acceptable C compiler found in \$PATH
3537See \`config.log' for more details" "$LINENO" 5; }
3538
3539# Provide some information about the compiler.
3540$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3541set X $ac_compile
3542ac_compiler=$2
3543for ac_option in --version -v -V -qversion; do
3544  { { ac_try="$ac_compiler $ac_option >&5"
3545case "(($ac_try" in
3546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547  *) ac_try_echo=$ac_try;;
3548esac
3549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550$as_echo "$ac_try_echo"; } >&5
3551  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3552  ac_status=$?
3553  if test -s conftest.err; then
3554    sed '10a\
3555... rest of stderr output deleted ...
3556         10q' conftest.err >conftest.er1
3557    cat conftest.er1 >&5
3558  fi
3559  rm -f conftest.er1 conftest.err
3560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561  test $ac_status = 0; }
3562done
3563
3564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565/* end confdefs.h.  */
3566
3567int
3568main ()
3569{
3570
3571  ;
3572  return 0;
3573}
3574_ACEOF
3575ac_clean_files_save=$ac_clean_files
3576ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3577# Try to create an executable without -o first, disregard a.out.
3578# It will help us diagnose broken compilers, and finding out an intuition
3579# of exeext.
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3581$as_echo_n "checking whether the C compiler works... " >&6; }
3582ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3583
3584# The possible output files:
3585ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3586
3587ac_rmfiles=
3588for ac_file in $ac_files
3589do
3590  case $ac_file in
3591    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3592    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3593  esac
3594done
3595rm -f $ac_rmfiles
3596
3597if { { ac_try="$ac_link_default"
3598case "(($ac_try" in
3599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600  *) ac_try_echo=$ac_try;;
3601esac
3602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603$as_echo "$ac_try_echo"; } >&5
3604  (eval "$ac_link_default") 2>&5
3605  ac_status=$?
3606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607  test $ac_status = 0; }; then :
3608  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3609# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3610# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3611# so that the user can short-circuit this test for compilers unknown to
3612# Autoconf.
3613for ac_file in $ac_files ''
3614do
3615  test -f "$ac_file" || continue
3616  case $ac_file in
3617    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3618	;;
3619    [ab].out )
3620	# We found the default executable, but exeext='' is most
3621	# certainly right.
3622	break;;
3623    *.* )
3624	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3625	then :; else
3626	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3627	fi
3628	# We set ac_cv_exeext here because the later test for it is not
3629	# safe: cross compilers may not add the suffix if given an `-o'
3630	# argument, so we may need to know it at that point already.
3631	# Even if this section looks crufty: it has the advantage of
3632	# actually working.
3633	break;;
3634    * )
3635	break;;
3636  esac
3637done
3638test "$ac_cv_exeext" = no && ac_cv_exeext=
3639
3640else
3641  ac_file=''
3642fi
3643if test -z "$ac_file"; then :
3644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645$as_echo "no" >&6; }
3646$as_echo "$as_me: failed program was:" >&5
3647sed 's/^/| /' conftest.$ac_ext >&5
3648
3649{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3651as_fn_error 77 "C compiler cannot create executables
3652See \`config.log' for more details" "$LINENO" 5; }
3653else
3654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3655$as_echo "yes" >&6; }
3656fi
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3658$as_echo_n "checking for C compiler default output file name... " >&6; }
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3660$as_echo "$ac_file" >&6; }
3661ac_exeext=$ac_cv_exeext
3662
3663rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3664ac_clean_files=$ac_clean_files_save
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3666$as_echo_n "checking for suffix of executables... " >&6; }
3667if { { ac_try="$ac_link"
3668case "(($ac_try" in
3669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670  *) ac_try_echo=$ac_try;;
3671esac
3672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673$as_echo "$ac_try_echo"; } >&5
3674  (eval "$ac_link") 2>&5
3675  ac_status=$?
3676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677  test $ac_status = 0; }; then :
3678  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3679# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3680# work properly (i.e., refer to `conftest.exe'), while it won't with
3681# `rm'.
3682for ac_file in conftest.exe conftest conftest.*; do
3683  test -f "$ac_file" || continue
3684  case $ac_file in
3685    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3686    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3687	  break;;
3688    * ) break;;
3689  esac
3690done
3691else
3692  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3695See \`config.log' for more details" "$LINENO" 5; }
3696fi
3697rm -f conftest conftest$ac_cv_exeext
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3699$as_echo "$ac_cv_exeext" >&6; }
3700
3701rm -f conftest.$ac_ext
3702EXEEXT=$ac_cv_exeext
3703ac_exeext=$EXEEXT
3704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705/* end confdefs.h.  */
3706#include <stdio.h>
3707int
3708main ()
3709{
3710FILE *f = fopen ("conftest.out", "w");
3711 return ferror (f) || fclose (f) != 0;
3712
3713  ;
3714  return 0;
3715}
3716_ACEOF
3717ac_clean_files="$ac_clean_files conftest.out"
3718# Check that the compiler produces executables we can run.  If not, either
3719# the compiler is broken, or we cross compile.
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3721$as_echo_n "checking whether we are cross compiling... " >&6; }
3722if test "$cross_compiling" != yes; then
3723  { { ac_try="$ac_link"
3724case "(($ac_try" in
3725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726  *) ac_try_echo=$ac_try;;
3727esac
3728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729$as_echo "$ac_try_echo"; } >&5
3730  (eval "$ac_link") 2>&5
3731  ac_status=$?
3732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733  test $ac_status = 0; }
3734  if { ac_try='./conftest$ac_cv_exeext'
3735  { { case "(($ac_try" in
3736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737  *) ac_try_echo=$ac_try;;
3738esac
3739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740$as_echo "$ac_try_echo"; } >&5
3741  (eval "$ac_try") 2>&5
3742  ac_status=$?
3743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744  test $ac_status = 0; }; }; then
3745    cross_compiling=no
3746  else
3747    if test "$cross_compiling" = maybe; then
3748	cross_compiling=yes
3749    else
3750	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752as_fn_error $? "cannot run C compiled programs.
3753If you meant to cross compile, use \`--host'.
3754See \`config.log' for more details" "$LINENO" 5; }
3755    fi
3756  fi
3757fi
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3759$as_echo "$cross_compiling" >&6; }
3760
3761rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3762ac_clean_files=$ac_clean_files_save
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3764$as_echo_n "checking for suffix of object files... " >&6; }
3765if ${ac_cv_objext+:} false; then :
3766  $as_echo_n "(cached) " >&6
3767else
3768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769/* end confdefs.h.  */
3770
3771int
3772main ()
3773{
3774
3775  ;
3776  return 0;
3777}
3778_ACEOF
3779rm -f conftest.o conftest.obj
3780if { { ac_try="$ac_compile"
3781case "(($ac_try" in
3782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783  *) ac_try_echo=$ac_try;;
3784esac
3785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786$as_echo "$ac_try_echo"; } >&5
3787  (eval "$ac_compile") 2>&5
3788  ac_status=$?
3789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790  test $ac_status = 0; }; then :
3791  for ac_file in conftest.o conftest.obj conftest.*; do
3792  test -f "$ac_file" || continue;
3793  case $ac_file in
3794    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3795    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3796       break;;
3797  esac
3798done
3799else
3800  $as_echo "$as_me: failed program was:" >&5
3801sed 's/^/| /' conftest.$ac_ext >&5
3802
3803{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805as_fn_error $? "cannot compute suffix of object files: cannot compile
3806See \`config.log' for more details" "$LINENO" 5; }
3807fi
3808rm -f conftest.$ac_cv_objext conftest.$ac_ext
3809fi
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3811$as_echo "$ac_cv_objext" >&6; }
3812OBJEXT=$ac_cv_objext
3813ac_objext=$OBJEXT
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3815$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3816if ${ac_cv_c_compiler_gnu+:} false; then :
3817  $as_echo_n "(cached) " >&6
3818else
3819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h.  */
3821
3822int
3823main ()
3824{
3825#ifndef __GNUC__
3826       choke me
3827#endif
3828
3829  ;
3830  return 0;
3831}
3832_ACEOF
3833if ac_fn_c_try_compile "$LINENO"; then :
3834  ac_compiler_gnu=yes
3835else
3836  ac_compiler_gnu=no
3837fi
3838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839ac_cv_c_compiler_gnu=$ac_compiler_gnu
3840
3841fi
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3843$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3844if test $ac_compiler_gnu = yes; then
3845  GCC=yes
3846else
3847  GCC=
3848fi
3849ac_test_CFLAGS=${CFLAGS+set}
3850ac_save_CFLAGS=$CFLAGS
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3852$as_echo_n "checking whether $CC accepts -g... " >&6; }
3853if ${ac_cv_prog_cc_g+:} false; then :
3854  $as_echo_n "(cached) " >&6
3855else
3856  ac_save_c_werror_flag=$ac_c_werror_flag
3857   ac_c_werror_flag=yes
3858   ac_cv_prog_cc_g=no
3859   CFLAGS="-g"
3860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861/* end confdefs.h.  */
3862
3863int
3864main ()
3865{
3866
3867  ;
3868  return 0;
3869}
3870_ACEOF
3871if ac_fn_c_try_compile "$LINENO"; then :
3872  ac_cv_prog_cc_g=yes
3873else
3874  CFLAGS=""
3875      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876/* end confdefs.h.  */
3877
3878int
3879main ()
3880{
3881
3882  ;
3883  return 0;
3884}
3885_ACEOF
3886if ac_fn_c_try_compile "$LINENO"; then :
3887
3888else
3889  ac_c_werror_flag=$ac_save_c_werror_flag
3890	 CFLAGS="-g"
3891	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892/* end confdefs.h.  */
3893
3894int
3895main ()
3896{
3897
3898  ;
3899  return 0;
3900}
3901_ACEOF
3902if ac_fn_c_try_compile "$LINENO"; then :
3903  ac_cv_prog_cc_g=yes
3904fi
3905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906fi
3907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908fi
3909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910   ac_c_werror_flag=$ac_save_c_werror_flag
3911fi
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3913$as_echo "$ac_cv_prog_cc_g" >&6; }
3914if test "$ac_test_CFLAGS" = set; then
3915  CFLAGS=$ac_save_CFLAGS
3916elif test $ac_cv_prog_cc_g = yes; then
3917  if test "$GCC" = yes; then
3918    CFLAGS="-g -O2"
3919  else
3920    CFLAGS="-g"
3921  fi
3922else
3923  if test "$GCC" = yes; then
3924    CFLAGS="-O2"
3925  else
3926    CFLAGS=
3927  fi
3928fi
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3930$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3931if ${ac_cv_prog_cc_c89+:} false; then :
3932  $as_echo_n "(cached) " >&6
3933else
3934  ac_cv_prog_cc_c89=no
3935ac_save_CC=$CC
3936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937/* end confdefs.h.  */
3938#include <stdarg.h>
3939#include <stdio.h>
3940struct stat;
3941/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3942struct buf { int x; };
3943FILE * (*rcsopen) (struct buf *, struct stat *, int);
3944static char *e (p, i)
3945     char **p;
3946     int i;
3947{
3948  return p[i];
3949}
3950static char *f (char * (*g) (char **, int), char **p, ...)
3951{
3952  char *s;
3953  va_list v;
3954  va_start (v,p);
3955  s = g (p, va_arg (v,int));
3956  va_end (v);
3957  return s;
3958}
3959
3960/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3961   function prototypes and stuff, but not '\xHH' hex character constants.
3962   These don't provoke an error unfortunately, instead are silently treated
3963   as 'x'.  The following induces an error, until -std is added to get
3964   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3965   array size at least.  It's necessary to write '\x00'==0 to get something
3966   that's true only with -std.  */
3967int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3968
3969/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3970   inside strings and character constants.  */
3971#define FOO(x) 'x'
3972int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3973
3974int test (int i, double x);
3975struct s1 {int (*f) (int a);};
3976struct s2 {int (*f) (double a);};
3977int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3978int argc;
3979char **argv;
3980int
3981main ()
3982{
3983return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3984  ;
3985  return 0;
3986}
3987_ACEOF
3988for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3989	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3990do
3991  CC="$ac_save_CC $ac_arg"
3992  if ac_fn_c_try_compile "$LINENO"; then :
3993  ac_cv_prog_cc_c89=$ac_arg
3994fi
3995rm -f core conftest.err conftest.$ac_objext
3996  test "x$ac_cv_prog_cc_c89" != "xno" && break
3997done
3998rm -f conftest.$ac_ext
3999CC=$ac_save_CC
4000
4001fi
4002# AC_CACHE_VAL
4003case "x$ac_cv_prog_cc_c89" in
4004  x)
4005    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4006$as_echo "none needed" >&6; } ;;
4007  xno)
4008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4009$as_echo "unsupported" >&6; } ;;
4010  *)
4011    CC="$CC $ac_cv_prog_cc_c89"
4012    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4013$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4014esac
4015if test "x$ac_cv_prog_cc_c89" != xno; then :
4016
4017fi
4018
4019ac_ext=c
4020ac_cpp='$CPP $CPPFLAGS'
4021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4023ac_compiler_gnu=$ac_cv_c_compiler_gnu
4024
4025ac_ext=c
4026ac_cpp='$CPP $CPPFLAGS'
4027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4031$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4032if ${am_cv_prog_cc_c_o+:} false; then :
4033  $as_echo_n "(cached) " >&6
4034else
4035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036/* end confdefs.h.  */
4037
4038int
4039main ()
4040{
4041
4042  ;
4043  return 0;
4044}
4045_ACEOF
4046  # Make sure it works both with $CC and with simple cc.
4047  # Following AC_PROG_CC_C_O, we do the test twice because some
4048  # compilers refuse to overwrite an existing .o file with -o,
4049  # though they will create one.
4050  am_cv_prog_cc_c_o=yes
4051  for am_i in 1 2; do
4052    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4053   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); } \
4057         && test -f conftest2.$ac_objext; then
4058      : OK
4059    else
4060      am_cv_prog_cc_c_o=no
4061      break
4062    fi
4063  done
4064  rm -f core conftest*
4065  unset am_i
4066fi
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4068$as_echo "$am_cv_prog_cc_c_o" >&6; }
4069if test "$am_cv_prog_cc_c_o" != yes; then
4070   # Losing compiler, so override with the script.
4071   # FIXME: It is wrong to rewrite CC.
4072   # But if we don't then we get into trouble of one sort or another.
4073   # A longer-term fix would be to have automake use am__CC in this case,
4074   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4075   CC="$am_aux_dir/compile $CC"
4076fi
4077ac_ext=c
4078ac_cpp='$CPP $CPPFLAGS'
4079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082
4083
4084
4085ac_ext=c
4086ac_cpp='$CPP $CPPFLAGS'
4087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4091$as_echo_n "checking how to run the C preprocessor... " >&6; }
4092# On Suns, sometimes $CPP names a directory.
4093if test -n "$CPP" && test -d "$CPP"; then
4094  CPP=
4095fi
4096if test -z "$CPP"; then
4097  if ${ac_cv_prog_CPP+:} false; then :
4098  $as_echo_n "(cached) " >&6
4099else
4100      # Double quotes because CPP needs to be expanded
4101    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4102    do
4103      ac_preproc_ok=false
4104for ac_c_preproc_warn_flag in '' yes
4105do
4106  # Use a header file that comes with gcc, so configuring glibc
4107  # with a fresh cross-compiler works.
4108  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4109  # <limits.h> exists even on freestanding compilers.
4110  # On the NeXT, cc -E runs the code through the compiler's parser,
4111  # not just through cpp. "Syntax error" is here to catch this case.
4112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h.  */
4114#ifdef __STDC__
4115# include <limits.h>
4116#else
4117# include <assert.h>
4118#endif
4119		     Syntax error
4120_ACEOF
4121if ac_fn_c_try_cpp "$LINENO"; then :
4122
4123else
4124  # Broken: fails on valid input.
4125continue
4126fi
4127rm -f conftest.err conftest.i conftest.$ac_ext
4128
4129  # OK, works on sane cases.  Now check whether nonexistent headers
4130  # can be detected and how.
4131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132/* end confdefs.h.  */
4133#include <ac_nonexistent.h>
4134_ACEOF
4135if ac_fn_c_try_cpp "$LINENO"; then :
4136  # Broken: success on invalid input.
4137continue
4138else
4139  # Passes both tests.
4140ac_preproc_ok=:
4141break
4142fi
4143rm -f conftest.err conftest.i conftest.$ac_ext
4144
4145done
4146# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4147rm -f conftest.i conftest.err conftest.$ac_ext
4148if $ac_preproc_ok; then :
4149  break
4150fi
4151
4152    done
4153    ac_cv_prog_CPP=$CPP
4154
4155fi
4156  CPP=$ac_cv_prog_CPP
4157else
4158  ac_cv_prog_CPP=$CPP
4159fi
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4161$as_echo "$CPP" >&6; }
4162ac_preproc_ok=false
4163for ac_c_preproc_warn_flag in '' yes
4164do
4165  # Use a header file that comes with gcc, so configuring glibc
4166  # with a fresh cross-compiler works.
4167  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4168  # <limits.h> exists even on freestanding compilers.
4169  # On the NeXT, cc -E runs the code through the compiler's parser,
4170  # not just through cpp. "Syntax error" is here to catch this case.
4171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172/* end confdefs.h.  */
4173#ifdef __STDC__
4174# include <limits.h>
4175#else
4176# include <assert.h>
4177#endif
4178		     Syntax error
4179_ACEOF
4180if ac_fn_c_try_cpp "$LINENO"; then :
4181
4182else
4183  # Broken: fails on valid input.
4184continue
4185fi
4186rm -f conftest.err conftest.i conftest.$ac_ext
4187
4188  # OK, works on sane cases.  Now check whether nonexistent headers
4189  # can be detected and how.
4190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191/* end confdefs.h.  */
4192#include <ac_nonexistent.h>
4193_ACEOF
4194if ac_fn_c_try_cpp "$LINENO"; then :
4195  # Broken: success on invalid input.
4196continue
4197else
4198  # Passes both tests.
4199ac_preproc_ok=:
4200break
4201fi
4202rm -f conftest.err conftest.i conftest.$ac_ext
4203
4204done
4205# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4206rm -f conftest.i conftest.err conftest.$ac_ext
4207if $ac_preproc_ok; then :
4208
4209else
4210  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4212as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4213See \`config.log' for more details" "$LINENO" 5; }
4214fi
4215
4216ac_ext=c
4217ac_cpp='$CPP $CPPFLAGS'
4218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221
4222
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4224$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4225if ${ac_cv_path_GREP+:} false; then :
4226  $as_echo_n "(cached) " >&6
4227else
4228  if test -z "$GREP"; then
4229  ac_path_GREP_found=false
4230  # Loop through the user's path and test for each of PROGNAME-LIST
4231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4233do
4234  IFS=$as_save_IFS
4235  test -z "$as_dir" && as_dir=.
4236    for ac_prog in grep ggrep; do
4237    for ac_exec_ext in '' $ac_executable_extensions; do
4238      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4239      as_fn_executable_p "$ac_path_GREP" || continue
4240# Check for GNU ac_path_GREP and select it if it is found.
4241  # Check for GNU $ac_path_GREP
4242case `"$ac_path_GREP" --version 2>&1` in
4243*GNU*)
4244  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4245*)
4246  ac_count=0
4247  $as_echo_n 0123456789 >"conftest.in"
4248  while :
4249  do
4250    cat "conftest.in" "conftest.in" >"conftest.tmp"
4251    mv "conftest.tmp" "conftest.in"
4252    cp "conftest.in" "conftest.nl"
4253    $as_echo 'GREP' >> "conftest.nl"
4254    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4255    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4256    as_fn_arith $ac_count + 1 && ac_count=$as_val
4257    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4258      # Best one so far, save it but keep looking for a better one
4259      ac_cv_path_GREP="$ac_path_GREP"
4260      ac_path_GREP_max=$ac_count
4261    fi
4262    # 10*(2^10) chars as input seems more than enough
4263    test $ac_count -gt 10 && break
4264  done
4265  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4266esac
4267
4268      $ac_path_GREP_found && break 3
4269    done
4270  done
4271  done
4272IFS=$as_save_IFS
4273  if test -z "$ac_cv_path_GREP"; then
4274    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4275  fi
4276else
4277  ac_cv_path_GREP=$GREP
4278fi
4279
4280fi
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4282$as_echo "$ac_cv_path_GREP" >&6; }
4283 GREP="$ac_cv_path_GREP"
4284
4285
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4287$as_echo_n "checking for egrep... " >&6; }
4288if ${ac_cv_path_EGREP+:} false; then :
4289  $as_echo_n "(cached) " >&6
4290else
4291  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4292   then ac_cv_path_EGREP="$GREP -E"
4293   else
4294     if test -z "$EGREP"; then
4295  ac_path_EGREP_found=false
4296  # Loop through the user's path and test for each of PROGNAME-LIST
4297  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4299do
4300  IFS=$as_save_IFS
4301  test -z "$as_dir" && as_dir=.
4302    for ac_prog in egrep; do
4303    for ac_exec_ext in '' $ac_executable_extensions; do
4304      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4305      as_fn_executable_p "$ac_path_EGREP" || continue
4306# Check for GNU ac_path_EGREP and select it if it is found.
4307  # Check for GNU $ac_path_EGREP
4308case `"$ac_path_EGREP" --version 2>&1` in
4309*GNU*)
4310  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4311*)
4312  ac_count=0
4313  $as_echo_n 0123456789 >"conftest.in"
4314  while :
4315  do
4316    cat "conftest.in" "conftest.in" >"conftest.tmp"
4317    mv "conftest.tmp" "conftest.in"
4318    cp "conftest.in" "conftest.nl"
4319    $as_echo 'EGREP' >> "conftest.nl"
4320    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4321    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4322    as_fn_arith $ac_count + 1 && ac_count=$as_val
4323    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4324      # Best one so far, save it but keep looking for a better one
4325      ac_cv_path_EGREP="$ac_path_EGREP"
4326      ac_path_EGREP_max=$ac_count
4327    fi
4328    # 10*(2^10) chars as input seems more than enough
4329    test $ac_count -gt 10 && break
4330  done
4331  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4332esac
4333
4334      $ac_path_EGREP_found && break 3
4335    done
4336  done
4337  done
4338IFS=$as_save_IFS
4339  if test -z "$ac_cv_path_EGREP"; then
4340    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4341  fi
4342else
4343  ac_cv_path_EGREP=$EGREP
4344fi
4345
4346   fi
4347fi
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4349$as_echo "$ac_cv_path_EGREP" >&6; }
4350 EGREP="$ac_cv_path_EGREP"
4351
4352
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4354$as_echo_n "checking for ANSI C header files... " >&6; }
4355if ${ac_cv_header_stdc+:} false; then :
4356  $as_echo_n "(cached) " >&6
4357else
4358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359/* end confdefs.h.  */
4360#include <stdlib.h>
4361#include <stdarg.h>
4362#include <string.h>
4363#include <float.h>
4364
4365int
4366main ()
4367{
4368
4369  ;
4370  return 0;
4371}
4372_ACEOF
4373if ac_fn_c_try_compile "$LINENO"; then :
4374  ac_cv_header_stdc=yes
4375else
4376  ac_cv_header_stdc=no
4377fi
4378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379
4380if test $ac_cv_header_stdc = yes; then
4381  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383/* end confdefs.h.  */
4384#include <string.h>
4385
4386_ACEOF
4387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4388  $EGREP "memchr" >/dev/null 2>&1; then :
4389
4390else
4391  ac_cv_header_stdc=no
4392fi
4393rm -f conftest*
4394
4395fi
4396
4397if test $ac_cv_header_stdc = yes; then
4398  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400/* end confdefs.h.  */
4401#include <stdlib.h>
4402
4403_ACEOF
4404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4405  $EGREP "free" >/dev/null 2>&1; then :
4406
4407else
4408  ac_cv_header_stdc=no
4409fi
4410rm -f conftest*
4411
4412fi
4413
4414if test $ac_cv_header_stdc = yes; then
4415  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4416  if test "$cross_compiling" = yes; then :
4417  :
4418else
4419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420/* end confdefs.h.  */
4421#include <ctype.h>
4422#include <stdlib.h>
4423#if ((' ' & 0x0FF) == 0x020)
4424# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4425# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4426#else
4427# define ISLOWER(c) \
4428		   (('a' <= (c) && (c) <= 'i') \
4429		     || ('j' <= (c) && (c) <= 'r') \
4430		     || ('s' <= (c) && (c) <= 'z'))
4431# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4432#endif
4433
4434#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4435int
4436main ()
4437{
4438  int i;
4439  for (i = 0; i < 256; i++)
4440    if (XOR (islower (i), ISLOWER (i))
4441	|| toupper (i) != TOUPPER (i))
4442      return 2;
4443  return 0;
4444}
4445_ACEOF
4446if ac_fn_c_try_run "$LINENO"; then :
4447
4448else
4449  ac_cv_header_stdc=no
4450fi
4451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4452  conftest.$ac_objext conftest.beam conftest.$ac_ext
4453fi
4454
4455fi
4456fi
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4458$as_echo "$ac_cv_header_stdc" >&6; }
4459if test $ac_cv_header_stdc = yes; then
4460
4461$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4462
4463fi
4464
4465# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4466for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4467		  inttypes.h stdint.h unistd.h
4468do :
4469  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4470ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4471"
4472if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4473  cat >>confdefs.h <<_ACEOF
4474#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4475_ACEOF
4476
4477fi
4478
4479done
4480
4481
4482
4483  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4484if test "x$ac_cv_header_minix_config_h" = xyes; then :
4485  MINIX=yes
4486else
4487  MINIX=
4488fi
4489
4490
4491  if test "$MINIX" = yes; then
4492
4493$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4494
4495
4496$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4497
4498
4499$as_echo "#define _MINIX 1" >>confdefs.h
4500
4501  fi
4502
4503
4504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4505$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4506if ${ac_cv_safe_to_define___extensions__+:} false; then :
4507  $as_echo_n "(cached) " >&6
4508else
4509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h.  */
4511
4512#         define __EXTENSIONS__ 1
4513          $ac_includes_default
4514int
4515main ()
4516{
4517
4518  ;
4519  return 0;
4520}
4521_ACEOF
4522if ac_fn_c_try_compile "$LINENO"; then :
4523  ac_cv_safe_to_define___extensions__=yes
4524else
4525  ac_cv_safe_to_define___extensions__=no
4526fi
4527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528fi
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4530$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4531  test $ac_cv_safe_to_define___extensions__ = yes &&
4532    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4533
4534  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4535
4536  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4537
4538  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4539
4540  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4541
4542
4543test "$program_prefix" != NONE &&
4544  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4545# Use a double $ so make ignores it.
4546test "$program_suffix" != NONE &&
4547  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4548# Double any \ or $.
4549# By default was `s,x,x', remove it if useless.
4550ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4551program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4552
4553# Find a good install program.  We prefer a C program (faster),
4554# so one script is as good as another.  But avoid the broken or
4555# incompatible versions:
4556# SysV /etc/install, /usr/sbin/install
4557# SunOS /usr/etc/install
4558# IRIX /sbin/install
4559# AIX /bin/install
4560# AmigaOS /C/install, which installs bootblocks on floppy discs
4561# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4562# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4563# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4564# OS/2's system install, which has a completely different semantic
4565# ./install, which can be erroneously created by make from ./install.sh.
4566# Reject install programs that cannot install multiple files.
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4568$as_echo_n "checking for a BSD-compatible install... " >&6; }
4569if test -z "$INSTALL"; then
4570if ${ac_cv_path_install+:} false; then :
4571  $as_echo_n "(cached) " >&6
4572else
4573  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574for as_dir in $PATH
4575do
4576  IFS=$as_save_IFS
4577  test -z "$as_dir" && as_dir=.
4578    # Account for people who put trailing slashes in PATH elements.
4579case $as_dir/ in #((
4580  ./ | .// | /[cC]/* | \
4581  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4582  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4583  /usr/ucb/* ) ;;
4584  *)
4585    # OSF1 and SCO ODT 3.0 have their own names for install.
4586    # Don't use installbsd from OSF since it installs stuff as root
4587    # by default.
4588    for ac_prog in ginstall scoinst install; do
4589      for ac_exec_ext in '' $ac_executable_extensions; do
4590	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4591	  if test $ac_prog = install &&
4592	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4593	    # AIX install.  It has an incompatible calling convention.
4594	    :
4595	  elif test $ac_prog = install &&
4596	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4597	    # program-specific install script used by HP pwplus--don't use.
4598	    :
4599	  else
4600	    rm -rf conftest.one conftest.two conftest.dir
4601	    echo one > conftest.one
4602	    echo two > conftest.two
4603	    mkdir conftest.dir
4604	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4605	      test -s conftest.one && test -s conftest.two &&
4606	      test -s conftest.dir/conftest.one &&
4607	      test -s conftest.dir/conftest.two
4608	    then
4609	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4610	      break 3
4611	    fi
4612	  fi
4613	fi
4614      done
4615    done
4616    ;;
4617esac
4618
4619  done
4620IFS=$as_save_IFS
4621
4622rm -rf conftest.one conftest.two conftest.dir
4623
4624fi
4625  if test "${ac_cv_path_install+set}" = set; then
4626    INSTALL=$ac_cv_path_install
4627  else
4628    # As a last resort, use the slow shell script.  Don't cache a
4629    # value for INSTALL within a source directory, because that will
4630    # break other packages using the cache if that directory is
4631    # removed, or if the value is a relative name.
4632    INSTALL=$ac_install_sh
4633  fi
4634fi
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4636$as_echo "$INSTALL" >&6; }
4637
4638# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4639# It thinks the first close brace ends the variable substitution.
4640test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4641
4642test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4643
4644test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4645
4646
4647
4648
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4651$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4652if ${ac_cv_c_bigendian+:} false; then :
4653  $as_echo_n "(cached) " >&6
4654else
4655  ac_cv_c_bigendian=unknown
4656    # See if we're dealing with a universal compiler.
4657    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658/* end confdefs.h.  */
4659#ifndef __APPLE_CC__
4660	       not a universal capable compiler
4661	     #endif
4662	     typedef int dummy;
4663
4664_ACEOF
4665if ac_fn_c_try_compile "$LINENO"; then :
4666
4667	# Check for potential -arch flags.  It is not universal unless
4668	# there are at least two -arch flags with different values.
4669	ac_arch=
4670	ac_prev=
4671	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4672	 if test -n "$ac_prev"; then
4673	   case $ac_word in
4674	     i?86 | x86_64 | ppc | ppc64)
4675	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4676		 ac_arch=$ac_word
4677	       else
4678		 ac_cv_c_bigendian=universal
4679		 break
4680	       fi
4681	       ;;
4682	   esac
4683	   ac_prev=
4684	 elif test "x$ac_word" = "x-arch"; then
4685	   ac_prev=arch
4686	 fi
4687       done
4688fi
4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690    if test $ac_cv_c_bigendian = unknown; then
4691      # See if sys/param.h defines the BYTE_ORDER macro.
4692      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693/* end confdefs.h.  */
4694#include <sys/types.h>
4695	     #include <sys/param.h>
4696
4697int
4698main ()
4699{
4700#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4701		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4702		     && LITTLE_ENDIAN)
4703	      bogus endian macros
4704	     #endif
4705
4706  ;
4707  return 0;
4708}
4709_ACEOF
4710if ac_fn_c_try_compile "$LINENO"; then :
4711  # It does; now see whether it defined to BIG_ENDIAN or not.
4712	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713/* end confdefs.h.  */
4714#include <sys/types.h>
4715		#include <sys/param.h>
4716
4717int
4718main ()
4719{
4720#if BYTE_ORDER != BIG_ENDIAN
4721		 not big endian
4722		#endif
4723
4724  ;
4725  return 0;
4726}
4727_ACEOF
4728if ac_fn_c_try_compile "$LINENO"; then :
4729  ac_cv_c_bigendian=yes
4730else
4731  ac_cv_c_bigendian=no
4732fi
4733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734fi
4735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736    fi
4737    if test $ac_cv_c_bigendian = unknown; then
4738      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4739      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740/* end confdefs.h.  */
4741#include <limits.h>
4742
4743int
4744main ()
4745{
4746#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4747	      bogus endian macros
4748	     #endif
4749
4750  ;
4751  return 0;
4752}
4753_ACEOF
4754if ac_fn_c_try_compile "$LINENO"; then :
4755  # It does; now see whether it defined to _BIG_ENDIAN or not.
4756	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757/* end confdefs.h.  */
4758#include <limits.h>
4759
4760int
4761main ()
4762{
4763#ifndef _BIG_ENDIAN
4764		 not big endian
4765		#endif
4766
4767  ;
4768  return 0;
4769}
4770_ACEOF
4771if ac_fn_c_try_compile "$LINENO"; then :
4772  ac_cv_c_bigendian=yes
4773else
4774  ac_cv_c_bigendian=no
4775fi
4776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777fi
4778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779    fi
4780    if test $ac_cv_c_bigendian = unknown; then
4781      # Compile a test program.
4782      if test "$cross_compiling" = yes; then :
4783  # Try to guess by grepping values from an object file.
4784	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h.  */
4786short int ascii_mm[] =
4787		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4788		short int ascii_ii[] =
4789		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4790		int use_ascii (int i) {
4791		  return ascii_mm[i] + ascii_ii[i];
4792		}
4793		short int ebcdic_ii[] =
4794		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4795		short int ebcdic_mm[] =
4796		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4797		int use_ebcdic (int i) {
4798		  return ebcdic_mm[i] + ebcdic_ii[i];
4799		}
4800		extern int foo;
4801
4802int
4803main ()
4804{
4805return use_ascii (foo) == use_ebcdic (foo);
4806  ;
4807  return 0;
4808}
4809_ACEOF
4810if ac_fn_c_try_compile "$LINENO"; then :
4811  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4812	      ac_cv_c_bigendian=yes
4813	    fi
4814	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4815	      if test "$ac_cv_c_bigendian" = unknown; then
4816		ac_cv_c_bigendian=no
4817	      else
4818		# finding both strings is unlikely to happen, but who knows?
4819		ac_cv_c_bigendian=unknown
4820	      fi
4821	    fi
4822fi
4823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824else
4825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826/* end confdefs.h.  */
4827$ac_includes_default
4828int
4829main ()
4830{
4831
4832	     /* Are we little or big endian?  From Harbison&Steele.  */
4833	     union
4834	     {
4835	       long int l;
4836	       char c[sizeof (long int)];
4837	     } u;
4838	     u.l = 1;
4839	     return u.c[sizeof (long int) - 1] == 1;
4840
4841  ;
4842  return 0;
4843}
4844_ACEOF
4845if ac_fn_c_try_run "$LINENO"; then :
4846  ac_cv_c_bigendian=no
4847else
4848  ac_cv_c_bigendian=yes
4849fi
4850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4851  conftest.$ac_objext conftest.beam conftest.$ac_ext
4852fi
4853
4854    fi
4855fi
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4857$as_echo "$ac_cv_c_bigendian" >&6; }
4858 case $ac_cv_c_bigendian in #(
4859   yes)
4860     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4861;; #(
4862   no)
4863      ;; #(
4864   universal)
4865
4866$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4867
4868     ;; #(
4869   *)
4870     as_fn_error $? "unknown endianness
4871 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4872 esac
4873
4874
4875
4876
4877if test -n "$ac_tool_prefix"; then
4878  # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4879set dummy ${ac_tool_prefix}dtc; ac_word=$2
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881$as_echo_n "checking for $ac_word... " >&6; }
4882if ${ac_cv_prog_DTC+:} false; then :
4883  $as_echo_n "(cached) " >&6
4884else
4885  if test -n "$DTC"; then
4886  ac_cv_prog_DTC="$DTC" # Let the user override the test.
4887else
4888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in $PATH
4890do
4891  IFS=$as_save_IFS
4892  test -z "$as_dir" && as_dir=.
4893    for ac_exec_ext in '' $ac_executable_extensions; do
4894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4895    ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897    break 2
4898  fi
4899done
4900  done
4901IFS=$as_save_IFS
4902
4903fi
4904fi
4905DTC=$ac_cv_prog_DTC
4906if test -n "$DTC"; then
4907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4908$as_echo "$DTC" >&6; }
4909else
4910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911$as_echo "no" >&6; }
4912fi
4913
4914
4915fi
4916if test -z "$ac_cv_prog_DTC"; then
4917  ac_ct_DTC=$DTC
4918  # Extract the first word of "dtc", so it can be a program name with args.
4919set dummy dtc; ac_word=$2
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921$as_echo_n "checking for $ac_word... " >&6; }
4922if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4923  $as_echo_n "(cached) " >&6
4924else
4925  if test -n "$ac_ct_DTC"; then
4926  ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4927else
4928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929for as_dir in $PATH
4930do
4931  IFS=$as_save_IFS
4932  test -z "$as_dir" && as_dir=.
4933    for ac_exec_ext in '' $ac_executable_extensions; do
4934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935    ac_cv_prog_ac_ct_DTC="dtc"
4936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937    break 2
4938  fi
4939done
4940  done
4941IFS=$as_save_IFS
4942
4943fi
4944fi
4945ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4946if test -n "$ac_ct_DTC"; then
4947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4948$as_echo "$ac_ct_DTC" >&6; }
4949else
4950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951$as_echo "no" >&6; }
4952fi
4953
4954  if test "x$ac_ct_DTC" = x; then
4955    DTC=""
4956  else
4957    case $cross_compiling:$ac_tool_warned in
4958yes:)
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4961ac_tool_warned=yes ;;
4962esac
4963    DTC=$ac_ct_DTC
4964  fi
4965else
4966  DTC="$ac_cv_prog_DTC"
4967fi
4968
4969
4970if test "x$cross_compiling" = "xno"; then
4971  : "${AR_FOR_BUILD:=\$(AR)}"
4972  : "${CC_FOR_BUILD:=\$(CC)}"
4973  : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4974  : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4975  : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
4976  : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4977else
4978  : "${AR_FOR_BUILD:=ar}"
4979  : "${CC_FOR_BUILD:=gcc}"
4980  : "${RANLIB_FOR_BUILD:=ranlib}"
4981  : "${CFLAGS_FOR_BUILD:=-g -O}"
4982  : "${CPPFLAGS_FOR_BUILD:=}"
4983  : "${LDLFAGS_FOR_BUILD:=}"
4984fi
4985
4986
4987
4988
4989
4990
4991
4992
4993if test -n "$ac_tool_prefix"; then
4994  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4995set dummy ${ac_tool_prefix}ar; ac_word=$2
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997$as_echo_n "checking for $ac_word... " >&6; }
4998if ${ac_cv_prog_AR+:} false; then :
4999  $as_echo_n "(cached) " >&6
5000else
5001  if test -n "$AR"; then
5002  ac_cv_prog_AR="$AR" # Let the user override the test.
5003else
5004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005for as_dir in $PATH
5006do
5007  IFS=$as_save_IFS
5008  test -z "$as_dir" && as_dir=.
5009    for ac_exec_ext in '' $ac_executable_extensions; do
5010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011    ac_cv_prog_AR="${ac_tool_prefix}ar"
5012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013    break 2
5014  fi
5015done
5016  done
5017IFS=$as_save_IFS
5018
5019fi
5020fi
5021AR=$ac_cv_prog_AR
5022if test -n "$AR"; then
5023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5024$as_echo "$AR" >&6; }
5025else
5026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027$as_echo "no" >&6; }
5028fi
5029
5030
5031fi
5032if test -z "$ac_cv_prog_AR"; then
5033  ac_ct_AR=$AR
5034  # Extract the first word of "ar", so it can be a program name with args.
5035set dummy ar; ac_word=$2
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037$as_echo_n "checking for $ac_word... " >&6; }
5038if ${ac_cv_prog_ac_ct_AR+:} false; then :
5039  $as_echo_n "(cached) " >&6
5040else
5041  if test -n "$ac_ct_AR"; then
5042  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5043else
5044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045for as_dir in $PATH
5046do
5047  IFS=$as_save_IFS
5048  test -z "$as_dir" && as_dir=.
5049    for ac_exec_ext in '' $ac_executable_extensions; do
5050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5051    ac_cv_prog_ac_ct_AR="ar"
5052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053    break 2
5054  fi
5055done
5056  done
5057IFS=$as_save_IFS
5058
5059fi
5060fi
5061ac_ct_AR=$ac_cv_prog_ac_ct_AR
5062if test -n "$ac_ct_AR"; then
5063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5064$as_echo "$ac_ct_AR" >&6; }
5065else
5066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067$as_echo "no" >&6; }
5068fi
5069
5070  if test "x$ac_ct_AR" = x; then
5071    AR=""
5072  else
5073    case $cross_compiling:$ac_tool_warned in
5074yes:)
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5077ac_tool_warned=yes ;;
5078esac
5079    AR=$ac_ct_AR
5080  fi
5081else
5082  AR="$ac_cv_prog_AR"
5083fi
5084
5085if test -n "$ac_tool_prefix"; then
5086  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5087set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089$as_echo_n "checking for $ac_word... " >&6; }
5090if ${ac_cv_prog_RANLIB+:} false; then :
5091  $as_echo_n "(cached) " >&6
5092else
5093  if test -n "$RANLIB"; then
5094  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5095else
5096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH
5098do
5099  IFS=$as_save_IFS
5100  test -z "$as_dir" && as_dir=.
5101    for ac_exec_ext in '' $ac_executable_extensions; do
5102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105    break 2
5106  fi
5107done
5108  done
5109IFS=$as_save_IFS
5110
5111fi
5112fi
5113RANLIB=$ac_cv_prog_RANLIB
5114if test -n "$RANLIB"; then
5115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5116$as_echo "$RANLIB" >&6; }
5117else
5118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119$as_echo "no" >&6; }
5120fi
5121
5122
5123fi
5124if test -z "$ac_cv_prog_RANLIB"; then
5125  ac_ct_RANLIB=$RANLIB
5126  # Extract the first word of "ranlib", so it can be a program name with args.
5127set dummy ranlib; ac_word=$2
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129$as_echo_n "checking for $ac_word... " >&6; }
5130if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5131  $as_echo_n "(cached) " >&6
5132else
5133  if test -n "$ac_ct_RANLIB"; then
5134  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5135else
5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139  IFS=$as_save_IFS
5140  test -z "$as_dir" && as_dir=.
5141    for ac_exec_ext in '' $ac_executable_extensions; do
5142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143    ac_cv_prog_ac_ct_RANLIB="ranlib"
5144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145    break 2
5146  fi
5147done
5148  done
5149IFS=$as_save_IFS
5150
5151fi
5152fi
5153ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5154if test -n "$ac_ct_RANLIB"; then
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5156$as_echo "$ac_ct_RANLIB" >&6; }
5157else
5158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159$as_echo "no" >&6; }
5160fi
5161
5162  if test "x$ac_ct_RANLIB" = x; then
5163    RANLIB=":"
5164  else
5165    case $cross_compiling:$ac_tool_warned in
5166yes:)
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169ac_tool_warned=yes ;;
5170esac
5171    RANLIB=$ac_ct_RANLIB
5172  fi
5173else
5174  RANLIB="$ac_cv_prog_RANLIB"
5175fi
5176
5177
5178
5179
5180
5181
5182
5183
5184if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5185	if test -n "$ac_tool_prefix"; then
5186  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5187set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189$as_echo_n "checking for $ac_word... " >&6; }
5190if ${ac_cv_path_PKG_CONFIG+:} false; then :
5191  $as_echo_n "(cached) " >&6
5192else
5193  case $PKG_CONFIG in
5194  [\\/]* | ?:[\\/]*)
5195  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5196  ;;
5197  *)
5198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201  IFS=$as_save_IFS
5202  test -z "$as_dir" && as_dir=.
5203    for ac_exec_ext in '' $ac_executable_extensions; do
5204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207    break 2
5208  fi
5209done
5210  done
5211IFS=$as_save_IFS
5212
5213  ;;
5214esac
5215fi
5216PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5217if test -n "$PKG_CONFIG"; then
5218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5219$as_echo "$PKG_CONFIG" >&6; }
5220else
5221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222$as_echo "no" >&6; }
5223fi
5224
5225
5226fi
5227if test -z "$ac_cv_path_PKG_CONFIG"; then
5228  ac_pt_PKG_CONFIG=$PKG_CONFIG
5229  # Extract the first word of "pkg-config", so it can be a program name with args.
5230set dummy pkg-config; ac_word=$2
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232$as_echo_n "checking for $ac_word... " >&6; }
5233if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5234  $as_echo_n "(cached) " >&6
5235else
5236  case $ac_pt_PKG_CONFIG in
5237  [\\/]* | ?:[\\/]*)
5238  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5239  ;;
5240  *)
5241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244  IFS=$as_save_IFS
5245  test -z "$as_dir" && as_dir=.
5246    for ac_exec_ext in '' $ac_executable_extensions; do
5247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250    break 2
5251  fi
5252done
5253  done
5254IFS=$as_save_IFS
5255
5256  ;;
5257esac
5258fi
5259ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5260if test -n "$ac_pt_PKG_CONFIG"; then
5261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5262$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5263else
5264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265$as_echo "no" >&6; }
5266fi
5267
5268  if test "x$ac_pt_PKG_CONFIG" = x; then
5269    PKG_CONFIG=""
5270  else
5271    case $cross_compiling:$ac_tool_warned in
5272yes:)
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5275ac_tool_warned=yes ;;
5276esac
5277    PKG_CONFIG=$ac_pt_PKG_CONFIG
5278  fi
5279else
5280  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5281fi
5282
5283fi
5284if test -n "$PKG_CONFIG"; then
5285	_pkg_min_version=0.9.0
5286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5287$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5288	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5289		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5290$as_echo "yes" >&6; }
5291	else
5292		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293$as_echo "no" >&6; }
5294		PKG_CONFIG=""
5295	fi
5296fi
5297
5298# Require C11 or newer.  Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5299# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5300# is C99.  So handle it ourselves.
5301:
5302C_DIALECT=
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5304$as_echo_n "checking whether C11 is supported by default... " >&6; }
5305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h.  */
5307
5308#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5309# error "C11 support not found"
5310#endif
5311
5312_ACEOF
5313if ac_fn_c_try_compile "$LINENO"; then :
5314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5315$as_echo "yes" >&6; }
5316else
5317
5318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319$as_echo "no" >&6; }
5320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5321$as_echo_n "checking for -std=c11 support... " >&6; }
5322  ac_save_CC="$CC"
5323  CC="$CC -std=c11"
5324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h.  */
5326
5327#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5328# error "C11 support not found"
5329#endif
5330
5331_ACEOF
5332if ac_fn_c_try_compile "$LINENO"; then :
5333
5334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5335$as_echo "yes" >&6; }
5336  CC="$ac_save_CC"
5337  C_DIALECT="-std=c11"
5338
5339else
5340  as_fn_error $? "C11 is required" "$LINENO" 5
5341fi
5342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343fi
5344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345
5346
5347
5348
5349
5350  for ac_header in $ac_header_list
5351do :
5352  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5353ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5354"
5355if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5356  cat >>confdefs.h <<_ACEOF
5357#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5358_ACEOF
5359
5360fi
5361
5362done
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415  for ac_func in $ac_func_list
5416do :
5417  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5418ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5419if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5420  cat >>confdefs.h <<_ACEOF
5421#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5422_ACEOF
5423
5424fi
5425done
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5554$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5555if ${ac_cv_struct_tm+:} false; then :
5556  $as_echo_n "(cached) " >&6
5557else
5558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559/* end confdefs.h.  */
5560#include <sys/types.h>
5561#include <time.h>
5562
5563int
5564main ()
5565{
5566struct tm tm;
5567				     int *p = &tm.tm_sec;
5568				     return !p;
5569  ;
5570  return 0;
5571}
5572_ACEOF
5573if ac_fn_c_try_compile "$LINENO"; then :
5574  ac_cv_struct_tm=time.h
5575else
5576  ac_cv_struct_tm=sys/time.h
5577fi
5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579fi
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5581$as_echo "$ac_cv_struct_tm" >&6; }
5582if test $ac_cv_struct_tm = sys/time.h; then
5583
5584$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5585
5586fi
5587
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5589$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5590if ${ac_cv_type_uid_t+:} false; then :
5591  $as_echo_n "(cached) " >&6
5592else
5593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594/* end confdefs.h.  */
5595#include <sys/types.h>
5596
5597_ACEOF
5598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599  $EGREP "uid_t" >/dev/null 2>&1; then :
5600  ac_cv_type_uid_t=yes
5601else
5602  ac_cv_type_uid_t=no
5603fi
5604rm -f conftest*
5605
5606fi
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5608$as_echo "$ac_cv_type_uid_t" >&6; }
5609if test $ac_cv_type_uid_t = no; then
5610
5611$as_echo "#define uid_t int" >>confdefs.h
5612
5613
5614$as_echo "#define gid_t int" >>confdefs.h
5615
5616fi
5617
5618case `pwd` in
5619  *\ * | *\	*)
5620    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5621$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5622esac
5623
5624
5625
5626macro_version='2.2.7a'
5627macro_revision='1.3134'
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641ltmain="$ac_aux_dir/ltmain.sh"
5642
5643# Backslashify metacharacters that are still active within
5644# double-quoted strings.
5645sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5646
5647# Same as above, but do not quote variable references.
5648double_quote_subst='s/\(["`\\]\)/\\\1/g'
5649
5650# Sed substitution to delay expansion of an escaped shell variable in a
5651# double_quote_subst'ed string.
5652delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5653
5654# Sed substitution to delay expansion of an escaped single quote.
5655delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5656
5657# Sed substitution to avoid accidental globbing in evaled expressions
5658no_glob_subst='s/\*/\\\*/g'
5659
5660ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5661ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5662ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5663
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5665$as_echo_n "checking how to print strings... " >&6; }
5666# Test print first, because it will be a builtin if present.
5667if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5668   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5669  ECHO='print -r --'
5670elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5671  ECHO='printf %s\n'
5672else
5673  # Use this function as a fallback that always works.
5674  func_fallback_echo ()
5675  {
5676    eval 'cat <<_LTECHO_EOF
5677$1
5678_LTECHO_EOF'
5679  }
5680  ECHO='func_fallback_echo'
5681fi
5682
5683# func_echo_all arg...
5684# Invoke $ECHO with all args, space-separated.
5685func_echo_all ()
5686{
5687    $ECHO ""
5688}
5689
5690case "$ECHO" in
5691  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5692$as_echo "printf" >&6; } ;;
5693  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5694$as_echo "print -r" >&6; } ;;
5695  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5696$as_echo "cat" >&6; } ;;
5697esac
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5713$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5714if ${ac_cv_path_SED+:} false; then :
5715  $as_echo_n "(cached) " >&6
5716else
5717            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5718     for ac_i in 1 2 3 4 5 6 7; do
5719       ac_script="$ac_script$as_nl$ac_script"
5720     done
5721     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5722     { ac_script=; unset ac_script;}
5723     if test -z "$SED"; then
5724  ac_path_SED_found=false
5725  # Loop through the user's path and test for each of PROGNAME-LIST
5726  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727for as_dir in $PATH
5728do
5729  IFS=$as_save_IFS
5730  test -z "$as_dir" && as_dir=.
5731    for ac_prog in sed gsed; do
5732    for ac_exec_ext in '' $ac_executable_extensions; do
5733      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5734      as_fn_executable_p "$ac_path_SED" || continue
5735# Check for GNU ac_path_SED and select it if it is found.
5736  # Check for GNU $ac_path_SED
5737case `"$ac_path_SED" --version 2>&1` in
5738*GNU*)
5739  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5740*)
5741  ac_count=0
5742  $as_echo_n 0123456789 >"conftest.in"
5743  while :
5744  do
5745    cat "conftest.in" "conftest.in" >"conftest.tmp"
5746    mv "conftest.tmp" "conftest.in"
5747    cp "conftest.in" "conftest.nl"
5748    $as_echo '' >> "conftest.nl"
5749    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5750    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5751    as_fn_arith $ac_count + 1 && ac_count=$as_val
5752    if test $ac_count -gt ${ac_path_SED_max-0}; then
5753      # Best one so far, save it but keep looking for a better one
5754      ac_cv_path_SED="$ac_path_SED"
5755      ac_path_SED_max=$ac_count
5756    fi
5757    # 10*(2^10) chars as input seems more than enough
5758    test $ac_count -gt 10 && break
5759  done
5760  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5761esac
5762
5763      $ac_path_SED_found && break 3
5764    done
5765  done
5766  done
5767IFS=$as_save_IFS
5768  if test -z "$ac_cv_path_SED"; then
5769    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5770  fi
5771else
5772  ac_cv_path_SED=$SED
5773fi
5774
5775fi
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5777$as_echo "$ac_cv_path_SED" >&6; }
5778 SED="$ac_cv_path_SED"
5779  rm -f conftest.sed
5780
5781test -z "$SED" && SED=sed
5782Xsed="$SED -e 1s/^X//"
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5795$as_echo_n "checking for fgrep... " >&6; }
5796if ${ac_cv_path_FGREP+:} false; then :
5797  $as_echo_n "(cached) " >&6
5798else
5799  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5800   then ac_cv_path_FGREP="$GREP -F"
5801   else
5802     if test -z "$FGREP"; then
5803  ac_path_FGREP_found=false
5804  # Loop through the user's path and test for each of PROGNAME-LIST
5805  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5807do
5808  IFS=$as_save_IFS
5809  test -z "$as_dir" && as_dir=.
5810    for ac_prog in fgrep; do
5811    for ac_exec_ext in '' $ac_executable_extensions; do
5812      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5813      as_fn_executable_p "$ac_path_FGREP" || continue
5814# Check for GNU ac_path_FGREP and select it if it is found.
5815  # Check for GNU $ac_path_FGREP
5816case `"$ac_path_FGREP" --version 2>&1` in
5817*GNU*)
5818  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5819*)
5820  ac_count=0
5821  $as_echo_n 0123456789 >"conftest.in"
5822  while :
5823  do
5824    cat "conftest.in" "conftest.in" >"conftest.tmp"
5825    mv "conftest.tmp" "conftest.in"
5826    cp "conftest.in" "conftest.nl"
5827    $as_echo 'FGREP' >> "conftest.nl"
5828    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5829    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5830    as_fn_arith $ac_count + 1 && ac_count=$as_val
5831    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5832      # Best one so far, save it but keep looking for a better one
5833      ac_cv_path_FGREP="$ac_path_FGREP"
5834      ac_path_FGREP_max=$ac_count
5835    fi
5836    # 10*(2^10) chars as input seems more than enough
5837    test $ac_count -gt 10 && break
5838  done
5839  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5840esac
5841
5842      $ac_path_FGREP_found && break 3
5843    done
5844  done
5845  done
5846IFS=$as_save_IFS
5847  if test -z "$ac_cv_path_FGREP"; then
5848    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5849  fi
5850else
5851  ac_cv_path_FGREP=$FGREP
5852fi
5853
5854   fi
5855fi
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5857$as_echo "$ac_cv_path_FGREP" >&6; }
5858 FGREP="$ac_cv_path_FGREP"
5859
5860
5861test -z "$GREP" && GREP=grep
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881# Check whether --with-gnu-ld was given.
5882if test "${with_gnu_ld+set}" = set; then :
5883  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5884else
5885  with_gnu_ld=no
5886fi
5887
5888ac_prog=ld
5889if test "$GCC" = yes; then
5890  # Check if gcc -print-prog-name=ld gives a path.
5891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5892$as_echo_n "checking for ld used by $CC... " >&6; }
5893  case $host in
5894  *-*-mingw*)
5895    # gcc leaves a trailing carriage return which upsets mingw
5896    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5897  *)
5898    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5899  esac
5900  case $ac_prog in
5901    # Accept absolute paths.
5902    [\\/]* | ?:[\\/]*)
5903      re_direlt='/[^/][^/]*/\.\./'
5904      # Canonicalize the pathname of ld
5905      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5906      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5907	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5908      done
5909      test -z "$LD" && LD="$ac_prog"
5910      ;;
5911  "")
5912    # If it fails, then pretend we aren't using GCC.
5913    ac_prog=ld
5914    ;;
5915  *)
5916    # If it is relative, then search for the first ld in PATH.
5917    with_gnu_ld=unknown
5918    ;;
5919  esac
5920elif test "$with_gnu_ld" = yes; then
5921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5922$as_echo_n "checking for GNU ld... " >&6; }
5923else
5924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5925$as_echo_n "checking for non-GNU ld... " >&6; }
5926fi
5927if ${lt_cv_path_LD+:} false; then :
5928  $as_echo_n "(cached) " >&6
5929else
5930  if test -z "$LD"; then
5931  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5932  for ac_dir in $PATH; do
5933    IFS="$lt_save_ifs"
5934    test -z "$ac_dir" && ac_dir=.
5935    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5936      lt_cv_path_LD="$ac_dir/$ac_prog"
5937      # Check to see if the program is GNU ld.  I'd rather use --version,
5938      # but apparently some variants of GNU ld only accept -v.
5939      # Break only if it was the GNU/non-GNU ld that we prefer.
5940      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5941      *GNU* | *'with BFD'*)
5942	test "$with_gnu_ld" != no && break
5943	;;
5944      *)
5945	test "$with_gnu_ld" != yes && break
5946	;;
5947      esac
5948    fi
5949  done
5950  IFS="$lt_save_ifs"
5951else
5952  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5953fi
5954fi
5955
5956LD="$lt_cv_path_LD"
5957if test -n "$LD"; then
5958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5959$as_echo "$LD" >&6; }
5960else
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962$as_echo "no" >&6; }
5963fi
5964test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5966$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5967if ${lt_cv_prog_gnu_ld+:} false; then :
5968  $as_echo_n "(cached) " >&6
5969else
5970  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5971case `$LD -v 2>&1 </dev/null` in
5972*GNU* | *'with BFD'*)
5973  lt_cv_prog_gnu_ld=yes
5974  ;;
5975*)
5976  lt_cv_prog_gnu_ld=no
5977  ;;
5978esac
5979fi
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5981$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5982with_gnu_ld=$lt_cv_prog_gnu_ld
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5993$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5994if ${lt_cv_path_NM+:} false; then :
5995  $as_echo_n "(cached) " >&6
5996else
5997  if test -n "$NM"; then
5998   # Let the user override the nm to test.
5999   lt_nm_to_check="$NM"
6000 else
6001   lt_nm_to_check="${ac_tool_prefix}nm"
6002   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6003     lt_nm_to_check="$lt_nm_to_check nm"
6004   fi
6005 fi
6006 for lt_tmp_nm in "$lt_nm_to_check"; do
6007   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6008   for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6009     IFS="$lt_save_ifs"
6010     test -z "$ac_dir" && ac_dir=.
6011     # Strip out any user-provided options from the nm to test twice,
6012     # the first time to test to see if nm (rather than its options) has
6013     # an explicit path, the second time to yield a file which can be
6014     # nm'ed itself.
6015     tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6016     case "$tmp_nm_path" in
6017     */*|*\\*) tmp_nm="$lt_tmp_nm";;
6018     *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6019     esac
6020     tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6021     if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6022       # Check to see if the nm accepts a BSD-compat flag.
6023       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6024       #   nm: unknown option "B" ignored
6025       case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6026       *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6027	 break
6028	 ;;
6029       *)
6030	 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6031	 *$tmp_nm*)
6032	   lt_cv_path_NM="$tmp_nm -p"
6033	   break
6034	   ;;
6035	 *)
6036	   lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6037	   continue # so that we can try to find one that supports BSD flags
6038	   ;;
6039	 esac
6040	 ;;
6041       esac
6042     fi
6043   done
6044   IFS="$lt_save_ifs"
6045 done
6046 : ${lt_cv_path_NM=no}
6047fi
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6049$as_echo "$lt_cv_path_NM" >&6; }
6050if test "$lt_cv_path_NM" != "no"; then
6051  NM="$lt_cv_path_NM"
6052else
6053  # Didn't find any BSD compatible name lister, look for dumpbin.
6054  if test -n "$DUMPBIN"; then :
6055    # Let the user override the test.
6056  else
6057    if test -n "$ac_tool_prefix"; then
6058  for ac_prog in dumpbin "link -dump"
6059  do
6060    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6061set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063$as_echo_n "checking for $ac_word... " >&6; }
6064if ${ac_cv_prog_DUMPBIN+:} false; then :
6065  $as_echo_n "(cached) " >&6
6066else
6067  if test -n "$DUMPBIN"; then
6068  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6069else
6070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071for as_dir in $PATH
6072do
6073  IFS=$as_save_IFS
6074  test -z "$as_dir" && as_dir=.
6075    for ac_exec_ext in '' $ac_executable_extensions; do
6076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6077    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079    break 2
6080  fi
6081done
6082  done
6083IFS=$as_save_IFS
6084
6085fi
6086fi
6087DUMPBIN=$ac_cv_prog_DUMPBIN
6088if test -n "$DUMPBIN"; then
6089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6090$as_echo "$DUMPBIN" >&6; }
6091else
6092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093$as_echo "no" >&6; }
6094fi
6095
6096
6097    test -n "$DUMPBIN" && break
6098  done
6099fi
6100if test -z "$DUMPBIN"; then
6101  ac_ct_DUMPBIN=$DUMPBIN
6102  for ac_prog in dumpbin "link -dump"
6103do
6104  # Extract the first word of "$ac_prog", so it can be a program name with args.
6105set dummy $ac_prog; ac_word=$2
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107$as_echo_n "checking for $ac_word... " >&6; }
6108if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6109  $as_echo_n "(cached) " >&6
6110else
6111  if test -n "$ac_ct_DUMPBIN"; then
6112  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6113else
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117  IFS=$as_save_IFS
6118  test -z "$as_dir" && as_dir=.
6119    for ac_exec_ext in '' $ac_executable_extensions; do
6120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123    break 2
6124  fi
6125done
6126  done
6127IFS=$as_save_IFS
6128
6129fi
6130fi
6131ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6132if test -n "$ac_ct_DUMPBIN"; then
6133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6134$as_echo "$ac_ct_DUMPBIN" >&6; }
6135else
6136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137$as_echo "no" >&6; }
6138fi
6139
6140
6141  test -n "$ac_ct_DUMPBIN" && break
6142done
6143
6144  if test "x$ac_ct_DUMPBIN" = x; then
6145    DUMPBIN=":"
6146  else
6147    case $cross_compiling:$ac_tool_warned in
6148yes:)
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151ac_tool_warned=yes ;;
6152esac
6153    DUMPBIN=$ac_ct_DUMPBIN
6154  fi
6155fi
6156
6157    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6158    *COFF*)
6159      DUMPBIN="$DUMPBIN -symbols"
6160      ;;
6161    *)
6162      DUMPBIN=:
6163      ;;
6164    esac
6165  fi
6166
6167  if test "$DUMPBIN" != ":"; then
6168    NM="$DUMPBIN"
6169  fi
6170fi
6171test -z "$NM" && NM=nm
6172
6173
6174
6175
6176
6177
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6179$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6180if ${lt_cv_nm_interface+:} false; then :
6181  $as_echo_n "(cached) " >&6
6182else
6183  lt_cv_nm_interface="BSD nm"
6184  echo "int some_variable = 0;" > conftest.$ac_ext
6185  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6186  (eval "$ac_compile" 2>conftest.err)
6187  cat conftest.err >&5
6188  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6189  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6190  cat conftest.err >&5
6191  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6192  cat conftest.out >&5
6193  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6194    lt_cv_nm_interface="MS dumpbin"
6195  fi
6196  rm -f conftest*
6197fi
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6199$as_echo "$lt_cv_nm_interface" >&6; }
6200
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6202$as_echo_n "checking whether ln -s works... " >&6; }
6203LN_S=$as_ln_s
6204if test "$LN_S" = "ln -s"; then
6205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6206$as_echo "yes" >&6; }
6207else
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6209$as_echo "no, using $LN_S" >&6; }
6210fi
6211
6212# find the maximum length of command line arguments
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6214$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6215if ${lt_cv_sys_max_cmd_len+:} false; then :
6216  $as_echo_n "(cached) " >&6
6217else
6218    i=0
6219  teststring="ABCD"
6220
6221  case $build_os in
6222  msdosdjgpp*)
6223    # On DJGPP, this test can blow up pretty badly due to problems in libc
6224    # (any single argument exceeding 2000 bytes causes a buffer overrun
6225    # during glob expansion).  Even if it were fixed, the result of this
6226    # check would be larger than it should be.
6227    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6228    ;;
6229
6230  gnu*)
6231    # Under GNU Hurd, this test is not required because there is
6232    # no limit to the length of command line arguments.
6233    # Libtool will interpret -1 as no limit whatsoever
6234    lt_cv_sys_max_cmd_len=-1;
6235    ;;
6236
6237  cygwin* | mingw* | cegcc*)
6238    # On Win9x/ME, this test blows up -- it succeeds, but takes
6239    # about 5 minutes as the teststring grows exponentially.
6240    # Worse, since 9x/ME are not pre-emptively multitasking,
6241    # you end up with a "frozen" computer, even though with patience
6242    # the test eventually succeeds (with a max line length of 256k).
6243    # Instead, let's just punt: use the minimum linelength reported by
6244    # all of the supported platforms: 8192 (on NT/2K/XP).
6245    lt_cv_sys_max_cmd_len=8192;
6246    ;;
6247
6248  mint*)
6249    # On MiNT this can take a long time and run out of memory.
6250    lt_cv_sys_max_cmd_len=8192;
6251    ;;
6252
6253  amigaos*)
6254    # On AmigaOS with pdksh, this test takes hours, literally.
6255    # So we just punt and use a minimum line length of 8192.
6256    lt_cv_sys_max_cmd_len=8192;
6257    ;;
6258
6259  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6260    # This has been around since 386BSD, at least.  Likely further.
6261    if test -x /sbin/sysctl; then
6262      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6263    elif test -x /usr/sbin/sysctl; then
6264      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6265    else
6266      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6267    fi
6268    # And add a safety zone
6269    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6270    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6271    ;;
6272
6273  interix*)
6274    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6275    lt_cv_sys_max_cmd_len=196608
6276    ;;
6277
6278  osf*)
6279    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6280    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6281    # nice to cause kernel panics so lets avoid the loop below.
6282    # First set a reasonable default.
6283    lt_cv_sys_max_cmd_len=16384
6284    #
6285    if test -x /sbin/sysconfig; then
6286      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6287        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6288      esac
6289    fi
6290    ;;
6291  sco3.2v5*)
6292    lt_cv_sys_max_cmd_len=102400
6293    ;;
6294  sysv5* | sco5v6* | sysv4.2uw2*)
6295    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6296    if test -n "$kargmax"; then
6297      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6298    else
6299      lt_cv_sys_max_cmd_len=32768
6300    fi
6301    ;;
6302  *)
6303    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6304    if test -n "$lt_cv_sys_max_cmd_len"; then
6305      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6306      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6307    else
6308      # Make teststring a little bigger before we do anything with it.
6309      # a 1K string should be a reasonable start.
6310      for i in 1 2 3 4 5 6 7 8 ; do
6311        teststring=$teststring$teststring
6312      done
6313      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6314      # If test is not a shell built-in, we'll probably end up computing a
6315      # maximum length that is only half of the actual maximum length, but
6316      # we can't tell.
6317      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6318	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6319	      test $i != 17 # 1/2 MB should be enough
6320      do
6321        i=`expr $i + 1`
6322        teststring=$teststring$teststring
6323      done
6324      # Only check the string length outside the loop.
6325      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6326      teststring=
6327      # Add a significant safety factor because C++ compilers can tack on
6328      # massive amounts of additional arguments before passing them to the
6329      # linker.  It appears as though 1/2 is a usable value.
6330      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6331    fi
6332    ;;
6333  esac
6334
6335fi
6336
6337if test -n $lt_cv_sys_max_cmd_len ; then
6338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6339$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6340else
6341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6342$as_echo "none" >&6; }
6343fi
6344max_cmd_len=$lt_cv_sys_max_cmd_len
6345
6346
6347
6348
6349
6350
6351: ${CP="cp -f"}
6352: ${MV="mv -f"}
6353: ${RM="rm -f"}
6354
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6356$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6357# Try some XSI features
6358xsi_shell=no
6359( _lt_dummy="a/b/c"
6360  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6361      = c,a/b,, \
6362    && eval 'test $(( 1 + 1 )) -eq 2 \
6363    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6364  && xsi_shell=yes
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6366$as_echo "$xsi_shell" >&6; }
6367
6368
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6370$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6371lt_shell_append=no
6372( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6373    >/dev/null 2>&1 \
6374  && lt_shell_append=yes
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6376$as_echo "$lt_shell_append" >&6; }
6377
6378
6379if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6380  lt_unset=unset
6381else
6382  lt_unset=false
6383fi
6384
6385
6386
6387
6388
6389# test EBCDIC or ASCII
6390case `echo X|tr X '\101'` in
6391 A) # ASCII based system
6392    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6393  lt_SP2NL='tr \040 \012'
6394  lt_NL2SP='tr \015\012 \040\040'
6395  ;;
6396 *) # EBCDIC based system
6397  lt_SP2NL='tr \100 \n'
6398  lt_NL2SP='tr \r\n \100\100'
6399  ;;
6400esac
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6411$as_echo_n "checking for $LD option to reload object files... " >&6; }
6412if ${lt_cv_ld_reload_flag+:} false; then :
6413  $as_echo_n "(cached) " >&6
6414else
6415  lt_cv_ld_reload_flag='-r'
6416fi
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6418$as_echo "$lt_cv_ld_reload_flag" >&6; }
6419reload_flag=$lt_cv_ld_reload_flag
6420case $reload_flag in
6421"" | " "*) ;;
6422*) reload_flag=" $reload_flag" ;;
6423esac
6424reload_cmds='$LD$reload_flag -o $output$reload_objs'
6425case $host_os in
6426  darwin*)
6427    if test "$GCC" = yes; then
6428      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6429    else
6430      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6431    fi
6432    ;;
6433esac
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443if test -n "$ac_tool_prefix"; then
6444  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6445set dummy ${ac_tool_prefix}objdump; ac_word=$2
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447$as_echo_n "checking for $ac_word... " >&6; }
6448if ${ac_cv_prog_OBJDUMP+:} false; then :
6449  $as_echo_n "(cached) " >&6
6450else
6451  if test -n "$OBJDUMP"; then
6452  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457  IFS=$as_save_IFS
6458  test -z "$as_dir" && as_dir=.
6459    for ac_exec_ext in '' $ac_executable_extensions; do
6460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463    break 2
6464  fi
6465done
6466  done
6467IFS=$as_save_IFS
6468
6469fi
6470fi
6471OBJDUMP=$ac_cv_prog_OBJDUMP
6472if test -n "$OBJDUMP"; then
6473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6474$as_echo "$OBJDUMP" >&6; }
6475else
6476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477$as_echo "no" >&6; }
6478fi
6479
6480
6481fi
6482if test -z "$ac_cv_prog_OBJDUMP"; then
6483  ac_ct_OBJDUMP=$OBJDUMP
6484  # Extract the first word of "objdump", so it can be a program name with args.
6485set dummy objdump; ac_word=$2
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
6488if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6489  $as_echo_n "(cached) " >&6
6490else
6491  if test -n "$ac_ct_OBJDUMP"; then
6492  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497  IFS=$as_save_IFS
6498  test -z "$as_dir" && as_dir=.
6499    for ac_exec_ext in '' $ac_executable_extensions; do
6500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503    break 2
6504  fi
6505done
6506  done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6512if test -n "$ac_ct_OBJDUMP"; then
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6514$as_echo "$ac_ct_OBJDUMP" >&6; }
6515else
6516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520  if test "x$ac_ct_OBJDUMP" = x; then
6521    OBJDUMP="false"
6522  else
6523    case $cross_compiling:$ac_tool_warned in
6524yes:)
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527ac_tool_warned=yes ;;
6528esac
6529    OBJDUMP=$ac_ct_OBJDUMP
6530  fi
6531else
6532  OBJDUMP="$ac_cv_prog_OBJDUMP"
6533fi
6534
6535test -z "$OBJDUMP" && OBJDUMP=objdump
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6546$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6547if ${lt_cv_deplibs_check_method+:} false; then :
6548  $as_echo_n "(cached) " >&6
6549else
6550  lt_cv_file_magic_cmd='$MAGIC_CMD'
6551lt_cv_file_magic_test_file=
6552lt_cv_deplibs_check_method='unknown'
6553# Need to set the preceding variable on all platforms that support
6554# interlibrary dependencies.
6555# 'none' -- dependencies not supported.
6556# `unknown' -- same as none, but documents that we really don't know.
6557# 'pass_all' -- all dependencies passed with no checks.
6558# 'test_compile' -- check by making test program.
6559# 'file_magic [[regex]]' -- check by looking for files in library path
6560# which responds to the $file_magic_cmd with a given extended regex.
6561# If you have `file' or equivalent on your system and you're not sure
6562# whether `pass_all' will *always* work, you probably want this one.
6563
6564case $host_os in
6565aix[4-9]*)
6566  lt_cv_deplibs_check_method=pass_all
6567  ;;
6568
6569beos*)
6570  lt_cv_deplibs_check_method=pass_all
6571  ;;
6572
6573bsdi[45]*)
6574  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6575  lt_cv_file_magic_cmd='/usr/bin/file -L'
6576  lt_cv_file_magic_test_file=/shlib/libc.so
6577  ;;
6578
6579cygwin*)
6580  # func_win32_libid is a shell function defined in ltmain.sh
6581  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6582  lt_cv_file_magic_cmd='func_win32_libid'
6583  ;;
6584
6585mingw* | pw32*)
6586  # Base MSYS/MinGW do not provide the 'file' command needed by
6587  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6588  # unless we find 'file', for example because we are cross-compiling.
6589  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6590  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6591    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6592    lt_cv_file_magic_cmd='func_win32_libid'
6593  else
6594    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6595    lt_cv_file_magic_cmd='$OBJDUMP -f'
6596  fi
6597  ;;
6598
6599cegcc*)
6600  # use the weaker test based on 'objdump'. See mingw*.
6601  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6602  lt_cv_file_magic_cmd='$OBJDUMP -f'
6603  ;;
6604
6605darwin* | rhapsody*)
6606  lt_cv_deplibs_check_method=pass_all
6607  ;;
6608
6609freebsd* | dragonfly*)
6610  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6611    case $host_cpu in
6612    i*86 )
6613      # Not sure whether the presence of OpenBSD here was a mistake.
6614      # Let's accept both of them until this is cleared up.
6615      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6616      lt_cv_file_magic_cmd=/usr/bin/file
6617      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6618      ;;
6619    esac
6620  else
6621    lt_cv_deplibs_check_method=pass_all
6622  fi
6623  ;;
6624
6625gnu*)
6626  lt_cv_deplibs_check_method=pass_all
6627  ;;
6628
6629haiku*)
6630  lt_cv_deplibs_check_method=pass_all
6631  ;;
6632
6633hpux10.20* | hpux11*)
6634  lt_cv_file_magic_cmd=/usr/bin/file
6635  case $host_cpu in
6636  ia64*)
6637    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6638    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6639    ;;
6640  hppa*64*)
6641    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]'
6642    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6643    ;;
6644  *)
6645    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6646    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6647    ;;
6648  esac
6649  ;;
6650
6651interix[3-9]*)
6652  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6653  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6654  ;;
6655
6656irix5* | irix6* | nonstopux*)
6657  case $LD in
6658  *-32|*"-32 ") libmagic=32-bit;;
6659  *-n32|*"-n32 ") libmagic=N32;;
6660  *-64|*"-64 ") libmagic=64-bit;;
6661  *) libmagic=never-match;;
6662  esac
6663  lt_cv_deplibs_check_method=pass_all
6664  ;;
6665
6666# This must be Linux ELF.
6667linux* | k*bsd*-gnu | kopensolaris*-gnu)
6668  lt_cv_deplibs_check_method=pass_all
6669  ;;
6670
6671netbsd*)
6672  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6673    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6674  else
6675    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6676  fi
6677  ;;
6678
6679newos6*)
6680  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6681  lt_cv_file_magic_cmd=/usr/bin/file
6682  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6683  ;;
6684
6685*nto* | *qnx*)
6686  lt_cv_deplibs_check_method=pass_all
6687  ;;
6688
6689openbsd*)
6690  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6691    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6692  else
6693    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6694  fi
6695  ;;
6696
6697osf3* | osf4* | osf5*)
6698  lt_cv_deplibs_check_method=pass_all
6699  ;;
6700
6701rdos*)
6702  lt_cv_deplibs_check_method=pass_all
6703  ;;
6704
6705solaris*)
6706  lt_cv_deplibs_check_method=pass_all
6707  ;;
6708
6709sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6710  lt_cv_deplibs_check_method=pass_all
6711  ;;
6712
6713sysv4 | sysv4.3*)
6714  case $host_vendor in
6715  motorola)
6716    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]'
6717    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6718    ;;
6719  ncr)
6720    lt_cv_deplibs_check_method=pass_all
6721    ;;
6722  sequent)
6723    lt_cv_file_magic_cmd='/bin/file'
6724    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6725    ;;
6726  sni)
6727    lt_cv_file_magic_cmd='/bin/file'
6728    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6729    lt_cv_file_magic_test_file=/lib/libc.so
6730    ;;
6731  siemens)
6732    lt_cv_deplibs_check_method=pass_all
6733    ;;
6734  pc)
6735    lt_cv_deplibs_check_method=pass_all
6736    ;;
6737  esac
6738  ;;
6739
6740tpf*)
6741  lt_cv_deplibs_check_method=pass_all
6742  ;;
6743esac
6744
6745fi
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6747$as_echo "$lt_cv_deplibs_check_method" >&6; }
6748file_magic_cmd=$lt_cv_file_magic_cmd
6749deplibs_check_method=$lt_cv_deplibs_check_method
6750test -z "$deplibs_check_method" && deplibs_check_method=unknown
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763plugin_option=
6764plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6765for plugin in $plugin_names; do
6766  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6767  if test x$plugin_so = x$plugin; then
6768    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6769  fi
6770  if test x$plugin_so != x$plugin; then
6771    plugin_option="--plugin $plugin_so"
6772    break
6773  fi
6774done
6775
6776if test -n "$ac_tool_prefix"; then
6777  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6778set dummy ${ac_tool_prefix}ar; ac_word=$2
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780$as_echo_n "checking for $ac_word... " >&6; }
6781if ${ac_cv_prog_AR+:} false; then :
6782  $as_echo_n "(cached) " >&6
6783else
6784  if test -n "$AR"; then
6785  ac_cv_prog_AR="$AR" # Let the user override the test.
6786else
6787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788for as_dir in $PATH
6789do
6790  IFS=$as_save_IFS
6791  test -z "$as_dir" && as_dir=.
6792    for ac_exec_ext in '' $ac_executable_extensions; do
6793  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6794    ac_cv_prog_AR="${ac_tool_prefix}ar"
6795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796    break 2
6797  fi
6798done
6799  done
6800IFS=$as_save_IFS
6801
6802fi
6803fi
6804AR=$ac_cv_prog_AR
6805if test -n "$AR"; then
6806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6807$as_echo "$AR" >&6; }
6808else
6809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810$as_echo "no" >&6; }
6811fi
6812
6813
6814fi
6815if test -z "$ac_cv_prog_AR"; then
6816  ac_ct_AR=$AR
6817  # Extract the first word of "ar", so it can be a program name with args.
6818set dummy ar; ac_word=$2
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820$as_echo_n "checking for $ac_word... " >&6; }
6821if ${ac_cv_prog_ac_ct_AR+:} false; then :
6822  $as_echo_n "(cached) " >&6
6823else
6824  if test -n "$ac_ct_AR"; then
6825  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6826else
6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830  IFS=$as_save_IFS
6831  test -z "$as_dir" && as_dir=.
6832    for ac_exec_ext in '' $ac_executable_extensions; do
6833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6834    ac_cv_prog_ac_ct_AR="ar"
6835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836    break 2
6837  fi
6838done
6839  done
6840IFS=$as_save_IFS
6841
6842fi
6843fi
6844ac_ct_AR=$ac_cv_prog_ac_ct_AR
6845if test -n "$ac_ct_AR"; then
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6847$as_echo "$ac_ct_AR" >&6; }
6848else
6849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850$as_echo "no" >&6; }
6851fi
6852
6853  if test "x$ac_ct_AR" = x; then
6854    AR="false"
6855  else
6856    case $cross_compiling:$ac_tool_warned in
6857yes:)
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6860ac_tool_warned=yes ;;
6861esac
6862    AR=$ac_ct_AR
6863  fi
6864else
6865  AR="$ac_cv_prog_AR"
6866fi
6867
6868test -z "$AR" && AR=ar
6869if test -n "$plugin_option"; then
6870  if $AR --help 2>&1 | grep -q "\--plugin"; then
6871    touch conftest.c
6872    $AR $plugin_option rc conftest.a conftest.c
6873    if test "$?" != 0; then
6874      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6875$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6876    else
6877      AR="$AR $plugin_option"
6878    fi
6879    rm -f conftest.*
6880  fi
6881fi
6882test -z "$AR_FLAGS" && AR_FLAGS=cru
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894if test -n "$ac_tool_prefix"; then
6895  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6896set dummy ${ac_tool_prefix}strip; ac_word=$2
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898$as_echo_n "checking for $ac_word... " >&6; }
6899if ${ac_cv_prog_STRIP+:} false; then :
6900  $as_echo_n "(cached) " >&6
6901else
6902  if test -n "$STRIP"; then
6903  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6904else
6905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906for as_dir in $PATH
6907do
6908  IFS=$as_save_IFS
6909  test -z "$as_dir" && as_dir=.
6910    for ac_exec_ext in '' $ac_executable_extensions; do
6911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914    break 2
6915  fi
6916done
6917  done
6918IFS=$as_save_IFS
6919
6920fi
6921fi
6922STRIP=$ac_cv_prog_STRIP
6923if test -n "$STRIP"; then
6924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6925$as_echo "$STRIP" >&6; }
6926else
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928$as_echo "no" >&6; }
6929fi
6930
6931
6932fi
6933if test -z "$ac_cv_prog_STRIP"; then
6934  ac_ct_STRIP=$STRIP
6935  # Extract the first word of "strip", so it can be a program name with args.
6936set dummy strip; ac_word=$2
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938$as_echo_n "checking for $ac_word... " >&6; }
6939if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6940  $as_echo_n "(cached) " >&6
6941else
6942  if test -n "$ac_ct_STRIP"; then
6943  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6944else
6945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948  IFS=$as_save_IFS
6949  test -z "$as_dir" && as_dir=.
6950    for ac_exec_ext in '' $ac_executable_extensions; do
6951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6952    ac_cv_prog_ac_ct_STRIP="strip"
6953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954    break 2
6955  fi
6956done
6957  done
6958IFS=$as_save_IFS
6959
6960fi
6961fi
6962ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6963if test -n "$ac_ct_STRIP"; then
6964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6965$as_echo "$ac_ct_STRIP" >&6; }
6966else
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968$as_echo "no" >&6; }
6969fi
6970
6971  if test "x$ac_ct_STRIP" = x; then
6972    STRIP=":"
6973  else
6974    case $cross_compiling:$ac_tool_warned in
6975yes:)
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6978ac_tool_warned=yes ;;
6979esac
6980    STRIP=$ac_ct_STRIP
6981  fi
6982else
6983  STRIP="$ac_cv_prog_STRIP"
6984fi
6985
6986test -z "$STRIP" && STRIP=:
6987
6988
6989
6990
6991
6992
6993if test -n "$ac_tool_prefix"; then
6994  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6995set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997$as_echo_n "checking for $ac_word... " >&6; }
6998if ${ac_cv_prog_RANLIB+:} false; then :
6999  $as_echo_n "(cached) " >&6
7000else
7001  if test -n "$RANLIB"; then
7002  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7003else
7004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005for as_dir in $PATH
7006do
7007  IFS=$as_save_IFS
7008  test -z "$as_dir" && as_dir=.
7009    for ac_exec_ext in '' $ac_executable_extensions; do
7010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013    break 2
7014  fi
7015done
7016  done
7017IFS=$as_save_IFS
7018
7019fi
7020fi
7021RANLIB=$ac_cv_prog_RANLIB
7022if test -n "$RANLIB"; then
7023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7024$as_echo "$RANLIB" >&6; }
7025else
7026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027$as_echo "no" >&6; }
7028fi
7029
7030
7031fi
7032if test -z "$ac_cv_prog_RANLIB"; then
7033  ac_ct_RANLIB=$RANLIB
7034  # Extract the first word of "ranlib", so it can be a program name with args.
7035set dummy ranlib; ac_word=$2
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037$as_echo_n "checking for $ac_word... " >&6; }
7038if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7039  $as_echo_n "(cached) " >&6
7040else
7041  if test -n "$ac_ct_RANLIB"; then
7042  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7043else
7044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045for as_dir in $PATH
7046do
7047  IFS=$as_save_IFS
7048  test -z "$as_dir" && as_dir=.
7049    for ac_exec_ext in '' $ac_executable_extensions; do
7050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7051    ac_cv_prog_ac_ct_RANLIB="ranlib"
7052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053    break 2
7054  fi
7055done
7056  done
7057IFS=$as_save_IFS
7058
7059fi
7060fi
7061ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7062if test -n "$ac_ct_RANLIB"; then
7063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7064$as_echo "$ac_ct_RANLIB" >&6; }
7065else
7066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067$as_echo "no" >&6; }
7068fi
7069
7070  if test "x$ac_ct_RANLIB" = x; then
7071    RANLIB=":"
7072  else
7073    case $cross_compiling:$ac_tool_warned in
7074yes:)
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077ac_tool_warned=yes ;;
7078esac
7079    RANLIB=$ac_ct_RANLIB
7080  fi
7081else
7082  RANLIB="$ac_cv_prog_RANLIB"
7083fi
7084
7085test -z "$RANLIB" && RANLIB=:
7086if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7087  if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7088    RANLIB="$RANLIB $plugin_option"
7089  fi
7090fi
7091
7092
7093
7094
7095
7096
7097# Determine commands to create old-style static archives.
7098old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7099old_postinstall_cmds='chmod 644 $oldlib'
7100old_postuninstall_cmds=
7101
7102if test -n "$RANLIB"; then
7103  case $host_os in
7104  openbsd*)
7105    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7106    ;;
7107  *)
7108    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7109    ;;
7110  esac
7111  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7112fi
7113
7114case $host_os in
7115  darwin*)
7116    lock_old_archive_extraction=yes ;;
7117  *)
7118    lock_old_archive_extraction=no ;;
7119esac
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141for ac_prog in gawk mawk nawk awk
7142do
7143  # Extract the first word of "$ac_prog", so it can be a program name with args.
7144set dummy $ac_prog; ac_word=$2
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146$as_echo_n "checking for $ac_word... " >&6; }
7147if ${ac_cv_prog_AWK+:} false; then :
7148  $as_echo_n "(cached) " >&6
7149else
7150  if test -n "$AWK"; then
7151  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7152else
7153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154for as_dir in $PATH
7155do
7156  IFS=$as_save_IFS
7157  test -z "$as_dir" && as_dir=.
7158    for ac_exec_ext in '' $ac_executable_extensions; do
7159  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160    ac_cv_prog_AWK="$ac_prog"
7161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162    break 2
7163  fi
7164done
7165  done
7166IFS=$as_save_IFS
7167
7168fi
7169fi
7170AWK=$ac_cv_prog_AWK
7171if test -n "$AWK"; then
7172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7173$as_echo "$AWK" >&6; }
7174else
7175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176$as_echo "no" >&6; }
7177fi
7178
7179
7180  test -n "$AWK" && break
7181done
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201# If no C compiler was specified, use CC.
7202LTCC=${LTCC-"$CC"}
7203
7204# If no C compiler flags were specified, use CFLAGS.
7205LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7206
7207# Allow CC to be a program name with arguments.
7208compiler=$CC
7209
7210
7211# Check for command to grab the raw symbol name followed by C symbol from nm.
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7213$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7214if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217
7218# These are sane defaults that work on at least a few old systems.
7219# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7220
7221# Character class describing NM global symbol codes.
7222symcode='[BCDEGRST]'
7223
7224# Regexp to match symbols that can be accessed directly from C.
7225sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7226
7227# Define system-specific variables.
7228case $host_os in
7229aix*)
7230  symcode='[BCDT]'
7231  ;;
7232cygwin* | mingw* | pw32* | cegcc*)
7233  symcode='[ABCDGISTW]'
7234  ;;
7235hpux*)
7236  if test "$host_cpu" = ia64; then
7237    symcode='[ABCDEGRST]'
7238  fi
7239  ;;
7240irix* | nonstopux*)
7241  symcode='[BCDEGRST]'
7242  ;;
7243osf*)
7244  symcode='[BCDEGQRST]'
7245  ;;
7246solaris*)
7247  symcode='[BCDRT]'
7248  ;;
7249sco3.2v5*)
7250  symcode='[DT]'
7251  ;;
7252sysv4.2uw2*)
7253  symcode='[DT]'
7254  ;;
7255sysv5* | sco5v6* | unixware* | OpenUNIX*)
7256  symcode='[ABDT]'
7257  ;;
7258sysv4)
7259  symcode='[DFNSTU]'
7260  ;;
7261esac
7262
7263# If we're using GNU nm, then use its standard symbol codes.
7264case `$NM -V 2>&1` in
7265*GNU* | *'with BFD'*)
7266  symcode='[ABCDGIRSTW]' ;;
7267esac
7268
7269# Transform an extracted symbol line into a proper C declaration.
7270# Some systems (esp. on ia64) link data and code symbols differently,
7271# so use this general approach.
7272lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7273
7274# Transform an extracted symbol line into symbol name and symbol address
7275lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7276lt_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'"
7277
7278# Handle CRLF in mingw tool chain
7279opt_cr=
7280case $build_os in
7281mingw*)
7282  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7283  ;;
7284esac
7285
7286# Try without a prefix underscore, then with it.
7287for ac_symprfx in "" "_"; do
7288
7289  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7290  symxfrm="\\1 $ac_symprfx\\2 \\2"
7291
7292  # Write the raw and C identifiers.
7293  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7294    # Fake it for dumpbin and say T for any non-static function
7295    # and D for any global variable.
7296    # Also find C++ and __fastcall symbols from MSVC++,
7297    # which start with @ or ?.
7298    lt_cv_sys_global_symbol_pipe="$AWK '"\
7299"     {last_section=section; section=\$ 3};"\
7300"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7301"     \$ 0!~/External *\|/{next};"\
7302"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7303"     {if(hide[section]) next};"\
7304"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7305"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7306"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7307"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7308"     ' prfx=^$ac_symprfx"
7309  else
7310    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7311  fi
7312
7313  # Check to see that the pipe works correctly.
7314  pipe_works=no
7315
7316  rm -f conftest*
7317  cat > conftest.$ac_ext <<_LT_EOF
7318#ifdef __cplusplus
7319extern "C" {
7320#endif
7321char nm_test_var;
7322void nm_test_func(void);
7323void nm_test_func(void){}
7324#ifdef __cplusplus
7325}
7326#endif
7327int main(){nm_test_var='a';nm_test_func();return(0);}
7328_LT_EOF
7329
7330  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7331  (eval $ac_compile) 2>&5
7332  ac_status=$?
7333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7334  test $ac_status = 0; }; then
7335    # Now try to grab the symbols.
7336    nlist=conftest.nm
7337    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7338  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7339  ac_status=$?
7340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7341  test $ac_status = 0; } && test -s "$nlist"; then
7342      # Try sorting and uniquifying the output.
7343      if sort "$nlist" | uniq > "$nlist"T; then
7344	mv -f "$nlist"T "$nlist"
7345      else
7346	rm -f "$nlist"T
7347      fi
7348
7349      # Make sure that we snagged all the symbols we need.
7350      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7351	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7352	  cat <<_LT_EOF > conftest.$ac_ext
7353#ifdef __cplusplus
7354extern "C" {
7355#endif
7356
7357_LT_EOF
7358	  # Now generate the symbol file.
7359	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7360
7361	  cat <<_LT_EOF >> conftest.$ac_ext
7362
7363/* The mapping between symbol names and symbols.  */
7364const struct {
7365  const char *name;
7366  void       *address;
7367}
7368lt__PROGRAM__LTX_preloaded_symbols[] =
7369{
7370  { "@PROGRAM@", (void *) 0 },
7371_LT_EOF
7372	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7373	  cat <<\_LT_EOF >> conftest.$ac_ext
7374  {0, (void *) 0}
7375};
7376
7377/* This works around a problem in FreeBSD linker */
7378#ifdef FREEBSD_WORKAROUND
7379static const void *lt_preloaded_setup() {
7380  return lt__PROGRAM__LTX_preloaded_symbols;
7381}
7382#endif
7383
7384#ifdef __cplusplus
7385}
7386#endif
7387_LT_EOF
7388	  # Now try linking the two files.
7389	  mv conftest.$ac_objext conftstm.$ac_objext
7390	  lt_save_LIBS="$LIBS"
7391	  lt_save_CFLAGS="$CFLAGS"
7392	  LIBS="conftstm.$ac_objext"
7393	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7394	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7395  (eval $ac_link) 2>&5
7396  ac_status=$?
7397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7398  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7399	    pipe_works=yes
7400	  fi
7401	  LIBS="$lt_save_LIBS"
7402	  CFLAGS="$lt_save_CFLAGS"
7403	else
7404	  echo "cannot find nm_test_func in $nlist" >&5
7405	fi
7406      else
7407	echo "cannot find nm_test_var in $nlist" >&5
7408      fi
7409    else
7410      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7411    fi
7412  else
7413    echo "$progname: failed program was:" >&5
7414    cat conftest.$ac_ext >&5
7415  fi
7416  rm -rf conftest* conftst*
7417
7418  # Do not use the global_symbol_pipe unless it works.
7419  if test "$pipe_works" = yes; then
7420    break
7421  else
7422    lt_cv_sys_global_symbol_pipe=
7423  fi
7424done
7425
7426fi
7427
7428if test -z "$lt_cv_sys_global_symbol_pipe"; then
7429  lt_cv_sys_global_symbol_to_cdecl=
7430fi
7431if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7433$as_echo "failed" >&6; }
7434else
7435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7436$as_echo "ok" >&6; }
7437fi
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460# Check whether --enable-libtool-lock was given.
7461if test "${enable_libtool_lock+set}" = set; then :
7462  enableval=$enable_libtool_lock;
7463fi
7464
7465test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7466
7467# Some flags need to be propagated to the compiler or linker for good
7468# libtool support.
7469case $host in
7470ia64-*-hpux*)
7471  # Find out which ABI we are using.
7472  echo 'int i;' > conftest.$ac_ext
7473  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7474  (eval $ac_compile) 2>&5
7475  ac_status=$?
7476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7477  test $ac_status = 0; }; then
7478    case `/usr/bin/file conftest.$ac_objext` in
7479      *ELF-32*)
7480	HPUX_IA64_MODE="32"
7481	;;
7482      *ELF-64*)
7483	HPUX_IA64_MODE="64"
7484	;;
7485    esac
7486  fi
7487  rm -rf conftest*
7488  ;;
7489*-*-irix6*)
7490  # Find out which ABI we are using.
7491  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7492  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7493  (eval $ac_compile) 2>&5
7494  ac_status=$?
7495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7496  test $ac_status = 0; }; then
7497    if test "$lt_cv_prog_gnu_ld" = yes; then
7498      case `/usr/bin/file conftest.$ac_objext` in
7499	*32-bit*)
7500	  LD="${LD-ld} -melf32bsmip"
7501	  ;;
7502	*N32*)
7503	  LD="${LD-ld} -melf32bmipn32"
7504	  ;;
7505	*64-bit*)
7506	  LD="${LD-ld} -melf64bmip"
7507	;;
7508      esac
7509    else
7510      case `/usr/bin/file conftest.$ac_objext` in
7511	*32-bit*)
7512	  LD="${LD-ld} -32"
7513	  ;;
7514	*N32*)
7515	  LD="${LD-ld} -n32"
7516	  ;;
7517	*64-bit*)
7518	  LD="${LD-ld} -64"
7519	  ;;
7520      esac
7521    fi
7522  fi
7523  rm -rf conftest*
7524  ;;
7525
7526x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7527s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7528  # Find out which ABI we are using.
7529  echo 'int i;' > conftest.$ac_ext
7530  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7531  (eval $ac_compile) 2>&5
7532  ac_status=$?
7533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7534  test $ac_status = 0; }; then
7535    case `/usr/bin/file conftest.o` in
7536      *32-bit*)
7537	case $host in
7538	  x86_64-*kfreebsd*-gnu)
7539	    LD="${LD-ld} -m elf_i386_fbsd"
7540	    ;;
7541	  x86_64-*linux*)
7542	    case `/usr/bin/file conftest.o` in
7543	      *x86-64*)
7544		LD="${LD-ld} -m elf32_x86_64"
7545		;;
7546	      *)
7547		LD="${LD-ld} -m elf_i386"
7548		;;
7549	    esac
7550	    ;;
7551	  powerpc64le-*linux*)
7552	    LD="${LD-ld} -m elf32lppclinux"
7553	    ;;
7554	  powerpc64-*linux*)
7555	    LD="${LD-ld} -m elf32ppclinux"
7556	    ;;
7557	  s390x-*linux*)
7558	    LD="${LD-ld} -m elf_s390"
7559	    ;;
7560	  sparc64-*linux*)
7561	    LD="${LD-ld} -m elf32_sparc"
7562	    ;;
7563	esac
7564	;;
7565      *64-bit*)
7566	case $host in
7567	  x86_64-*kfreebsd*-gnu)
7568	    LD="${LD-ld} -m elf_x86_64_fbsd"
7569	    ;;
7570	  x86_64-*linux*)
7571	    LD="${LD-ld} -m elf_x86_64"
7572	    ;;
7573	  powerpcle-*linux*)
7574	    LD="${LD-ld} -m elf64lppc"
7575	    ;;
7576	  powerpc-*linux*)
7577	    LD="${LD-ld} -m elf64ppc"
7578	    ;;
7579	  s390*-*linux*|s390*-*tpf*)
7580	    LD="${LD-ld} -m elf64_s390"
7581	    ;;
7582	  sparc*-*linux*)
7583	    LD="${LD-ld} -m elf64_sparc"
7584	    ;;
7585	esac
7586	;;
7587    esac
7588  fi
7589  rm -rf conftest*
7590  ;;
7591
7592*-*-sco3.2v5*)
7593  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7594  SAVE_CFLAGS="$CFLAGS"
7595  CFLAGS="$CFLAGS -belf"
7596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7597$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7598if ${lt_cv_cc_needs_belf+:} false; then :
7599  $as_echo_n "(cached) " >&6
7600else
7601  ac_ext=c
7602ac_cpp='$CPP $CPPFLAGS'
7603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7605ac_compiler_gnu=$ac_cv_c_compiler_gnu
7606
7607     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608/* end confdefs.h.  */
7609
7610int
7611main ()
7612{
7613
7614  ;
7615  return 0;
7616}
7617_ACEOF
7618if ac_fn_c_try_link "$LINENO"; then :
7619  lt_cv_cc_needs_belf=yes
7620else
7621  lt_cv_cc_needs_belf=no
7622fi
7623rm -f core conftest.err conftest.$ac_objext \
7624    conftest$ac_exeext conftest.$ac_ext
7625     ac_ext=c
7626ac_cpp='$CPP $CPPFLAGS'
7627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7629ac_compiler_gnu=$ac_cv_c_compiler_gnu
7630
7631fi
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7633$as_echo "$lt_cv_cc_needs_belf" >&6; }
7634  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7635    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7636    CFLAGS="$SAVE_CFLAGS"
7637  fi
7638  ;;
7639sparc*-*solaris*)
7640  # Find out which ABI we are using.
7641  echo 'int i;' > conftest.$ac_ext
7642  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7643  (eval $ac_compile) 2>&5
7644  ac_status=$?
7645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7646  test $ac_status = 0; }; then
7647    case `/usr/bin/file conftest.o` in
7648    *64-bit*)
7649      case $lt_cv_prog_gnu_ld in
7650      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7651      *)
7652	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7653	  LD="${LD-ld} -64"
7654	fi
7655	;;
7656      esac
7657      ;;
7658    esac
7659  fi
7660  rm -rf conftest*
7661  ;;
7662esac
7663
7664need_locks="$enable_libtool_lock"
7665
7666
7667  case $host_os in
7668    rhapsody* | darwin*)
7669    if test -n "$ac_tool_prefix"; then
7670  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7671set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673$as_echo_n "checking for $ac_word... " >&6; }
7674if ${ac_cv_prog_DSYMUTIL+:} false; then :
7675  $as_echo_n "(cached) " >&6
7676else
7677  if test -n "$DSYMUTIL"; then
7678  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7679else
7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683  IFS=$as_save_IFS
7684  test -z "$as_dir" && as_dir=.
7685    for ac_exec_ext in '' $ac_executable_extensions; do
7686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689    break 2
7690  fi
7691done
7692  done
7693IFS=$as_save_IFS
7694
7695fi
7696fi
7697DSYMUTIL=$ac_cv_prog_DSYMUTIL
7698if test -n "$DSYMUTIL"; then
7699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7700$as_echo "$DSYMUTIL" >&6; }
7701else
7702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703$as_echo "no" >&6; }
7704fi
7705
7706
7707fi
7708if test -z "$ac_cv_prog_DSYMUTIL"; then
7709  ac_ct_DSYMUTIL=$DSYMUTIL
7710  # Extract the first word of "dsymutil", so it can be a program name with args.
7711set dummy dsymutil; ac_word=$2
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713$as_echo_n "checking for $ac_word... " >&6; }
7714if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7715  $as_echo_n "(cached) " >&6
7716else
7717  if test -n "$ac_ct_DSYMUTIL"; then
7718  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7719else
7720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723  IFS=$as_save_IFS
7724  test -z "$as_dir" && as_dir=.
7725    for ac_exec_ext in '' $ac_executable_extensions; do
7726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729    break 2
7730  fi
7731done
7732  done
7733IFS=$as_save_IFS
7734
7735fi
7736fi
7737ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7738if test -n "$ac_ct_DSYMUTIL"; then
7739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7740$as_echo "$ac_ct_DSYMUTIL" >&6; }
7741else
7742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743$as_echo "no" >&6; }
7744fi
7745
7746  if test "x$ac_ct_DSYMUTIL" = x; then
7747    DSYMUTIL=":"
7748  else
7749    case $cross_compiling:$ac_tool_warned in
7750yes:)
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7753ac_tool_warned=yes ;;
7754esac
7755    DSYMUTIL=$ac_ct_DSYMUTIL
7756  fi
7757else
7758  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7759fi
7760
7761    if test -n "$ac_tool_prefix"; then
7762  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7763set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765$as_echo_n "checking for $ac_word... " >&6; }
7766if ${ac_cv_prog_NMEDIT+:} false; then :
7767  $as_echo_n "(cached) " >&6
7768else
7769  if test -n "$NMEDIT"; then
7770  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7771else
7772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775  IFS=$as_save_IFS
7776  test -z "$as_dir" && as_dir=.
7777    for ac_exec_ext in '' $ac_executable_extensions; do
7778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781    break 2
7782  fi
7783done
7784  done
7785IFS=$as_save_IFS
7786
7787fi
7788fi
7789NMEDIT=$ac_cv_prog_NMEDIT
7790if test -n "$NMEDIT"; then
7791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7792$as_echo "$NMEDIT" >&6; }
7793else
7794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795$as_echo "no" >&6; }
7796fi
7797
7798
7799fi
7800if test -z "$ac_cv_prog_NMEDIT"; then
7801  ac_ct_NMEDIT=$NMEDIT
7802  # Extract the first word of "nmedit", so it can be a program name with args.
7803set dummy nmedit; ac_word=$2
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805$as_echo_n "checking for $ac_word... " >&6; }
7806if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7807  $as_echo_n "(cached) " >&6
7808else
7809  if test -n "$ac_ct_NMEDIT"; then
7810  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7811else
7812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813for as_dir in $PATH
7814do
7815  IFS=$as_save_IFS
7816  test -z "$as_dir" && as_dir=.
7817    for ac_exec_ext in '' $ac_executable_extensions; do
7818  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7819    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821    break 2
7822  fi
7823done
7824  done
7825IFS=$as_save_IFS
7826
7827fi
7828fi
7829ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7830if test -n "$ac_ct_NMEDIT"; then
7831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7832$as_echo "$ac_ct_NMEDIT" >&6; }
7833else
7834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835$as_echo "no" >&6; }
7836fi
7837
7838  if test "x$ac_ct_NMEDIT" = x; then
7839    NMEDIT=":"
7840  else
7841    case $cross_compiling:$ac_tool_warned in
7842yes:)
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7845ac_tool_warned=yes ;;
7846esac
7847    NMEDIT=$ac_ct_NMEDIT
7848  fi
7849else
7850  NMEDIT="$ac_cv_prog_NMEDIT"
7851fi
7852
7853    if test -n "$ac_tool_prefix"; then
7854  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7855set dummy ${ac_tool_prefix}lipo; ac_word=$2
7856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857$as_echo_n "checking for $ac_word... " >&6; }
7858if ${ac_cv_prog_LIPO+:} false; then :
7859  $as_echo_n "(cached) " >&6
7860else
7861  if test -n "$LIPO"; then
7862  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7863else
7864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865for as_dir in $PATH
7866do
7867  IFS=$as_save_IFS
7868  test -z "$as_dir" && as_dir=.
7869    for ac_exec_ext in '' $ac_executable_extensions; do
7870  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873    break 2
7874  fi
7875done
7876  done
7877IFS=$as_save_IFS
7878
7879fi
7880fi
7881LIPO=$ac_cv_prog_LIPO
7882if test -n "$LIPO"; then
7883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7884$as_echo "$LIPO" >&6; }
7885else
7886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887$as_echo "no" >&6; }
7888fi
7889
7890
7891fi
7892if test -z "$ac_cv_prog_LIPO"; then
7893  ac_ct_LIPO=$LIPO
7894  # Extract the first word of "lipo", so it can be a program name with args.
7895set dummy lipo; ac_word=$2
7896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7897$as_echo_n "checking for $ac_word... " >&6; }
7898if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7899  $as_echo_n "(cached) " >&6
7900else
7901  if test -n "$ac_ct_LIPO"; then
7902  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7903else
7904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905for as_dir in $PATH
7906do
7907  IFS=$as_save_IFS
7908  test -z "$as_dir" && as_dir=.
7909    for ac_exec_ext in '' $ac_executable_extensions; do
7910  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7911    ac_cv_prog_ac_ct_LIPO="lipo"
7912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7913    break 2
7914  fi
7915done
7916  done
7917IFS=$as_save_IFS
7918
7919fi
7920fi
7921ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7922if test -n "$ac_ct_LIPO"; then
7923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7924$as_echo "$ac_ct_LIPO" >&6; }
7925else
7926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927$as_echo "no" >&6; }
7928fi
7929
7930  if test "x$ac_ct_LIPO" = x; then
7931    LIPO=":"
7932  else
7933    case $cross_compiling:$ac_tool_warned in
7934yes:)
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7937ac_tool_warned=yes ;;
7938esac
7939    LIPO=$ac_ct_LIPO
7940  fi
7941else
7942  LIPO="$ac_cv_prog_LIPO"
7943fi
7944
7945    if test -n "$ac_tool_prefix"; then
7946  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7947set dummy ${ac_tool_prefix}otool; ac_word=$2
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949$as_echo_n "checking for $ac_word... " >&6; }
7950if ${ac_cv_prog_OTOOL+:} false; then :
7951  $as_echo_n "(cached) " >&6
7952else
7953  if test -n "$OTOOL"; then
7954  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7955else
7956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959  IFS=$as_save_IFS
7960  test -z "$as_dir" && as_dir=.
7961    for ac_exec_ext in '' $ac_executable_extensions; do
7962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965    break 2
7966  fi
7967done
7968  done
7969IFS=$as_save_IFS
7970
7971fi
7972fi
7973OTOOL=$ac_cv_prog_OTOOL
7974if test -n "$OTOOL"; then
7975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7976$as_echo "$OTOOL" >&6; }
7977else
7978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979$as_echo "no" >&6; }
7980fi
7981
7982
7983fi
7984if test -z "$ac_cv_prog_OTOOL"; then
7985  ac_ct_OTOOL=$OTOOL
7986  # Extract the first word of "otool", so it can be a program name with args.
7987set dummy otool; ac_word=$2
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989$as_echo_n "checking for $ac_word... " >&6; }
7990if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7991  $as_echo_n "(cached) " >&6
7992else
7993  if test -n "$ac_ct_OTOOL"; then
7994  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7995else
7996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997for as_dir in $PATH
7998do
7999  IFS=$as_save_IFS
8000  test -z "$as_dir" && as_dir=.
8001    for ac_exec_ext in '' $ac_executable_extensions; do
8002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8003    ac_cv_prog_ac_ct_OTOOL="otool"
8004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005    break 2
8006  fi
8007done
8008  done
8009IFS=$as_save_IFS
8010
8011fi
8012fi
8013ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8014if test -n "$ac_ct_OTOOL"; then
8015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8016$as_echo "$ac_ct_OTOOL" >&6; }
8017else
8018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019$as_echo "no" >&6; }
8020fi
8021
8022  if test "x$ac_ct_OTOOL" = x; then
8023    OTOOL=":"
8024  else
8025    case $cross_compiling:$ac_tool_warned in
8026yes:)
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8029ac_tool_warned=yes ;;
8030esac
8031    OTOOL=$ac_ct_OTOOL
8032  fi
8033else
8034  OTOOL="$ac_cv_prog_OTOOL"
8035fi
8036
8037    if test -n "$ac_tool_prefix"; then
8038  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8039set dummy ${ac_tool_prefix}otool64; ac_word=$2
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041$as_echo_n "checking for $ac_word... " >&6; }
8042if ${ac_cv_prog_OTOOL64+:} false; then :
8043  $as_echo_n "(cached) " >&6
8044else
8045  if test -n "$OTOOL64"; then
8046  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8047else
8048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049for as_dir in $PATH
8050do
8051  IFS=$as_save_IFS
8052  test -z "$as_dir" && as_dir=.
8053    for ac_exec_ext in '' $ac_executable_extensions; do
8054  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8055    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057    break 2
8058  fi
8059done
8060  done
8061IFS=$as_save_IFS
8062
8063fi
8064fi
8065OTOOL64=$ac_cv_prog_OTOOL64
8066if test -n "$OTOOL64"; then
8067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8068$as_echo "$OTOOL64" >&6; }
8069else
8070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071$as_echo "no" >&6; }
8072fi
8073
8074
8075fi
8076if test -z "$ac_cv_prog_OTOOL64"; then
8077  ac_ct_OTOOL64=$OTOOL64
8078  # Extract the first word of "otool64", so it can be a program name with args.
8079set dummy otool64; ac_word=$2
8080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081$as_echo_n "checking for $ac_word... " >&6; }
8082if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8083  $as_echo_n "(cached) " >&6
8084else
8085  if test -n "$ac_ct_OTOOL64"; then
8086  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8087else
8088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089for as_dir in $PATH
8090do
8091  IFS=$as_save_IFS
8092  test -z "$as_dir" && as_dir=.
8093    for ac_exec_ext in '' $ac_executable_extensions; do
8094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8095    ac_cv_prog_ac_ct_OTOOL64="otool64"
8096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8097    break 2
8098  fi
8099done
8100  done
8101IFS=$as_save_IFS
8102
8103fi
8104fi
8105ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8106if test -n "$ac_ct_OTOOL64"; then
8107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8108$as_echo "$ac_ct_OTOOL64" >&6; }
8109else
8110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111$as_echo "no" >&6; }
8112fi
8113
8114  if test "x$ac_ct_OTOOL64" = x; then
8115    OTOOL64=":"
8116  else
8117    case $cross_compiling:$ac_tool_warned in
8118yes:)
8119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8121ac_tool_warned=yes ;;
8122esac
8123    OTOOL64=$ac_ct_OTOOL64
8124  fi
8125else
8126  OTOOL64="$ac_cv_prog_OTOOL64"
8127fi
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8156$as_echo_n "checking for -single_module linker flag... " >&6; }
8157if ${lt_cv_apple_cc_single_mod+:} false; then :
8158  $as_echo_n "(cached) " >&6
8159else
8160  lt_cv_apple_cc_single_mod=no
8161      if test -z "${LT_MULTI_MODULE}"; then
8162	# By default we will add the -single_module flag. You can override
8163	# by either setting the environment variable LT_MULTI_MODULE
8164	# non-empty at configure time, or by adding -multi_module to the
8165	# link flags.
8166	rm -rf libconftest.dylib*
8167	echo "int foo(void){return 1;}" > conftest.c
8168	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8169-dynamiclib -Wl,-single_module conftest.c" >&5
8170	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8171	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8172        _lt_result=$?
8173	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8174	  lt_cv_apple_cc_single_mod=yes
8175	else
8176	  cat conftest.err >&5
8177	fi
8178	rm -rf libconftest.dylib*
8179	rm -f conftest.*
8180      fi
8181fi
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8183$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8185$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8186if ${lt_cv_ld_exported_symbols_list+:} false; then :
8187  $as_echo_n "(cached) " >&6
8188else
8189  lt_cv_ld_exported_symbols_list=no
8190      save_LDFLAGS=$LDFLAGS
8191      echo "_main" > conftest.sym
8192      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8193      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194/* end confdefs.h.  */
8195
8196int
8197main ()
8198{
8199
8200  ;
8201  return 0;
8202}
8203_ACEOF
8204if ac_fn_c_try_link "$LINENO"; then :
8205  lt_cv_ld_exported_symbols_list=yes
8206else
8207  lt_cv_ld_exported_symbols_list=no
8208fi
8209rm -f core conftest.err conftest.$ac_objext \
8210    conftest$ac_exeext conftest.$ac_ext
8211	LDFLAGS="$save_LDFLAGS"
8212
8213fi
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8215$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8217$as_echo_n "checking for -force_load linker flag... " >&6; }
8218if ${lt_cv_ld_force_load+:} false; then :
8219  $as_echo_n "(cached) " >&6
8220else
8221  lt_cv_ld_force_load=no
8222      cat > conftest.c << _LT_EOF
8223int forced_loaded() { return 2;}
8224_LT_EOF
8225      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8226      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8227      echo "$AR cru libconftest.a conftest.o" >&5
8228      $AR cru libconftest.a conftest.o 2>&5
8229      cat > conftest.c << _LT_EOF
8230int main() { return 0;}
8231_LT_EOF
8232      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8233      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8234      _lt_result=$?
8235      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8236	lt_cv_ld_force_load=yes
8237      else
8238	cat conftest.err >&5
8239      fi
8240        rm -f conftest.err libconftest.a conftest conftest.c
8241        rm -rf conftest.dSYM
8242
8243fi
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8245$as_echo "$lt_cv_ld_force_load" >&6; }
8246    case $host_os in
8247    rhapsody* | darwin1.[012])
8248      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8249    darwin1.*)
8250      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8251    darwin*) # darwin 5.x on
8252      # if running on 10.5 or later, the deployment target defaults
8253      # to the OS version, if on x86, and 10.4, the deployment
8254      # target defaults to 10.4. Don't you love it?
8255      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8256	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8257	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8258	10.[012][,.]*)
8259	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8260	10.*)
8261	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8262      esac
8263    ;;
8264  esac
8265    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8266      _lt_dar_single_mod='$single_module'
8267    fi
8268    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8269      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8270    else
8271      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8272    fi
8273    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8274      _lt_dsymutil='~$DSYMUTIL $lib || :'
8275    else
8276      _lt_dsymutil=
8277    fi
8278    ;;
8279  esac
8280
8281for ac_header in dlfcn.h
8282do :
8283  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8284"
8285if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8286  cat >>confdefs.h <<_ACEOF
8287#define HAVE_DLFCN_H 1
8288_ACEOF
8289
8290fi
8291
8292done
8293
8294
8295ac_header_dirent=no
8296for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8297  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8299$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8300if eval \${$as_ac_Header+:} false; then :
8301  $as_echo_n "(cached) " >&6
8302else
8303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304/* end confdefs.h.  */
8305#include <sys/types.h>
8306#include <$ac_hdr>
8307
8308int
8309main ()
8310{
8311if ((DIR *) 0)
8312return 0;
8313  ;
8314  return 0;
8315}
8316_ACEOF
8317if ac_fn_c_try_compile "$LINENO"; then :
8318  eval "$as_ac_Header=yes"
8319else
8320  eval "$as_ac_Header=no"
8321fi
8322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323fi
8324eval ac_res=\$$as_ac_Header
8325	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8326$as_echo "$ac_res" >&6; }
8327if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8328  cat >>confdefs.h <<_ACEOF
8329#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8330_ACEOF
8331
8332ac_header_dirent=$ac_hdr; break
8333fi
8334
8335done
8336# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8337if test $ac_header_dirent = dirent.h; then
8338  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8339$as_echo_n "checking for library containing opendir... " >&6; }
8340if ${ac_cv_search_opendir+:} false; then :
8341  $as_echo_n "(cached) " >&6
8342else
8343  ac_func_search_save_LIBS=$LIBS
8344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345/* end confdefs.h.  */
8346
8347/* Override any GCC internal prototype to avoid an error.
8348   Use char because int might match the return type of a GCC
8349   builtin and then its argument prototype would still apply.  */
8350#ifdef __cplusplus
8351extern "C"
8352#endif
8353char opendir ();
8354int
8355main ()
8356{
8357return opendir ();
8358  ;
8359  return 0;
8360}
8361_ACEOF
8362for ac_lib in '' dir; do
8363  if test -z "$ac_lib"; then
8364    ac_res="none required"
8365  else
8366    ac_res=-l$ac_lib
8367    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8368  fi
8369  if ac_fn_c_try_link "$LINENO"; then :
8370  ac_cv_search_opendir=$ac_res
8371fi
8372rm -f core conftest.err conftest.$ac_objext \
8373    conftest$ac_exeext
8374  if ${ac_cv_search_opendir+:} false; then :
8375  break
8376fi
8377done
8378if ${ac_cv_search_opendir+:} false; then :
8379
8380else
8381  ac_cv_search_opendir=no
8382fi
8383rm conftest.$ac_ext
8384LIBS=$ac_func_search_save_LIBS
8385fi
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8387$as_echo "$ac_cv_search_opendir" >&6; }
8388ac_res=$ac_cv_search_opendir
8389if test "$ac_res" != no; then :
8390  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8391
8392fi
8393
8394else
8395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8396$as_echo_n "checking for library containing opendir... " >&6; }
8397if ${ac_cv_search_opendir+:} false; then :
8398  $as_echo_n "(cached) " >&6
8399else
8400  ac_func_search_save_LIBS=$LIBS
8401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402/* end confdefs.h.  */
8403
8404/* Override any GCC internal prototype to avoid an error.
8405   Use char because int might match the return type of a GCC
8406   builtin and then its argument prototype would still apply.  */
8407#ifdef __cplusplus
8408extern "C"
8409#endif
8410char opendir ();
8411int
8412main ()
8413{
8414return opendir ();
8415  ;
8416  return 0;
8417}
8418_ACEOF
8419for ac_lib in '' x; do
8420  if test -z "$ac_lib"; then
8421    ac_res="none required"
8422  else
8423    ac_res=-l$ac_lib
8424    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8425  fi
8426  if ac_fn_c_try_link "$LINENO"; then :
8427  ac_cv_search_opendir=$ac_res
8428fi
8429rm -f core conftest.err conftest.$ac_objext \
8430    conftest$ac_exeext
8431  if ${ac_cv_search_opendir+:} false; then :
8432  break
8433fi
8434done
8435if ${ac_cv_search_opendir+:} false; then :
8436
8437else
8438  ac_cv_search_opendir=no
8439fi
8440rm conftest.$ac_ext
8441LIBS=$ac_func_search_save_LIBS
8442fi
8443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8444$as_echo "$ac_cv_search_opendir" >&6; }
8445ac_res=$ac_cv_search_opendir
8446if test "$ac_res" != no; then :
8447  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8448
8449fi
8450
8451fi
8452
8453
8454
8455
8456ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8457if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8458
8459cat >>confdefs.h <<_ACEOF
8460#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8461_ACEOF
8462
8463
8464$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8465
8466fi
8467
8468
8469ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8470if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8471
8472cat >>confdefs.h <<_ACEOF
8473#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8474_ACEOF
8475
8476
8477$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8478
8479else
8480  case " $LIBOBJS " in
8481  *" fileblocks.$ac_objext "* ) ;;
8482  *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8483 ;;
8484esac
8485
8486fi
8487
8488
8489ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8490if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8491
8492cat >>confdefs.h <<_ACEOF
8493#define HAVE_STRUCT_STAT_ST_RDEV 1
8494_ACEOF
8495
8496
8497$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8498
8499fi
8500
8501
8502ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8503#include <$ac_cv_struct_tm>
8504
8505"
8506if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8507
8508cat >>confdefs.h <<_ACEOF
8509#define HAVE_STRUCT_TM_TM_ZONE 1
8510_ACEOF
8511
8512
8513fi
8514
8515if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8516
8517$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8518
8519else
8520  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8521"
8522if test "x$ac_cv_have_decl_tzname" = xyes; then :
8523  ac_have_decl=1
8524else
8525  ac_have_decl=0
8526fi
8527
8528cat >>confdefs.h <<_ACEOF
8529#define HAVE_DECL_TZNAME $ac_have_decl
8530_ACEOF
8531
8532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8533$as_echo_n "checking for tzname... " >&6; }
8534if ${ac_cv_var_tzname+:} false; then :
8535  $as_echo_n "(cached) " >&6
8536else
8537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538/* end confdefs.h.  */
8539#include <time.h>
8540#if !HAVE_DECL_TZNAME
8541extern char *tzname[];
8542#endif
8543
8544int
8545main ()
8546{
8547return tzname[0][0];
8548  ;
8549  return 0;
8550}
8551_ACEOF
8552if ac_fn_c_try_link "$LINENO"; then :
8553  ac_cv_var_tzname=yes
8554else
8555  ac_cv_var_tzname=no
8556fi
8557rm -f core conftest.err conftest.$ac_objext \
8558    conftest$ac_exeext conftest.$ac_ext
8559fi
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8561$as_echo "$ac_cv_var_tzname" >&6; }
8562  if test $ac_cv_var_tzname = yes; then
8563
8564$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8565
8566  fi
8567fi
8568
8569
8570ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8571#include <sys/types.h>
8572#endif
8573#ifdef HAVE_SYS_STAT_H
8574#include <sys/stat.h>
8575#endif
8576"
8577if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8578
8579cat >>confdefs.h <<_ACEOF
8580#define HAVE_STRUCT_STAT_ST_DEV 1
8581_ACEOF
8582
8583
8584fi
8585ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8586#include <sys/types.h>
8587#endif
8588#ifdef HAVE_SYS_STAT_H
8589#include <sys/stat.h>
8590#endif
8591"
8592if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8593
8594cat >>confdefs.h <<_ACEOF
8595#define HAVE_STRUCT_STAT_ST_INO 1
8596_ACEOF
8597
8598
8599fi
8600ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8601#include <sys/types.h>
8602#endif
8603#ifdef HAVE_SYS_STAT_H
8604#include <sys/stat.h>
8605#endif
8606"
8607if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8608
8609cat >>confdefs.h <<_ACEOF
8610#define HAVE_STRUCT_STAT_ST_MODE 1
8611_ACEOF
8612
8613
8614fi
8615ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8616#include <sys/types.h>
8617#endif
8618#ifdef HAVE_SYS_STAT_H
8619#include <sys/stat.h>
8620#endif
8621"
8622if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8623
8624cat >>confdefs.h <<_ACEOF
8625#define HAVE_STRUCT_STAT_ST_NLINK 1
8626_ACEOF
8627
8628
8629fi
8630ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8631#include <sys/types.h>
8632#endif
8633#ifdef HAVE_SYS_STAT_H
8634#include <sys/stat.h>
8635#endif
8636"
8637if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8638
8639cat >>confdefs.h <<_ACEOF
8640#define HAVE_STRUCT_STAT_ST_UID 1
8641_ACEOF
8642
8643
8644fi
8645ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8646#include <sys/types.h>
8647#endif
8648#ifdef HAVE_SYS_STAT_H
8649#include <sys/stat.h>
8650#endif
8651"
8652if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8653
8654cat >>confdefs.h <<_ACEOF
8655#define HAVE_STRUCT_STAT_ST_GID 1
8656_ACEOF
8657
8658
8659fi
8660ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8661#include <sys/types.h>
8662#endif
8663#ifdef HAVE_SYS_STAT_H
8664#include <sys/stat.h>
8665#endif
8666"
8667if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8668
8669cat >>confdefs.h <<_ACEOF
8670#define HAVE_STRUCT_STAT_ST_RDEV 1
8671_ACEOF
8672
8673
8674fi
8675ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8676#include <sys/types.h>
8677#endif
8678#ifdef HAVE_SYS_STAT_H
8679#include <sys/stat.h>
8680#endif
8681"
8682if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8683
8684cat >>confdefs.h <<_ACEOF
8685#define HAVE_STRUCT_STAT_ST_SIZE 1
8686_ACEOF
8687
8688
8689fi
8690ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8691#include <sys/types.h>
8692#endif
8693#ifdef HAVE_SYS_STAT_H
8694#include <sys/stat.h>
8695#endif
8696"
8697if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8698
8699cat >>confdefs.h <<_ACEOF
8700#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8701_ACEOF
8702
8703
8704fi
8705ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8706#include <sys/types.h>
8707#endif
8708#ifdef HAVE_SYS_STAT_H
8709#include <sys/stat.h>
8710#endif
8711"
8712if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8713
8714cat >>confdefs.h <<_ACEOF
8715#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8716_ACEOF
8717
8718
8719fi
8720ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8721#include <sys/types.h>
8722#endif
8723#ifdef HAVE_SYS_STAT_H
8724#include <sys/stat.h>
8725#endif
8726"
8727if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8728
8729cat >>confdefs.h <<_ACEOF
8730#define HAVE_STRUCT_STAT_ST_ATIME 1
8731_ACEOF
8732
8733
8734fi
8735ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8736#include <sys/types.h>
8737#endif
8738#ifdef HAVE_SYS_STAT_H
8739#include <sys/stat.h>
8740#endif
8741"
8742if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8743
8744cat >>confdefs.h <<_ACEOF
8745#define HAVE_STRUCT_STAT_ST_MTIME 1
8746_ACEOF
8747
8748
8749fi
8750ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8751#include <sys/types.h>
8752#endif
8753#ifdef HAVE_SYS_STAT_H
8754#include <sys/stat.h>
8755#endif
8756"
8757if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8758
8759cat >>confdefs.h <<_ACEOF
8760#define HAVE_STRUCT_STAT_ST_CTIME 1
8761_ACEOF
8762
8763
8764fi
8765
8766
8767ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8768if test "x$ac_cv_type___int128" = xyes; then :
8769
8770cat >>confdefs.h <<_ACEOF
8771#define HAVE___INT128 1
8772_ACEOF
8773
8774
8775fi
8776
8777ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8778#include <sys/socket.h>
8779
8780"
8781if test "x$ac_cv_type_socklen_t" = xyes; then :
8782
8783cat >>confdefs.h <<_ACEOF
8784#define HAVE_SOCKLEN_T 1
8785_ACEOF
8786
8787
8788fi
8789
8790
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8792$as_echo_n "checking type of array argument to getgroups... " >&6; }
8793if ${ac_cv_type_getgroups+:} false; then :
8794  $as_echo_n "(cached) " >&6
8795else
8796  if test "$cross_compiling" = yes; then :
8797  ac_cv_type_getgroups=cross
8798else
8799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800/* end confdefs.h.  */
8801/* Thanks to Mike Rendell for this test.  */
8802$ac_includes_default
8803#define NGID 256
8804#undef MAX
8805#define MAX(x, y) ((x) > (y) ? (x) : (y))
8806
8807int
8808main ()
8809{
8810  gid_t gidset[NGID];
8811  int i, n;
8812  union { gid_t gval; long int lval; }  val;
8813
8814  val.lval = -1;
8815  for (i = 0; i < NGID; i++)
8816    gidset[i] = val.gval;
8817  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8818		 gidset);
8819  /* Exit non-zero if getgroups seems to require an array of ints.  This
8820     happens when gid_t is short int but getgroups modifies an array
8821     of ints.  */
8822  return n > 0 && gidset[n] != val.gval;
8823}
8824_ACEOF
8825if ac_fn_c_try_run "$LINENO"; then :
8826  ac_cv_type_getgroups=gid_t
8827else
8828  ac_cv_type_getgroups=int
8829fi
8830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8831  conftest.$ac_objext conftest.beam conftest.$ac_ext
8832fi
8833
8834if test $ac_cv_type_getgroups = cross; then
8835        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836/* end confdefs.h.  */
8837#include <unistd.h>
8838
8839_ACEOF
8840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8841  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8842  ac_cv_type_getgroups=gid_t
8843else
8844  ac_cv_type_getgroups=int
8845fi
8846rm -f conftest*
8847
8848fi
8849fi
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8851$as_echo "$ac_cv_type_getgroups" >&6; }
8852
8853cat >>confdefs.h <<_ACEOF
8854#define GETGROUPS_T $ac_cv_type_getgroups
8855_ACEOF
8856
8857
8858ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8859if test "x$ac_cv_type_mode_t" = xyes; then :
8860
8861else
8862
8863cat >>confdefs.h <<_ACEOF
8864#define mode_t int
8865_ACEOF
8866
8867fi
8868
8869ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8870if test "x$ac_cv_type_off_t" = xyes; then :
8871
8872else
8873
8874cat >>confdefs.h <<_ACEOF
8875#define off_t long int
8876_ACEOF
8877
8878fi
8879
8880ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8881if test "x$ac_cv_type_pid_t" = xyes; then :
8882
8883else
8884
8885cat >>confdefs.h <<_ACEOF
8886#define pid_t int
8887_ACEOF
8888
8889fi
8890
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8892$as_echo_n "checking return type of signal handlers... " >&6; }
8893if ${ac_cv_type_signal+:} false; then :
8894  $as_echo_n "(cached) " >&6
8895else
8896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897/* end confdefs.h.  */
8898#include <sys/types.h>
8899#include <signal.h>
8900
8901int
8902main ()
8903{
8904return *(signal (0, 0)) (0) == 1;
8905  ;
8906  return 0;
8907}
8908_ACEOF
8909if ac_fn_c_try_compile "$LINENO"; then :
8910  ac_cv_type_signal=int
8911else
8912  ac_cv_type_signal=void
8913fi
8914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8915fi
8916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8917$as_echo "$ac_cv_type_signal" >&6; }
8918
8919cat >>confdefs.h <<_ACEOF
8920#define RETSIGTYPE $ac_cv_type_signal
8921_ACEOF
8922
8923
8924ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8925if test "x$ac_cv_type_size_t" = xyes; then :
8926
8927else
8928
8929cat >>confdefs.h <<_ACEOF
8930#define size_t unsigned int
8931_ACEOF
8932
8933fi
8934
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8936$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8937if ${ac_cv_type_uid_t+:} false; then :
8938  $as_echo_n "(cached) " >&6
8939else
8940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h.  */
8942#include <sys/types.h>
8943
8944_ACEOF
8945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8946  $EGREP "uid_t" >/dev/null 2>&1; then :
8947  ac_cv_type_uid_t=yes
8948else
8949  ac_cv_type_uid_t=no
8950fi
8951rm -f conftest*
8952
8953fi
8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8955$as_echo "$ac_cv_type_uid_t" >&6; }
8956if test $ac_cv_type_uid_t = no; then
8957
8958$as_echo "#define uid_t int" >>confdefs.h
8959
8960
8961$as_echo "#define gid_t int" >>confdefs.h
8962
8963fi
8964
8965
8966
8967
8968
8969
8970# Set options
8971
8972
8973
8974        enable_dlopen=no
8975
8976
8977  enable_win32_dll=no
8978
8979
8980            # Check whether --enable-shared was given.
8981if test "${enable_shared+set}" = set; then :
8982  enableval=$enable_shared; p=${PACKAGE-default}
8983    case $enableval in
8984    yes) enable_shared=yes ;;
8985    no) enable_shared=no ;;
8986    *)
8987      enable_shared=no
8988      # Look at the argument we got.  We use all the common list separators.
8989      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8990      for pkg in $enableval; do
8991	IFS="$lt_save_ifs"
8992	if test "X$pkg" = "X$p"; then
8993	  enable_shared=yes
8994	fi
8995      done
8996      IFS="$lt_save_ifs"
8997      ;;
8998    esac
8999else
9000  enable_shared=yes
9001fi
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011  # Check whether --enable-static was given.
9012if test "${enable_static+set}" = set; then :
9013  enableval=$enable_static; p=${PACKAGE-default}
9014    case $enableval in
9015    yes) enable_static=yes ;;
9016    no) enable_static=no ;;
9017    *)
9018     enable_static=no
9019      # Look at the argument we got.  We use all the common list separators.
9020      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9021      for pkg in $enableval; do
9022	IFS="$lt_save_ifs"
9023	if test "X$pkg" = "X$p"; then
9024	  enable_static=yes
9025	fi
9026      done
9027      IFS="$lt_save_ifs"
9028      ;;
9029    esac
9030else
9031  enable_static=yes
9032fi
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043# Check whether --with-pic was given.
9044if test "${with_pic+set}" = set; then :
9045  withval=$with_pic; pic_mode="$withval"
9046else
9047  pic_mode=default
9048fi
9049
9050
9051test -z "$pic_mode" && pic_mode=default
9052
9053
9054
9055
9056
9057
9058
9059  # Check whether --enable-fast-install was given.
9060if test "${enable_fast_install+set}" = set; then :
9061  enableval=$enable_fast_install; p=${PACKAGE-default}
9062    case $enableval in
9063    yes) enable_fast_install=yes ;;
9064    no) enable_fast_install=no ;;
9065    *)
9066      enable_fast_install=no
9067      # Look at the argument we got.  We use all the common list separators.
9068      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9069      for pkg in $enableval; do
9070	IFS="$lt_save_ifs"
9071	if test "X$pkg" = "X$p"; then
9072	  enable_fast_install=yes
9073	fi
9074      done
9075      IFS="$lt_save_ifs"
9076      ;;
9077    esac
9078else
9079  enable_fast_install=yes
9080fi
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092# This can be used to rebuild libtool when needed
9093LIBTOOL_DEPS="$ltmain"
9094
9095# Always use our own libtool.
9096LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123test -z "$LN_S" && LN_S="ln -s"
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138if test -n "${ZSH_VERSION+set}" ; then
9139   setopt NO_GLOB_SUBST
9140fi
9141
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9143$as_echo_n "checking for objdir... " >&6; }
9144if ${lt_cv_objdir+:} false; then :
9145  $as_echo_n "(cached) " >&6
9146else
9147  rm -f .libs 2>/dev/null
9148mkdir .libs 2>/dev/null
9149if test -d .libs; then
9150  lt_cv_objdir=.libs
9151else
9152  # MS-DOS does not allow filenames that begin with a dot.
9153  lt_cv_objdir=_libs
9154fi
9155rmdir .libs 2>/dev/null
9156fi
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9158$as_echo "$lt_cv_objdir" >&6; }
9159objdir=$lt_cv_objdir
9160
9161
9162
9163
9164
9165cat >>confdefs.h <<_ACEOF
9166#define LT_OBJDIR "$lt_cv_objdir/"
9167_ACEOF
9168
9169
9170
9171
9172case $host_os in
9173aix3*)
9174  # AIX sometimes has problems with the GCC collect2 program.  For some
9175  # reason, if we set the COLLECT_NAMES environment variable, the problems
9176  # vanish in a puff of smoke.
9177  if test "X${COLLECT_NAMES+set}" != Xset; then
9178    COLLECT_NAMES=
9179    export COLLECT_NAMES
9180  fi
9181  ;;
9182esac
9183
9184# Global variables:
9185ofile=libtool
9186can_build_shared=yes
9187
9188# All known linkers require a `.a' archive for static linking (except MSVC,
9189# which needs '.lib').
9190libext=a
9191
9192with_gnu_ld="$lt_cv_prog_gnu_ld"
9193
9194old_CC="$CC"
9195old_CFLAGS="$CFLAGS"
9196
9197# Set sane defaults for various variables
9198test -z "$CC" && CC=cc
9199test -z "$LTCC" && LTCC=$CC
9200test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9201test -z "$LD" && LD=ld
9202test -z "$ac_objext" && ac_objext=o
9203
9204for cc_temp in $compiler""; do
9205  case $cc_temp in
9206    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9207    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9208    \-*) ;;
9209    *) break;;
9210  esac
9211done
9212cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9213
9214
9215# Only perform the check for file, if the check method requires it
9216test -z "$MAGIC_CMD" && MAGIC_CMD=file
9217case $deplibs_check_method in
9218file_magic*)
9219  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9220    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9221$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9222if ${lt_cv_path_MAGIC_CMD+:} false; then :
9223  $as_echo_n "(cached) " >&6
9224else
9225  case $MAGIC_CMD in
9226[\\/*] |  ?:[\\/]*)
9227  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9228  ;;
9229*)
9230  lt_save_MAGIC_CMD="$MAGIC_CMD"
9231  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9232  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9233  for ac_dir in $ac_dummy; do
9234    IFS="$lt_save_ifs"
9235    test -z "$ac_dir" && ac_dir=.
9236    if test -f $ac_dir/${ac_tool_prefix}file; then
9237      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9238      if test -n "$file_magic_test_file"; then
9239	case $deplibs_check_method in
9240	"file_magic "*)
9241	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9242	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9243	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9244	    $EGREP "$file_magic_regex" > /dev/null; then
9245	    :
9246	  else
9247	    cat <<_LT_EOF 1>&2
9248
9249*** Warning: the command libtool uses to detect shared libraries,
9250*** $file_magic_cmd, produces output that libtool cannot recognize.
9251*** The result is that libtool may fail to recognize shared libraries
9252*** as such.  This will affect the creation of libtool libraries that
9253*** depend on shared libraries, but programs linked with such libtool
9254*** libraries will work regardless of this problem.  Nevertheless, you
9255*** may want to report the problem to your system manager and/or to
9256*** bug-libtool@gnu.org
9257
9258_LT_EOF
9259	  fi ;;
9260	esac
9261      fi
9262      break
9263    fi
9264  done
9265  IFS="$lt_save_ifs"
9266  MAGIC_CMD="$lt_save_MAGIC_CMD"
9267  ;;
9268esac
9269fi
9270
9271MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9272if test -n "$MAGIC_CMD"; then
9273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9274$as_echo "$MAGIC_CMD" >&6; }
9275else
9276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9277$as_echo "no" >&6; }
9278fi
9279
9280
9281
9282
9283
9284if test -z "$lt_cv_path_MAGIC_CMD"; then
9285  if test -n "$ac_tool_prefix"; then
9286    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9287$as_echo_n "checking for file... " >&6; }
9288if ${lt_cv_path_MAGIC_CMD+:} false; then :
9289  $as_echo_n "(cached) " >&6
9290else
9291  case $MAGIC_CMD in
9292[\\/*] |  ?:[\\/]*)
9293  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9294  ;;
9295*)
9296  lt_save_MAGIC_CMD="$MAGIC_CMD"
9297  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9298  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9299  for ac_dir in $ac_dummy; do
9300    IFS="$lt_save_ifs"
9301    test -z "$ac_dir" && ac_dir=.
9302    if test -f $ac_dir/file; then
9303      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9304      if test -n "$file_magic_test_file"; then
9305	case $deplibs_check_method in
9306	"file_magic "*)
9307	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9308	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9309	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9310	    $EGREP "$file_magic_regex" > /dev/null; then
9311	    :
9312	  else
9313	    cat <<_LT_EOF 1>&2
9314
9315*** Warning: the command libtool uses to detect shared libraries,
9316*** $file_magic_cmd, produces output that libtool cannot recognize.
9317*** The result is that libtool may fail to recognize shared libraries
9318*** as such.  This will affect the creation of libtool libraries that
9319*** depend on shared libraries, but programs linked with such libtool
9320*** libraries will work regardless of this problem.  Nevertheless, you
9321*** may want to report the problem to your system manager and/or to
9322*** bug-libtool@gnu.org
9323
9324_LT_EOF
9325	  fi ;;
9326	esac
9327      fi
9328      break
9329    fi
9330  done
9331  IFS="$lt_save_ifs"
9332  MAGIC_CMD="$lt_save_MAGIC_CMD"
9333  ;;
9334esac
9335fi
9336
9337MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9338if test -n "$MAGIC_CMD"; then
9339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9340$as_echo "$MAGIC_CMD" >&6; }
9341else
9342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343$as_echo "no" >&6; }
9344fi
9345
9346
9347  else
9348    MAGIC_CMD=:
9349  fi
9350fi
9351
9352  fi
9353  ;;
9354esac
9355
9356# Use C for the default configuration in the libtool script
9357
9358lt_save_CC="$CC"
9359ac_ext=c
9360ac_cpp='$CPP $CPPFLAGS'
9361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9363ac_compiler_gnu=$ac_cv_c_compiler_gnu
9364
9365
9366# Source file extension for C test sources.
9367ac_ext=c
9368
9369# Object file extension for compiled C test sources.
9370objext=o
9371objext=$objext
9372
9373# Code to be used in simple compile tests
9374lt_simple_compile_test_code="int some_variable = 0;"
9375
9376# Code to be used in simple link tests
9377lt_simple_link_test_code='int main(){return(0);}'
9378
9379
9380
9381
9382
9383
9384
9385# If no C compiler was specified, use CC.
9386LTCC=${LTCC-"$CC"}
9387
9388# If no C compiler flags were specified, use CFLAGS.
9389LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9390
9391# Allow CC to be a program name with arguments.
9392compiler=$CC
9393
9394# Save the default compiler, since it gets overwritten when the other
9395# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9396compiler_DEFAULT=$CC
9397
9398# save warnings/boilerplate of simple test code
9399ac_outfile=conftest.$ac_objext
9400echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9401eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9402_lt_compiler_boilerplate=`cat conftest.err`
9403$RM conftest*
9404
9405ac_outfile=conftest.$ac_objext
9406echo "$lt_simple_link_test_code" >conftest.$ac_ext
9407eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9408_lt_linker_boilerplate=`cat conftest.err`
9409$RM -r conftest*
9410
9411
9412## CAVEAT EMPTOR:
9413## There is no encapsulation within the following macros, do not change
9414## the running order or otherwise move them around unless you know exactly
9415## what you are doing...
9416if test -n "$compiler"; then
9417
9418lt_prog_compiler_no_builtin_flag=
9419
9420if test "$GCC" = yes; then
9421  case $cc_basename in
9422  nvcc*)
9423    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9424  *)
9425    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9426  esac
9427
9428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9429$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9430if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9431  $as_echo_n "(cached) " >&6
9432else
9433  lt_cv_prog_compiler_rtti_exceptions=no
9434   ac_outfile=conftest.$ac_objext
9435   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9436   lt_compiler_flag="-fno-rtti -fno-exceptions"
9437   # Insert the option either (1) after the last *FLAGS variable, or
9438   # (2) before a word containing "conftest.", or (3) at the end.
9439   # Note that $ac_compile itself does not contain backslashes and begins
9440   # with a dollar sign (not a hyphen), so the echo should work correctly.
9441   # The option is referenced via a variable to avoid confusing sed.
9442   lt_compile=`echo "$ac_compile" | $SED \
9443   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9444   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9445   -e 's:$: $lt_compiler_flag:'`
9446   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9447   (eval "$lt_compile" 2>conftest.err)
9448   ac_status=$?
9449   cat conftest.err >&5
9450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451   if (exit $ac_status) && test -s "$ac_outfile"; then
9452     # The compiler can only warn and ignore the option if not recognized
9453     # So say no if there are warnings other than the usual output.
9454     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9455     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9456     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9457       lt_cv_prog_compiler_rtti_exceptions=yes
9458     fi
9459   fi
9460   $RM conftest*
9461
9462fi
9463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9464$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9465
9466if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9467    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9468else
9469    :
9470fi
9471
9472fi
9473
9474
9475
9476
9477
9478
9479  lt_prog_compiler_wl=
9480lt_prog_compiler_pic=
9481lt_prog_compiler_static=
9482
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9484$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9485
9486  if test "$GCC" = yes; then
9487    lt_prog_compiler_wl='-Wl,'
9488    lt_prog_compiler_static='-static'
9489
9490    case $host_os in
9491      aix*)
9492      # All AIX code is PIC.
9493      if test "$host_cpu" = ia64; then
9494	# AIX 5 now supports IA64 processor
9495	lt_prog_compiler_static='-Bstatic'
9496      fi
9497      lt_prog_compiler_pic='-fPIC'
9498      ;;
9499
9500    amigaos*)
9501      case $host_cpu in
9502      powerpc)
9503            # see comment about AmigaOS4 .so support
9504            lt_prog_compiler_pic='-fPIC'
9505        ;;
9506      m68k)
9507            # FIXME: we need at least 68020 code to build shared libraries, but
9508            # adding the `-m68020' flag to GCC prevents building anything better,
9509            # like `-m68040'.
9510            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9511        ;;
9512      esac
9513      ;;
9514
9515    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9516      # PIC is the default for these OSes.
9517      ;;
9518
9519    mingw* | cygwin* | pw32* | os2* | cegcc*)
9520      # This hack is so that the source file can tell whether it is being
9521      # built for inclusion in a dll (and should export symbols for example).
9522      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9523      # (--disable-auto-import) libraries
9524      lt_prog_compiler_pic='-DDLL_EXPORT'
9525      ;;
9526
9527    darwin* | rhapsody*)
9528      # PIC is the default on this platform
9529      # Common symbols not allowed in MH_DYLIB files
9530      lt_prog_compiler_pic='-fno-common'
9531      ;;
9532
9533    haiku*)
9534      # PIC is the default for Haiku.
9535      # The "-static" flag exists, but is broken.
9536      lt_prog_compiler_static=
9537      ;;
9538
9539    hpux*)
9540      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9541      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9542      # sets the default TLS model and affects inlining.
9543      case $host_cpu in
9544      hppa*64*)
9545	# +Z the default
9546	;;
9547      *)
9548	lt_prog_compiler_pic='-fPIC'
9549	;;
9550      esac
9551      ;;
9552
9553    interix[3-9]*)
9554      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9555      # Instead, we relocate shared libraries at runtime.
9556      ;;
9557
9558    msdosdjgpp*)
9559      # Just because we use GCC doesn't mean we suddenly get shared libraries
9560      # on systems that don't support them.
9561      lt_prog_compiler_can_build_shared=no
9562      enable_shared=no
9563      ;;
9564
9565    *nto* | *qnx*)
9566      # QNX uses GNU C++, but need to define -shared option too, otherwise
9567      # it will coredump.
9568      lt_prog_compiler_pic='-fPIC -shared'
9569      ;;
9570
9571    sysv4*MP*)
9572      if test -d /usr/nec; then
9573	lt_prog_compiler_pic=-Kconform_pic
9574      fi
9575      ;;
9576
9577    *)
9578      lt_prog_compiler_pic='-fPIC'
9579      ;;
9580    esac
9581
9582    case $cc_basename in
9583    nvcc*) # Cuda Compiler Driver 2.2
9584      lt_prog_compiler_wl='-Xlinker '
9585      lt_prog_compiler_pic='-Xcompiler -fPIC'
9586      ;;
9587    esac
9588  else
9589    # PORTME Check for flag to pass linker flags through the system compiler.
9590    case $host_os in
9591    aix*)
9592      lt_prog_compiler_wl='-Wl,'
9593      if test "$host_cpu" = ia64; then
9594	# AIX 5 now supports IA64 processor
9595	lt_prog_compiler_static='-Bstatic'
9596      else
9597	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9598      fi
9599      ;;
9600
9601    mingw* | cygwin* | pw32* | os2* | cegcc*)
9602      # This hack is so that the source file can tell whether it is being
9603      # built for inclusion in a dll (and should export symbols for example).
9604      lt_prog_compiler_pic='-DDLL_EXPORT'
9605      ;;
9606
9607    hpux9* | hpux10* | hpux11*)
9608      lt_prog_compiler_wl='-Wl,'
9609      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9610      # not for PA HP-UX.
9611      case $host_cpu in
9612      hppa*64*|ia64*)
9613	# +Z the default
9614	;;
9615      *)
9616	lt_prog_compiler_pic='+Z'
9617	;;
9618      esac
9619      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9620      lt_prog_compiler_static='${wl}-a ${wl}archive'
9621      ;;
9622
9623    irix5* | irix6* | nonstopux*)
9624      lt_prog_compiler_wl='-Wl,'
9625      # PIC (with -KPIC) is the default.
9626      lt_prog_compiler_static='-non_shared'
9627      ;;
9628
9629    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9630      case $cc_basename in
9631      # old Intel for x86_64 which still supported -KPIC.
9632      ecc*)
9633	lt_prog_compiler_wl='-Wl,'
9634	lt_prog_compiler_pic='-KPIC'
9635	lt_prog_compiler_static='-static'
9636        ;;
9637      # icc used to be incompatible with GCC.
9638      # ICC 10 doesn't accept -KPIC any more.
9639      icc* | ifort*)
9640	lt_prog_compiler_wl='-Wl,'
9641	lt_prog_compiler_pic='-fPIC'
9642	lt_prog_compiler_static='-static'
9643        ;;
9644      # Lahey Fortran 8.1.
9645      lf95*)
9646	lt_prog_compiler_wl='-Wl,'
9647	lt_prog_compiler_pic='--shared'
9648	lt_prog_compiler_static='--static'
9649	;;
9650      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9651        # Portland Group compilers (*not* the Pentium gcc compiler,
9652	# which looks to be a dead project)
9653	lt_prog_compiler_wl='-Wl,'
9654	lt_prog_compiler_pic='-fpic'
9655	lt_prog_compiler_static='-Bstatic'
9656        ;;
9657      ccc*)
9658        lt_prog_compiler_wl='-Wl,'
9659        # All Alpha code is PIC.
9660        lt_prog_compiler_static='-non_shared'
9661        ;;
9662      xl* | bgxl* | bgf* | mpixl*)
9663	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9664	lt_prog_compiler_wl='-Wl,'
9665	lt_prog_compiler_pic='-qpic'
9666	lt_prog_compiler_static='-qstaticlink'
9667	;;
9668      *)
9669	case `$CC -V 2>&1 | sed 5q` in
9670	*Sun\ F* | *Sun*Fortran*)
9671	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9672	  lt_prog_compiler_pic='-KPIC'
9673	  lt_prog_compiler_static='-Bstatic'
9674	  lt_prog_compiler_wl=''
9675	  ;;
9676	*Sun\ C*)
9677	  # Sun C 5.9
9678	  lt_prog_compiler_pic='-KPIC'
9679	  lt_prog_compiler_static='-Bstatic'
9680	  lt_prog_compiler_wl='-Wl,'
9681	  ;;
9682	esac
9683	;;
9684      esac
9685      ;;
9686
9687    newsos6)
9688      lt_prog_compiler_pic='-KPIC'
9689      lt_prog_compiler_static='-Bstatic'
9690      ;;
9691
9692    *nto* | *qnx*)
9693      # QNX uses GNU C++, but need to define -shared option too, otherwise
9694      # it will coredump.
9695      lt_prog_compiler_pic='-fPIC -shared'
9696      ;;
9697
9698    osf3* | osf4* | osf5*)
9699      lt_prog_compiler_wl='-Wl,'
9700      # All OSF/1 code is PIC.
9701      lt_prog_compiler_static='-non_shared'
9702      ;;
9703
9704    rdos*)
9705      lt_prog_compiler_static='-non_shared'
9706      ;;
9707
9708    solaris*)
9709      lt_prog_compiler_pic='-KPIC'
9710      lt_prog_compiler_static='-Bstatic'
9711      case $cc_basename in
9712      f77* | f90* | f95*)
9713	lt_prog_compiler_wl='-Qoption ld ';;
9714      *)
9715	lt_prog_compiler_wl='-Wl,';;
9716      esac
9717      ;;
9718
9719    sunos4*)
9720      lt_prog_compiler_wl='-Qoption ld '
9721      lt_prog_compiler_pic='-PIC'
9722      lt_prog_compiler_static='-Bstatic'
9723      ;;
9724
9725    sysv4 | sysv4.2uw2* | sysv4.3*)
9726      lt_prog_compiler_wl='-Wl,'
9727      lt_prog_compiler_pic='-KPIC'
9728      lt_prog_compiler_static='-Bstatic'
9729      ;;
9730
9731    sysv4*MP*)
9732      if test -d /usr/nec ;then
9733	lt_prog_compiler_pic='-Kconform_pic'
9734	lt_prog_compiler_static='-Bstatic'
9735      fi
9736      ;;
9737
9738    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9739      lt_prog_compiler_wl='-Wl,'
9740      lt_prog_compiler_pic='-KPIC'
9741      lt_prog_compiler_static='-Bstatic'
9742      ;;
9743
9744    unicos*)
9745      lt_prog_compiler_wl='-Wl,'
9746      lt_prog_compiler_can_build_shared=no
9747      ;;
9748
9749    uts4*)
9750      lt_prog_compiler_pic='-pic'
9751      lt_prog_compiler_static='-Bstatic'
9752      ;;
9753
9754    *)
9755      lt_prog_compiler_can_build_shared=no
9756      ;;
9757    esac
9758  fi
9759
9760case $host_os in
9761  # For platforms which do not support PIC, -DPIC is meaningless:
9762  *djgpp*)
9763    lt_prog_compiler_pic=
9764    ;;
9765  *)
9766    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9767    ;;
9768esac
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9770$as_echo "$lt_prog_compiler_pic" >&6; }
9771
9772
9773
9774
9775
9776
9777#
9778# Check to make sure the PIC flag actually works.
9779#
9780if test -n "$lt_prog_compiler_pic"; then
9781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9782$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9783if ${lt_cv_prog_compiler_pic_works+:} false; then :
9784  $as_echo_n "(cached) " >&6
9785else
9786  lt_cv_prog_compiler_pic_works=no
9787   ac_outfile=conftest.$ac_objext
9788   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9789   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9790   # Insert the option either (1) after the last *FLAGS variable, or
9791   # (2) before a word containing "conftest.", or (3) at the end.
9792   # Note that $ac_compile itself does not contain backslashes and begins
9793   # with a dollar sign (not a hyphen), so the echo should work correctly.
9794   # The option is referenced via a variable to avoid confusing sed.
9795   lt_compile=`echo "$ac_compile" | $SED \
9796   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9797   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9798   -e 's:$: $lt_compiler_flag:'`
9799   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9800   (eval "$lt_compile" 2>conftest.err)
9801   ac_status=$?
9802   cat conftest.err >&5
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   if (exit $ac_status) && test -s "$ac_outfile"; then
9805     # The compiler can only warn and ignore the option if not recognized
9806     # So say no if there are warnings other than the usual output.
9807     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9808     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9809     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9810       lt_cv_prog_compiler_pic_works=yes
9811     fi
9812   fi
9813   $RM conftest*
9814
9815fi
9816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9817$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9818
9819if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9820    case $lt_prog_compiler_pic in
9821     "" | " "*) ;;
9822     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9823     esac
9824else
9825    lt_prog_compiler_pic=
9826     lt_prog_compiler_can_build_shared=no
9827fi
9828
9829fi
9830
9831
9832
9833
9834
9835
9836#
9837# Check to make sure the static flag actually works.
9838#
9839wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9841$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9842if ${lt_cv_prog_compiler_static_works+:} false; then :
9843  $as_echo_n "(cached) " >&6
9844else
9845  lt_cv_prog_compiler_static_works=no
9846   save_LDFLAGS="$LDFLAGS"
9847   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9848   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9849   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9850     # The linker can only warn and ignore the option if not recognized
9851     # So say no if there are warnings
9852     if test -s conftest.err; then
9853       # Append any errors to the config.log.
9854       cat conftest.err 1>&5
9855       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9856       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9857       if diff conftest.exp conftest.er2 >/dev/null; then
9858         lt_cv_prog_compiler_static_works=yes
9859       fi
9860     else
9861       lt_cv_prog_compiler_static_works=yes
9862     fi
9863   fi
9864   $RM -r conftest*
9865   LDFLAGS="$save_LDFLAGS"
9866
9867fi
9868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9869$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9870
9871if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9872    :
9873else
9874    lt_prog_compiler_static=
9875fi
9876
9877
9878
9879
9880
9881
9882
9883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9884$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9885if ${lt_cv_prog_compiler_c_o+:} false; then :
9886  $as_echo_n "(cached) " >&6
9887else
9888  lt_cv_prog_compiler_c_o=no
9889   $RM -r conftest 2>/dev/null
9890   mkdir conftest
9891   cd conftest
9892   mkdir out
9893   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9894
9895   lt_compiler_flag="-o out/conftest2.$ac_objext"
9896   # Insert the option either (1) after the last *FLAGS variable, or
9897   # (2) before a word containing "conftest.", or (3) at the end.
9898   # Note that $ac_compile itself does not contain backslashes and begins
9899   # with a dollar sign (not a hyphen), so the echo should work correctly.
9900   lt_compile=`echo "$ac_compile" | $SED \
9901   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9902   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9903   -e 's:$: $lt_compiler_flag:'`
9904   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9905   (eval "$lt_compile" 2>out/conftest.err)
9906   ac_status=$?
9907   cat out/conftest.err >&5
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9910   then
9911     # The compiler can only warn and ignore the option if not recognized
9912     # So say no if there are warnings
9913     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9914     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9915     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9916       lt_cv_prog_compiler_c_o=yes
9917     fi
9918   fi
9919   chmod u+w . 2>&5
9920   $RM conftest*
9921   # SGI C++ compiler will create directory out/ii_files/ for
9922   # template instantiation
9923   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9924   $RM out/* && rmdir out
9925   cd ..
9926   $RM -r conftest
9927   $RM conftest*
9928
9929fi
9930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9931$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9932
9933
9934
9935
9936
9937
9938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9939$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9940if ${lt_cv_prog_compiler_c_o+:} false; then :
9941  $as_echo_n "(cached) " >&6
9942else
9943  lt_cv_prog_compiler_c_o=no
9944   $RM -r conftest 2>/dev/null
9945   mkdir conftest
9946   cd conftest
9947   mkdir out
9948   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9949
9950   lt_compiler_flag="-o out/conftest2.$ac_objext"
9951   # Insert the option either (1) after the last *FLAGS variable, or
9952   # (2) before a word containing "conftest.", or (3) at the end.
9953   # Note that $ac_compile itself does not contain backslashes and begins
9954   # with a dollar sign (not a hyphen), so the echo should work correctly.
9955   lt_compile=`echo "$ac_compile" | $SED \
9956   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9957   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9958   -e 's:$: $lt_compiler_flag:'`
9959   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9960   (eval "$lt_compile" 2>out/conftest.err)
9961   ac_status=$?
9962   cat out/conftest.err >&5
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9965   then
9966     # The compiler can only warn and ignore the option if not recognized
9967     # So say no if there are warnings
9968     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9969     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9970     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9971       lt_cv_prog_compiler_c_o=yes
9972     fi
9973   fi
9974   chmod u+w . 2>&5
9975   $RM conftest*
9976   # SGI C++ compiler will create directory out/ii_files/ for
9977   # template instantiation
9978   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9979   $RM out/* && rmdir out
9980   cd ..
9981   $RM -r conftest
9982   $RM conftest*
9983
9984fi
9985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9986$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9987
9988
9989
9990
9991hard_links="nottested"
9992if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9993  # do not overwrite the value of need_locks provided by the user
9994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9995$as_echo_n "checking if we can lock with hard links... " >&6; }
9996  hard_links=yes
9997  $RM conftest*
9998  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9999  touch conftest.a
10000  ln conftest.a conftest.b 2>&5 || hard_links=no
10001  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10003$as_echo "$hard_links" >&6; }
10004  if test "$hard_links" = no; then
10005    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10006$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10007    need_locks=warn
10008  fi
10009else
10010  need_locks=no
10011fi
10012
10013
10014
10015
10016
10017
10018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10019$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10020
10021  runpath_var=
10022  allow_undefined_flag=
10023  always_export_symbols=no
10024  archive_cmds=
10025  archive_expsym_cmds=
10026  compiler_needs_object=no
10027  enable_shared_with_static_runtimes=no
10028  export_dynamic_flag_spec=
10029  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10030  hardcode_automatic=no
10031  hardcode_direct=no
10032  hardcode_direct_absolute=no
10033  hardcode_libdir_flag_spec=
10034  hardcode_libdir_flag_spec_ld=
10035  hardcode_libdir_separator=
10036  hardcode_minus_L=no
10037  hardcode_shlibpath_var=unsupported
10038  inherit_rpath=no
10039  link_all_deplibs=unknown
10040  module_cmds=
10041  module_expsym_cmds=
10042  old_archive_from_new_cmds=
10043  old_archive_from_expsyms_cmds=
10044  thread_safe_flag_spec=
10045  whole_archive_flag_spec=
10046  # include_expsyms should be a list of space-separated symbols to be *always*
10047  # included in the symbol list
10048  include_expsyms=
10049  # exclude_expsyms can be an extended regexp of symbols to exclude
10050  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10051  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10052  # as well as any symbol that contains `d'.
10053  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10054  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10055  # platforms (ab)use it in PIC code, but their linkers get confused if
10056  # the symbol is explicitly referenced.  Since portable code cannot
10057  # rely on this symbol name, it's probably fine to never include it in
10058  # preloaded symbol tables.
10059  # Exclude shared library initialization/finalization symbols.
10060  extract_expsyms_cmds=
10061
10062  case $host_os in
10063  cygwin* | mingw* | pw32* | cegcc*)
10064    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10065    # When not using gcc, we currently assume that we are using
10066    # Microsoft Visual C++.
10067    if test "$GCC" != yes; then
10068      with_gnu_ld=no
10069    fi
10070    ;;
10071  interix*)
10072    # we just hope/assume this is gcc and not c89 (= MSVC++)
10073    with_gnu_ld=yes
10074    ;;
10075  openbsd*)
10076    with_gnu_ld=no
10077    ;;
10078  esac
10079
10080  ld_shlibs=yes
10081
10082  # On some targets, GNU ld is compatible enough with the native linker
10083  # that we're better off using the native interface for both.
10084  lt_use_gnu_ld_interface=no
10085  if test "$with_gnu_ld" = yes; then
10086    case $host_os in
10087      aix*)
10088	# The AIX port of GNU ld has always aspired to compatibility
10089	# with the native linker.  However, as the warning in the GNU ld
10090	# block says, versions before 2.19.5* couldn't really create working
10091	# shared libraries, regardless of the interface used.
10092	case `$LD -v 2>&1` in
10093	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10094	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10095	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10096	  *)
10097	    lt_use_gnu_ld_interface=yes
10098	    ;;
10099	esac
10100	;;
10101      *)
10102	lt_use_gnu_ld_interface=yes
10103	;;
10104    esac
10105  fi
10106
10107  if test "$lt_use_gnu_ld_interface" = yes; then
10108    # If archive_cmds runs LD, not CC, wlarc should be empty
10109    wlarc='${wl}'
10110
10111    # Set some defaults for GNU ld with shared library support. These
10112    # are reset later if shared libraries are not supported. Putting them
10113    # here allows them to be overridden if necessary.
10114    runpath_var=LD_RUN_PATH
10115    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10116    export_dynamic_flag_spec='${wl}--export-dynamic'
10117    # ancient GNU ld didn't support --whole-archive et. al.
10118    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10119      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10120    else
10121      whole_archive_flag_spec=
10122    fi
10123    supports_anon_versioning=no
10124    case `$LD -v 2>&1` in
10125      *GNU\ gold*) supports_anon_versioning=yes ;;
10126      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10127      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10128      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10129      *\ 2.11.*) ;; # other 2.11 versions
10130      *) supports_anon_versioning=yes ;;
10131    esac
10132
10133    # See if GNU ld supports shared libraries.
10134    case $host_os in
10135    aix[3-9]*)
10136      # On AIX/PPC, the GNU linker is very broken
10137      if test "$host_cpu" != ia64; then
10138	ld_shlibs=no
10139	cat <<_LT_EOF 1>&2
10140
10141*** Warning: the GNU linker, at least up to release 2.19, is reported
10142*** to be unable to reliably create shared libraries on AIX.
10143*** Therefore, libtool is disabling shared libraries support.  If you
10144*** really care for shared libraries, you may want to install binutils
10145*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10146*** You will then need to restart the configuration process.
10147
10148_LT_EOF
10149      fi
10150      ;;
10151
10152    amigaos*)
10153      case $host_cpu in
10154      powerpc)
10155            # see comment about AmigaOS4 .so support
10156            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10157            archive_expsym_cmds=''
10158        ;;
10159      m68k)
10160            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)'
10161            hardcode_libdir_flag_spec='-L$libdir'
10162            hardcode_minus_L=yes
10163        ;;
10164      esac
10165      ;;
10166
10167    beos*)
10168      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10169	allow_undefined_flag=unsupported
10170	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10171	# support --undefined.  This deserves some investigation.  FIXME
10172	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10173      else
10174	ld_shlibs=no
10175      fi
10176      ;;
10177
10178    cygwin* | mingw* | pw32* | cegcc*)
10179      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10180      # as there is no search path for DLLs.
10181      hardcode_libdir_flag_spec='-L$libdir'
10182      export_dynamic_flag_spec='${wl}--export-all-symbols'
10183      allow_undefined_flag=unsupported
10184      always_export_symbols=no
10185      enable_shared_with_static_runtimes=yes
10186      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10187
10188      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10189        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10190	# If the export-symbols file already is a .def file (1st line
10191	# is EXPORTS), use it as is; otherwise, prepend...
10192	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10193	  cp $export_symbols $output_objdir/$soname.def;
10194	else
10195	  echo EXPORTS > $output_objdir/$soname.def;
10196	  cat $export_symbols >> $output_objdir/$soname.def;
10197	fi~
10198	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10199      else
10200	ld_shlibs=no
10201      fi
10202      ;;
10203
10204    haiku*)
10205      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206      link_all_deplibs=yes
10207      ;;
10208
10209    interix[3-9]*)
10210      hardcode_direct=no
10211      hardcode_shlibpath_var=no
10212      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10213      export_dynamic_flag_spec='${wl}-E'
10214      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10215      # Instead, shared libraries are loaded at an image base (0x10000000 by
10216      # default) and relocated if they conflict, which is a slow very memory
10217      # consuming and fragmenting process.  To avoid this, we pick a random,
10218      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10219      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10220      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10221      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'
10222      ;;
10223
10224    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10225      tmp_diet=no
10226      if test "$host_os" = linux-dietlibc; then
10227	case $cc_basename in
10228	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10229	esac
10230      fi
10231      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10232	 && test "$tmp_diet" = no
10233      then
10234	tmp_addflag=' $pic_flag'
10235	tmp_sharedflag='-shared'
10236	case $cc_basename,$host_cpu in
10237        pgcc*)				# Portland Group C compiler
10238	  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'
10239	  tmp_addflag=' $pic_flag'
10240	  ;;
10241	pgf77* | pgf90* | pgf95* | pgfortran*)
10242					# Portland Group f77 and f90 compilers
10243	  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'
10244	  tmp_addflag=' $pic_flag -Mnomain' ;;
10245	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10246	  tmp_addflag=' -i_dynamic' ;;
10247	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10248	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10249	ifc* | ifort*)			# Intel Fortran compiler
10250	  tmp_addflag=' -nofor_main' ;;
10251	lf95*)				# Lahey Fortran 8.1
10252	  whole_archive_flag_spec=
10253	  tmp_sharedflag='--shared' ;;
10254	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10255	  tmp_sharedflag='-qmkshrobj'
10256	  tmp_addflag= ;;
10257	nvcc*)	# Cuda Compiler Driver 2.2
10258	  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'
10259	  compiler_needs_object=yes
10260	  ;;
10261	esac
10262	case `$CC -V 2>&1 | sed 5q` in
10263	*Sun\ C*)			# Sun C 5.9
10264	  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'
10265	  compiler_needs_object=yes
10266	  tmp_sharedflag='-G' ;;
10267	*Sun\ F*)			# Sun Fortran 8.3
10268	  tmp_sharedflag='-G' ;;
10269	esac
10270	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10271
10272        if test "x$supports_anon_versioning" = xyes; then
10273          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10274	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10275	    echo "local: *; };" >> $output_objdir/$libname.ver~
10276	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10277        fi
10278
10279	case $cc_basename in
10280	xlf* | bgf* | bgxlf* | mpixlf*)
10281	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10282	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10283	  hardcode_libdir_flag_spec=
10284	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
10285	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10286	  if test "x$supports_anon_versioning" = xyes; then
10287	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10288	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10289	      echo "local: *; };" >> $output_objdir/$libname.ver~
10290	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10291	  fi
10292	  ;;
10293	esac
10294      else
10295        ld_shlibs=no
10296      fi
10297      ;;
10298
10299    netbsd*)
10300      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10301	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10302	wlarc=
10303      else
10304	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10305	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10306      fi
10307      ;;
10308
10309    solaris*)
10310      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10311	ld_shlibs=no
10312	cat <<_LT_EOF 1>&2
10313
10314*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10315*** create shared libraries on Solaris systems.  Therefore, libtool
10316*** is disabling shared libraries support.  We urge you to upgrade GNU
10317*** binutils to release 2.9.1 or newer.  Another option is to modify
10318*** your PATH or compiler configuration so that the native linker is
10319*** used, and then restart.
10320
10321_LT_EOF
10322      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10323	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10324	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10325      else
10326	ld_shlibs=no
10327      fi
10328      ;;
10329
10330    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10331      case `$LD -v 2>&1` in
10332        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10333	ld_shlibs=no
10334	cat <<_LT_EOF 1>&2
10335
10336*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10337*** reliably create shared libraries on SCO systems.  Therefore, libtool
10338*** is disabling shared libraries support.  We urge you to upgrade GNU
10339*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10340*** your PATH or compiler configuration so that the native linker is
10341*** used, and then restart.
10342
10343_LT_EOF
10344	;;
10345	*)
10346	  # For security reasons, it is highly recommended that you always
10347	  # use absolute paths for naming shared libraries, and exclude the
10348	  # DT_RUNPATH tag from executables and libraries.  But doing so
10349	  # requires that you compile everything twice, which is a pain.
10350	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10351	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10352	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10353	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10354	  else
10355	    ld_shlibs=no
10356	  fi
10357	;;
10358      esac
10359      ;;
10360
10361    sunos4*)
10362      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10363      wlarc=
10364      hardcode_direct=yes
10365      hardcode_shlibpath_var=no
10366      ;;
10367
10368    *)
10369      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10370	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10371	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10372      else
10373	ld_shlibs=no
10374      fi
10375      ;;
10376    esac
10377
10378    if test "$ld_shlibs" = no; then
10379      runpath_var=
10380      hardcode_libdir_flag_spec=
10381      export_dynamic_flag_spec=
10382      whole_archive_flag_spec=
10383    fi
10384  else
10385    # PORTME fill in a description of your system's linker (not GNU ld)
10386    case $host_os in
10387    aix3*)
10388      allow_undefined_flag=unsupported
10389      always_export_symbols=yes
10390      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'
10391      # Note: this linker hardcodes the directories in LIBPATH if there
10392      # are no directories specified by -L.
10393      hardcode_minus_L=yes
10394      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10395	# Neither direct hardcoding nor static linking is supported with a
10396	# broken collect2.
10397	hardcode_direct=unsupported
10398      fi
10399      ;;
10400
10401    aix[4-9]*)
10402      if test "$host_cpu" = ia64; then
10403	# On IA64, the linker does run time linking by default, so we don't
10404	# have to do anything special.
10405	aix_use_runtimelinking=no
10406	exp_sym_flag='-Bexport'
10407	no_entry_flag=""
10408      else
10409	# If we're using GNU nm, then we don't want the "-C" option.
10410	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10411	# Also, AIX nm treats weak defined symbols like other global
10412	# defined symbols, whereas GNU nm marks them as "W".
10413	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10414	  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'
10415	else
10416	  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'
10417	fi
10418	aix_use_runtimelinking=no
10419
10420	# Test if we are trying to use run time linking or normal
10421	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10422	# need to do runtime linking.
10423	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10424	  for ld_flag in $LDFLAGS; do
10425	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10426	    aix_use_runtimelinking=yes
10427	    break
10428	  fi
10429	  done
10430	  ;;
10431	esac
10432
10433	exp_sym_flag='-bexport'
10434	no_entry_flag='-bnoentry'
10435      fi
10436
10437      # When large executables or shared objects are built, AIX ld can
10438      # have problems creating the table of contents.  If linking a library
10439      # or program results in "error TOC overflow" add -mminimal-toc to
10440      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10441      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10442
10443      archive_cmds=''
10444      hardcode_direct=yes
10445      hardcode_direct_absolute=yes
10446      hardcode_libdir_separator=':'
10447      link_all_deplibs=yes
10448      file_list_spec='${wl}-f,'
10449
10450      if test "$GCC" = yes; then
10451	case $host_os in aix4.[012]|aix4.[012].*)
10452	# We only want to do this on AIX 4.2 and lower, the check
10453	# below for broken collect2 doesn't work under 4.3+
10454	  collect2name=`${CC} -print-prog-name=collect2`
10455	  if test -f "$collect2name" &&
10456	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10457	  then
10458	  # We have reworked collect2
10459	  :
10460	  else
10461	  # We have old collect2
10462	  hardcode_direct=unsupported
10463	  # It fails to find uninstalled libraries when the uninstalled
10464	  # path is not listed in the libpath.  Setting hardcode_minus_L
10465	  # to unsupported forces relinking
10466	  hardcode_minus_L=yes
10467	  hardcode_libdir_flag_spec='-L$libdir'
10468	  hardcode_libdir_separator=
10469	  fi
10470	  ;;
10471	esac
10472	shared_flag='-shared'
10473	if test "$aix_use_runtimelinking" = yes; then
10474	  shared_flag="$shared_flag "'${wl}-G'
10475	fi
10476      else
10477	# not using gcc
10478	if test "$host_cpu" = ia64; then
10479	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10480	# chokes on -Wl,-G. The following line is correct:
10481	  shared_flag='-G'
10482	else
10483	  if test "$aix_use_runtimelinking" = yes; then
10484	    shared_flag='${wl}-G'
10485	  else
10486	    shared_flag='${wl}-bM:SRE'
10487	  fi
10488	fi
10489      fi
10490
10491      export_dynamic_flag_spec='${wl}-bexpall'
10492      # It seems that -bexpall does not export symbols beginning with
10493      # underscore (_), so it is better to generate a list of symbols to export.
10494      always_export_symbols=yes
10495      if test "$aix_use_runtimelinking" = yes; then
10496	# Warning - without using the other runtime loading flags (-brtl),
10497	# -berok will link without error, but may produce a broken library.
10498	allow_undefined_flag='-berok'
10499        # Determine the default libpath from the value encoded in an
10500        # empty executable.
10501        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502/* end confdefs.h.  */
10503
10504int
10505main ()
10506{
10507
10508  ;
10509  return 0;
10510}
10511_ACEOF
10512if ac_fn_c_try_link "$LINENO"; then :
10513
10514lt_aix_libpath_sed='
10515    /Import File Strings/,/^$/ {
10516	/^0/ {
10517	    s/^0  *\(.*\)$/\1/
10518	    p
10519	}
10520    }'
10521aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10522# Check for a 64-bit object if we didn't find anything.
10523if test -z "$aix_libpath"; then
10524  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10525fi
10526fi
10527rm -f core conftest.err conftest.$ac_objext \
10528    conftest$ac_exeext conftest.$ac_ext
10529if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10530
10531        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10532        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"
10533      else
10534	if test "$host_cpu" = ia64; then
10535	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10536	  allow_undefined_flag="-z nodefs"
10537	  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"
10538	else
10539	 # Determine the default libpath from the value encoded in an
10540	 # empty executable.
10541	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542/* end confdefs.h.  */
10543
10544int
10545main ()
10546{
10547
10548  ;
10549  return 0;
10550}
10551_ACEOF
10552if ac_fn_c_try_link "$LINENO"; then :
10553
10554lt_aix_libpath_sed='
10555    /Import File Strings/,/^$/ {
10556	/^0/ {
10557	    s/^0  *\(.*\)$/\1/
10558	    p
10559	}
10560    }'
10561aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10562# Check for a 64-bit object if we didn't find anything.
10563if test -z "$aix_libpath"; then
10564  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10565fi
10566fi
10567rm -f core conftest.err conftest.$ac_objext \
10568    conftest$ac_exeext conftest.$ac_ext
10569if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10570
10571	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10572	  # Warning - without using the other run time loading flags,
10573	  # -berok will link without error, but may produce a broken library.
10574	  no_undefined_flag=' ${wl}-bernotok'
10575	  allow_undefined_flag=' ${wl}-berok'
10576	  if test "$with_gnu_ld" = yes; then
10577	    # We only use this code for GNU lds that support --whole-archive.
10578	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10579	  else
10580	    # Exported symbols can be pulled into shared objects from archives
10581	    whole_archive_flag_spec='$convenience'
10582	  fi
10583	  archive_cmds_need_lc=yes
10584	  # This is similar to how AIX traditionally builds its shared libraries.
10585	  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'
10586	fi
10587      fi
10588      ;;
10589
10590    amigaos*)
10591      case $host_cpu in
10592      powerpc)
10593            # see comment about AmigaOS4 .so support
10594            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10595            archive_expsym_cmds=''
10596        ;;
10597      m68k)
10598            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)'
10599            hardcode_libdir_flag_spec='-L$libdir'
10600            hardcode_minus_L=yes
10601        ;;
10602      esac
10603      ;;
10604
10605    bsdi[45]*)
10606      export_dynamic_flag_spec=-rdynamic
10607      ;;
10608
10609    cygwin* | mingw* | pw32* | cegcc*)
10610      # When not using gcc, we currently assume that we are using
10611      # Microsoft Visual C++.
10612      # hardcode_libdir_flag_spec is actually meaningless, as there is
10613      # no search path for DLLs.
10614      hardcode_libdir_flag_spec=' '
10615      allow_undefined_flag=unsupported
10616      # Tell ltmain to make .lib files, not .a files.
10617      libext=lib
10618      # Tell ltmain to make .dll files, not .so files.
10619      shrext_cmds=".dll"
10620      # FIXME: Setting linknames here is a bad hack.
10621      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10622      # The linker will automatically build a .lib file if we build a DLL.
10623      old_archive_from_new_cmds='true'
10624      # FIXME: Should let the user specify the lib program.
10625      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10626      fix_srcfile_path='`cygpath -w "$srcfile"`'
10627      enable_shared_with_static_runtimes=yes
10628      ;;
10629
10630    darwin* | rhapsody*)
10631
10632
10633  archive_cmds_need_lc=no
10634  hardcode_direct=no
10635  hardcode_automatic=yes
10636  hardcode_shlibpath_var=unsupported
10637  if test "$lt_cv_ld_force_load" = "yes"; then
10638    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\"`'
10639  else
10640    whole_archive_flag_spec=''
10641  fi
10642  link_all_deplibs=yes
10643  allow_undefined_flag="$_lt_dar_allow_undefined"
10644  case $cc_basename in
10645     ifort*) _lt_dar_can_shared=yes ;;
10646     *) _lt_dar_can_shared=$GCC ;;
10647  esac
10648  if test "$_lt_dar_can_shared" = "yes"; then
10649    output_verbose_link_cmd=func_echo_all
10650    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10651    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10652    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}"
10653    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}"
10654
10655  else
10656  ld_shlibs=no
10657  fi
10658
10659      ;;
10660
10661    dgux*)
10662      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10663      hardcode_libdir_flag_spec='-L$libdir'
10664      hardcode_shlibpath_var=no
10665      ;;
10666
10667    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10668    # support.  Future versions do this automatically, but an explicit c++rt0.o
10669    # does not break anything, and helps significantly (at the cost of a little
10670    # extra space).
10671    freebsd2.2*)
10672      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10673      hardcode_libdir_flag_spec='-R$libdir'
10674      hardcode_direct=yes
10675      hardcode_shlibpath_var=no
10676      ;;
10677
10678    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10679    freebsd2.*)
10680      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10681      hardcode_direct=yes
10682      hardcode_minus_L=yes
10683      hardcode_shlibpath_var=no
10684      ;;
10685
10686    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10687    freebsd* | dragonfly*)
10688      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10689      hardcode_libdir_flag_spec='-R$libdir'
10690      hardcode_direct=yes
10691      hardcode_shlibpath_var=no
10692      ;;
10693
10694    hpux9*)
10695      if test "$GCC" = yes; then
10696	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'
10697      else
10698	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'
10699      fi
10700      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10701      hardcode_libdir_separator=:
10702      hardcode_direct=yes
10703
10704      # hardcode_minus_L: Not really in the search PATH,
10705      # but as the default location of the library.
10706      hardcode_minus_L=yes
10707      export_dynamic_flag_spec='${wl}-E'
10708      ;;
10709
10710    hpux10*)
10711      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10712	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10713      else
10714	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10715      fi
10716      if test "$with_gnu_ld" = no; then
10717	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10718	hardcode_libdir_flag_spec_ld='+b $libdir'
10719	hardcode_libdir_separator=:
10720	hardcode_direct=yes
10721	hardcode_direct_absolute=yes
10722	export_dynamic_flag_spec='${wl}-E'
10723	# hardcode_minus_L: Not really in the search PATH,
10724	# but as the default location of the library.
10725	hardcode_minus_L=yes
10726      fi
10727      ;;
10728
10729    hpux11*)
10730      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10731	case $host_cpu in
10732	hppa*64*)
10733	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10734	  ;;
10735	ia64*)
10736	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10737	  ;;
10738	*)
10739	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10740	  ;;
10741	esac
10742      else
10743	case $host_cpu in
10744	hppa*64*)
10745	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10746	  ;;
10747	ia64*)
10748	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10749	  ;;
10750	*)
10751
10752	  # Older versions of the 11.00 compiler do not understand -b yet
10753	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10754	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10755$as_echo_n "checking if $CC understands -b... " >&6; }
10756if ${lt_cv_prog_compiler__b+:} false; then :
10757  $as_echo_n "(cached) " >&6
10758else
10759  lt_cv_prog_compiler__b=no
10760   save_LDFLAGS="$LDFLAGS"
10761   LDFLAGS="$LDFLAGS -b"
10762   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10763   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10764     # The linker can only warn and ignore the option if not recognized
10765     # So say no if there are warnings
10766     if test -s conftest.err; then
10767       # Append any errors to the config.log.
10768       cat conftest.err 1>&5
10769       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10770       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10771       if diff conftest.exp conftest.er2 >/dev/null; then
10772         lt_cv_prog_compiler__b=yes
10773       fi
10774     else
10775       lt_cv_prog_compiler__b=yes
10776     fi
10777   fi
10778   $RM -r conftest*
10779   LDFLAGS="$save_LDFLAGS"
10780
10781fi
10782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10783$as_echo "$lt_cv_prog_compiler__b" >&6; }
10784
10785if test x"$lt_cv_prog_compiler__b" = xyes; then
10786    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10787else
10788    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10789fi
10790
10791	  ;;
10792	esac
10793      fi
10794      if test "$with_gnu_ld" = no; then
10795	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10796	hardcode_libdir_separator=:
10797
10798	case $host_cpu in
10799	hppa*64*|ia64*)
10800	  hardcode_direct=no
10801	  hardcode_shlibpath_var=no
10802	  ;;
10803	*)
10804	  hardcode_direct=yes
10805	  hardcode_direct_absolute=yes
10806	  export_dynamic_flag_spec='${wl}-E'
10807
10808	  # hardcode_minus_L: Not really in the search PATH,
10809	  # but as the default location of the library.
10810	  hardcode_minus_L=yes
10811	  ;;
10812	esac
10813      fi
10814      ;;
10815
10816    irix5* | irix6* | nonstopux*)
10817      if test "$GCC" = yes; then
10818	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'
10819	# Try to use the -exported_symbol ld option, if it does not
10820	# work, assume that -exports_file does not work either and
10821	# implicitly export all symbols.
10822        save_LDFLAGS="$LDFLAGS"
10823        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10824        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825/* end confdefs.h.  */
10826int foo(void) {}
10827_ACEOF
10828if ac_fn_c_try_link "$LINENO"; then :
10829  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'
10830
10831fi
10832rm -f core conftest.err conftest.$ac_objext \
10833    conftest$ac_exeext conftest.$ac_ext
10834        LDFLAGS="$save_LDFLAGS"
10835      else
10836	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'
10837	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'
10838      fi
10839      archive_cmds_need_lc='no'
10840      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10841      hardcode_libdir_separator=:
10842      inherit_rpath=yes
10843      link_all_deplibs=yes
10844      ;;
10845
10846    netbsd*)
10847      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10848	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10849      else
10850	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10851      fi
10852      hardcode_libdir_flag_spec='-R$libdir'
10853      hardcode_direct=yes
10854      hardcode_shlibpath_var=no
10855      ;;
10856
10857    newsos6)
10858      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10859      hardcode_direct=yes
10860      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10861      hardcode_libdir_separator=:
10862      hardcode_shlibpath_var=no
10863      ;;
10864
10865    *nto* | *qnx*)
10866      ;;
10867
10868    openbsd*)
10869      if test -f /usr/libexec/ld.so; then
10870	hardcode_direct=yes
10871	hardcode_shlibpath_var=no
10872	hardcode_direct_absolute=yes
10873	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10874	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10875	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10876	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10877	  export_dynamic_flag_spec='${wl}-E'
10878	else
10879	  case $host_os in
10880	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10881	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10882	     hardcode_libdir_flag_spec='-R$libdir'
10883	     ;;
10884	   *)
10885	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10886	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10887	     ;;
10888	  esac
10889	fi
10890      else
10891	ld_shlibs=no
10892      fi
10893      ;;
10894
10895    os2*)
10896      hardcode_libdir_flag_spec='-L$libdir'
10897      hardcode_minus_L=yes
10898      allow_undefined_flag=unsupported
10899      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'
10900      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10901      ;;
10902
10903    osf3*)
10904      if test "$GCC" = yes; then
10905	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10906	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'
10907      else
10908	allow_undefined_flag=' -expect_unresolved \*'
10909	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'
10910      fi
10911      archive_cmds_need_lc='no'
10912      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10913      hardcode_libdir_separator=:
10914      ;;
10915
10916    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10917      if test "$GCC" = yes; then
10918	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10919	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'
10920	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10921      else
10922	allow_undefined_flag=' -expect_unresolved \*'
10923	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'
10924	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~
10925	$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'
10926
10927	# Both c and cxx compiler support -rpath directly
10928	hardcode_libdir_flag_spec='-rpath $libdir'
10929      fi
10930      archive_cmds_need_lc='no'
10931      hardcode_libdir_separator=:
10932      ;;
10933
10934    solaris*)
10935      no_undefined_flag=' -z defs'
10936      if test "$GCC" = yes; then
10937	wlarc='${wl}'
10938	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10939	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10940	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10941      else
10942	case `$CC -V 2>&1` in
10943	*"Compilers 5.0"*)
10944	  wlarc=''
10945	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10946	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10947	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10948	  ;;
10949	*)
10950	  wlarc='${wl}'
10951	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10952	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10953	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10954	  ;;
10955	esac
10956      fi
10957      hardcode_libdir_flag_spec='-R$libdir'
10958      hardcode_shlibpath_var=no
10959      case $host_os in
10960      solaris2.[0-5] | solaris2.[0-5].*) ;;
10961      *)
10962	# The compiler driver will combine and reorder linker options,
10963	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10964	# but is careful enough not to reorder.
10965	# Supported since Solaris 2.6 (maybe 2.5.1?)
10966	if test "$GCC" = yes; then
10967	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10968	else
10969	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10970	fi
10971	;;
10972      esac
10973      link_all_deplibs=yes
10974      ;;
10975
10976    sunos4*)
10977      if test "x$host_vendor" = xsequent; then
10978	# Use $CC to link under sequent, because it throws in some extra .o
10979	# files that make .init and .fini sections work.
10980	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10981      else
10982	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10983      fi
10984      hardcode_libdir_flag_spec='-L$libdir'
10985      hardcode_direct=yes
10986      hardcode_minus_L=yes
10987      hardcode_shlibpath_var=no
10988      ;;
10989
10990    sysv4)
10991      case $host_vendor in
10992	sni)
10993	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10994	  hardcode_direct=yes # is this really true???
10995	;;
10996	siemens)
10997	  ## LD is ld it makes a PLAMLIB
10998	  ## CC just makes a GrossModule.
10999	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11000	  reload_cmds='$CC -r -o $output$reload_objs'
11001	  hardcode_direct=no
11002        ;;
11003	motorola)
11004	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11005	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11006	;;
11007      esac
11008      runpath_var='LD_RUN_PATH'
11009      hardcode_shlibpath_var=no
11010      ;;
11011
11012    sysv4.3*)
11013      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11014      hardcode_shlibpath_var=no
11015      export_dynamic_flag_spec='-Bexport'
11016      ;;
11017
11018    sysv4*MP*)
11019      if test -d /usr/nec; then
11020	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11021	hardcode_shlibpath_var=no
11022	runpath_var=LD_RUN_PATH
11023	hardcode_runpath_var=yes
11024	ld_shlibs=yes
11025      fi
11026      ;;
11027
11028    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11029      no_undefined_flag='${wl}-z,text'
11030      archive_cmds_need_lc=no
11031      hardcode_shlibpath_var=no
11032      runpath_var='LD_RUN_PATH'
11033
11034      if test "$GCC" = yes; then
11035	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037      else
11038	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11039	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11040      fi
11041      ;;
11042
11043    sysv5* | sco3.2v5* | sco5v6*)
11044      # Note: We can NOT use -z defs as we might desire, because we do not
11045      # link with -lc, and that would cause any symbols used from libc to
11046      # always be unresolved, which means just about no library would
11047      # ever link correctly.  If we're not using GNU ld we use -z text
11048      # though, which does catch some bad symbols but isn't as heavy-handed
11049      # as -z defs.
11050      no_undefined_flag='${wl}-z,text'
11051      allow_undefined_flag='${wl}-z,nodefs'
11052      archive_cmds_need_lc=no
11053      hardcode_shlibpath_var=no
11054      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11055      hardcode_libdir_separator=':'
11056      link_all_deplibs=yes
11057      export_dynamic_flag_spec='${wl}-Bexport'
11058      runpath_var='LD_RUN_PATH'
11059
11060      if test "$GCC" = yes; then
11061	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11062	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11063      else
11064	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11065	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11066      fi
11067      ;;
11068
11069    uts4*)
11070      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11071      hardcode_libdir_flag_spec='-L$libdir'
11072      hardcode_shlibpath_var=no
11073      ;;
11074
11075    *)
11076      ld_shlibs=no
11077      ;;
11078    esac
11079
11080    if test x$host_vendor = xsni; then
11081      case $host in
11082      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11083	export_dynamic_flag_spec='${wl}-Blargedynsym'
11084	;;
11085      esac
11086    fi
11087  fi
11088
11089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11090$as_echo "$ld_shlibs" >&6; }
11091test "$ld_shlibs" = no && can_build_shared=no
11092
11093with_gnu_ld=$with_gnu_ld
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109#
11110# Do we need to explicitly link libc?
11111#
11112case "x$archive_cmds_need_lc" in
11113x|xyes)
11114  # Assume -lc should be added
11115  archive_cmds_need_lc=yes
11116
11117  if test "$enable_shared" = yes && test "$GCC" = yes; then
11118    case $archive_cmds in
11119    *'~'*)
11120      # FIXME: we may have to deal with multi-command sequences.
11121      ;;
11122    '$CC '*)
11123      # Test whether the compiler implicitly links with -lc since on some
11124      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11125      # to ld, don't add -lc before -lgcc.
11126      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11127$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11128if ${lt_cv_archive_cmds_need_lc+:} false; then :
11129  $as_echo_n "(cached) " >&6
11130else
11131  $RM conftest*
11132	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11133
11134	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11135  (eval $ac_compile) 2>&5
11136  ac_status=$?
11137  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11138  test $ac_status = 0; } 2>conftest.err; then
11139	  soname=conftest
11140	  lib=conftest
11141	  libobjs=conftest.$ac_objext
11142	  deplibs=
11143	  wl=$lt_prog_compiler_wl
11144	  pic_flag=$lt_prog_compiler_pic
11145	  compiler_flags=-v
11146	  linker_flags=-v
11147	  verstring=
11148	  output_objdir=.
11149	  libname=conftest
11150	  lt_save_allow_undefined_flag=$allow_undefined_flag
11151	  allow_undefined_flag=
11152	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11153  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11154  ac_status=$?
11155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11156  test $ac_status = 0; }
11157	  then
11158	    lt_cv_archive_cmds_need_lc=no
11159	  else
11160	    lt_cv_archive_cmds_need_lc=yes
11161	  fi
11162	  allow_undefined_flag=$lt_save_allow_undefined_flag
11163	else
11164	  cat conftest.err 1>&5
11165	fi
11166	$RM conftest*
11167
11168fi
11169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11170$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11171      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11172      ;;
11173    esac
11174  fi
11175  ;;
11176esac
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11335$as_echo_n "checking dynamic linker characteristics... " >&6; }
11336
11337if test "$GCC" = yes; then
11338  case $host_os in
11339    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11340    *) lt_awk_arg="/^libraries:/" ;;
11341  esac
11342  case $host_os in
11343    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11344    *) lt_sed_strip_eq="s,=/,/,g" ;;
11345  esac
11346  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11347  case $lt_search_path_spec in
11348  *\;*)
11349    # if the path contains ";" then we assume it to be the separator
11350    # otherwise default to the standard path separator (i.e. ":") - it is
11351    # assumed that no part of a normal pathname contains ";" but that should
11352    # okay in the real world where ";" in dirpaths is itself problematic.
11353    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11354    ;;
11355  *)
11356    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11357    ;;
11358  esac
11359  # Ok, now we have the path, separated by spaces, we can step through it
11360  # and add multilib dir if necessary.
11361  lt_tmp_lt_search_path_spec=
11362  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11363  for lt_sys_path in $lt_search_path_spec; do
11364    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11365      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11366    else
11367      test -d "$lt_sys_path" && \
11368	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11369    fi
11370  done
11371  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11372BEGIN {RS=" "; FS="/|\n";} {
11373  lt_foo="";
11374  lt_count=0;
11375  for (lt_i = NF; lt_i > 0; lt_i--) {
11376    if ($lt_i != "" && $lt_i != ".") {
11377      if ($lt_i == "..") {
11378        lt_count++;
11379      } else {
11380        if (lt_count == 0) {
11381          lt_foo="/" $lt_i lt_foo;
11382        } else {
11383          lt_count--;
11384        }
11385      }
11386    }
11387  }
11388  if (lt_foo != "") { lt_freq[lt_foo]++; }
11389  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11390}'`
11391  # AWK program above erroneously prepends '/' to C:/dos/paths
11392  # for these hosts.
11393  case $host_os in
11394    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11395      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11396  esac
11397  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11398else
11399  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11400fi
11401library_names_spec=
11402libname_spec='lib$name'
11403soname_spec=
11404shrext_cmds=".so"
11405postinstall_cmds=
11406postuninstall_cmds=
11407finish_cmds=
11408finish_eval=
11409shlibpath_var=
11410shlibpath_overrides_runpath=unknown
11411version_type=none
11412dynamic_linker="$host_os ld.so"
11413sys_lib_dlsearch_path_spec="/lib /usr/lib"
11414need_lib_prefix=unknown
11415hardcode_into_libs=no
11416
11417# when you set need_version to no, make sure it does not cause -set_version
11418# flags to be left without arguments
11419need_version=unknown
11420
11421case $host_os in
11422aix3*)
11423  version_type=linux
11424  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11425  shlibpath_var=LIBPATH
11426
11427  # AIX 3 has no versioning support, so we append a major version to the name.
11428  soname_spec='${libname}${release}${shared_ext}$major'
11429  ;;
11430
11431aix[4-9]*)
11432  version_type=linux
11433  need_lib_prefix=no
11434  need_version=no
11435  hardcode_into_libs=yes
11436  if test "$host_cpu" = ia64; then
11437    # AIX 5 supports IA64
11438    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11439    shlibpath_var=LD_LIBRARY_PATH
11440  else
11441    # With GCC up to 2.95.x, collect2 would create an import file
11442    # for dependence libraries.  The import file would start with
11443    # the line `#! .'.  This would cause the generated library to
11444    # depend on `.', always an invalid library.  This was fixed in
11445    # development snapshots of GCC prior to 3.0.
11446    case $host_os in
11447      aix4 | aix4.[01] | aix4.[01].*)
11448      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11449	   echo ' yes '
11450	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11451	:
11452      else
11453	can_build_shared=no
11454      fi
11455      ;;
11456    esac
11457    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11458    # soname into executable. Probably we can add versioning support to
11459    # collect2, so additional links can be useful in future.
11460    if test "$aix_use_runtimelinking" = yes; then
11461      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11462      # instead of lib<name>.a to let people know that these are not
11463      # typical AIX shared libraries.
11464      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465    else
11466      # We preserve .a as extension for shared libraries through AIX4.2
11467      # and later when we are not doing run time linking.
11468      library_names_spec='${libname}${release}.a $libname.a'
11469      soname_spec='${libname}${release}${shared_ext}$major'
11470    fi
11471    shlibpath_var=LIBPATH
11472  fi
11473  ;;
11474
11475amigaos*)
11476  case $host_cpu in
11477  powerpc)
11478    # Since July 2007 AmigaOS4 officially supports .so libraries.
11479    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11480    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11481    ;;
11482  m68k)
11483    library_names_spec='$libname.ixlibrary $libname.a'
11484    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11485    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'
11486    ;;
11487  esac
11488  ;;
11489
11490beos*)
11491  library_names_spec='${libname}${shared_ext}'
11492  dynamic_linker="$host_os ld.so"
11493  shlibpath_var=LIBRARY_PATH
11494  ;;
11495
11496bsdi[45]*)
11497  version_type=linux
11498  need_version=no
11499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500  soname_spec='${libname}${release}${shared_ext}$major'
11501  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11502  shlibpath_var=LD_LIBRARY_PATH
11503  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11504  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11505  # the default ld.so.conf also contains /usr/contrib/lib and
11506  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11507  # libtool to hard-code these into programs
11508  ;;
11509
11510cygwin* | mingw* | pw32* | cegcc*)
11511  version_type=windows
11512  shrext_cmds=".dll"
11513  need_version=no
11514  need_lib_prefix=no
11515
11516  case $GCC,$host_os in
11517  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11518    library_names_spec='$libname.dll.a'
11519    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11520    postinstall_cmds='base_file=`basename \${file}`~
11521      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11522      dldir=$destdir/`dirname \$dlpath`~
11523      test -d \$dldir || mkdir -p \$dldir~
11524      $install_prog $dir/$dlname \$dldir/$dlname~
11525      chmod a+x \$dldir/$dlname~
11526      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11527        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11528      fi'
11529    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11530      dlpath=$dir/\$dldll~
11531       $RM \$dlpath'
11532    shlibpath_overrides_runpath=yes
11533
11534    case $host_os in
11535    cygwin*)
11536      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11537      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11538
11539      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11540      ;;
11541    mingw* | cegcc*)
11542      # MinGW DLLs use traditional 'lib' prefix
11543      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11544      ;;
11545    pw32*)
11546      # pw32 DLLs use 'pw' prefix rather than 'lib'
11547      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11548      ;;
11549    esac
11550    ;;
11551
11552  *)
11553    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11554    ;;
11555  esac
11556  dynamic_linker='Win32 ld.exe'
11557  # FIXME: first we should search . and the directory the executable is in
11558  shlibpath_var=PATH
11559  ;;
11560
11561darwin* | rhapsody*)
11562  dynamic_linker="$host_os dyld"
11563  version_type=darwin
11564  need_lib_prefix=no
11565  need_version=no
11566  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11567  soname_spec='${libname}${release}${major}$shared_ext'
11568  shlibpath_overrides_runpath=yes
11569  shlibpath_var=DYLD_LIBRARY_PATH
11570  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11571
11572  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11573  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11574  ;;
11575
11576dgux*)
11577  version_type=linux
11578  need_lib_prefix=no
11579  need_version=no
11580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11581  soname_spec='${libname}${release}${shared_ext}$major'
11582  shlibpath_var=LD_LIBRARY_PATH
11583  ;;
11584
11585freebsd* | dragonfly*)
11586  # DragonFly does not have aout.  When/if they implement a new
11587  # versioning mechanism, adjust this.
11588  if test -x /usr/bin/objformat; then
11589    objformat=`/usr/bin/objformat`
11590  else
11591    case $host_os in
11592    freebsd[23].*) objformat=aout ;;
11593    *) objformat=elf ;;
11594    esac
11595  fi
11596  version_type=freebsd-$objformat
11597  case $version_type in
11598    freebsd-elf*)
11599      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11600      need_version=no
11601      need_lib_prefix=no
11602      ;;
11603    freebsd-*)
11604      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11605      need_version=yes
11606      ;;
11607  esac
11608  shlibpath_var=LD_LIBRARY_PATH
11609  case $host_os in
11610  freebsd2.*)
11611    shlibpath_overrides_runpath=yes
11612    ;;
11613  freebsd3.[01]* | freebsdelf3.[01]*)
11614    shlibpath_overrides_runpath=yes
11615    hardcode_into_libs=yes
11616    ;;
11617  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11618  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11619    shlibpath_overrides_runpath=no
11620    hardcode_into_libs=yes
11621    ;;
11622  *) # from 4.6 on, and DragonFly
11623    shlibpath_overrides_runpath=yes
11624    hardcode_into_libs=yes
11625    ;;
11626  esac
11627  ;;
11628
11629haiku*)
11630  version_type=linux
11631  need_lib_prefix=no
11632  need_version=no
11633  dynamic_linker="$host_os runtime_loader"
11634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11635  soname_spec='${libname}${release}${shared_ext}$major'
11636  shlibpath_var=LIBRARY_PATH
11637  shlibpath_overrides_runpath=yes
11638  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11639  hardcode_into_libs=yes
11640  ;;
11641
11642hpux9* | hpux10* | hpux11*)
11643  # Give a soname corresponding to the major version so that dld.sl refuses to
11644  # link against other versions.
11645  version_type=sunos
11646  need_lib_prefix=no
11647  need_version=no
11648  case $host_cpu in
11649  ia64*)
11650    shrext_cmds='.so'
11651    hardcode_into_libs=yes
11652    dynamic_linker="$host_os dld.so"
11653    shlibpath_var=LD_LIBRARY_PATH
11654    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11655    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11656    soname_spec='${libname}${release}${shared_ext}$major'
11657    if test "X$HPUX_IA64_MODE" = X32; then
11658      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11659    else
11660      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11661    fi
11662    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11663    ;;
11664  hppa*64*)
11665    shrext_cmds='.sl'
11666    hardcode_into_libs=yes
11667    dynamic_linker="$host_os dld.sl"
11668    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11669    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11670    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11671    soname_spec='${libname}${release}${shared_ext}$major'
11672    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11673    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11674    ;;
11675  *)
11676    shrext_cmds='.sl'
11677    dynamic_linker="$host_os dld.sl"
11678    shlibpath_var=SHLIB_PATH
11679    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11680    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11681    soname_spec='${libname}${release}${shared_ext}$major'
11682    ;;
11683  esac
11684  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11685  postinstall_cmds='chmod 555 $lib'
11686  # or fails outright, so override atomically:
11687  install_override_mode=555
11688  ;;
11689
11690interix[3-9]*)
11691  version_type=linux
11692  need_lib_prefix=no
11693  need_version=no
11694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11695  soname_spec='${libname}${release}${shared_ext}$major'
11696  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11697  shlibpath_var=LD_LIBRARY_PATH
11698  shlibpath_overrides_runpath=no
11699  hardcode_into_libs=yes
11700  ;;
11701
11702irix5* | irix6* | nonstopux*)
11703  case $host_os in
11704    nonstopux*) version_type=nonstopux ;;
11705    *)
11706	if test "$lt_cv_prog_gnu_ld" = yes; then
11707		version_type=linux
11708	else
11709		version_type=irix
11710	fi ;;
11711  esac
11712  need_lib_prefix=no
11713  need_version=no
11714  soname_spec='${libname}${release}${shared_ext}$major'
11715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11716  case $host_os in
11717  irix5* | nonstopux*)
11718    libsuff= shlibsuff=
11719    ;;
11720  *)
11721    case $LD in # libtool.m4 will add one of these switches to LD
11722    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11723      libsuff= shlibsuff= libmagic=32-bit;;
11724    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11725      libsuff=32 shlibsuff=N32 libmagic=N32;;
11726    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11727      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11728    *) libsuff= shlibsuff= libmagic=never-match;;
11729    esac
11730    ;;
11731  esac
11732  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11733  shlibpath_overrides_runpath=no
11734  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11735  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11736  hardcode_into_libs=yes
11737  ;;
11738
11739# No shared lib support for Linux oldld, aout, or coff.
11740linux*oldld* | linux*aout* | linux*coff*)
11741  dynamic_linker=no
11742  ;;
11743
11744# This must be Linux ELF.
11745linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11746  version_type=linux
11747  need_lib_prefix=no
11748  need_version=no
11749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750  soname_spec='${libname}${release}${shared_ext}$major'
11751  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11752  shlibpath_var=LD_LIBRARY_PATH
11753  shlibpath_overrides_runpath=no
11754
11755  # Some binutils ld are patched to set DT_RUNPATH
11756  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11757  $as_echo_n "(cached) " >&6
11758else
11759  lt_cv_shlibpath_overrides_runpath=no
11760    save_LDFLAGS=$LDFLAGS
11761    save_libdir=$libdir
11762    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11763	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11764    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765/* end confdefs.h.  */
11766
11767int
11768main ()
11769{
11770
11771  ;
11772  return 0;
11773}
11774_ACEOF
11775if ac_fn_c_try_link "$LINENO"; then :
11776  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11777  lt_cv_shlibpath_overrides_runpath=yes
11778fi
11779fi
11780rm -f core conftest.err conftest.$ac_objext \
11781    conftest$ac_exeext conftest.$ac_ext
11782    LDFLAGS=$save_LDFLAGS
11783    libdir=$save_libdir
11784
11785fi
11786
11787  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11788
11789  # This implies no fast_install, which is unacceptable.
11790  # Some rework will be needed to allow for fast_install
11791  # before this can be enabled.
11792  hardcode_into_libs=yes
11793
11794  # Append ld.so.conf contents to the search path
11795  if test -f /etc/ld.so.conf; then
11796    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' ' '`
11797    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11798  fi
11799
11800  # We used to test for /lib/ld.so.1 and disable shared libraries on
11801  # powerpc, because MkLinux only supported shared libraries with the
11802  # GNU dynamic linker.  Since this was broken with cross compilers,
11803  # most powerpc-linux boxes support dynamic linking these days and
11804  # people can always --disable-shared, the test was removed, and we
11805  # assume the GNU/Linux dynamic linker is in use.
11806  dynamic_linker='GNU/Linux ld.so'
11807  ;;
11808
11809netbsd*)
11810  version_type=sunos
11811  need_lib_prefix=no
11812  need_version=no
11813  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11814    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11815    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11816    dynamic_linker='NetBSD (a.out) ld.so'
11817  else
11818    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11819    soname_spec='${libname}${release}${shared_ext}$major'
11820    dynamic_linker='NetBSD ld.elf_so'
11821  fi
11822  shlibpath_var=LD_LIBRARY_PATH
11823  shlibpath_overrides_runpath=yes
11824  hardcode_into_libs=yes
11825  ;;
11826
11827newsos6)
11828  version_type=linux
11829  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11830  shlibpath_var=LD_LIBRARY_PATH
11831  shlibpath_overrides_runpath=yes
11832  ;;
11833
11834*nto* | *qnx*)
11835  version_type=qnx
11836  need_lib_prefix=no
11837  need_version=no
11838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839  soname_spec='${libname}${release}${shared_ext}$major'
11840  shlibpath_var=LD_LIBRARY_PATH
11841  shlibpath_overrides_runpath=no
11842  hardcode_into_libs=yes
11843  dynamic_linker='ldqnx.so'
11844  ;;
11845
11846openbsd*)
11847  version_type=sunos
11848  sys_lib_dlsearch_path_spec="/usr/lib"
11849  need_lib_prefix=no
11850  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11851  case $host_os in
11852    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11853    *)				need_version=no  ;;
11854  esac
11855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11856  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11857  shlibpath_var=LD_LIBRARY_PATH
11858  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11859    case $host_os in
11860      openbsd2.[89] | openbsd2.[89].*)
11861	shlibpath_overrides_runpath=no
11862	;;
11863      *)
11864	shlibpath_overrides_runpath=yes
11865	;;
11866      esac
11867  else
11868    shlibpath_overrides_runpath=yes
11869  fi
11870  ;;
11871
11872os2*)
11873  libname_spec='$name'
11874  shrext_cmds=".dll"
11875  need_lib_prefix=no
11876  library_names_spec='$libname${shared_ext} $libname.a'
11877  dynamic_linker='OS/2 ld.exe'
11878  shlibpath_var=LIBPATH
11879  ;;
11880
11881osf3* | osf4* | osf5*)
11882  version_type=osf
11883  need_lib_prefix=no
11884  need_version=no
11885  soname_spec='${libname}${release}${shared_ext}$major'
11886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11887  shlibpath_var=LD_LIBRARY_PATH
11888  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11889  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11890  ;;
11891
11892rdos*)
11893  dynamic_linker=no
11894  ;;
11895
11896solaris*)
11897  version_type=linux
11898  need_lib_prefix=no
11899  need_version=no
11900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11901  soname_spec='${libname}${release}${shared_ext}$major'
11902  shlibpath_var=LD_LIBRARY_PATH
11903  shlibpath_overrides_runpath=yes
11904  hardcode_into_libs=yes
11905  # ldd complains unless libraries are executable
11906  postinstall_cmds='chmod +x $lib'
11907  ;;
11908
11909sunos4*)
11910  version_type=sunos
11911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11912  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11913  shlibpath_var=LD_LIBRARY_PATH
11914  shlibpath_overrides_runpath=yes
11915  if test "$with_gnu_ld" = yes; then
11916    need_lib_prefix=no
11917  fi
11918  need_version=yes
11919  ;;
11920
11921sysv4 | sysv4.3*)
11922  version_type=linux
11923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11924  soname_spec='${libname}${release}${shared_ext}$major'
11925  shlibpath_var=LD_LIBRARY_PATH
11926  case $host_vendor in
11927    sni)
11928      shlibpath_overrides_runpath=no
11929      need_lib_prefix=no
11930      runpath_var=LD_RUN_PATH
11931      ;;
11932    siemens)
11933      need_lib_prefix=no
11934      ;;
11935    motorola)
11936      need_lib_prefix=no
11937      need_version=no
11938      shlibpath_overrides_runpath=no
11939      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11940      ;;
11941  esac
11942  ;;
11943
11944sysv4*MP*)
11945  if test -d /usr/nec ;then
11946    version_type=linux
11947    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11948    soname_spec='$libname${shared_ext}.$major'
11949    shlibpath_var=LD_LIBRARY_PATH
11950  fi
11951  ;;
11952
11953sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11954  version_type=freebsd-elf
11955  need_lib_prefix=no
11956  need_version=no
11957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11958  soname_spec='${libname}${release}${shared_ext}$major'
11959  shlibpath_var=LD_LIBRARY_PATH
11960  shlibpath_overrides_runpath=yes
11961  hardcode_into_libs=yes
11962  if test "$with_gnu_ld" = yes; then
11963    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11964  else
11965    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11966    case $host_os in
11967      sco3.2v5*)
11968        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11969	;;
11970    esac
11971  fi
11972  sys_lib_dlsearch_path_spec='/usr/lib'
11973  ;;
11974
11975tpf*)
11976  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11977  version_type=linux
11978  need_lib_prefix=no
11979  need_version=no
11980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11981  shlibpath_var=LD_LIBRARY_PATH
11982  shlibpath_overrides_runpath=no
11983  hardcode_into_libs=yes
11984  ;;
11985
11986uts4*)
11987  version_type=linux
11988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11989  soname_spec='${libname}${release}${shared_ext}$major'
11990  shlibpath_var=LD_LIBRARY_PATH
11991  ;;
11992
11993*)
11994  dynamic_linker=no
11995  ;;
11996esac
11997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11998$as_echo "$dynamic_linker" >&6; }
11999test "$dynamic_linker" = no && can_build_shared=no
12000
12001variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12002if test "$GCC" = yes; then
12003  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12004fi
12005
12006if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12007  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12008fi
12009if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12010  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12011fi
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12105$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12106hardcode_action=
12107if test -n "$hardcode_libdir_flag_spec" ||
12108   test -n "$runpath_var" ||
12109   test "X$hardcode_automatic" = "Xyes" ; then
12110
12111  # We can hardcode non-existent directories.
12112  if test "$hardcode_direct" != no &&
12113     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12114     # have to relink, otherwise we might link with an installed library
12115     # when we should be linking with a yet-to-be-installed one
12116     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12117     test "$hardcode_minus_L" != no; then
12118    # Linking always hardcodes the temporary library directory.
12119    hardcode_action=relink
12120  else
12121    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12122    hardcode_action=immediate
12123  fi
12124else
12125  # We cannot hardcode anything, or else we can only hardcode existing
12126  # directories.
12127  hardcode_action=unsupported
12128fi
12129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12130$as_echo "$hardcode_action" >&6; }
12131
12132if test "$hardcode_action" = relink ||
12133   test "$inherit_rpath" = yes; then
12134  # Fast installation is not supported
12135  enable_fast_install=no
12136elif test "$shlibpath_overrides_runpath" = yes ||
12137     test "$enable_shared" = no; then
12138  # Fast installation is not necessary
12139  enable_fast_install=needless
12140fi
12141
12142
12143
12144
12145
12146
12147  if test "x$enable_dlopen" != xyes; then
12148  enable_dlopen=unknown
12149  enable_dlopen_self=unknown
12150  enable_dlopen_self_static=unknown
12151else
12152  lt_cv_dlopen=no
12153  lt_cv_dlopen_libs=
12154
12155  case $host_os in
12156  beos*)
12157    lt_cv_dlopen="load_add_on"
12158    lt_cv_dlopen_libs=
12159    lt_cv_dlopen_self=yes
12160    ;;
12161
12162  mingw* | pw32* | cegcc*)
12163    lt_cv_dlopen="LoadLibrary"
12164    lt_cv_dlopen_libs=
12165    ;;
12166
12167  cygwin*)
12168    lt_cv_dlopen="dlopen"
12169    lt_cv_dlopen_libs=
12170    ;;
12171
12172  darwin*)
12173  # if libdl is installed we need to link against it
12174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12175$as_echo_n "checking for dlopen in -ldl... " >&6; }
12176if ${ac_cv_lib_dl_dlopen+:} false; then :
12177  $as_echo_n "(cached) " >&6
12178else
12179  ac_check_lib_save_LIBS=$LIBS
12180LIBS="-ldl  $LIBS"
12181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182/* end confdefs.h.  */
12183
12184/* Override any GCC internal prototype to avoid an error.
12185   Use char because int might match the return type of a GCC
12186   builtin and then its argument prototype would still apply.  */
12187#ifdef __cplusplus
12188extern "C"
12189#endif
12190char dlopen ();
12191int
12192main ()
12193{
12194return dlopen ();
12195  ;
12196  return 0;
12197}
12198_ACEOF
12199if ac_fn_c_try_link "$LINENO"; then :
12200  ac_cv_lib_dl_dlopen=yes
12201else
12202  ac_cv_lib_dl_dlopen=no
12203fi
12204rm -f core conftest.err conftest.$ac_objext \
12205    conftest$ac_exeext conftest.$ac_ext
12206LIBS=$ac_check_lib_save_LIBS
12207fi
12208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12209$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12210if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12211  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12212else
12213
12214    lt_cv_dlopen="dyld"
12215    lt_cv_dlopen_libs=
12216    lt_cv_dlopen_self=yes
12217
12218fi
12219
12220    ;;
12221
12222  *)
12223    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12224if test "x$ac_cv_func_shl_load" = xyes; then :
12225  lt_cv_dlopen="shl_load"
12226else
12227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12228$as_echo_n "checking for shl_load in -ldld... " >&6; }
12229if ${ac_cv_lib_dld_shl_load+:} false; then :
12230  $as_echo_n "(cached) " >&6
12231else
12232  ac_check_lib_save_LIBS=$LIBS
12233LIBS="-ldld  $LIBS"
12234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235/* end confdefs.h.  */
12236
12237/* Override any GCC internal prototype to avoid an error.
12238   Use char because int might match the return type of a GCC
12239   builtin and then its argument prototype would still apply.  */
12240#ifdef __cplusplus
12241extern "C"
12242#endif
12243char shl_load ();
12244int
12245main ()
12246{
12247return shl_load ();
12248  ;
12249  return 0;
12250}
12251_ACEOF
12252if ac_fn_c_try_link "$LINENO"; then :
12253  ac_cv_lib_dld_shl_load=yes
12254else
12255  ac_cv_lib_dld_shl_load=no
12256fi
12257rm -f core conftest.err conftest.$ac_objext \
12258    conftest$ac_exeext conftest.$ac_ext
12259LIBS=$ac_check_lib_save_LIBS
12260fi
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12262$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12263if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12264  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12265else
12266  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12267if test "x$ac_cv_func_dlopen" = xyes; then :
12268  lt_cv_dlopen="dlopen"
12269else
12270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12271$as_echo_n "checking for dlopen in -ldl... " >&6; }
12272if ${ac_cv_lib_dl_dlopen+:} false; then :
12273  $as_echo_n "(cached) " >&6
12274else
12275  ac_check_lib_save_LIBS=$LIBS
12276LIBS="-ldl  $LIBS"
12277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278/* end confdefs.h.  */
12279
12280/* Override any GCC internal prototype to avoid an error.
12281   Use char because int might match the return type of a GCC
12282   builtin and then its argument prototype would still apply.  */
12283#ifdef __cplusplus
12284extern "C"
12285#endif
12286char dlopen ();
12287int
12288main ()
12289{
12290return dlopen ();
12291  ;
12292  return 0;
12293}
12294_ACEOF
12295if ac_fn_c_try_link "$LINENO"; then :
12296  ac_cv_lib_dl_dlopen=yes
12297else
12298  ac_cv_lib_dl_dlopen=no
12299fi
12300rm -f core conftest.err conftest.$ac_objext \
12301    conftest$ac_exeext conftest.$ac_ext
12302LIBS=$ac_check_lib_save_LIBS
12303fi
12304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12305$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12306if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12307  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12308else
12309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12310$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12311if ${ac_cv_lib_svld_dlopen+:} false; then :
12312  $as_echo_n "(cached) " >&6
12313else
12314  ac_check_lib_save_LIBS=$LIBS
12315LIBS="-lsvld  $LIBS"
12316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317/* end confdefs.h.  */
12318
12319/* Override any GCC internal prototype to avoid an error.
12320   Use char because int might match the return type of a GCC
12321   builtin and then its argument prototype would still apply.  */
12322#ifdef __cplusplus
12323extern "C"
12324#endif
12325char dlopen ();
12326int
12327main ()
12328{
12329return dlopen ();
12330  ;
12331  return 0;
12332}
12333_ACEOF
12334if ac_fn_c_try_link "$LINENO"; then :
12335  ac_cv_lib_svld_dlopen=yes
12336else
12337  ac_cv_lib_svld_dlopen=no
12338fi
12339rm -f core conftest.err conftest.$ac_objext \
12340    conftest$ac_exeext conftest.$ac_ext
12341LIBS=$ac_check_lib_save_LIBS
12342fi
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12344$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12345if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12346  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12347else
12348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12349$as_echo_n "checking for dld_link in -ldld... " >&6; }
12350if ${ac_cv_lib_dld_dld_link+:} false; then :
12351  $as_echo_n "(cached) " >&6
12352else
12353  ac_check_lib_save_LIBS=$LIBS
12354LIBS="-ldld  $LIBS"
12355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356/* end confdefs.h.  */
12357
12358/* Override any GCC internal prototype to avoid an error.
12359   Use char because int might match the return type of a GCC
12360   builtin and then its argument prototype would still apply.  */
12361#ifdef __cplusplus
12362extern "C"
12363#endif
12364char dld_link ();
12365int
12366main ()
12367{
12368return dld_link ();
12369  ;
12370  return 0;
12371}
12372_ACEOF
12373if ac_fn_c_try_link "$LINENO"; then :
12374  ac_cv_lib_dld_dld_link=yes
12375else
12376  ac_cv_lib_dld_dld_link=no
12377fi
12378rm -f core conftest.err conftest.$ac_objext \
12379    conftest$ac_exeext conftest.$ac_ext
12380LIBS=$ac_check_lib_save_LIBS
12381fi
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12383$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12384if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12385  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12386fi
12387
12388
12389fi
12390
12391
12392fi
12393
12394
12395fi
12396
12397
12398fi
12399
12400
12401fi
12402
12403    ;;
12404  esac
12405
12406  if test "x$lt_cv_dlopen" != xno; then
12407    enable_dlopen=yes
12408  else
12409    enable_dlopen=no
12410  fi
12411
12412  case $lt_cv_dlopen in
12413  dlopen)
12414    save_CPPFLAGS="$CPPFLAGS"
12415    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12416
12417    save_LDFLAGS="$LDFLAGS"
12418    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12419
12420    save_LIBS="$LIBS"
12421    LIBS="$lt_cv_dlopen_libs $LIBS"
12422
12423    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12424$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12425if ${lt_cv_dlopen_self+:} false; then :
12426  $as_echo_n "(cached) " >&6
12427else
12428  	  if test "$cross_compiling" = yes; then :
12429  lt_cv_dlopen_self=cross
12430else
12431  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12432  lt_status=$lt_dlunknown
12433  cat > conftest.$ac_ext <<_LT_EOF
12434#line 12434 "configure"
12435#include "confdefs.h"
12436
12437#if HAVE_DLFCN_H
12438#include <dlfcn.h>
12439#endif
12440
12441#include <stdio.h>
12442
12443#ifdef RTLD_GLOBAL
12444#  define LT_DLGLOBAL		RTLD_GLOBAL
12445#else
12446#  ifdef DL_GLOBAL
12447#    define LT_DLGLOBAL		DL_GLOBAL
12448#  else
12449#    define LT_DLGLOBAL		0
12450#  endif
12451#endif
12452
12453/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12454   find out it does not work in some platform. */
12455#ifndef LT_DLLAZY_OR_NOW
12456#  ifdef RTLD_LAZY
12457#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12458#  else
12459#    ifdef DL_LAZY
12460#      define LT_DLLAZY_OR_NOW		DL_LAZY
12461#    else
12462#      ifdef RTLD_NOW
12463#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12464#      else
12465#        ifdef DL_NOW
12466#          define LT_DLLAZY_OR_NOW	DL_NOW
12467#        else
12468#          define LT_DLLAZY_OR_NOW	0
12469#        endif
12470#      endif
12471#    endif
12472#  endif
12473#endif
12474
12475/* When -fvisbility=hidden is used, assume the code has been annotated
12476   correspondingly for the symbols needed.  */
12477#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12478void fnord () __attribute__((visibility("default")));
12479#endif
12480
12481void fnord () { int i=42; }
12482int main ()
12483{
12484  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12485  int status = $lt_dlunknown;
12486
12487  if (self)
12488    {
12489      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12490      else
12491        {
12492	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12493          else puts (dlerror ());
12494	}
12495      /* dlclose (self); */
12496    }
12497  else
12498    puts (dlerror ());
12499
12500  return status;
12501}
12502_LT_EOF
12503  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12504  (eval $ac_link) 2>&5
12505  ac_status=$?
12506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12507  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12508    (./conftest; exit; ) >&5 2>/dev/null
12509    lt_status=$?
12510    case x$lt_status in
12511      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12512      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12513      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12514    esac
12515  else :
12516    # compilation failed
12517    lt_cv_dlopen_self=no
12518  fi
12519fi
12520rm -fr conftest*
12521
12522
12523fi
12524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12525$as_echo "$lt_cv_dlopen_self" >&6; }
12526
12527    if test "x$lt_cv_dlopen_self" = xyes; then
12528      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12529      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12530$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12531if ${lt_cv_dlopen_self_static+:} false; then :
12532  $as_echo_n "(cached) " >&6
12533else
12534  	  if test "$cross_compiling" = yes; then :
12535  lt_cv_dlopen_self_static=cross
12536else
12537  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12538  lt_status=$lt_dlunknown
12539  cat > conftest.$ac_ext <<_LT_EOF
12540#line 12540 "configure"
12541#include "confdefs.h"
12542
12543#if HAVE_DLFCN_H
12544#include <dlfcn.h>
12545#endif
12546
12547#include <stdio.h>
12548
12549#ifdef RTLD_GLOBAL
12550#  define LT_DLGLOBAL		RTLD_GLOBAL
12551#else
12552#  ifdef DL_GLOBAL
12553#    define LT_DLGLOBAL		DL_GLOBAL
12554#  else
12555#    define LT_DLGLOBAL		0
12556#  endif
12557#endif
12558
12559/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12560   find out it does not work in some platform. */
12561#ifndef LT_DLLAZY_OR_NOW
12562#  ifdef RTLD_LAZY
12563#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12564#  else
12565#    ifdef DL_LAZY
12566#      define LT_DLLAZY_OR_NOW		DL_LAZY
12567#    else
12568#      ifdef RTLD_NOW
12569#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12570#      else
12571#        ifdef DL_NOW
12572#          define LT_DLLAZY_OR_NOW	DL_NOW
12573#        else
12574#          define LT_DLLAZY_OR_NOW	0
12575#        endif
12576#      endif
12577#    endif
12578#  endif
12579#endif
12580
12581/* When -fvisbility=hidden is used, assume the code has been annotated
12582   correspondingly for the symbols needed.  */
12583#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12584void fnord () __attribute__((visibility("default")));
12585#endif
12586
12587void fnord () { int i=42; }
12588int main ()
12589{
12590  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12591  int status = $lt_dlunknown;
12592
12593  if (self)
12594    {
12595      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12596      else
12597        {
12598	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12599          else puts (dlerror ());
12600	}
12601      /* dlclose (self); */
12602    }
12603  else
12604    puts (dlerror ());
12605
12606  return status;
12607}
12608_LT_EOF
12609  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12610  (eval $ac_link) 2>&5
12611  ac_status=$?
12612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12613  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12614    (./conftest; exit; ) >&5 2>/dev/null
12615    lt_status=$?
12616    case x$lt_status in
12617      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12618      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12619      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12620    esac
12621  else :
12622    # compilation failed
12623    lt_cv_dlopen_self_static=no
12624  fi
12625fi
12626rm -fr conftest*
12627
12628
12629fi
12630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12631$as_echo "$lt_cv_dlopen_self_static" >&6; }
12632    fi
12633
12634    CPPFLAGS="$save_CPPFLAGS"
12635    LDFLAGS="$save_LDFLAGS"
12636    LIBS="$save_LIBS"
12637    ;;
12638  esac
12639
12640  case $lt_cv_dlopen_self in
12641  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12642  *) enable_dlopen_self=unknown ;;
12643  esac
12644
12645  case $lt_cv_dlopen_self_static in
12646  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12647  *) enable_dlopen_self_static=unknown ;;
12648  esac
12649fi
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667striplib=
12668old_striplib=
12669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12670$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12671if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12672  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12673  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12675$as_echo "yes" >&6; }
12676else
12677# FIXME - insert some real tests, host_os isn't really good enough
12678  case $host_os in
12679  darwin*)
12680    if test -n "$STRIP" ; then
12681      striplib="$STRIP -x"
12682      old_striplib="$STRIP -S"
12683      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12684$as_echo "yes" >&6; }
12685    else
12686      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687$as_echo "no" >&6; }
12688    fi
12689    ;;
12690  *)
12691    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692$as_echo "no" >&6; }
12693    ;;
12694  esac
12695fi
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708  # Report which library types will actually be built
12709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12710$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12712$as_echo "$can_build_shared" >&6; }
12713
12714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12715$as_echo_n "checking whether to build shared libraries... " >&6; }
12716  test "$can_build_shared" = "no" && enable_shared=no
12717
12718  # On AIX, shared libraries and static libraries use the same namespace, and
12719  # are all built from PIC.
12720  case $host_os in
12721  aix3*)
12722    test "$enable_shared" = yes && enable_static=no
12723    if test -n "$RANLIB"; then
12724      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12725      postinstall_cmds='$RANLIB $lib'
12726    fi
12727    ;;
12728
12729  aix[4-9]*)
12730    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12731      test "$enable_shared" = yes && enable_static=no
12732    fi
12733    ;;
12734  esac
12735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12736$as_echo "$enable_shared" >&6; }
12737
12738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12739$as_echo_n "checking whether to build static libraries... " >&6; }
12740  # Make sure either enable_shared or enable_static is yes.
12741  test "$enable_shared" = yes || enable_static=yes
12742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12743$as_echo "$enable_static" >&6; }
12744
12745
12746
12747
12748fi
12749ac_ext=c
12750ac_cpp='$CPP $CPPFLAGS'
12751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12753ac_compiler_gnu=$ac_cv_c_compiler_gnu
12754
12755CC="$lt_save_CC"
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769        ac_config_commands="$ac_config_commands libtool"
12770
12771
12772
12773
12774# Only expand once:
12775
12776
12777
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
12779$as_echo_n "checking for library containing bind... " >&6; }
12780if ${ac_cv_search_bind+:} false; then :
12781  $as_echo_n "(cached) " >&6
12782else
12783  ac_func_search_save_LIBS=$LIBS
12784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785/* end confdefs.h.  */
12786
12787/* Override any GCC internal prototype to avoid an error.
12788   Use char because int might match the return type of a GCC
12789   builtin and then its argument prototype would still apply.  */
12790#ifdef __cplusplus
12791extern "C"
12792#endif
12793char bind ();
12794int
12795main ()
12796{
12797return bind ();
12798  ;
12799  return 0;
12800}
12801_ACEOF
12802for ac_lib in '' socket; do
12803  if test -z "$ac_lib"; then
12804    ac_res="none required"
12805  else
12806    ac_res=-l$ac_lib
12807    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12808  fi
12809  if ac_fn_c_try_link "$LINENO"; then :
12810  ac_cv_search_bind=$ac_res
12811fi
12812rm -f core conftest.err conftest.$ac_objext \
12813    conftest$ac_exeext
12814  if ${ac_cv_search_bind+:} false; then :
12815  break
12816fi
12817done
12818if ${ac_cv_search_bind+:} false; then :
12819
12820else
12821  ac_cv_search_bind=no
12822fi
12823rm conftest.$ac_ext
12824LIBS=$ac_func_search_save_LIBS
12825fi
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
12827$as_echo "$ac_cv_search_bind" >&6; }
12828ac_res=$ac_cv_search_bind
12829if test "$ac_res" != no; then :
12830  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12831
12832fi
12833
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12835$as_echo_n "checking for library containing gethostbyname... " >&6; }
12836if ${ac_cv_search_gethostbyname+:} false; then :
12837  $as_echo_n "(cached) " >&6
12838else
12839  ac_func_search_save_LIBS=$LIBS
12840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841/* end confdefs.h.  */
12842
12843/* Override any GCC internal prototype to avoid an error.
12844   Use char because int might match the return type of a GCC
12845   builtin and then its argument prototype would still apply.  */
12846#ifdef __cplusplus
12847extern "C"
12848#endif
12849char gethostbyname ();
12850int
12851main ()
12852{
12853return gethostbyname ();
12854  ;
12855  return 0;
12856}
12857_ACEOF
12858for ac_lib in '' nsl; do
12859  if test -z "$ac_lib"; then
12860    ac_res="none required"
12861  else
12862    ac_res=-l$ac_lib
12863    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12864  fi
12865  if ac_fn_c_try_link "$LINENO"; then :
12866  ac_cv_search_gethostbyname=$ac_res
12867fi
12868rm -f core conftest.err conftest.$ac_objext \
12869    conftest$ac_exeext
12870  if ${ac_cv_search_gethostbyname+:} false; then :
12871  break
12872fi
12873done
12874if ${ac_cv_search_gethostbyname+:} false; then :
12875
12876else
12877  ac_cv_search_gethostbyname=no
12878fi
12879rm conftest.$ac_ext
12880LIBS=$ac_func_search_save_LIBS
12881fi
12882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12883$as_echo "$ac_cv_search_gethostbyname" >&6; }
12884ac_res=$ac_cv_search_gethostbyname
12885if test "$ac_res" != no; then :
12886  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12887
12888fi
12889
12890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
12891$as_echo_n "checking for library containing fabs... " >&6; }
12892if ${ac_cv_search_fabs+:} false; then :
12893  $as_echo_n "(cached) " >&6
12894else
12895  ac_func_search_save_LIBS=$LIBS
12896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897/* end confdefs.h.  */
12898
12899/* Override any GCC internal prototype to avoid an error.
12900   Use char because int might match the return type of a GCC
12901   builtin and then its argument prototype would still apply.  */
12902#ifdef __cplusplus
12903extern "C"
12904#endif
12905char fabs ();
12906int
12907main ()
12908{
12909return fabs ();
12910  ;
12911  return 0;
12912}
12913_ACEOF
12914for ac_lib in '' m; do
12915  if test -z "$ac_lib"; then
12916    ac_res="none required"
12917  else
12918    ac_res=-l$ac_lib
12919    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12920  fi
12921  if ac_fn_c_try_link "$LINENO"; then :
12922  ac_cv_search_fabs=$ac_res
12923fi
12924rm -f core conftest.err conftest.$ac_objext \
12925    conftest$ac_exeext
12926  if ${ac_cv_search_fabs+:} false; then :
12927  break
12928fi
12929done
12930if ${ac_cv_search_fabs+:} false; then :
12931
12932else
12933  ac_cv_search_fabs=no
12934fi
12935rm conftest.$ac_ext
12936LIBS=$ac_func_search_save_LIBS
12937fi
12938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
12939$as_echo "$ac_cv_search_fabs" >&6; }
12940ac_res=$ac_cv_search_fabs
12941if test "$ac_res" != no; then :
12942  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12943
12944fi
12945
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
12947$as_echo_n "checking for library containing log2... " >&6; }
12948if ${ac_cv_search_log2+:} false; then :
12949  $as_echo_n "(cached) " >&6
12950else
12951  ac_func_search_save_LIBS=$LIBS
12952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953/* end confdefs.h.  */
12954
12955/* Override any GCC internal prototype to avoid an error.
12956   Use char because int might match the return type of a GCC
12957   builtin and then its argument prototype would still apply.  */
12958#ifdef __cplusplus
12959extern "C"
12960#endif
12961char log2 ();
12962int
12963main ()
12964{
12965return log2 ();
12966  ;
12967  return 0;
12968}
12969_ACEOF
12970for ac_lib in '' m; do
12971  if test -z "$ac_lib"; then
12972    ac_res="none required"
12973  else
12974    ac_res=-l$ac_lib
12975    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12976  fi
12977  if ac_fn_c_try_link "$LINENO"; then :
12978  ac_cv_search_log2=$ac_res
12979fi
12980rm -f core conftest.err conftest.$ac_objext \
12981    conftest$ac_exeext
12982  if ${ac_cv_search_log2+:} false; then :
12983  break
12984fi
12985done
12986if ${ac_cv_search_log2+:} false; then :
12987
12988else
12989  ac_cv_search_log2=no
12990fi
12991rm conftest.$ac_ext
12992LIBS=$ac_func_search_save_LIBS
12993fi
12994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
12995$as_echo "$ac_cv_search_log2" >&6; }
12996ac_res=$ac_cv_search_log2
12997if test "$ac_res" != no; then :
12998  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12999
13000fi
13001
13002
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13004$as_echo_n "checking for library containing dlopen... " >&6; }
13005if ${ac_cv_search_dlopen+:} false; then :
13006  $as_echo_n "(cached) " >&6
13007else
13008  ac_func_search_save_LIBS=$LIBS
13009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010/* end confdefs.h.  */
13011
13012/* Override any GCC internal prototype to avoid an error.
13013   Use char because int might match the return type of a GCC
13014   builtin and then its argument prototype would still apply.  */
13015#ifdef __cplusplus
13016extern "C"
13017#endif
13018char dlopen ();
13019int
13020main ()
13021{
13022return dlopen ();
13023  ;
13024  return 0;
13025}
13026_ACEOF
13027for ac_lib in '' dl; do
13028  if test -z "$ac_lib"; then
13029    ac_res="none required"
13030  else
13031    ac_res=-l$ac_lib
13032    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13033  fi
13034  if ac_fn_c_try_link "$LINENO"; then :
13035  ac_cv_search_dlopen=$ac_res
13036fi
13037rm -f core conftest.err conftest.$ac_objext \
13038    conftest$ac_exeext
13039  if ${ac_cv_search_dlopen+:} false; then :
13040  break
13041fi
13042done
13043if ${ac_cv_search_dlopen+:} false; then :
13044
13045else
13046  ac_cv_search_dlopen=no
13047fi
13048rm conftest.$ac_ext
13049LIBS=$ac_func_search_save_LIBS
13050fi
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13052$as_echo "$ac_cv_search_dlopen" >&6; }
13053ac_res=$ac_cv_search_dlopen
13054if test "$ac_res" != no; then :
13055  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13056
13057fi
13058
13059if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
13060
13061pkg_failed=no
13062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
13063$as_echo_n "checking for sdl2... " >&6; }
13064
13065if test -n "$SDL_CFLAGS"; then
13066    pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13067 elif test -n "$PKG_CONFIG"; then
13068    if test -n "$PKG_CONFIG" && \
13069    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13070  ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13071  ac_status=$?
13072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13073  test $ac_status = 0; }; then
13074  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
13075		      test "x$?" != "x0" && pkg_failed=yes
13076else
13077  pkg_failed=yes
13078fi
13079 else
13080    pkg_failed=untried
13081fi
13082if test -n "$SDL_LIBS"; then
13083    pkg_cv_SDL_LIBS="$SDL_LIBS"
13084 elif test -n "$PKG_CONFIG"; then
13085    if test -n "$PKG_CONFIG" && \
13086    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13087  ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13088  ac_status=$?
13089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13090  test $ac_status = 0; }; then
13091  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
13092		      test "x$?" != "x0" && pkg_failed=yes
13093else
13094  pkg_failed=yes
13095fi
13096 else
13097    pkg_failed=untried
13098fi
13099
13100if test $pkg_failed = no; then
13101  pkg_save_LDFLAGS="$LDFLAGS"
13102  LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13104/* end confdefs.h.  */
13105
13106int
13107main ()
13108{
13109
13110  ;
13111  return 0;
13112}
13113_ACEOF
13114if ac_fn_c_try_link "$LINENO"; then :
13115
13116else
13117  pkg_failed=yes
13118fi
13119rm -f core conftest.err conftest.$ac_objext \
13120    conftest$ac_exeext conftest.$ac_ext
13121  LDFLAGS=$pkg_save_LDFLAGS
13122fi
13123
13124
13125
13126if test $pkg_failed = yes; then
13127        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128$as_echo "no" >&6; }
13129
13130if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13131        _pkg_short_errors_supported=yes
13132else
13133        _pkg_short_errors_supported=no
13134fi
13135        if test $_pkg_short_errors_supported = yes; then
13136	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
13137        else
13138	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
13139        fi
13140	# Put the nasty error message in config.log where it belongs
13141	echo "$SDL_PKG_ERRORS" >&5
13142
13143
13144
13145pkg_failed=no
13146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13147$as_echo_n "checking for sdl... " >&6; }
13148
13149if test -n "$SDL_CFLAGS"; then
13150    pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13151 elif test -n "$PKG_CONFIG"; then
13152    if test -n "$PKG_CONFIG" && \
13153    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13154  ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13155  ac_status=$?
13156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13157  test $ac_status = 0; }; then
13158  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13159		      test "x$?" != "x0" && pkg_failed=yes
13160else
13161  pkg_failed=yes
13162fi
13163 else
13164    pkg_failed=untried
13165fi
13166if test -n "$SDL_LIBS"; then
13167    pkg_cv_SDL_LIBS="$SDL_LIBS"
13168 elif test -n "$PKG_CONFIG"; then
13169    if test -n "$PKG_CONFIG" && \
13170    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13171  ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13172  ac_status=$?
13173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13174  test $ac_status = 0; }; then
13175  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13176		      test "x$?" != "x0" && pkg_failed=yes
13177else
13178  pkg_failed=yes
13179fi
13180 else
13181    pkg_failed=untried
13182fi
13183
13184if test $pkg_failed = no; then
13185  pkg_save_LDFLAGS="$LDFLAGS"
13186  LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188/* end confdefs.h.  */
13189
13190int
13191main ()
13192{
13193
13194  ;
13195  return 0;
13196}
13197_ACEOF
13198if ac_fn_c_try_link "$LINENO"; then :
13199
13200else
13201  pkg_failed=yes
13202fi
13203rm -f core conftest.err conftest.$ac_objext \
13204    conftest$ac_exeext conftest.$ac_ext
13205  LDFLAGS=$pkg_save_LDFLAGS
13206fi
13207
13208
13209
13210if test $pkg_failed = yes; then
13211        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212$as_echo "no" >&6; }
13213
13214if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13215        _pkg_short_errors_supported=yes
13216else
13217        _pkg_short_errors_supported=no
13218fi
13219        if test $_pkg_short_errors_supported = yes; then
13220	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13221        else
13222	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13223        fi
13224	# Put the nasty error message in config.log where it belongs
13225	echo "$SDL_PKG_ERRORS" >&5
13226
13227	:
13228elif test $pkg_failed = untried; then
13229        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230$as_echo "no" >&6; }
13231	:
13232else
13233	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13234	SDL_LIBS=$pkg_cv_SDL_LIBS
13235        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13236$as_echo "yes" >&6; }
13237	      SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13238
13239fi
13240
13241elif test $pkg_failed = untried; then
13242        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243$as_echo "no" >&6; }
13244
13245
13246pkg_failed=no
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13248$as_echo_n "checking for sdl... " >&6; }
13249
13250if test -n "$SDL_CFLAGS"; then
13251    pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13252 elif test -n "$PKG_CONFIG"; then
13253    if test -n "$PKG_CONFIG" && \
13254    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13255  ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13256  ac_status=$?
13257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13258  test $ac_status = 0; }; then
13259  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13260		      test "x$?" != "x0" && pkg_failed=yes
13261else
13262  pkg_failed=yes
13263fi
13264 else
13265    pkg_failed=untried
13266fi
13267if test -n "$SDL_LIBS"; then
13268    pkg_cv_SDL_LIBS="$SDL_LIBS"
13269 elif test -n "$PKG_CONFIG"; then
13270    if test -n "$PKG_CONFIG" && \
13271    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13272  ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13273  ac_status=$?
13274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13275  test $ac_status = 0; }; then
13276  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13277		      test "x$?" != "x0" && pkg_failed=yes
13278else
13279  pkg_failed=yes
13280fi
13281 else
13282    pkg_failed=untried
13283fi
13284
13285if test $pkg_failed = no; then
13286  pkg_save_LDFLAGS="$LDFLAGS"
13287  LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289/* end confdefs.h.  */
13290
13291int
13292main ()
13293{
13294
13295  ;
13296  return 0;
13297}
13298_ACEOF
13299if ac_fn_c_try_link "$LINENO"; then :
13300
13301else
13302  pkg_failed=yes
13303fi
13304rm -f core conftest.err conftest.$ac_objext \
13305    conftest$ac_exeext conftest.$ac_ext
13306  LDFLAGS=$pkg_save_LDFLAGS
13307fi
13308
13309
13310
13311if test $pkg_failed = yes; then
13312        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13313$as_echo "no" >&6; }
13314
13315if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13316        _pkg_short_errors_supported=yes
13317else
13318        _pkg_short_errors_supported=no
13319fi
13320        if test $_pkg_short_errors_supported = yes; then
13321	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13322        else
13323	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13324        fi
13325	# Put the nasty error message in config.log where it belongs
13326	echo "$SDL_PKG_ERRORS" >&5
13327
13328	:
13329elif test $pkg_failed = untried; then
13330        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331$as_echo "no" >&6; }
13332	:
13333else
13334	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13335	SDL_LIBS=$pkg_cv_SDL_LIBS
13336        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13337$as_echo "yes" >&6; }
13338	      SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13339
13340fi
13341
13342else
13343	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13344	SDL_LIBS=$pkg_cv_SDL_LIBS
13345        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13346$as_echo "yes" >&6; }
13347	    SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13348
13349fi
13350    if test -n "$SDL_CFLAGS"; then :
13351      if test "$ac_cv_search_dlopen" = no; then :
13352        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
13353$as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
13354
13355fi
13356
13357fi
13358else
13359  SDL_CFLAGS=
13360fi
13361SDL_LIBS=
13362
13363
13364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13365$as_echo_n "checking for cygwin... " >&6; }
13366if ${sim_cv_os_cygwin+:} false; then :
13367  $as_echo_n "(cached) " >&6
13368else
13369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370/* end confdefs.h.  */
13371
13372#ifdef __CYGWIN__
13373lose
13374#endif
13375_ACEOF
13376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13377  $EGREP "lose" >/dev/null 2>&1; then :
13378  sim_cv_os_cygwin=yes
13379else
13380  sim_cv_os_cygwin=no
13381fi
13382rm -f conftest*
13383
13384fi
13385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13386$as_echo "$sim_cv_os_cygwin" >&6; }
13387
13388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13389$as_echo_n "checking for library containing tgetent... " >&6; }
13390if ${ac_cv_search_tgetent+:} false; then :
13391  $as_echo_n "(cached) " >&6
13392else
13393  ac_func_search_save_LIBS=$LIBS
13394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395/* end confdefs.h.  */
13396
13397/* Override any GCC internal prototype to avoid an error.
13398   Use char because int might match the return type of a GCC
13399   builtin and then its argument prototype would still apply.  */
13400#ifdef __cplusplus
13401extern "C"
13402#endif
13403char tgetent ();
13404int
13405main ()
13406{
13407return tgetent ();
13408  ;
13409  return 0;
13410}
13411_ACEOF
13412for ac_lib in '' termcap tinfo curses ncurses; do
13413  if test -z "$ac_lib"; then
13414    ac_res="none required"
13415  else
13416    ac_res=-l$ac_lib
13417    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13418  fi
13419  if ac_fn_c_try_link "$LINENO"; then :
13420  ac_cv_search_tgetent=$ac_res
13421fi
13422rm -f core conftest.err conftest.$ac_objext \
13423    conftest$ac_exeext
13424  if ${ac_cv_search_tgetent+:} false; then :
13425  break
13426fi
13427done
13428if ${ac_cv_search_tgetent+:} false; then :
13429
13430else
13431  ac_cv_search_tgetent=no
13432fi
13433rm conftest.$ac_ext
13434LIBS=$ac_func_search_save_LIBS
13435fi
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13437$as_echo "$ac_cv_search_tgetent" >&6; }
13438ac_res=$ac_cv_search_tgetent
13439if test "$ac_res" != no; then :
13440  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13441  TERMCAP_LIB=$ac_cv_search_tgetent
13442else
13443  TERMCAP_LIB=""
13444fi
13445
13446if test x$sim_cv_os_cygwin = xyes; then
13447  TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13448fi
13449
13450
13451if test -r ../readline/Makefile; then
13452  READLINE_LIB=../readline/readline/libreadline.a
13453  READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13454else
13455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13456$as_echo_n "checking for readline in -lreadline... " >&6; }
13457if ${ac_cv_lib_readline_readline+:} false; then :
13458  $as_echo_n "(cached) " >&6
13459else
13460  ac_check_lib_save_LIBS=$LIBS
13461LIBS="-lreadline $TERMCAP_LIB $LIBS"
13462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463/* end confdefs.h.  */
13464
13465/* Override any GCC internal prototype to avoid an error.
13466   Use char because int might match the return type of a GCC
13467   builtin and then its argument prototype would still apply.  */
13468#ifdef __cplusplus
13469extern "C"
13470#endif
13471char readline ();
13472int
13473main ()
13474{
13475return readline ();
13476  ;
13477  return 0;
13478}
13479_ACEOF
13480if ac_fn_c_try_link "$LINENO"; then :
13481  ac_cv_lib_readline_readline=yes
13482else
13483  ac_cv_lib_readline_readline=no
13484fi
13485rm -f core conftest.err conftest.$ac_objext \
13486    conftest$ac_exeext conftest.$ac_ext
13487LIBS=$ac_check_lib_save_LIBS
13488fi
13489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13490$as_echo "$ac_cv_lib_readline_readline" >&6; }
13491if test "x$ac_cv_lib_readline_readline" = xyes; then :
13492  READLINE_LIB=-lreadline
13493else
13494  as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13495fi
13496
13497  READLINE_CFLAGS=
13498fi
13499
13500
13501
13502
13503
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13505$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13506    # Check whether --enable-maintainer-mode was given.
13507if test "${enable_maintainer_mode+set}" = set; then :
13508  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13509else
13510  USE_MAINTAINER_MODE=no
13511fi
13512
13513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13514$as_echo "$USE_MAINTAINER_MODE" >&6; }
13515   if test $USE_MAINTAINER_MODE = yes; then
13516  MAINTAINER_MODE_TRUE=
13517  MAINTAINER_MODE_FALSE='#'
13518else
13519  MAINTAINER_MODE_TRUE='#'
13520  MAINTAINER_MODE_FALSE=
13521fi
13522
13523  MAINT=$MAINTAINER_MODE_TRUE
13524
13525
13526am__api_version='1.15'
13527
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13529$as_echo_n "checking whether build environment is sane... " >&6; }
13530# Reject unsafe characters in $srcdir or the absolute working directory
13531# name.  Accept space and tab only in the latter.
13532am_lf='
13533'
13534case `pwd` in
13535  *[\\\"\#\$\&\'\`$am_lf]*)
13536    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13537esac
13538case $srcdir in
13539  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
13540    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13541esac
13542
13543# Do 'set' in a subshell so we don't clobber the current shell's
13544# arguments.  Must try -L first in case configure is actually a
13545# symlink; some systems play weird games with the mod time of symlinks
13546# (eg FreeBSD returns the mod time of the symlink's containing
13547# directory).
13548if (
13549   am_has_slept=no
13550   for am_try in 1 2; do
13551     echo "timestamp, slept: $am_has_slept" > conftest.file
13552     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13553     if test "$*" = "X"; then
13554	# -L didn't work.
13555	set X `ls -t "$srcdir/configure" conftest.file`
13556     fi
13557     if test "$*" != "X $srcdir/configure conftest.file" \
13558	&& test "$*" != "X conftest.file $srcdir/configure"; then
13559
13560	# If neither matched, then we have a broken ls.  This can happen
13561	# if, for instance, CONFIG_SHELL is bash and it inherits a
13562	# broken ls alias from the environment.  This has actually
13563	# happened.  Such a system could not be considered "sane".
13564	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
13565  alias in your environment" "$LINENO" 5
13566     fi
13567     if test "$2" = conftest.file || test $am_try -eq 2; then
13568       break
13569     fi
13570     # Just in case.
13571     sleep 1
13572     am_has_slept=yes
13573   done
13574   test "$2" = conftest.file
13575   )
13576then
13577   # Ok.
13578   :
13579else
13580   as_fn_error $? "newly created file is older than distributed files!
13581Check your system clock" "$LINENO" 5
13582fi
13583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13584$as_echo "yes" >&6; }
13585# If we didn't sleep, we still need to ensure time stamps of config.status and
13586# generated files are strictly newer.
13587am_sleep_pid=
13588if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13589  ( sleep 1 ) &
13590  am_sleep_pid=$!
13591fi
13592
13593rm -f conftest.file
13594
13595if test x"${MISSING+set}" != xset; then
13596  case $am_aux_dir in
13597  *\ * | *\	*)
13598    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13599  *)
13600    MISSING="\${SHELL} $am_aux_dir/missing" ;;
13601  esac
13602fi
13603# Use eval to expand $SHELL
13604if eval "$MISSING --is-lightweight"; then
13605  am_missing_run="$MISSING "
13606else
13607  am_missing_run=
13608  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13609$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13610fi
13611
13612if test x"${install_sh+set}" != xset; then
13613  case $am_aux_dir in
13614  *\ * | *\	*)
13615    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13616  *)
13617    install_sh="\${SHELL} $am_aux_dir/install-sh"
13618  esac
13619fi
13620
13621# Installed binaries are usually stripped using 'strip' when the user
13622# run "make install-strip".  However 'strip' might not be the right
13623# tool to use in cross-compilation environments, therefore Automake
13624# will honor the 'STRIP' environment variable to overrule this program.
13625if test "$cross_compiling" != no; then
13626  if test -n "$ac_tool_prefix"; then
13627  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13628set dummy ${ac_tool_prefix}strip; ac_word=$2
13629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13630$as_echo_n "checking for $ac_word... " >&6; }
13631if ${ac_cv_prog_STRIP+:} false; then :
13632  $as_echo_n "(cached) " >&6
13633else
13634  if test -n "$STRIP"; then
13635  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13636else
13637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638for as_dir in $PATH
13639do
13640  IFS=$as_save_IFS
13641  test -z "$as_dir" && as_dir=.
13642    for ac_exec_ext in '' $ac_executable_extensions; do
13643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13644    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13646    break 2
13647  fi
13648done
13649  done
13650IFS=$as_save_IFS
13651
13652fi
13653fi
13654STRIP=$ac_cv_prog_STRIP
13655if test -n "$STRIP"; then
13656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13657$as_echo "$STRIP" >&6; }
13658else
13659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660$as_echo "no" >&6; }
13661fi
13662
13663
13664fi
13665if test -z "$ac_cv_prog_STRIP"; then
13666  ac_ct_STRIP=$STRIP
13667  # Extract the first word of "strip", so it can be a program name with args.
13668set dummy strip; ac_word=$2
13669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13670$as_echo_n "checking for $ac_word... " >&6; }
13671if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13672  $as_echo_n "(cached) " >&6
13673else
13674  if test -n "$ac_ct_STRIP"; then
13675  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13676else
13677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13678for as_dir in $PATH
13679do
13680  IFS=$as_save_IFS
13681  test -z "$as_dir" && as_dir=.
13682    for ac_exec_ext in '' $ac_executable_extensions; do
13683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13684    ac_cv_prog_ac_ct_STRIP="strip"
13685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13686    break 2
13687  fi
13688done
13689  done
13690IFS=$as_save_IFS
13691
13692fi
13693fi
13694ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13695if test -n "$ac_ct_STRIP"; then
13696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13697$as_echo "$ac_ct_STRIP" >&6; }
13698else
13699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13700$as_echo "no" >&6; }
13701fi
13702
13703  if test "x$ac_ct_STRIP" = x; then
13704    STRIP=":"
13705  else
13706    case $cross_compiling:$ac_tool_warned in
13707yes:)
13708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13710ac_tool_warned=yes ;;
13711esac
13712    STRIP=$ac_ct_STRIP
13713  fi
13714else
13715  STRIP="$ac_cv_prog_STRIP"
13716fi
13717
13718fi
13719INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13720
13721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13722$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13723if test -z "$MKDIR_P"; then
13724  if ${ac_cv_path_mkdir+:} false; then :
13725  $as_echo_n "(cached) " >&6
13726else
13727  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13728for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13729do
13730  IFS=$as_save_IFS
13731  test -z "$as_dir" && as_dir=.
13732    for ac_prog in mkdir gmkdir; do
13733	 for ac_exec_ext in '' $ac_executable_extensions; do
13734	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13735	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13736	     'mkdir (GNU coreutils) '* | \
13737	     'mkdir (coreutils) '* | \
13738	     'mkdir (fileutils) '4.1*)
13739	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13740	       break 3;;
13741	   esac
13742	 done
13743       done
13744  done
13745IFS=$as_save_IFS
13746
13747fi
13748
13749  test -d ./--version && rmdir ./--version
13750  if test "${ac_cv_path_mkdir+set}" = set; then
13751    MKDIR_P="$ac_cv_path_mkdir -p"
13752  else
13753    # As a last resort, use the slow shell script.  Don't cache a
13754    # value for MKDIR_P within a source directory, because that will
13755    # break other packages using the cache if that directory is
13756    # removed, or if the value is a relative name.
13757    MKDIR_P="$ac_install_sh -d"
13758  fi
13759fi
13760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13761$as_echo "$MKDIR_P" >&6; }
13762
13763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13764$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13765set x ${MAKE-make}
13766ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13767if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13768  $as_echo_n "(cached) " >&6
13769else
13770  cat >conftest.make <<\_ACEOF
13771SHELL = /bin/sh
13772all:
13773	@echo '@@@%%%=$(MAKE)=@@@%%%'
13774_ACEOF
13775# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13776case `${MAKE-make} -f conftest.make 2>/dev/null` in
13777  *@@@%%%=?*=@@@%%%*)
13778    eval ac_cv_prog_make_${ac_make}_set=yes;;
13779  *)
13780    eval ac_cv_prog_make_${ac_make}_set=no;;
13781esac
13782rm -f conftest.make
13783fi
13784if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13786$as_echo "yes" >&6; }
13787  SET_MAKE=
13788else
13789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13790$as_echo "no" >&6; }
13791  SET_MAKE="MAKE=${MAKE-make}"
13792fi
13793
13794rm -rf .tst 2>/dev/null
13795mkdir .tst 2>/dev/null
13796if test -d .tst; then
13797  am__leading_dot=.
13798else
13799  am__leading_dot=_
13800fi
13801rmdir .tst 2>/dev/null
13802
13803DEPDIR="${am__leading_dot}deps"
13804
13805ac_config_commands="$ac_config_commands depfiles"
13806
13807
13808am_make=${MAKE-make}
13809cat > confinc << 'END'
13810am__doit:
13811	@echo this is the am__doit target
13812.PHONY: am__doit
13813END
13814# If we don't find an include directive, just comment out the code.
13815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13816$as_echo_n "checking for style of include used by $am_make... " >&6; }
13817am__include="#"
13818am__quote=
13819_am_result=none
13820# First try GNU make style include.
13821echo "include confinc" > confmf
13822# Ignore all kinds of additional output from 'make'.
13823case `$am_make -s -f confmf 2> /dev/null` in #(
13824*the\ am__doit\ target*)
13825  am__include=include
13826  am__quote=
13827  _am_result=GNU
13828  ;;
13829esac
13830# Now try BSD make style include.
13831if test "$am__include" = "#"; then
13832   echo '.include "confinc"' > confmf
13833   case `$am_make -s -f confmf 2> /dev/null` in #(
13834   *the\ am__doit\ target*)
13835     am__include=.include
13836     am__quote="\""
13837     _am_result=BSD
13838     ;;
13839   esac
13840fi
13841
13842
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13844$as_echo "$_am_result" >&6; }
13845rm -f confinc confmf
13846
13847# Check whether --enable-dependency-tracking was given.
13848if test "${enable_dependency_tracking+set}" = set; then :
13849  enableval=$enable_dependency_tracking;
13850fi
13851
13852if test "x$enable_dependency_tracking" != xno; then
13853  am_depcomp="$ac_aux_dir/depcomp"
13854  AMDEPBACKSLASH='\'
13855  am__nodep='_no'
13856fi
13857 if test "x$enable_dependency_tracking" != xno; then
13858  AMDEP_TRUE=
13859  AMDEP_FALSE='#'
13860else
13861  AMDEP_TRUE='#'
13862  AMDEP_FALSE=
13863fi
13864
13865
13866# Check whether --enable-silent-rules was given.
13867if test "${enable_silent_rules+set}" = set; then :
13868  enableval=$enable_silent_rules;
13869fi
13870
13871case $enable_silent_rules in # (((
13872  yes) AM_DEFAULT_VERBOSITY=0;;
13873   no) AM_DEFAULT_VERBOSITY=1;;
13874    *) AM_DEFAULT_VERBOSITY=1;;
13875esac
13876am_make=${MAKE-make}
13877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13878$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13879if ${am_cv_make_support_nested_variables+:} false; then :
13880  $as_echo_n "(cached) " >&6
13881else
13882  if $as_echo 'TRUE=$(BAR$(V))
13883BAR0=false
13884BAR1=true
13885V=1
13886am__doit:
13887	@$(TRUE)
13888.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13889  am_cv_make_support_nested_variables=yes
13890else
13891  am_cv_make_support_nested_variables=no
13892fi
13893fi
13894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13895$as_echo "$am_cv_make_support_nested_variables" >&6; }
13896if test $am_cv_make_support_nested_variables = yes; then
13897    AM_V='$(V)'
13898  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13899else
13900  AM_V=$AM_DEFAULT_VERBOSITY
13901  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13902fi
13903AM_BACKSLASH='\'
13904
13905if test "`cd $srcdir && pwd`" != "`pwd`"; then
13906  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13907  # is not polluted with repeated "-I."
13908  am__isrc=' -I$(srcdir)'
13909  # test to see if srcdir already configured
13910  if test -f $srcdir/config.status; then
13911    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13912  fi
13913fi
13914
13915# test whether we have cygpath
13916if test -z "$CYGPATH_W"; then
13917  if (cygpath --version) >/dev/null 2>/dev/null; then
13918    CYGPATH_W='cygpath -w'
13919  else
13920    CYGPATH_W=echo
13921  fi
13922fi
13923
13924
13925# Define the identity of the package.
13926 PACKAGE='sim'
13927 VERSION='0'
13928
13929
13930cat >>confdefs.h <<_ACEOF
13931#define PACKAGE "$PACKAGE"
13932_ACEOF
13933
13934
13935cat >>confdefs.h <<_ACEOF
13936#define VERSION "$VERSION"
13937_ACEOF
13938
13939# Some tools Automake needs.
13940
13941ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13942
13943
13944AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13945
13946
13947AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13948
13949
13950AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13951
13952
13953MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13954
13955# For better backward compatibility.  To be removed once Automake 1.9.x
13956# dies out for good.  For more background, see:
13957# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13958# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13959mkdir_p='$(MKDIR_P)'
13960
13961# We need awk for the "check" target (and possibly the TAP driver).  The
13962# system "awk" is bad on some platforms.
13963# Always define AMTAR for backward compatibility.  Yes, it's still used
13964# in the wild :-(  We should find a proper way to deprecate it ...
13965AMTAR='$${TAR-tar}'
13966
13967
13968# We'll loop over all known methods to create a tar archive until one works.
13969_am_tools='gnutar  pax cpio none'
13970
13971am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13972
13973
13974
13975
13976
13977depcc="$CC"   am_compiler_list=
13978
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13980$as_echo_n "checking dependency style of $depcc... " >&6; }
13981if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13982  $as_echo_n "(cached) " >&6
13983else
13984  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13985  # We make a subdir and do the tests there.  Otherwise we can end up
13986  # making bogus files that we don't know about and never remove.  For
13987  # instance it was reported that on HP-UX the gcc test will end up
13988  # making a dummy file named 'D' -- because '-MD' means "put the output
13989  # in D".
13990  rm -rf conftest.dir
13991  mkdir conftest.dir
13992  # Copy depcomp to subdir because otherwise we won't find it if we're
13993  # using a relative directory.
13994  cp "$am_depcomp" conftest.dir
13995  cd conftest.dir
13996  # We will build objects and dependencies in a subdirectory because
13997  # it helps to detect inapplicable dependency modes.  For instance
13998  # both Tru64's cc and ICC support -MD to output dependencies as a
13999  # side effect of compilation, but ICC will put the dependencies in
14000  # the current directory while Tru64 will put them in the object
14001  # directory.
14002  mkdir sub
14003
14004  am_cv_CC_dependencies_compiler_type=none
14005  if test "$am_compiler_list" = ""; then
14006     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14007  fi
14008  am__universal=false
14009  case " $depcc " in #(
14010     *\ -arch\ *\ -arch\ *) am__universal=true ;;
14011     esac
14012
14013  for depmode in $am_compiler_list; do
14014    # Setup a source with many dependencies, because some compilers
14015    # like to wrap large dependency lists on column 80 (with \), and
14016    # we should not choose a depcomp mode which is confused by this.
14017    #
14018    # We need to recreate these files for each test, as the compiler may
14019    # overwrite some of them when testing with obscure command lines.
14020    # This happens at least with the AIX C compiler.
14021    : > sub/conftest.c
14022    for i in 1 2 3 4 5 6; do
14023      echo '#include "conftst'$i'.h"' >> sub/conftest.c
14024      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14025      # Solaris 10 /bin/sh.
14026      echo '/* dummy */' > sub/conftst$i.h
14027    done
14028    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14029
14030    # We check with '-c' and '-o' for the sake of the "dashmstdout"
14031    # mode.  It turns out that the SunPro C++ compiler does not properly
14032    # handle '-M -o', and we need to detect this.  Also, some Intel
14033    # versions had trouble with output in subdirs.
14034    am__obj=sub/conftest.${OBJEXT-o}
14035    am__minus_obj="-o $am__obj"
14036    case $depmode in
14037    gcc)
14038      # This depmode causes a compiler race in universal mode.
14039      test "$am__universal" = false || continue
14040      ;;
14041    nosideeffect)
14042      # After this tag, mechanisms are not by side-effect, so they'll
14043      # only be used when explicitly requested.
14044      if test "x$enable_dependency_tracking" = xyes; then
14045	continue
14046      else
14047	break
14048      fi
14049      ;;
14050    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14051      # This compiler won't grok '-c -o', but also, the minuso test has
14052      # not run yet.  These depmodes are late enough in the game, and
14053      # so weak that their functioning should not be impacted.
14054      am__obj=conftest.${OBJEXT-o}
14055      am__minus_obj=
14056      ;;
14057    none) break ;;
14058    esac
14059    if depmode=$depmode \
14060       source=sub/conftest.c object=$am__obj \
14061       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14062       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14063         >/dev/null 2>conftest.err &&
14064       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14065       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14066       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14067       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14068      # icc doesn't choke on unknown options, it will just issue warnings
14069      # or remarks (even with -Werror).  So we grep stderr for any message
14070      # that says an option was ignored or not supported.
14071      # When given -MP, icc 7.0 and 7.1 complain thusly:
14072      #   icc: Command line warning: ignoring option '-M'; no argument required
14073      # The diagnosis changed in icc 8.0:
14074      #   icc: Command line remark: option '-MP' not supported
14075      if (grep 'ignoring option' conftest.err ||
14076          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14077        am_cv_CC_dependencies_compiler_type=$depmode
14078        break
14079      fi
14080    fi
14081  done
14082
14083  cd ..
14084  rm -rf conftest.dir
14085else
14086  am_cv_CC_dependencies_compiler_type=none
14087fi
14088
14089fi
14090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14091$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14092CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14093
14094 if
14095  test "x$enable_dependency_tracking" != xno \
14096  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14097  am__fastdepCC_TRUE=
14098  am__fastdepCC_FALSE='#'
14099else
14100  am__fastdepCC_TRUE='#'
14101  am__fastdepCC_FALSE=
14102fi
14103
14104
14105
14106# POSIX will say in a future version that running "rm -f" with no argument
14107# is OK; and we want to be able to make that assumption in our Makefile
14108# recipes.  So use an aggressive probe to check that the usage we want is
14109# actually supported "in the wild" to an acceptable degree.
14110# See automake bug#10828.
14111# To make any issue more visible, cause the running configure to be aborted
14112# by default if the 'rm' program in use doesn't match our expectations; the
14113# user can still override this though.
14114if rm -f && rm -fr && rm -rf; then : OK; else
14115  cat >&2 <<'END'
14116Oops!
14117
14118Your 'rm' program seems unable to run without file operands specified
14119on the command line, even when the '-f' option is present.  This is contrary
14120to the behaviour of most rm programs out there, and not conforming with
14121the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14122
14123Please tell bug-automake@gnu.org about your system, including the value
14124of your $PATH and any error possibly output before this message.  This
14125can help us improve future automake versions.
14126
14127END
14128  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
14129    echo 'Configuration will proceed anyway, since you have set the' >&2
14130    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14131    echo >&2
14132  else
14133    cat >&2 <<'END'
14134Aborting the configuration process, to ensure you take notice of the issue.
14135
14136You can download and install GNU coreutils to get an 'rm' implementation
14137that behaves properly: <http://www.gnu.org/software/coreutils/>.
14138
14139If you want to complete the configuration process using your problematic
14140'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14141to "yes", and re-run configure.
14142
14143END
14144    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
14145  fi
14146fi
14147
14148# Check whether --enable-silent-rules was given.
14149if test "${enable_silent_rules+set}" = set; then :
14150  enableval=$enable_silent_rules;
14151fi
14152
14153case $enable_silent_rules in # (((
14154  yes) AM_DEFAULT_VERBOSITY=0;;
14155   no) AM_DEFAULT_VERBOSITY=1;;
14156    *) AM_DEFAULT_VERBOSITY=0;;
14157esac
14158am_make=${MAKE-make}
14159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14160$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14161if ${am_cv_make_support_nested_variables+:} false; then :
14162  $as_echo_n "(cached) " >&6
14163else
14164  if $as_echo 'TRUE=$(BAR$(V))
14165BAR0=false
14166BAR1=true
14167V=1
14168am__doit:
14169	@$(TRUE)
14170.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14171  am_cv_make_support_nested_variables=yes
14172else
14173  am_cv_make_support_nested_variables=no
14174fi
14175fi
14176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14177$as_echo "$am_cv_make_support_nested_variables" >&6; }
14178if test $am_cv_make_support_nested_variables = yes; then
14179    AM_V='$(V)'
14180  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14181else
14182  AM_V=$AM_DEFAULT_VERBOSITY
14183  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14184fi
14185AM_BACKSLASH='\'
14186
14187
14188# If a cpu ever has more than one simulator to choose from, use
14189# --enable-sim=... to choose.
14190# Check whether --enable-sim was given.
14191if test "${enable_sim+set}" = set; then :
14192  enableval=$enable_sim; case "${enableval}" in
14193yes | no) ;;
14194*)	as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14195esac
14196fi
14197
14198
14199# Check whether --enable-example-sims was given.
14200if test "${enable_example_sims+set}" = set; then :
14201  enableval=$enable_example_sims;
14202fi
14203
14204
14205# Check whether --enable-targets was given.
14206if test "${enable_targets+set}" = set; then :
14207  enableval=$enable_targets; case "${enableval}" in
14208  yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
14209	    ;;
14210  no)       enable_targets= ;;
14211  *)        enable_targets=$enableval ;;
14212esac
14213fi
14214
14215
14216SIM_PRIMARY_TARGET=
14217
14218
14219SIM_SUBDIRS=
14220
14221
14222SIM_ENABLED_ARCHES=
14223
14224
14225SIM_COMMON_BUILD_TRUE=
14226SIM_COMMON_BUILD_FALSE='#'
14227
14228
14229
14230ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
14231
14232
14233
14234
14235if test "${enable_sim}" != no; then
14236  sim_igen=no
14237  for targ in `echo $target $enable_targets | sed 's/,/ /g'`
14238  do
14239      sim_enable_arch_aarch64=false
14240  case "${targ}" in
14241    all|aarch64*-*-*)
14242      if test "${targ}" = "${target}"; then
14243        SIM_PRIMARY_TARGET=aarch64
14244      fi
14245        as_fn_append SIM_ENABLED_ARCHES " aarch64"
14246      ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
14247
14248    ac_config_commands="$ac_config_commands aarch64/Makefile"
14249
14250    as_fn_append SIM_SUBDIRS " aarch64"
14251
14252  ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14253
14254    ac_config_commands="$ac_config_commands depdir-aarch64"
14255
14256
14257      sim_enable_arch_aarch64=true
14258
14259      ;;
14260  esac
14261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14262$as_echo_n "checking where to find the target cc... " >&6; }
14263if test "x${build}" != "x${host}" ; then
14264  if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14265    # We already found the complete path
14266    ac_dir=`dirname $CC_FOR_TARGET`
14267    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14268$as_echo "pre-installed in $ac_dir" >&6; }
14269  else
14270    # Canadian cross, just use what we found
14271    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14272$as_echo "pre-installed" >&6; }
14273  fi
14274else
14275  ok=yes
14276  case " ${configdirs} " in
14277    *" ${target_alias}-gcc "*) ;;
14278    *) ok=no ;;
14279  esac
14280
14281  if test $ok = yes; then
14282    # An in-tree tool is available and we can use it
14283    CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc'
14284    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14285$as_echo "just compiled" >&6; }
14286  elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14287    # We already found the complete path
14288    ac_dir=`dirname $CC_FOR_TARGET`
14289    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14290$as_echo "pre-installed in $ac_dir" >&6; }
14291  elif test "x$target" = "x$host"; then
14292    # We can use an host tool
14293    CC_FOR_TARGET='$(CC)'
14294    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14295$as_echo "host tool" >&6; }
14296  else
14297    # We need a cross tool
14298    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14299$as_echo "pre-installed" >&6; }
14300  fi
14301fi
14302
14303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14304$as_echo_n "checking where to find the target as... " >&6; }
14305if test "x${build}" != "x${host}" ; then
14306  if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14307    # We already found the complete path
14308    ac_dir=`dirname $AS_FOR_TARGET`
14309    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14310$as_echo "pre-installed in $ac_dir" >&6; }
14311  else
14312    # Canadian cross, just use what we found
14313    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14314$as_echo "pre-installed" >&6; }
14315  fi
14316else
14317  ok=yes
14318  case " ${configdirs} " in
14319    *" \$(abs_builddir) "*) ;;
14320    *) ok=no ;;
14321  esac
14322
14323  if test $ok = yes; then
14324    # An in-tree tool is available and we can use it
14325    AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new'
14326    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14327$as_echo "just compiled" >&6; }
14328  elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14329    # We already found the complete path
14330    ac_dir=`dirname $AS_FOR_TARGET`
14331    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14332$as_echo "pre-installed in $ac_dir" >&6; }
14333  elif test "x$target" = "x$host"; then
14334    # We can use an host tool
14335    AS_FOR_TARGET='$(AS)'
14336    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14337$as_echo "host tool" >&6; }
14338  else
14339    # We need a cross tool
14340    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14341$as_echo "pre-installed" >&6; }
14342  fi
14343fi
14344
14345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14346$as_echo_n "checking where to find the target ld... " >&6; }
14347if test "x${build}" != "x${host}" ; then
14348  if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14349    # We already found the complete path
14350    ac_dir=`dirname $LD_FOR_TARGET`
14351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14352$as_echo "pre-installed in $ac_dir" >&6; }
14353  else
14354    # Canadian cross, just use what we found
14355    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14356$as_echo "pre-installed" >&6; }
14357  fi
14358else
14359  ok=yes
14360  case " ${configdirs} " in
14361    *" \$(abs_builddir) "*) ;;
14362    *) ok=no ;;
14363  esac
14364
14365  if test $ok = yes; then
14366    # An in-tree tool is available and we can use it
14367    LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new'
14368    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14369$as_echo "just compiled" >&6; }
14370  elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14371    # We already found the complete path
14372    ac_dir=`dirname $LD_FOR_TARGET`
14373    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14374$as_echo "pre-installed in $ac_dir" >&6; }
14375  elif test "x$target" = "x$host"; then
14376    # We can use an host tool
14377    LD_FOR_TARGET='$(LD)'
14378    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14379$as_echo "host tool" >&6; }
14380  else
14381    # We need a cross tool
14382    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14383$as_echo "pre-installed" >&6; }
14384  fi
14385fi
14386
14387
14388
14389
14390
14391
14392  if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
14393      : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
14394    : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
14395    : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
14396
14397fi
14398
14399as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14400
14401   if ${sim_enable_arch_aarch64}; then
14402  SIM_ENABLE_ARCH_aarch64_TRUE=
14403  SIM_ENABLE_ARCH_aarch64_FALSE='#'
14404else
14405  SIM_ENABLE_ARCH_aarch64_TRUE='#'
14406  SIM_ENABLE_ARCH_aarch64_FALSE=
14407fi
14408
14409
14410      sim_enable_arch_arm=false
14411  case "${targ}" in
14412    all|arm*-*-*)
14413      if test "${targ}" = "${target}"; then
14414        SIM_PRIMARY_TARGET=arm
14415      fi
14416        as_fn_append SIM_ENABLED_ARCHES " arm"
14417      ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
14418
14419    ac_config_commands="$ac_config_commands arm/Makefile"
14420
14421    as_fn_append SIM_SUBDIRS " arm"
14422
14423  ac_config_files="$ac_config_files arm/.gdbinit:common/gdbinit.in"
14424
14425    ac_config_commands="$ac_config_commands depdir-arm"
14426
14427
14428      sim_enable_arch_arm=true
14429
14430      ;;
14431  esac
14432
14433
14434
14435
14436  if test "$SIM_PRIMARY_TARGET" = "arm"; then :
14437      : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
14438    : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
14439    : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
14440
14441fi
14442
14443as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
14444
14445   if ${sim_enable_arch_arm}; then
14446  SIM_ENABLE_ARCH_arm_TRUE=
14447  SIM_ENABLE_ARCH_arm_FALSE='#'
14448else
14449  SIM_ENABLE_ARCH_arm_TRUE='#'
14450  SIM_ENABLE_ARCH_arm_FALSE=
14451fi
14452
14453
14454      sim_enable_arch_avr=false
14455  case "${targ}" in
14456    all|avr*-*-*)
14457      if test "${targ}" = "${target}"; then
14458        SIM_PRIMARY_TARGET=avr
14459      fi
14460        as_fn_append SIM_ENABLED_ARCHES " avr"
14461      ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
14462
14463    ac_config_commands="$ac_config_commands avr/Makefile"
14464
14465    as_fn_append SIM_SUBDIRS " avr"
14466
14467  ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in"
14468
14469    ac_config_commands="$ac_config_commands depdir-avr"
14470
14471
14472      sim_enable_arch_avr=true
14473
14474      ;;
14475  esac
14476
14477
14478
14479
14480  if test "$SIM_PRIMARY_TARGET" = "avr"; then :
14481      : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
14482    : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
14483    : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
14484
14485fi
14486
14487as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14488
14489   if ${sim_enable_arch_avr}; then
14490  SIM_ENABLE_ARCH_avr_TRUE=
14491  SIM_ENABLE_ARCH_avr_FALSE='#'
14492else
14493  SIM_ENABLE_ARCH_avr_TRUE='#'
14494  SIM_ENABLE_ARCH_avr_FALSE=
14495fi
14496
14497
14498      sim_enable_arch_bfin=false
14499  case "${targ}" in
14500    all|bfin-*-*)
14501      if test "${targ}" = "${target}"; then
14502        SIM_PRIMARY_TARGET=bfin
14503      fi
14504        as_fn_append SIM_ENABLED_ARCHES " bfin"
14505      ac_config_files="$ac_config_files bfin/Makefile.sim:bfin/Makefile.in"
14506
14507    ac_config_commands="$ac_config_commands bfin/Makefile"
14508
14509    as_fn_append SIM_SUBDIRS " bfin"
14510
14511  ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
14512
14513    ac_config_commands="$ac_config_commands depdir-bfin"
14514
14515
14516      sim_enable_arch_bfin=true
14517
14518      ;;
14519  esac
14520
14521
14522
14523
14524  if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
14525      : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
14526    : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
14527    : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
14528
14529fi
14530
14531as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
14532
14533   if ${sim_enable_arch_bfin}; then
14534  SIM_ENABLE_ARCH_bfin_TRUE=
14535  SIM_ENABLE_ARCH_bfin_FALSE='#'
14536else
14537  SIM_ENABLE_ARCH_bfin_TRUE='#'
14538  SIM_ENABLE_ARCH_bfin_FALSE=
14539fi
14540
14541
14542      sim_enable_arch_bpf=false
14543  case "${targ}" in
14544    all|bpf-*-*)
14545      if test "${targ}" = "${target}"; then
14546        SIM_PRIMARY_TARGET=bpf
14547      fi
14548        as_fn_append SIM_ENABLED_ARCHES " bpf"
14549      ac_config_files="$ac_config_files bpf/Makefile.sim:bpf/Makefile.in"
14550
14551    ac_config_commands="$ac_config_commands bpf/Makefile"
14552
14553    as_fn_append SIM_SUBDIRS " bpf"
14554
14555  ac_config_files="$ac_config_files bpf/.gdbinit:common/gdbinit.in"
14556
14557    ac_config_commands="$ac_config_commands depdir-bpf"
14558
14559
14560      sim_enable_arch_bpf=true
14561
14562      ;;
14563  esac
14564
14565
14566
14567
14568  if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
14569      : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
14570    : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
14571    : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
14572
14573fi
14574
14575as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
14576
14577   if ${sim_enable_arch_bpf}; then
14578  SIM_ENABLE_ARCH_bpf_TRUE=
14579  SIM_ENABLE_ARCH_bpf_FALSE='#'
14580else
14581  SIM_ENABLE_ARCH_bpf_TRUE='#'
14582  SIM_ENABLE_ARCH_bpf_FALSE=
14583fi
14584
14585
14586      sim_enable_arch_cr16=false
14587  case "${targ}" in
14588    all|cr16*-*-*)
14589      if test "${targ}" = "${target}"; then
14590        SIM_PRIMARY_TARGET=cr16
14591      fi
14592        as_fn_append SIM_ENABLED_ARCHES " cr16"
14593      ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
14594
14595    ac_config_commands="$ac_config_commands cr16/Makefile"
14596
14597    as_fn_append SIM_SUBDIRS " cr16"
14598
14599  ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
14600
14601    ac_config_commands="$ac_config_commands depdir-cr16"
14602
14603
14604      sim_enable_arch_cr16=true
14605
14606      ;;
14607  esac
14608
14609
14610
14611
14612  if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
14613      : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
14614    : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
14615    : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
14616
14617fi
14618
14619as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
14620
14621   if ${sim_enable_arch_cr16}; then
14622  SIM_ENABLE_ARCH_cr16_TRUE=
14623  SIM_ENABLE_ARCH_cr16_FALSE='#'
14624else
14625  SIM_ENABLE_ARCH_cr16_TRUE='#'
14626  SIM_ENABLE_ARCH_cr16_FALSE=
14627fi
14628
14629
14630      sim_enable_arch_cris=false
14631  case "${targ}" in
14632    all|cris-*-* | crisv32-*-*)
14633      if test "${targ}" = "${target}"; then
14634        SIM_PRIMARY_TARGET=cris
14635      fi
14636        as_fn_append SIM_ENABLED_ARCHES " cris"
14637      ac_config_files="$ac_config_files cris/Makefile.sim:cris/Makefile.in"
14638
14639    ac_config_commands="$ac_config_commands cris/Makefile"
14640
14641    as_fn_append SIM_SUBDIRS " cris"
14642
14643  ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in"
14644
14645    ac_config_commands="$ac_config_commands depdir-cris"
14646
14647
14648      sim_enable_arch_cris=true
14649
14650      ;;
14651  esac
14652
14653
14654
14655
14656  if test "$SIM_PRIMARY_TARGET" = "cris"; then :
14657      : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
14658    : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
14659    : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
14660
14661fi
14662
14663as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
14664
14665   if ${sim_enable_arch_cris}; then
14666  SIM_ENABLE_ARCH_cris_TRUE=
14667  SIM_ENABLE_ARCH_cris_FALSE='#'
14668else
14669  SIM_ENABLE_ARCH_cris_TRUE='#'
14670  SIM_ENABLE_ARCH_cris_FALSE=
14671fi
14672
14673
14674      sim_enable_arch_d10v=false
14675  case "${targ}" in
14676    all|d10v-*-*)
14677      if test "${targ}" = "${target}"; then
14678        SIM_PRIMARY_TARGET=d10v
14679      fi
14680        as_fn_append SIM_ENABLED_ARCHES " d10v"
14681      ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
14682
14683    ac_config_commands="$ac_config_commands d10v/Makefile"
14684
14685    as_fn_append SIM_SUBDIRS " d10v"
14686
14687  ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
14688
14689    ac_config_commands="$ac_config_commands depdir-d10v"
14690
14691
14692      sim_enable_arch_d10v=true
14693
14694      ;;
14695  esac
14696
14697
14698
14699
14700  if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
14701      : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
14702    : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
14703    : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
14704
14705fi
14706
14707as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
14708
14709   if ${sim_enable_arch_d10v}; then
14710  SIM_ENABLE_ARCH_d10v_TRUE=
14711  SIM_ENABLE_ARCH_d10v_FALSE='#'
14712else
14713  SIM_ENABLE_ARCH_d10v_TRUE='#'
14714  SIM_ENABLE_ARCH_d10v_FALSE=
14715fi
14716
14717
14718      sim_enable_arch_frv=false
14719  case "${targ}" in
14720    all|frv-*-*)
14721      if test "${targ}" = "${target}"; then
14722        SIM_PRIMARY_TARGET=frv
14723      fi
14724        as_fn_append SIM_ENABLED_ARCHES " frv"
14725      ac_config_files="$ac_config_files frv/Makefile.sim:frv/Makefile.in"
14726
14727    ac_config_commands="$ac_config_commands frv/Makefile"
14728
14729    as_fn_append SIM_SUBDIRS " frv"
14730
14731  ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in"
14732
14733    ac_config_commands="$ac_config_commands depdir-frv"
14734
14735
14736      sim_enable_arch_frv=true
14737
14738      ;;
14739  esac
14740
14741
14742
14743
14744  if test "$SIM_PRIMARY_TARGET" = "frv"; then :
14745      : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
14746    : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
14747    : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
14748
14749fi
14750
14751as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
14752
14753   if ${sim_enable_arch_frv}; then
14754  SIM_ENABLE_ARCH_frv_TRUE=
14755  SIM_ENABLE_ARCH_frv_FALSE='#'
14756else
14757  SIM_ENABLE_ARCH_frv_TRUE='#'
14758  SIM_ENABLE_ARCH_frv_FALSE=
14759fi
14760
14761
14762      sim_enable_arch_ft32=false
14763  case "${targ}" in
14764    all|ft32-*-*)
14765      if test "${targ}" = "${target}"; then
14766        SIM_PRIMARY_TARGET=ft32
14767      fi
14768        as_fn_append SIM_ENABLED_ARCHES " ft32"
14769      ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
14770
14771    ac_config_commands="$ac_config_commands ft32/Makefile"
14772
14773    as_fn_append SIM_SUBDIRS " ft32"
14774
14775  ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
14776
14777    ac_config_commands="$ac_config_commands depdir-ft32"
14778
14779
14780      sim_enable_arch_ft32=true
14781
14782      ;;
14783  esac
14784
14785
14786
14787
14788  if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
14789      : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
14790    : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
14791    : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
14792
14793fi
14794
14795as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
14796
14797   if ${sim_enable_arch_ft32}; then
14798  SIM_ENABLE_ARCH_ft32_TRUE=
14799  SIM_ENABLE_ARCH_ft32_FALSE='#'
14800else
14801  SIM_ENABLE_ARCH_ft32_TRUE='#'
14802  SIM_ENABLE_ARCH_ft32_FALSE=
14803fi
14804
14805
14806      sim_enable_arch_h8300=false
14807  case "${targ}" in
14808    all|h8300*-*-*)
14809      if test "${targ}" = "${target}"; then
14810        SIM_PRIMARY_TARGET=h8300
14811      fi
14812        as_fn_append SIM_ENABLED_ARCHES " h8300"
14813      ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
14814
14815    ac_config_commands="$ac_config_commands h8300/Makefile"
14816
14817    as_fn_append SIM_SUBDIRS " h8300"
14818
14819  ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
14820
14821    ac_config_commands="$ac_config_commands depdir-h8300"
14822
14823
14824      sim_enable_arch_h8300=true
14825
14826      ;;
14827  esac
14828
14829
14830
14831
14832  if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
14833      : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
14834    : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
14835    : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
14836
14837fi
14838
14839as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
14840
14841   if ${sim_enable_arch_h8300}; then
14842  SIM_ENABLE_ARCH_h8300_TRUE=
14843  SIM_ENABLE_ARCH_h8300_FALSE='#'
14844else
14845  SIM_ENABLE_ARCH_h8300_TRUE='#'
14846  SIM_ENABLE_ARCH_h8300_FALSE=
14847fi
14848
14849
14850      sim_enable_arch_iq2000=false
14851  case "${targ}" in
14852    all|iq2000-*-*)
14853      if test "${targ}" = "${target}"; then
14854        SIM_PRIMARY_TARGET=iq2000
14855      fi
14856        as_fn_append SIM_ENABLED_ARCHES " iq2000"
14857      ac_config_files="$ac_config_files iq2000/Makefile.sim:iq2000/Makefile.in"
14858
14859    ac_config_commands="$ac_config_commands iq2000/Makefile"
14860
14861    as_fn_append SIM_SUBDIRS " iq2000"
14862
14863  ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
14864
14865    ac_config_commands="$ac_config_commands depdir-iq2000"
14866
14867
14868      sim_enable_arch_iq2000=true
14869
14870      ;;
14871  esac
14872
14873
14874
14875
14876  if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
14877      : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
14878    : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
14879    : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
14880
14881fi
14882
14883as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
14884
14885   if ${sim_enable_arch_iq2000}; then
14886  SIM_ENABLE_ARCH_iq2000_TRUE=
14887  SIM_ENABLE_ARCH_iq2000_FALSE='#'
14888else
14889  SIM_ENABLE_ARCH_iq2000_TRUE='#'
14890  SIM_ENABLE_ARCH_iq2000_FALSE=
14891fi
14892
14893
14894      sim_enable_arch_lm32=false
14895  case "${targ}" in
14896    all|lm32-*-*)
14897      if test "${targ}" = "${target}"; then
14898        SIM_PRIMARY_TARGET=lm32
14899      fi
14900        as_fn_append SIM_ENABLED_ARCHES " lm32"
14901      ac_config_files="$ac_config_files lm32/Makefile.sim:lm32/Makefile.in"
14902
14903    ac_config_commands="$ac_config_commands lm32/Makefile"
14904
14905    as_fn_append SIM_SUBDIRS " lm32"
14906
14907  ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
14908
14909    ac_config_commands="$ac_config_commands depdir-lm32"
14910
14911
14912      sim_enable_arch_lm32=true
14913
14914      ;;
14915  esac
14916
14917
14918
14919
14920  if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
14921      : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
14922    : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
14923    : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
14924
14925fi
14926
14927as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
14928
14929   if ${sim_enable_arch_lm32}; then
14930  SIM_ENABLE_ARCH_lm32_TRUE=
14931  SIM_ENABLE_ARCH_lm32_FALSE='#'
14932else
14933  SIM_ENABLE_ARCH_lm32_TRUE='#'
14934  SIM_ENABLE_ARCH_lm32_FALSE=
14935fi
14936
14937
14938      sim_enable_arch_m32c=false
14939  case "${targ}" in
14940    all|m32c-*-*)
14941      if test "${targ}" = "${target}"; then
14942        SIM_PRIMARY_TARGET=m32c
14943      fi
14944        as_fn_append SIM_ENABLED_ARCHES " m32c"
14945      ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
14946
14947    ac_config_commands="$ac_config_commands m32c/Makefile"
14948
14949    as_fn_append SIM_SUBDIRS " m32c"
14950
14951  ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
14952
14953    ac_config_commands="$ac_config_commands depdir-m32c"
14954
14955
14956      sim_enable_arch_m32c=true
14957
14958      ;;
14959  esac
14960
14961
14962
14963
14964  if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
14965      : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
14966    : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
14967    : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
14968
14969fi
14970
14971as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
14972
14973   if ${sim_enable_arch_m32c}; then
14974  SIM_ENABLE_ARCH_m32c_TRUE=
14975  SIM_ENABLE_ARCH_m32c_FALSE='#'
14976else
14977  SIM_ENABLE_ARCH_m32c_TRUE='#'
14978  SIM_ENABLE_ARCH_m32c_FALSE=
14979fi
14980
14981
14982      sim_enable_arch_m32r=false
14983  case "${targ}" in
14984    all|m32r-*-*)
14985      if test "${targ}" = "${target}"; then
14986        SIM_PRIMARY_TARGET=m32r
14987      fi
14988        as_fn_append SIM_ENABLED_ARCHES " m32r"
14989      ac_config_files="$ac_config_files m32r/Makefile.sim:m32r/Makefile.in"
14990
14991    ac_config_commands="$ac_config_commands m32r/Makefile"
14992
14993    as_fn_append SIM_SUBDIRS " m32r"
14994
14995  ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
14996
14997    ac_config_commands="$ac_config_commands depdir-m32r"
14998
14999
15000      sim_enable_arch_m32r=true
15001
15002      ;;
15003  esac
15004
15005
15006
15007
15008  if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
15009      : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
15010    : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
15011    : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
15012
15013fi
15014
15015as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
15016
15017   if ${sim_enable_arch_m32r}; then
15018  SIM_ENABLE_ARCH_m32r_TRUE=
15019  SIM_ENABLE_ARCH_m32r_FALSE='#'
15020else
15021  SIM_ENABLE_ARCH_m32r_TRUE='#'
15022  SIM_ENABLE_ARCH_m32r_FALSE=
15023fi
15024
15025
15026      sim_enable_arch_m68hc11=false
15027  case "${targ}" in
15028    all|m68hc11-*-*|m6811-*-*)
15029      if test "${targ}" = "${target}"; then
15030        SIM_PRIMARY_TARGET=m68hc11
15031      fi
15032        as_fn_append SIM_ENABLED_ARCHES " m68hc11"
15033      ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
15034
15035    ac_config_commands="$ac_config_commands m68hc11/Makefile"
15036
15037    as_fn_append SIM_SUBDIRS " m68hc11"
15038
15039  ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
15040
15041    ac_config_commands="$ac_config_commands depdir-m68hc11"
15042
15043
15044      sim_enable_arch_m68hc11=true
15045
15046      ;;
15047  esac
15048
15049
15050
15051
15052  if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
15053      : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
15054    : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
15055    : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
15056
15057fi
15058
15059as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
15060
15061   if ${sim_enable_arch_m68hc11}; then
15062  SIM_ENABLE_ARCH_m68hc11_TRUE=
15063  SIM_ENABLE_ARCH_m68hc11_FALSE='#'
15064else
15065  SIM_ENABLE_ARCH_m68hc11_TRUE='#'
15066  SIM_ENABLE_ARCH_m68hc11_FALSE=
15067fi
15068
15069
15070      sim_enable_arch_mcore=false
15071  case "${targ}" in
15072    all|mcore-*-*)
15073      if test "${targ}" = "${target}"; then
15074        SIM_PRIMARY_TARGET=mcore
15075      fi
15076        as_fn_append SIM_ENABLED_ARCHES " mcore"
15077      ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
15078
15079    ac_config_commands="$ac_config_commands mcore/Makefile"
15080
15081    as_fn_append SIM_SUBDIRS " mcore"
15082
15083  ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
15084
15085    ac_config_commands="$ac_config_commands depdir-mcore"
15086
15087
15088      sim_enable_arch_mcore=true
15089
15090      ;;
15091  esac
15092
15093
15094
15095
15096  if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
15097      : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
15098    : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
15099    : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
15100
15101fi
15102
15103as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
15104
15105   if ${sim_enable_arch_mcore}; then
15106  SIM_ENABLE_ARCH_mcore_TRUE=
15107  SIM_ENABLE_ARCH_mcore_FALSE='#'
15108else
15109  SIM_ENABLE_ARCH_mcore_TRUE='#'
15110  SIM_ENABLE_ARCH_mcore_FALSE=
15111fi
15112
15113
15114      sim_enable_arch_microblaze=false
15115  case "${targ}" in
15116    all|microblaze*-*-*)
15117      if test "${targ}" = "${target}"; then
15118        SIM_PRIMARY_TARGET=microblaze
15119      fi
15120        as_fn_append SIM_ENABLED_ARCHES " microblaze"
15121      ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
15122
15123    ac_config_commands="$ac_config_commands microblaze/Makefile"
15124
15125    as_fn_append SIM_SUBDIRS " microblaze"
15126
15127  ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
15128
15129    ac_config_commands="$ac_config_commands depdir-microblaze"
15130
15131
15132      sim_enable_arch_microblaze=true
15133
15134      ;;
15135  esac
15136
15137
15138
15139
15140  if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
15141      : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
15142    : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
15143    : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
15144
15145fi
15146
15147as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
15148
15149   if ${sim_enable_arch_microblaze}; then
15150  SIM_ENABLE_ARCH_microblaze_TRUE=
15151  SIM_ENABLE_ARCH_microblaze_FALSE='#'
15152else
15153  SIM_ENABLE_ARCH_microblaze_TRUE='#'
15154  SIM_ENABLE_ARCH_microblaze_FALSE=
15155fi
15156
15157
15158      sim_enable_arch_mips=false
15159  case "${targ}" in
15160    all|mips*-*-*)
15161      if test "${targ}" = "${target}"; then
15162        SIM_PRIMARY_TARGET=mips
15163      fi
15164        as_fn_append SIM_ENABLED_ARCHES " mips"
15165
15166
15167subdirs="$subdirs mips"
15168
15169
15170  ac_config_files="$ac_config_files mips/.gdbinit:common/gdbinit.in"
15171
15172    ac_config_commands="$ac_config_commands depdir-mips"
15173
15174
15175      sim_enable_arch_mips=true
15176      sim_igen=yes
15177      ;;
15178  esac
15179
15180
15181
15182
15183  if test "$SIM_PRIMARY_TARGET" = "mips"; then :
15184      : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
15185    : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
15186    : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
15187
15188fi
15189
15190as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
15191
15192   if ${sim_enable_arch_mips}; then
15193  SIM_ENABLE_ARCH_mips_TRUE=
15194  SIM_ENABLE_ARCH_mips_FALSE='#'
15195else
15196  SIM_ENABLE_ARCH_mips_TRUE='#'
15197  SIM_ENABLE_ARCH_mips_FALSE=
15198fi
15199
15200
15201      sim_enable_arch_mn10300=false
15202  case "${targ}" in
15203    all|mn10300*-*-*)
15204      if test "${targ}" = "${target}"; then
15205        SIM_PRIMARY_TARGET=mn10300
15206      fi
15207        as_fn_append SIM_ENABLED_ARCHES " mn10300"
15208      ac_config_files="$ac_config_files mn10300/Makefile.sim:mn10300/Makefile.in"
15209
15210    ac_config_commands="$ac_config_commands mn10300/Makefile"
15211
15212    as_fn_append SIM_SUBDIRS " mn10300"
15213
15214  ac_config_files="$ac_config_files mn10300/.gdbinit:common/gdbinit.in"
15215
15216    ac_config_commands="$ac_config_commands depdir-mn10300"
15217
15218
15219      sim_enable_arch_mn10300=true
15220      sim_igen=yes
15221      ;;
15222  esac
15223
15224
15225
15226
15227  if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
15228      : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
15229    : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
15230    : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
15231
15232fi
15233
15234as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
15235
15236   if ${sim_enable_arch_mn10300}; then
15237  SIM_ENABLE_ARCH_mn10300_TRUE=
15238  SIM_ENABLE_ARCH_mn10300_FALSE='#'
15239else
15240  SIM_ENABLE_ARCH_mn10300_TRUE='#'
15241  SIM_ENABLE_ARCH_mn10300_FALSE=
15242fi
15243
15244
15245      sim_enable_arch_moxie=false
15246  case "${targ}" in
15247    all|moxie-*-*)
15248      if test "${targ}" = "${target}"; then
15249        SIM_PRIMARY_TARGET=moxie
15250      fi
15251        as_fn_append SIM_ENABLED_ARCHES " moxie"
15252      ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
15253
15254    ac_config_commands="$ac_config_commands moxie/Makefile"
15255
15256    as_fn_append SIM_SUBDIRS " moxie"
15257
15258  ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
15259
15260    ac_config_commands="$ac_config_commands depdir-moxie"
15261
15262
15263      sim_enable_arch_moxie=true
15264
15265      ;;
15266  esac
15267
15268
15269
15270
15271  if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15272      : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15273    : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15274    : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
15275
15276fi
15277
15278as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15279
15280   if ${sim_enable_arch_moxie}; then
15281  SIM_ENABLE_ARCH_moxie_TRUE=
15282  SIM_ENABLE_ARCH_moxie_FALSE='#'
15283else
15284  SIM_ENABLE_ARCH_moxie_TRUE='#'
15285  SIM_ENABLE_ARCH_moxie_FALSE=
15286fi
15287
15288
15289      sim_enable_arch_msp430=false
15290  case "${targ}" in
15291    all|msp430*-*-*)
15292      if test "${targ}" = "${target}"; then
15293        SIM_PRIMARY_TARGET=msp430
15294      fi
15295        as_fn_append SIM_ENABLED_ARCHES " msp430"
15296      ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
15297
15298    ac_config_commands="$ac_config_commands msp430/Makefile"
15299
15300    as_fn_append SIM_SUBDIRS " msp430"
15301
15302  ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15303
15304    ac_config_commands="$ac_config_commands depdir-msp430"
15305
15306
15307      sim_enable_arch_msp430=true
15308
15309      ;;
15310  esac
15311
15312
15313
15314
15315  if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15316      : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15317    : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15318    : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15319
15320fi
15321
15322as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15323
15324   if ${sim_enable_arch_msp430}; then
15325  SIM_ENABLE_ARCH_msp430_TRUE=
15326  SIM_ENABLE_ARCH_msp430_FALSE='#'
15327else
15328  SIM_ENABLE_ARCH_msp430_TRUE='#'
15329  SIM_ENABLE_ARCH_msp430_FALSE=
15330fi
15331
15332
15333      sim_enable_arch_or1k=false
15334  case "${targ}" in
15335    all|or1k*-*-*)
15336      if test "${targ}" = "${target}"; then
15337        SIM_PRIMARY_TARGET=or1k
15338      fi
15339        as_fn_append SIM_ENABLED_ARCHES " or1k"
15340      ac_config_files="$ac_config_files or1k/Makefile.sim:or1k/Makefile.in"
15341
15342    ac_config_commands="$ac_config_commands or1k/Makefile"
15343
15344    as_fn_append SIM_SUBDIRS " or1k"
15345
15346  ac_config_files="$ac_config_files or1k/.gdbinit:common/gdbinit.in"
15347
15348    ac_config_commands="$ac_config_commands depdir-or1k"
15349
15350
15351      sim_enable_arch_or1k=true
15352
15353      ;;
15354  esac
15355
15356
15357
15358
15359  if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15360      : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15361    : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15362    : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15363
15364fi
15365
15366as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15367
15368   if ${sim_enable_arch_or1k}; then
15369  SIM_ENABLE_ARCH_or1k_TRUE=
15370  SIM_ENABLE_ARCH_or1k_FALSE='#'
15371else
15372  SIM_ENABLE_ARCH_or1k_TRUE='#'
15373  SIM_ENABLE_ARCH_or1k_FALSE=
15374fi
15375
15376
15377      sim_enable_arch_ppc=false
15378  case "${targ}" in
15379    all|powerpc*-*-*)
15380      if test "${targ}" = "${target}"; then
15381        SIM_PRIMARY_TARGET=ppc
15382      fi
15383        as_fn_append SIM_ENABLED_ARCHES " ppc"
15384      subdirs="$subdirs ppc"
15385
15386
15387  ac_config_files="$ac_config_files ppc/.gdbinit:common/gdbinit.in"
15388
15389    ac_config_commands="$ac_config_commands depdir-ppc"
15390
15391
15392      sim_enable_arch_ppc=true
15393
15394      ;;
15395  esac
15396
15397
15398
15399
15400  if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15401      : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15402    : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15403    : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15404
15405fi
15406
15407as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15408
15409   if ${sim_enable_arch_ppc}; then
15410  SIM_ENABLE_ARCH_ppc_TRUE=
15411  SIM_ENABLE_ARCH_ppc_FALSE='#'
15412else
15413  SIM_ENABLE_ARCH_ppc_TRUE='#'
15414  SIM_ENABLE_ARCH_ppc_FALSE=
15415fi
15416
15417
15418      sim_enable_arch_pru=false
15419  case "${targ}" in
15420    all|pru*-*-*)
15421      if test "${targ}" = "${target}"; then
15422        SIM_PRIMARY_TARGET=pru
15423      fi
15424        as_fn_append SIM_ENABLED_ARCHES " pru"
15425      ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
15426
15427    ac_config_commands="$ac_config_commands pru/Makefile"
15428
15429    as_fn_append SIM_SUBDIRS " pru"
15430
15431  ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15432
15433    ac_config_commands="$ac_config_commands depdir-pru"
15434
15435
15436      sim_enable_arch_pru=true
15437
15438      ;;
15439  esac
15440
15441
15442
15443
15444  if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15445      : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15446    : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15447    : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15448
15449fi
15450
15451as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15452
15453   if ${sim_enable_arch_pru}; then
15454  SIM_ENABLE_ARCH_pru_TRUE=
15455  SIM_ENABLE_ARCH_pru_FALSE='#'
15456else
15457  SIM_ENABLE_ARCH_pru_TRUE='#'
15458  SIM_ENABLE_ARCH_pru_FALSE=
15459fi
15460
15461
15462      sim_enable_arch_riscv=false
15463  case "${targ}" in
15464    all|riscv*-*-*)
15465      if test "${targ}" = "${target}"; then
15466        SIM_PRIMARY_TARGET=riscv
15467      fi
15468        as_fn_append SIM_ENABLED_ARCHES " riscv"
15469      ac_config_files="$ac_config_files riscv/Makefile.sim:riscv/Makefile.in"
15470
15471    ac_config_commands="$ac_config_commands riscv/Makefile"
15472
15473    as_fn_append SIM_SUBDIRS " riscv"
15474
15475  ac_config_files="$ac_config_files riscv/.gdbinit:common/gdbinit.in"
15476
15477    ac_config_commands="$ac_config_commands depdir-riscv"
15478
15479
15480      sim_enable_arch_riscv=true
15481
15482      ;;
15483  esac
15484
15485
15486
15487
15488  if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15489      : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15490    : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15491    : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15492
15493fi
15494
15495as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15496
15497   if ${sim_enable_arch_riscv}; then
15498  SIM_ENABLE_ARCH_riscv_TRUE=
15499  SIM_ENABLE_ARCH_riscv_FALSE='#'
15500else
15501  SIM_ENABLE_ARCH_riscv_TRUE='#'
15502  SIM_ENABLE_ARCH_riscv_FALSE=
15503fi
15504
15505
15506      sim_enable_arch_rl78=false
15507  case "${targ}" in
15508    all|rl78-*-*)
15509      if test "${targ}" = "${target}"; then
15510        SIM_PRIMARY_TARGET=rl78
15511      fi
15512        as_fn_append SIM_ENABLED_ARCHES " rl78"
15513      ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
15514
15515    ac_config_commands="$ac_config_commands rl78/Makefile"
15516
15517    as_fn_append SIM_SUBDIRS " rl78"
15518
15519  ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15520
15521    ac_config_commands="$ac_config_commands depdir-rl78"
15522
15523
15524      sim_enable_arch_rl78=true
15525
15526      ;;
15527  esac
15528
15529
15530
15531
15532  if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15533      : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15534    : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15535    : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15536
15537fi
15538
15539as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15540
15541   if ${sim_enable_arch_rl78}; then
15542  SIM_ENABLE_ARCH_rl78_TRUE=
15543  SIM_ENABLE_ARCH_rl78_FALSE='#'
15544else
15545  SIM_ENABLE_ARCH_rl78_TRUE='#'
15546  SIM_ENABLE_ARCH_rl78_FALSE=
15547fi
15548
15549
15550      sim_enable_arch_rx=false
15551  case "${targ}" in
15552    all|rx-*-*)
15553      if test "${targ}" = "${target}"; then
15554        SIM_PRIMARY_TARGET=rx
15555      fi
15556        as_fn_append SIM_ENABLED_ARCHES " rx"
15557      ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in"
15558
15559    ac_config_commands="$ac_config_commands rx/Makefile"
15560
15561    as_fn_append SIM_SUBDIRS " rx"
15562
15563  ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15564
15565    ac_config_commands="$ac_config_commands depdir-rx"
15566
15567
15568      sim_enable_arch_rx=true
15569
15570      ;;
15571  esac
15572
15573
15574
15575
15576  if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15577      : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15578    : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15579    : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15580
15581fi
15582
15583as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15584
15585   if ${sim_enable_arch_rx}; then
15586  SIM_ENABLE_ARCH_rx_TRUE=
15587  SIM_ENABLE_ARCH_rx_FALSE='#'
15588else
15589  SIM_ENABLE_ARCH_rx_TRUE='#'
15590  SIM_ENABLE_ARCH_rx_FALSE=
15591fi
15592
15593
15594      sim_enable_arch_sh=false
15595  case "${targ}" in
15596    all|sh*-*-*)
15597      if test "${targ}" = "${target}"; then
15598        SIM_PRIMARY_TARGET=sh
15599      fi
15600        as_fn_append SIM_ENABLED_ARCHES " sh"
15601      ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
15602
15603    ac_config_commands="$ac_config_commands sh/Makefile"
15604
15605    as_fn_append SIM_SUBDIRS " sh"
15606
15607  ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in"
15608
15609    ac_config_commands="$ac_config_commands depdir-sh"
15610
15611
15612      sim_enable_arch_sh=true
15613
15614      ;;
15615  esac
15616
15617
15618
15619
15620  if test "$SIM_PRIMARY_TARGET" = "sh"; then :
15621      : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
15622    : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
15623    : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
15624
15625fi
15626
15627as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15628
15629   if ${sim_enable_arch_sh}; then
15630  SIM_ENABLE_ARCH_sh_TRUE=
15631  SIM_ENABLE_ARCH_sh_FALSE='#'
15632else
15633  SIM_ENABLE_ARCH_sh_TRUE='#'
15634  SIM_ENABLE_ARCH_sh_FALSE=
15635fi
15636
15637
15638      sim_enable_arch_erc32=false
15639  case "${targ}" in
15640    all|sparc-*-*)
15641      if test "${targ}" = "${target}"; then
15642        SIM_PRIMARY_TARGET=erc32
15643      fi
15644        as_fn_append SIM_ENABLED_ARCHES " erc32"
15645      ac_config_files="$ac_config_files erc32/Makefile.sim:erc32/Makefile.in"
15646
15647    ac_config_commands="$ac_config_commands erc32/Makefile"
15648
15649    as_fn_append SIM_SUBDIRS " erc32"
15650
15651  ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
15652
15653    ac_config_commands="$ac_config_commands depdir-erc32"
15654
15655
15656      sim_enable_arch_erc32=true
15657
15658      ;;
15659  esac
15660
15661
15662
15663
15664  if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
15665      : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
15666    : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
15667    : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
15668
15669fi
15670
15671as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15672
15673   if ${sim_enable_arch_erc32}; then
15674  SIM_ENABLE_ARCH_erc32_TRUE=
15675  SIM_ENABLE_ARCH_erc32_FALSE='#'
15676else
15677  SIM_ENABLE_ARCH_erc32_TRUE='#'
15678  SIM_ENABLE_ARCH_erc32_FALSE=
15679fi
15680
15681
15682      sim_enable_arch_v850=false
15683  case "${targ}" in
15684    all|v850*-*-*)
15685      if test "${targ}" = "${target}"; then
15686        SIM_PRIMARY_TARGET=v850
15687      fi
15688        as_fn_append SIM_ENABLED_ARCHES " v850"
15689      ac_config_files="$ac_config_files v850/Makefile.sim:v850/Makefile.in"
15690
15691    ac_config_commands="$ac_config_commands v850/Makefile"
15692
15693    as_fn_append SIM_SUBDIRS " v850"
15694
15695  ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in"
15696
15697    ac_config_commands="$ac_config_commands depdir-v850"
15698
15699
15700      sim_enable_arch_v850=true
15701      sim_igen=yes
15702      ;;
15703  esac
15704
15705
15706
15707
15708  if test "$SIM_PRIMARY_TARGET" = "v850"; then :
15709      : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
15710    : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
15711    : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
15712
15713fi
15714
15715as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15716
15717   if ${sim_enable_arch_v850}; then
15718  SIM_ENABLE_ARCH_v850_TRUE=
15719  SIM_ENABLE_ARCH_v850_FALSE='#'
15720else
15721  SIM_ENABLE_ARCH_v850_TRUE='#'
15722  SIM_ENABLE_ARCH_v850_FALSE=
15723fi
15724
15725
15726  done
15727
15728  if test "x${enable_example_sims}" = xyes; then
15729
15730
15731
15732
15733  : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
15734  : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
15735  : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15736
15737as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15738
15739      as_fn_append SIM_ENABLED_ARCHES " example-synacor"
15740      ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
15741
15742    ac_config_commands="$ac_config_commands example-synacor/Makefile"
15743
15744    as_fn_append SIM_SUBDIRS " example-synacor"
15745
15746  ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
15747
15748    ac_config_commands="$ac_config_commands depdir-example-synacor"
15749
15750
15751  fi
15752   if test "${enable_example_sims}" = "yes"; then
15753  SIM_ENABLE_ARCH_examples_TRUE=
15754  SIM_ENABLE_ARCH_examples_FALSE='#'
15755else
15756  SIM_ENABLE_ARCH_examples_TRUE='#'
15757  SIM_ENABLE_ARCH_examples_FALSE=
15758fi
15759
15760fi
15761 if test "$sim_igen" = "yes"; then
15762  SIM_ENABLE_IGEN_TRUE=
15763  SIM_ENABLE_IGEN_FALSE='#'
15764else
15765  SIM_ENABLE_IGEN_TRUE='#'
15766  SIM_ENABLE_IGEN_FALSE=
15767fi
15768
15769 if test -n "$SIM_SUBDIRS"; then
15770  ENABLE_SIM_TRUE=
15771  ENABLE_SIM_FALSE='#'
15772else
15773  ENABLE_SIM_TRUE='#'
15774  ENABLE_SIM_FALSE=
15775fi
15776
15777
15778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
15779$as_echo_n "checking whether to force sim alignment... " >&6; }
15780sim_alignment=
15781# Check whether --enable-sim-alignment was given.
15782if test "${enable_sim_alignment+set}" = set; then :
15783  enableval=$enable_sim_alignment; case "${enableval}" in
15784  yes | strict | STRICT)      sim_alignment="STRICT_ALIGNMENT";;
15785  no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
15786  forced | FORCED)            sim_alignment="FORCED_ALIGNMENT";;
15787  *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
15788esac
15789fi
15790
15791cat >>confdefs.h <<_ACEOF
15792#define WITH_ALIGNMENT ${sim_alignment:-0}
15793_ACEOF
15794
15795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15796$as_echo "${sim_alignment:-no}" >&6; }
15797
15798
15799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
15800$as_echo_n "checking whether to enable sim asserts... " >&6; }
15801sim_assert="1"
15802# Check whether --enable-sim-assert was given.
15803if test "${enable_sim_assert+set}" = set; then :
15804  enableval=$enable_sim_assert; case "${enableval}" in
15805  yes)	sim_assert="1";;
15806  no)	sim_assert="0";;
15807  *)	as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
15808esac
15809fi
15810
15811cat >>confdefs.h <<_ACEOF
15812#define WITH_ASSERT $sim_assert
15813_ACEOF
15814
15815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
15816$as_echo "$sim_assert" >&6; }
15817
15818
15819cgen_maint=no
15820cgen=guile
15821cgendir='$(srcdir)/../../cgen'
15822# Check whether --enable-cgen-maint was given.
15823if test "${enable_cgen_maint+set}" = set; then :
15824  enableval=$enable_cgen_maint; case "${enableval}" in
15825  yes)	cgen_maint=yes ;;
15826  no)	cgen_maint=no ;;
15827  *)
15828	# Argument is a directory where cgen can be found.  In some
15829	# future world cgen could be installable, but right now this
15830	# is not the case.  Instead we assume the directory is a path
15831	# to the cgen source tree.
15832	cgen_maint=yes
15833        if test -r ${enableval}/iformat.scm; then
15834          # This looks like a cgen source tree.
15835	  cgendir=${enableval}
15836        else
15837	  as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
15838        fi
15839	;;
15840esac
15841fi
15842if test x${cgen_maint} != xno ; then
15843  CGEN_MAINT=''
15844else
15845  CGEN_MAINT='#'
15846fi
15847
15848
15849
15850
15851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
15852$as_echo_n "checking for sim debug setting... " >&6; }
15853sim_debug="0"
15854# Check whether --enable-sim-debug was given.
15855if test "${enable_sim_debug+set}" = set; then :
15856  enableval=$enable_sim_debug; case "${enableval}" in
15857  yes) sim_debug="7";;
15858  no)  sim_debug="0";;
15859  *)   sim_debug="($enableval)";;
15860esac
15861fi
15862if test "$sim_debug" != "0"; then
15863
15864cat >>confdefs.h <<_ACEOF
15865#define DEBUG $sim_debug
15866_ACEOF
15867
15868fi
15869
15870cat >>confdefs.h <<_ACEOF
15871#define WITH_DEBUG $sim_debug
15872_ACEOF
15873
15874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
15875$as_echo "$sim_debug" >&6; }
15876
15877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
15878$as_echo_n "checking whether to force sim endianness... " >&6; }
15879sim_endian=
15880# Check whether --enable-sim-endian was given.
15881if test "${enable_sim_endian+set}" = set; then :
15882  enableval=$enable_sim_endian; case "${enableval}" in
15883  b*|B*) sim_endian="BFD_ENDIAN_BIG";;
15884  l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
15885  yes | no) ;;
15886  *)	 as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
15887esac
15888fi
15889
15890cat >>confdefs.h <<_ACEOF
15891#define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
15892_ACEOF
15893
15894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15895$as_echo "${sim_alignment:-no}" >&6; }
15896
15897
15898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
15899$as_echo_n "checking default sim environment setting... " >&6; }
15900sim_environment="ALL_ENVIRONMENT"
15901# Check whether --enable-sim-environment was given.
15902if test "${enable_sim_environment+set}" = set; then :
15903  enableval=$enable_sim_environment; case "${enableval}" in
15904  all | ALL)             sim_environment="ALL_ENVIRONMENT";;
15905  user | USER)           sim_environment="USER_ENVIRONMENT";;
15906  virtual | VIRTUAL)     sim_environment="VIRTUAL_ENVIRONMENT";;
15907  operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
15908  *)   as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
15909esac
15910fi
15911
15912cat >>confdefs.h <<_ACEOF
15913#define WITH_ENVIRONMENT $sim_environment
15914_ACEOF
15915
15916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
15917$as_echo "$sim_environment" >&6; }
15918
15919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
15920$as_echo_n "checking for sim hardware settings... " >&6; }
15921# Check whether --enable-sim-hardware was given.
15922if test "${enable_sim_hardware+set}" = set; then :
15923  enableval=$enable_sim_hardware;
15924else
15925  enable_sim_hardware="yes"
15926fi
15927
15928sim_hw_sockser=
15929if test "$enable_sim_hardware" = no; then
15930  sim_hw_cflags="-DWITH_HW=0"
15931elif test "$enable_sim_hardware" = yes; then
15932  sim_hw_cflags="-DWITH_HW=1"
15933        sim_hw_sockser="dv-sockser.o"
15934  sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
15935else
15936  as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
15937fi
15938 if test "$enable_sim_hardware" = "yes"; then
15939  SIM_ENABLE_HW_TRUE=
15940  SIM_ENABLE_HW_FALSE='#'
15941else
15942  SIM_ENABLE_HW_TRUE='#'
15943  SIM_ENABLE_HW_FALSE=
15944fi
15945
15946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
15947$as_echo "${enable_sim_hardware}" >&6; }
15948SIM_HW_CFLAGS=$sim_hw_cflags
15949
15950SIM_HW_SOCKSER=$sim_hw_sockser
15951
15952
15953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
15954$as_echo_n "checking sim inline settings... " >&6; }
15955sim_inline="-DDEFAULT_INLINE=0"
15956# Check whether --enable-sim-inline was given.
15957if test "${enable_sim_inline+set}" = set; then :
15958  enableval=$enable_sim_inline; sim_inline=""
15959case "$enableval" in
15960  no)		sim_inline="-DDEFAULT_INLINE=0";;
15961  0)		sim_inline="-DDEFAULT_INLINE=0";;
15962  yes | 2)	sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
15963  1)		sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
15964  *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15965       new_flag=""
15966       case "$x" in
15967	 *_INLINE=*)	new_flag="-D$x";;
15968	 *=*)		new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
15969	 *_INLINE)	new_flag="-D$x=ALL_C_INLINE";;
15970	 *)		new_flag="-D$x""_INLINE=ALL_C_INLINE";;
15971       esac
15972       if test x"$sim_inline" = x""; then
15973	 sim_inline="$new_flag"
15974       else
15975	 sim_inline="$sim_inline $new_flag"
15976       fi
15977     done;;
15978esac
15979
15980fi
15981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
15982$as_echo "$sim_inline" >&6; }
15983SIM_INLINE=$sim_inline
15984
15985
15986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
15987$as_echo_n "checking for sim profile settings... " >&6; }
15988profile="1"
15989sim_profile="-1"
15990# Check whether --enable-sim-profile was given.
15991if test "${enable_sim_profile+set}" = set; then :
15992  enableval=$enable_sim_profile; case "${enableval}" in
15993  yes)	profile="1" sim_profile="-1";;
15994  no)	profile="0" sim_profile="0";;
15995  [-0-9]*)
15996	profile="(${enableval})" sim_profile="(${enableval})";;
15997  [a-z]*)
15998    profile="1"
15999	sim_profile=""
16000	for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16001	  if test x"$sim_profile" = x; then
16002	    sim_profile="(PROFILE_$x"
16003	  else
16004	    sim_profile="${sim_profile}|PROFILE_$x"
16005	  fi
16006	done
16007	sim_profile="$sim_profile)" ;;
16008esac
16009fi
16010
16011cat >>confdefs.h <<_ACEOF
16012#define PROFILE $profile
16013_ACEOF
16014
16015
16016cat >>confdefs.h <<_ACEOF
16017#define WITH_PROFILE $sim_profile
16018_ACEOF
16019
16020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
16021$as_echo "$sim_profile" >&6; }
16022
16023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
16024$as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
16025# Check whether --enable-sim-reserved-bits was given.
16026if test "${enable_sim_reserved_bits+set}" = set; then :
16027  enableval=$enable_sim_reserved_bits; case "${enableval}" in
16028yes|no) ;;
16029*) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
16030esac
16031fi
16032
16033if test "x${enable_sim_reserved_bits}" != xno; then
16034  sim_reserved_bits=1
16035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16036$as_echo "yes" >&6; }
16037else
16038  sim_reserved_bits=0
16039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16040$as_echo "no" >&6; }
16041fi
16042
16043cat >>confdefs.h <<_ACEOF
16044#define WITH_RESERVED_BITS $sim_reserved_bits
16045_ACEOF
16046
16047
16048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
16049$as_echo_n "checking for sim cache size... " >&6; }
16050sim_scache="16384"
16051# Check whether --enable-sim-scache was given.
16052if test "${enable_sim_scache+set}" = set; then :
16053  enableval=$enable_sim_scache; case "${enableval}" in
16054  yes)	;;
16055  no)	sim_scache="0";;
16056  [0-9]*) sim_scache="${enableval}";;
16057  *)	as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
16058esac
16059fi
16060
16061
16062cat >>confdefs.h <<_ACEOF
16063#define WITH_SCACHE $sim_scache
16064_ACEOF
16065
16066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
16067$as_echo "$sim_scache" >&6; }
16068
16069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
16070$as_echo_n "checking for sim stdio debug behavior... " >&6; }
16071sim_stdio="0"
16072# Check whether --enable-sim-stdio was given.
16073if test "${enable_sim_stdio+set}" = set; then :
16074  enableval=$enable_sim_stdio; case "${enableval}" in
16075  yes)	sim_stdio="DO_USE_STDIO";;
16076  no)	sim_stdio="DONT_USE_STDIO";;
16077  *)	as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
16078esac
16079fi
16080
16081cat >>confdefs.h <<_ACEOF
16082#define WITH_STDIO $sim_stdio
16083_ACEOF
16084
16085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
16086$as_echo "$sim_stdio" >&6; }
16087
16088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
16089$as_echo_n "checking for sim trace settings... " >&6; }
16090sim_trace="~TRACE_debug"
16091# Check whether --enable-sim-trace was given.
16092if test "${enable_sim_trace+set}" = set; then :
16093  enableval=$enable_sim_trace; case "${enableval}" in
16094  yes)	sim_trace="-1";;
16095  no)	sim_trace="0";;
16096  [-0-9]*)
16097	sim_trace="'(${enableval})'";;
16098  [[:lower:]]*)
16099	sim_trace=""
16100	for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16101	  if test x"$sim_trace" = x; then
16102	    sim_trace="(TRACE_$x"
16103	  else
16104	    sim_trace="${sim_trace}|TRACE_$x"
16105	  fi
16106	done
16107	sim_trace="$sim_trace)" ;;
16108esac
16109fi
16110
16111cat >>confdefs.h <<_ACEOF
16112#define WITH_TRACE $sim_trace
16113_ACEOF
16114
16115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
16116$as_echo "$sim_trace" >&6; }
16117
16118
16119# Check whether --enable-werror was given.
16120if test "${enable_werror+set}" = set; then :
16121  enableval=$enable_werror; case "${enableval}" in
16122     yes | y) ERROR_ON_WARNING="yes" ;;
16123     no | n)  ERROR_ON_WARNING="no" ;;
16124     *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16125   esac
16126fi
16127
16128
16129if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16130  ERROR_ON_WARNING=yes
16131fi
16132
16133WERROR_CFLAGS=""
16134if test "${ERROR_ON_WARNING}" = yes ; then
16135  WERROR_CFLAGS="-Werror"
16136fi
16137
16138build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
16139-Wno-unused -Wunused-value -Wunused-function
16140-Wno-switch -Wno-char-subscripts
16141-Wempty-body -Wunused-but-set-parameter
16142-Wno-error=maybe-uninitialized
16143-Wmissing-declarations
16144-Wmissing-prototypes
16145-Wdeclaration-after-statement -Wmissing-parameter-type
16146-Wpointer-sign
16147-Wold-style-declaration -Wold-style-definition
16148"
16149
16150# Enable -Wno-format by default when using gcc on mingw since many
16151# GCC versions complain about %I64.
16152case "${host}" in
16153  *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
16154  *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
16155esac
16156
16157# Check whether --enable-build-warnings was given.
16158if test "${enable_build_warnings+set}" = set; then :
16159  enableval=$enable_build_warnings; case "${enableval}" in
16160  yes)	;;
16161  no)	build_warnings="-w";;
16162  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16163        build_warnings="${build_warnings} ${t}";;
16164  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16165        build_warnings="${t} ${build_warnings}";;
16166  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16167esac
16168if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16169  echo "Setting compiler warning flags = $build_warnings" 6>&1
16170fi
16171fi
16172# Check whether --enable-sim-build-warnings was given.
16173if test "${enable_sim_build_warnings+set}" = set; then :
16174  enableval=$enable_sim_build_warnings; case "${enableval}" in
16175  yes)	;;
16176  no)	build_warnings="-w";;
16177  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16178        build_warnings="${build_warnings} ${t}";;
16179  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16180        build_warnings="${t} ${build_warnings}";;
16181  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16182esac
16183if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16184  echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16185fi
16186fi
16187WARN_CFLAGS=""
16188if test "x${build_warnings}" != x -a "x$GCC" = xyes
16189then
16190    { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16191$as_echo_n "checking compiler warning flags... " >&6; }
16192    # Separate out the -Werror flag as some files just cannot be
16193    # compiled with it enabled.
16194    for w in ${build_warnings}; do
16195	case $w in
16196	-Werr*) WERROR_CFLAGS=-Werror ;;
16197	*) # Check that GCC accepts it
16198	    saved_CFLAGS="$CFLAGS"
16199	    CFLAGS="$CFLAGS -Werror $w"
16200	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16201/* end confdefs.h.  */
16202
16203int
16204main ()
16205{
16206
16207  ;
16208  return 0;
16209}
16210_ACEOF
16211if ac_fn_c_try_compile "$LINENO"; then :
16212  WARN_CFLAGS="${WARN_CFLAGS} $w"
16213fi
16214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215	    CFLAGS="$saved_CFLAGS"
16216	esac
16217    done
16218    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16219$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16220fi
16221
16222
16223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16224$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16225if ${sim_cv_decl_getopt_unistd_h+:} false; then :
16226  $as_echo_n "(cached) " >&6
16227else
16228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229/* end confdefs.h.  */
16230#include <unistd.h>
16231int
16232main ()
16233{
16234extern int getopt (int, char *const*, const char *);
16235  ;
16236  return 0;
16237}
16238_ACEOF
16239if ac_fn_c_try_compile "$LINENO"; then :
16240  sim_cv_decl_getopt_unistd_h=yes
16241else
16242  sim_cv_decl_getopt_unistd_h=no
16243fi
16244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16245fi
16246
16247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
16248$as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
16249if test $sim_cv_decl_getopt_unistd_h = yes; then
16250
16251$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16252
16253fi
16254
16255
16256
16257
16258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
16259$as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
16260# Check whether --enable-sim-frv-trapdump was given.
16261if test "${enable_sim_frv_trapdump+set}" = set; then :
16262  enableval=$enable_sim_frv_trapdump; case "${enableval}" in
16263yes|no) ;;
16264*) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
16265esac
16266fi
16267
16268if test "x${enable_sim_frv_trapdump}" = xyes; then
16269  SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
16270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16271$as_echo "yes" >&6; }
16272else
16273  SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
16274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16275$as_echo "no" >&6; }
16276fi
16277
16278
16279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
16280$as_echo_n "checking riscv bitsize... " >&6; }
16281SIM_RISCV_BITSIZE=64
16282case $target in #(
16283  riscv32*) :
16284    SIM_RISCV_BITSIZE=32 ;; #(
16285  *) :
16286     ;;
16287esac
16288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5
16289$as_echo "$SIM_RISCV_BITSIZE" >&6; }
16290
16291
16292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
16293$as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
16294# Check whether --enable-sim-rx-cycle-accurate was given.
16295if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
16296  enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
16297yes | no) ;;
16298*)	as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
16299esac
16300fi
16301
16302if test "x${enable_sim_rx_cycle_accurate}" != xno; then
16303  SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
16304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16305$as_echo "yes" >&6; }
16306else
16307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16308$as_echo "no" >&6; }
16309fi
16310
16311
16312
16313include_makefile="include"
16314
16315
16316ac_config_files="$ac_config_files arch-subdir.mk Makefile .gdbinit:gdbinit.in"
16317
16318cat >confcache <<\_ACEOF
16319# This file is a shell script that caches the results of configure
16320# tests run on this system so they can be shared between configure
16321# scripts and configure runs, see configure's option --config-cache.
16322# It is not useful on other systems.  If it contains results you don't
16323# want to keep, you may remove or edit it.
16324#
16325# config.status only pays attention to the cache file if you give it
16326# the --recheck option to rerun configure.
16327#
16328# `ac_cv_env_foo' variables (set or unset) will be overridden when
16329# loading this file, other *unset* `ac_cv_foo' will be assigned the
16330# following values.
16331
16332_ACEOF
16333
16334# The following way of writing the cache mishandles newlines in values,
16335# but we know of no workaround that is simple, portable, and efficient.
16336# So, we kill variables containing newlines.
16337# Ultrix sh set writes to stderr and can't be redirected directly,
16338# and sets the high bit in the cache file unless we assign to the vars.
16339(
16340  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16341    eval ac_val=\$$ac_var
16342    case $ac_val in #(
16343    *${as_nl}*)
16344      case $ac_var in #(
16345      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16346$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16347      esac
16348      case $ac_var in #(
16349      _ | IFS | as_nl) ;; #(
16350      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16351      *) { eval $ac_var=; unset $ac_var;} ;;
16352      esac ;;
16353    esac
16354  done
16355
16356  (set) 2>&1 |
16357    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16358    *${as_nl}ac_space=\ *)
16359      # `set' does not quote correctly, so add quotes: double-quote
16360      # substitution turns \\\\ into \\, and sed turns \\ into \.
16361      sed -n \
16362	"s/'/'\\\\''/g;
16363	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16364      ;; #(
16365    *)
16366      # `set' quotes correctly as required by POSIX, so do not add quotes.
16367      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16368      ;;
16369    esac |
16370    sort
16371) |
16372  sed '
16373     /^ac_cv_env_/b end
16374     t clear
16375     :clear
16376     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16377     t end
16378     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16379     :end' >>confcache
16380if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16381  if test -w "$cache_file"; then
16382    if test "x$cache_file" != "x/dev/null"; then
16383      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16384$as_echo "$as_me: updating cache $cache_file" >&6;}
16385      if test ! -f "$cache_file" || test -h "$cache_file"; then
16386	cat confcache >"$cache_file"
16387      else
16388        case $cache_file in #(
16389        */* | ?:*)
16390	  mv -f confcache "$cache_file"$$ &&
16391	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16392        *)
16393	  mv -f confcache "$cache_file" ;;
16394	esac
16395      fi
16396    fi
16397  else
16398    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16399$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16400  fi
16401fi
16402rm -f confcache
16403
16404test "x$prefix" = xNONE && prefix=$ac_default_prefix
16405# Let make expand exec_prefix.
16406test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16407
16408DEFS=-DHAVE_CONFIG_H
16409
16410ac_libobjs=
16411ac_ltlibobjs=
16412U=
16413for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16414  # 1. Remove the extension, and $U if already installed.
16415  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16416  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16417  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16418  #    will be set to the directory where LIBOBJS objects are built.
16419  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16420  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16421done
16422LIBOBJS=$ac_libobjs
16423
16424LTLIBOBJS=$ac_ltlibobjs
16425
16426
16427
16428if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16429  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16430Usually this means the macro was only invoked conditionally." "$LINENO" 5
16431fi
16432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16433$as_echo_n "checking that generated files are newer than configure... " >&6; }
16434   if test -n "$am_sleep_pid"; then
16435     # Hide warnings about reused PIDs.
16436     wait $am_sleep_pid 2>/dev/null
16437   fi
16438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16439$as_echo "done" >&6; }
16440if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16441  as_fn_error $? "conditional \"AMDEP\" was never defined.
16442Usually this means the macro was only invoked conditionally." "$LINENO" 5
16443fi
16444if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16445  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16446Usually this means the macro was only invoked conditionally." "$LINENO" 5
16447fi
16448 if test -n "$EXEEXT"; then
16449  am__EXEEXT_TRUE=
16450  am__EXEEXT_FALSE='#'
16451else
16452  am__EXEEXT_TRUE='#'
16453  am__EXEEXT_FALSE=
16454fi
16455
16456if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
16457  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
16458Usually this means the macro was only invoked conditionally." "$LINENO" 5
16459fi
16460if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
16461  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
16462Usually this means the macro was only invoked conditionally." "$LINENO" 5
16463fi
16464if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
16465  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
16466Usually this means the macro was only invoked conditionally." "$LINENO" 5
16467fi
16468if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
16469  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
16470Usually this means the macro was only invoked conditionally." "$LINENO" 5
16471fi
16472if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
16473  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
16474Usually this means the macro was only invoked conditionally." "$LINENO" 5
16475fi
16476if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
16477  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
16478Usually this means the macro was only invoked conditionally." "$LINENO" 5
16479fi
16480if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
16481  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
16482Usually this means the macro was only invoked conditionally." "$LINENO" 5
16483fi
16484if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
16485  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
16486Usually this means the macro was only invoked conditionally." "$LINENO" 5
16487fi
16488if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
16489  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
16490Usually this means the macro was only invoked conditionally." "$LINENO" 5
16491fi
16492if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
16493  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
16494Usually this means the macro was only invoked conditionally." "$LINENO" 5
16495fi
16496if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
16497  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
16498Usually this means the macro was only invoked conditionally." "$LINENO" 5
16499fi
16500if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
16501  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
16502Usually this means the macro was only invoked conditionally." "$LINENO" 5
16503fi
16504if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
16505  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
16506Usually this means the macro was only invoked conditionally." "$LINENO" 5
16507fi
16508if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
16509  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
16510Usually this means the macro was only invoked conditionally." "$LINENO" 5
16511fi
16512if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
16513  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
16514Usually this means the macro was only invoked conditionally." "$LINENO" 5
16515fi
16516if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
16517  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
16518Usually this means the macro was only invoked conditionally." "$LINENO" 5
16519fi
16520if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
16521  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
16522Usually this means the macro was only invoked conditionally." "$LINENO" 5
16523fi
16524if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
16525  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
16526Usually this means the macro was only invoked conditionally." "$LINENO" 5
16527fi
16528if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
16529  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
16530Usually this means the macro was only invoked conditionally." "$LINENO" 5
16531fi
16532if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
16533  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
16534Usually this means the macro was only invoked conditionally." "$LINENO" 5
16535fi
16536if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
16537  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
16538Usually this means the macro was only invoked conditionally." "$LINENO" 5
16539fi
16540if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
16541  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
16542Usually this means the macro was only invoked conditionally." "$LINENO" 5
16543fi
16544if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
16545  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
16546Usually this means the macro was only invoked conditionally." "$LINENO" 5
16547fi
16548if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
16549  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
16550Usually this means the macro was only invoked conditionally." "$LINENO" 5
16551fi
16552if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
16553  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
16554Usually this means the macro was only invoked conditionally." "$LINENO" 5
16555fi
16556if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
16557  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
16558Usually this means the macro was only invoked conditionally." "$LINENO" 5
16559fi
16560if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
16561  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
16562Usually this means the macro was only invoked conditionally." "$LINENO" 5
16563fi
16564if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
16565  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
16566Usually this means the macro was only invoked conditionally." "$LINENO" 5
16567fi
16568if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
16569  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
16570Usually this means the macro was only invoked conditionally." "$LINENO" 5
16571fi
16572if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
16573  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
16574Usually this means the macro was only invoked conditionally." "$LINENO" 5
16575fi
16576if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
16577  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
16578Usually this means the macro was only invoked conditionally." "$LINENO" 5
16579fi
16580if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then
16581  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_examples\" was never defined.
16582Usually this means the macro was only invoked conditionally." "$LINENO" 5
16583fi
16584if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
16585  as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
16586Usually this means the macro was only invoked conditionally." "$LINENO" 5
16587fi
16588if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
16589  as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
16590Usually this means the macro was only invoked conditionally." "$LINENO" 5
16591fi
16592if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
16593  as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
16594Usually this means the macro was only invoked conditionally." "$LINENO" 5
16595fi
16596
16597: "${CONFIG_STATUS=./config.status}"
16598ac_write_fail=0
16599ac_clean_files_save=$ac_clean_files
16600ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16601{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16602$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16603as_write_fail=0
16604cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16605#! $SHELL
16606# Generated by $as_me.
16607# Run this file to recreate the current configuration.
16608# Compiler output produced by configure, useful for debugging
16609# configure, is in config.log if it exists.
16610
16611debug=false
16612ac_cs_recheck=false
16613ac_cs_silent=false
16614
16615SHELL=\${CONFIG_SHELL-$SHELL}
16616export SHELL
16617_ASEOF
16618cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16619## -------------------- ##
16620## M4sh Initialization. ##
16621## -------------------- ##
16622
16623# Be more Bourne compatible
16624DUALCASE=1; export DUALCASE # for MKS sh
16625if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16626  emulate sh
16627  NULLCMD=:
16628  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16629  # is contrary to our usage.  Disable this feature.
16630  alias -g '${1+"$@"}'='"$@"'
16631  setopt NO_GLOB_SUBST
16632else
16633  case `(set -o) 2>/dev/null` in #(
16634  *posix*) :
16635    set -o posix ;; #(
16636  *) :
16637     ;;
16638esac
16639fi
16640
16641
16642as_nl='
16643'
16644export as_nl
16645# Printing a long string crashes Solaris 7 /usr/bin/printf.
16646as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16647as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16648as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16649# Prefer a ksh shell builtin over an external printf program on Solaris,
16650# but without wasting forks for bash or zsh.
16651if test -z "$BASH_VERSION$ZSH_VERSION" \
16652    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16653  as_echo='print -r --'
16654  as_echo_n='print -rn --'
16655elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16656  as_echo='printf %s\n'
16657  as_echo_n='printf %s'
16658else
16659  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16660    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16661    as_echo_n='/usr/ucb/echo -n'
16662  else
16663    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16664    as_echo_n_body='eval
16665      arg=$1;
16666      case $arg in #(
16667      *"$as_nl"*)
16668	expr "X$arg" : "X\\(.*\\)$as_nl";
16669	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16670      esac;
16671      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16672    '
16673    export as_echo_n_body
16674    as_echo_n='sh -c $as_echo_n_body as_echo'
16675  fi
16676  export as_echo_body
16677  as_echo='sh -c $as_echo_body as_echo'
16678fi
16679
16680# The user is always right.
16681if test "${PATH_SEPARATOR+set}" != set; then
16682  PATH_SEPARATOR=:
16683  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16684    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16685      PATH_SEPARATOR=';'
16686  }
16687fi
16688
16689
16690# IFS
16691# We need space, tab and new line, in precisely that order.  Quoting is
16692# there to prevent editors from complaining about space-tab.
16693# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16694# splitting by setting IFS to empty value.)
16695IFS=" ""	$as_nl"
16696
16697# Find who we are.  Look in the path if we contain no directory separator.
16698as_myself=
16699case $0 in #((
16700  *[\\/]* ) as_myself=$0 ;;
16701  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16702for as_dir in $PATH
16703do
16704  IFS=$as_save_IFS
16705  test -z "$as_dir" && as_dir=.
16706    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16707  done
16708IFS=$as_save_IFS
16709
16710     ;;
16711esac
16712# We did not find ourselves, most probably we were run as `sh COMMAND'
16713# in which case we are not to be found in the path.
16714if test "x$as_myself" = x; then
16715  as_myself=$0
16716fi
16717if test ! -f "$as_myself"; then
16718  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16719  exit 1
16720fi
16721
16722# Unset variables that we do not need and which cause bugs (e.g. in
16723# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16724# suppresses any "Segmentation fault" message there.  '((' could
16725# trigger a bug in pdksh 5.2.14.
16726for as_var in BASH_ENV ENV MAIL MAILPATH
16727do eval test x\${$as_var+set} = xset \
16728  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16729done
16730PS1='$ '
16731PS2='> '
16732PS4='+ '
16733
16734# NLS nuisances.
16735LC_ALL=C
16736export LC_ALL
16737LANGUAGE=C
16738export LANGUAGE
16739
16740# CDPATH.
16741(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16742
16743
16744# as_fn_error STATUS ERROR [LINENO LOG_FD]
16745# ----------------------------------------
16746# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16747# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16748# script with STATUS, using 1 if that was 0.
16749as_fn_error ()
16750{
16751  as_status=$1; test $as_status -eq 0 && as_status=1
16752  if test "$4"; then
16753    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16754    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16755  fi
16756  $as_echo "$as_me: error: $2" >&2
16757  as_fn_exit $as_status
16758} # as_fn_error
16759
16760
16761# as_fn_set_status STATUS
16762# -----------------------
16763# Set $? to STATUS, without forking.
16764as_fn_set_status ()
16765{
16766  return $1
16767} # as_fn_set_status
16768
16769# as_fn_exit STATUS
16770# -----------------
16771# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16772as_fn_exit ()
16773{
16774  set +e
16775  as_fn_set_status $1
16776  exit $1
16777} # as_fn_exit
16778
16779# as_fn_unset VAR
16780# ---------------
16781# Portably unset VAR.
16782as_fn_unset ()
16783{
16784  { eval $1=; unset $1;}
16785}
16786as_unset=as_fn_unset
16787# as_fn_append VAR VALUE
16788# ----------------------
16789# Append the text in VALUE to the end of the definition contained in VAR. Take
16790# advantage of any shell optimizations that allow amortized linear growth over
16791# repeated appends, instead of the typical quadratic growth present in naive
16792# implementations.
16793if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16794  eval 'as_fn_append ()
16795  {
16796    eval $1+=\$2
16797  }'
16798else
16799  as_fn_append ()
16800  {
16801    eval $1=\$$1\$2
16802  }
16803fi # as_fn_append
16804
16805# as_fn_arith ARG...
16806# ------------------
16807# Perform arithmetic evaluation on the ARGs, and store the result in the
16808# global $as_val. Take advantage of shells that can avoid forks. The arguments
16809# must be portable across $(()) and expr.
16810if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16811  eval 'as_fn_arith ()
16812  {
16813    as_val=$(( $* ))
16814  }'
16815else
16816  as_fn_arith ()
16817  {
16818    as_val=`expr "$@" || test $? -eq 1`
16819  }
16820fi # as_fn_arith
16821
16822
16823if expr a : '\(a\)' >/dev/null 2>&1 &&
16824   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16825  as_expr=expr
16826else
16827  as_expr=false
16828fi
16829
16830if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16831  as_basename=basename
16832else
16833  as_basename=false
16834fi
16835
16836if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16837  as_dirname=dirname
16838else
16839  as_dirname=false
16840fi
16841
16842as_me=`$as_basename -- "$0" ||
16843$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16844	 X"$0" : 'X\(//\)$' \| \
16845	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16846$as_echo X/"$0" |
16847    sed '/^.*\/\([^/][^/]*\)\/*$/{
16848	    s//\1/
16849	    q
16850	  }
16851	  /^X\/\(\/\/\)$/{
16852	    s//\1/
16853	    q
16854	  }
16855	  /^X\/\(\/\).*/{
16856	    s//\1/
16857	    q
16858	  }
16859	  s/.*/./; q'`
16860
16861# Avoid depending upon Character Ranges.
16862as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16863as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16864as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16865as_cr_digits='0123456789'
16866as_cr_alnum=$as_cr_Letters$as_cr_digits
16867
16868ECHO_C= ECHO_N= ECHO_T=
16869case `echo -n x` in #(((((
16870-n*)
16871  case `echo 'xy\c'` in
16872  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16873  xy)  ECHO_C='\c';;
16874  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16875       ECHO_T='	';;
16876  esac;;
16877*)
16878  ECHO_N='-n';;
16879esac
16880
16881rm -f conf$$ conf$$.exe conf$$.file
16882if test -d conf$$.dir; then
16883  rm -f conf$$.dir/conf$$.file
16884else
16885  rm -f conf$$.dir
16886  mkdir conf$$.dir 2>/dev/null
16887fi
16888if (echo >conf$$.file) 2>/dev/null; then
16889  if ln -s conf$$.file conf$$ 2>/dev/null; then
16890    as_ln_s='ln -s'
16891    # ... but there are two gotchas:
16892    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16893    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16894    # In both cases, we have to default to `cp -pR'.
16895    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16896      as_ln_s='cp -pR'
16897  elif ln conf$$.file conf$$ 2>/dev/null; then
16898    as_ln_s=ln
16899  else
16900    as_ln_s='cp -pR'
16901  fi
16902else
16903  as_ln_s='cp -pR'
16904fi
16905rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16906rmdir conf$$.dir 2>/dev/null
16907
16908
16909# as_fn_mkdir_p
16910# -------------
16911# Create "$as_dir" as a directory, including parents if necessary.
16912as_fn_mkdir_p ()
16913{
16914
16915  case $as_dir in #(
16916  -*) as_dir=./$as_dir;;
16917  esac
16918  test -d "$as_dir" || eval $as_mkdir_p || {
16919    as_dirs=
16920    while :; do
16921      case $as_dir in #(
16922      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16923      *) as_qdir=$as_dir;;
16924      esac
16925      as_dirs="'$as_qdir' $as_dirs"
16926      as_dir=`$as_dirname -- "$as_dir" ||
16927$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16928	 X"$as_dir" : 'X\(//\)[^/]' \| \
16929	 X"$as_dir" : 'X\(//\)$' \| \
16930	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16931$as_echo X"$as_dir" |
16932    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16933	    s//\1/
16934	    q
16935	  }
16936	  /^X\(\/\/\)[^/].*/{
16937	    s//\1/
16938	    q
16939	  }
16940	  /^X\(\/\/\)$/{
16941	    s//\1/
16942	    q
16943	  }
16944	  /^X\(\/\).*/{
16945	    s//\1/
16946	    q
16947	  }
16948	  s/.*/./; q'`
16949      test -d "$as_dir" && break
16950    done
16951    test -z "$as_dirs" || eval "mkdir $as_dirs"
16952  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16953
16954
16955} # as_fn_mkdir_p
16956if mkdir -p . 2>/dev/null; then
16957  as_mkdir_p='mkdir -p "$as_dir"'
16958else
16959  test -d ./-p && rmdir ./-p
16960  as_mkdir_p=false
16961fi
16962
16963
16964# as_fn_executable_p FILE
16965# -----------------------
16966# Test if FILE is an executable regular file.
16967as_fn_executable_p ()
16968{
16969  test -f "$1" && test -x "$1"
16970} # as_fn_executable_p
16971as_test_x='test -x'
16972as_executable_p=as_fn_executable_p
16973
16974# Sed expression to map a string onto a valid CPP name.
16975as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16976
16977# Sed expression to map a string onto a valid variable name.
16978as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16979
16980
16981exec 6>&1
16982## ----------------------------------- ##
16983## Main body of $CONFIG_STATUS script. ##
16984## ----------------------------------- ##
16985_ASEOF
16986test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16987
16988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16989# Save the log message, to keep $0 and so on meaningful, and to
16990# report actual input values of CONFIG_FILES etc. instead of their
16991# values after options handling.
16992ac_log="
16993This file was extended by sim $as_me 0, which was
16994generated by GNU Autoconf 2.69.  Invocation command line was
16995
16996  CONFIG_FILES    = $CONFIG_FILES
16997  CONFIG_HEADERS  = $CONFIG_HEADERS
16998  CONFIG_LINKS    = $CONFIG_LINKS
16999  CONFIG_COMMANDS = $CONFIG_COMMANDS
17000  $ $0 $@
17001
17002on `(hostname || uname -n) 2>/dev/null | sed 1q`
17003"
17004
17005_ACEOF
17006
17007case $ac_config_files in *"
17008"*) set x $ac_config_files; shift; ac_config_files=$*;;
17009esac
17010
17011case $ac_config_headers in *"
17012"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17013esac
17014
17015
17016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17017# Files that config.status was made for.
17018config_files="$ac_config_files"
17019config_headers="$ac_config_headers"
17020config_commands="$ac_config_commands"
17021
17022_ACEOF
17023
17024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17025ac_cs_usage="\
17026\`$as_me' instantiates files and other configuration actions
17027from templates according to the current configuration.  Unless the files
17028and actions are specified as TAGs, all are instantiated by default.
17029
17030Usage: $0 [OPTION]... [TAG]...
17031
17032  -h, --help       print this help, then exit
17033  -V, --version    print version number and configuration settings, then exit
17034      --config     print configuration, then exit
17035  -q, --quiet, --silent
17036                   do not print progress messages
17037  -d, --debug      don't remove temporary files
17038      --recheck    update $as_me by reconfiguring in the same conditions
17039      --file=FILE[:TEMPLATE]
17040                   instantiate the configuration file FILE
17041      --header=FILE[:TEMPLATE]
17042                   instantiate the configuration header FILE
17043
17044Configuration files:
17045$config_files
17046
17047Configuration headers:
17048$config_headers
17049
17050Configuration commands:
17051$config_commands
17052
17053Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
17054sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
17055
17056_ACEOF
17057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17058ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17059ac_cs_version="\\
17060sim config.status 0
17061configured by $0, generated by GNU Autoconf 2.69,
17062  with options \\"\$ac_cs_config\\"
17063
17064Copyright (C) 2012 Free Software Foundation, Inc.
17065This config.status script is free software; the Free Software Foundation
17066gives unlimited permission to copy, distribute and modify it."
17067
17068ac_pwd='$ac_pwd'
17069srcdir='$srcdir'
17070INSTALL='$INSTALL'
17071MKDIR_P='$MKDIR_P'
17072AWK='$AWK'
17073test -n "\$AWK" || AWK=awk
17074_ACEOF
17075
17076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17077# The default lists apply if the user does not specify any file.
17078ac_need_defaults=:
17079while test $# != 0
17080do
17081  case $1 in
17082  --*=?*)
17083    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17084    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17085    ac_shift=:
17086    ;;
17087  --*=)
17088    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17089    ac_optarg=
17090    ac_shift=:
17091    ;;
17092  *)
17093    ac_option=$1
17094    ac_optarg=$2
17095    ac_shift=shift
17096    ;;
17097  esac
17098
17099  case $ac_option in
17100  # Handling of the options.
17101  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17102    ac_cs_recheck=: ;;
17103  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17104    $as_echo "$ac_cs_version"; exit ;;
17105  --config | --confi | --conf | --con | --co | --c )
17106    $as_echo "$ac_cs_config"; exit ;;
17107  --debug | --debu | --deb | --de | --d | -d )
17108    debug=: ;;
17109  --file | --fil | --fi | --f )
17110    $ac_shift
17111    case $ac_optarg in
17112    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17113    '') as_fn_error $? "missing file argument" ;;
17114    esac
17115    as_fn_append CONFIG_FILES " '$ac_optarg'"
17116    ac_need_defaults=false;;
17117  --header | --heade | --head | --hea )
17118    $ac_shift
17119    case $ac_optarg in
17120    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17121    esac
17122    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17123    ac_need_defaults=false;;
17124  --he | --h)
17125    # Conflict between --help and --header
17126    as_fn_error $? "ambiguous option: \`$1'
17127Try \`$0 --help' for more information.";;
17128  --help | --hel | -h )
17129    $as_echo "$ac_cs_usage"; exit ;;
17130  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17131  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17132    ac_cs_silent=: ;;
17133
17134  # This is an error.
17135  -*) as_fn_error $? "unrecognized option: \`$1'
17136Try \`$0 --help' for more information." ;;
17137
17138  *) as_fn_append ac_config_targets " $1"
17139     ac_need_defaults=false ;;
17140
17141  esac
17142  shift
17143done
17144
17145ac_configure_extra_args=
17146
17147if $ac_cs_silent; then
17148  exec 6>/dev/null
17149  ac_configure_extra_args="$ac_configure_extra_args --silent"
17150fi
17151
17152_ACEOF
17153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17154if \$ac_cs_recheck; then
17155  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17156  shift
17157  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17158  CONFIG_SHELL='$SHELL'
17159  export CONFIG_SHELL
17160  exec "\$@"
17161fi
17162
17163_ACEOF
17164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17165exec 5>>config.log
17166{
17167  echo
17168  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17169## Running $as_me. ##
17170_ASBOX
17171  $as_echo "$ac_log"
17172} >&5
17173
17174_ACEOF
17175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17176#
17177# INIT-COMMANDS
17178#
17179
17180
17181# The HP-UX ksh and POSIX shell print the target directory to stdout
17182# if CDPATH is set.
17183(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17184
17185sed_quote_subst='$sed_quote_subst'
17186double_quote_subst='$double_quote_subst'
17187delay_variable_subst='$delay_variable_subst'
17188macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17189macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17190enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17191enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17192pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17193enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17194SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17195ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17196host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17197host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17198host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17199build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17200build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17201build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17202SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17203Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17204GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17205EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17206FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17207LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17208NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17209LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17210max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17211ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17212exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17213lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17214lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17215lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17216reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17217reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17218OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17219deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17220file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17221AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17222AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17223STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17224RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17225old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17226old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17227old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17228lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17229CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17230CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17231compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17232GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17233lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17234lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17235lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17236lt_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"`'
17237objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17238MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17239lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17240lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17241lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17242lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17243lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17244need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17245DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17246NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17247LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17248OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17249OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17250libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17251shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17252extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17253archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17254enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17255export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17256whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17257compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17258old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17259old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17260archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17261archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17262module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17263module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17264with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17265allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17266no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17267hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17268hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17269hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17270hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17271hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17272hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17273hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17274hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17275inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17276link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17277fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17278always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17279export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17280exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17281include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17282prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17283file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17284variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17285need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17286need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17287version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17288runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17289shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17290shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17291libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17292library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17293soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17294install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17295postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17296postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17297finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17298finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17299hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17300sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17301sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17302hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17303enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17304enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17305enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17306old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17307striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17308
17309LTCC='$LTCC'
17310LTCFLAGS='$LTCFLAGS'
17311compiler='$compiler_DEFAULT'
17312
17313# A function that is used when there is no print builtin or printf.
17314func_fallback_echo ()
17315{
17316  eval 'cat <<_LTECHO_EOF
17317\$1
17318_LTECHO_EOF'
17319}
17320
17321# Quote evaled strings.
17322for var in SHELL \
17323ECHO \
17324SED \
17325GREP \
17326EGREP \
17327FGREP \
17328LD \
17329NM \
17330LN_S \
17331lt_SP2NL \
17332lt_NL2SP \
17333reload_flag \
17334OBJDUMP \
17335deplibs_check_method \
17336file_magic_cmd \
17337AR \
17338AR_FLAGS \
17339STRIP \
17340RANLIB \
17341CC \
17342CFLAGS \
17343compiler \
17344lt_cv_sys_global_symbol_pipe \
17345lt_cv_sys_global_symbol_to_cdecl \
17346lt_cv_sys_global_symbol_to_c_name_address \
17347lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17348lt_prog_compiler_no_builtin_flag \
17349lt_prog_compiler_wl \
17350lt_prog_compiler_pic \
17351lt_prog_compiler_static \
17352lt_cv_prog_compiler_c_o \
17353need_locks \
17354DSYMUTIL \
17355NMEDIT \
17356LIPO \
17357OTOOL \
17358OTOOL64 \
17359shrext_cmds \
17360export_dynamic_flag_spec \
17361whole_archive_flag_spec \
17362compiler_needs_object \
17363with_gnu_ld \
17364allow_undefined_flag \
17365no_undefined_flag \
17366hardcode_libdir_flag_spec \
17367hardcode_libdir_flag_spec_ld \
17368hardcode_libdir_separator \
17369fix_srcfile_path \
17370exclude_expsyms \
17371include_expsyms \
17372file_list_spec \
17373variables_saved_for_relink \
17374libname_spec \
17375library_names_spec \
17376soname_spec \
17377install_override_mode \
17378finish_eval \
17379old_striplib \
17380striplib; do
17381    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17382    *[\\\\\\\`\\"\\\$]*)
17383      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17384      ;;
17385    *)
17386      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17387      ;;
17388    esac
17389done
17390
17391# Double-quote double-evaled strings.
17392for var in reload_cmds \
17393old_postinstall_cmds \
17394old_postuninstall_cmds \
17395old_archive_cmds \
17396extract_expsyms_cmds \
17397old_archive_from_new_cmds \
17398old_archive_from_expsyms_cmds \
17399archive_cmds \
17400archive_expsym_cmds \
17401module_cmds \
17402module_expsym_cmds \
17403export_symbols_cmds \
17404prelink_cmds \
17405postinstall_cmds \
17406postuninstall_cmds \
17407finish_cmds \
17408sys_lib_search_path_spec \
17409sys_lib_dlsearch_path_spec; do
17410    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17411    *[\\\\\\\`\\"\\\$]*)
17412      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17413      ;;
17414    *)
17415      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17416      ;;
17417    esac
17418done
17419
17420ac_aux_dir='$ac_aux_dir'
17421xsi_shell='$xsi_shell'
17422lt_shell_append='$lt_shell_append'
17423
17424# See if we are running on zsh, and set the options which allow our
17425# commands through without removal of \ escapes INIT.
17426if test -n "\${ZSH_VERSION+set}" ; then
17427   setopt NO_GLOB_SUBST
17428fi
17429
17430
17431    PACKAGE='$PACKAGE'
17432    VERSION='$VERSION'
17433    TIMESTAMP='$TIMESTAMP'
17434    RM='$RM'
17435    ofile='$ofile'
17436
17437
17438
17439AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17440ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17441ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17442ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17443ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17444ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17445ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17446ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17447ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17448ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17449ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17450ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17451ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17452ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17453ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17454ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17455ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17456ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17457ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17458ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17459ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17460ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17461ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17462ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17463ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17464ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17465ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17466ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17467ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17468ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17469ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17470ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17471ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17472
17473_ACEOF
17474
17475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17476
17477# Handling of arguments.
17478for ac_config_target in $ac_config_targets
17479do
17480  case $ac_config_target in
17481    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17482    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17483    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17484    "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
17485    "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
17486    "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
17487    "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
17488    "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
17489    "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
17490    "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
17491    "arm/.gdbinit") CONFIG_FILES="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;;
17492    "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
17493    "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
17494    "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
17495    "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
17496    "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
17497    "bfin/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bfin/Makefile.sim:bfin/Makefile.in" ;;
17498    "bfin/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bfin/Makefile" ;;
17499    "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
17500    "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
17501    "bpf/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bpf/Makefile.sim:bpf/Makefile.in" ;;
17502    "bpf/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bpf/Makefile" ;;
17503    "bpf/.gdbinit") CONFIG_FILES="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;;
17504    "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
17505    "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
17506    "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
17507    "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
17508    "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
17509    "cris/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cris/Makefile.sim:cris/Makefile.in" ;;
17510    "cris/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cris/Makefile" ;;
17511    "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
17512    "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
17513    "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
17514    "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
17515    "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
17516    "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
17517    "frv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES frv/Makefile.sim:frv/Makefile.in" ;;
17518    "frv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS frv/Makefile" ;;
17519    "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
17520    "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
17521    "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
17522    "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
17523    "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
17524    "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
17525    "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
17526    "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
17527    "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
17528    "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
17529    "iq2000/Makefile.sim") CONFIG_FILES="$CONFIG_FILES iq2000/Makefile.sim:iq2000/Makefile.in" ;;
17530    "iq2000/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS iq2000/Makefile" ;;
17531    "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
17532    "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
17533    "lm32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES lm32/Makefile.sim:lm32/Makefile.in" ;;
17534    "lm32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lm32/Makefile" ;;
17535    "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
17536    "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
17537    "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
17538    "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
17539    "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
17540    "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
17541    "m32r/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32r/Makefile.sim:m32r/Makefile.in" ;;
17542    "m32r/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32r/Makefile" ;;
17543    "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
17544    "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
17545    "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
17546    "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
17547    "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
17548    "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
17549    "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
17550    "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
17551    "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
17552    "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
17553    "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
17554    "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
17555    "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
17556    "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
17557    "mips/.gdbinit") CONFIG_FILES="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;;
17558    "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
17559    "mn10300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mn10300/Makefile.sim:mn10300/Makefile.in" ;;
17560    "mn10300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mn10300/Makefile" ;;
17561    "mn10300/.gdbinit") CONFIG_FILES="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;;
17562    "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
17563    "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
17564    "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
17565    "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
17566    "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
17567    "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
17568    "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
17569    "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
17570    "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
17571    "or1k/Makefile.sim") CONFIG_FILES="$CONFIG_FILES or1k/Makefile.sim:or1k/Makefile.in" ;;
17572    "or1k/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS or1k/Makefile" ;;
17573    "or1k/.gdbinit") CONFIG_FILES="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;;
17574    "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
17575    "ppc/.gdbinit") CONFIG_FILES="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;;
17576    "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
17577    "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
17578    "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
17579    "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
17580    "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
17581    "riscv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES riscv/Makefile.sim:riscv/Makefile.in" ;;
17582    "riscv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS riscv/Makefile" ;;
17583    "riscv/.gdbinit") CONFIG_FILES="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;;
17584    "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
17585    "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
17586    "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
17587    "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
17588    "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
17589    "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;;
17590    "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;;
17591    "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
17592    "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
17593    "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
17594    "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
17595    "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
17596    "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
17597    "erc32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES erc32/Makefile.sim:erc32/Makefile.in" ;;
17598    "erc32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS erc32/Makefile" ;;
17599    "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
17600    "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
17601    "v850/Makefile.sim") CONFIG_FILES="$CONFIG_FILES v850/Makefile.sim:v850/Makefile.in" ;;
17602    "v850/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS v850/Makefile" ;;
17603    "v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
17604    "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
17605    "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
17606    "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
17607    "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
17608    "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
17609    "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
17610    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17611    ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17612
17613  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17614  esac
17615done
17616
17617
17618# If the user did not use the arguments to specify the items to instantiate,
17619# then the envvar interface is used.  Set only those that are not.
17620# We use the long form for the default assignment because of an extremely
17621# bizarre bug on SunOS 4.1.3.
17622if $ac_need_defaults; then
17623  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17624  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17625  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17626fi
17627
17628# Have a temporary directory for convenience.  Make it in the build tree
17629# simply because there is no reason against having it here, and in addition,
17630# creating and moving files from /tmp can sometimes cause problems.
17631# Hook for its removal unless debugging.
17632# Note that there is a small window in which the directory will not be cleaned:
17633# after its creation but before its name has been assigned to `$tmp'.
17634$debug ||
17635{
17636  tmp= ac_tmp=
17637  trap 'exit_status=$?
17638  : "${ac_tmp:=$tmp}"
17639  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17640' 0
17641  trap 'as_fn_exit 1' 1 2 13 15
17642}
17643# Create a (secure) tmp directory for tmp files.
17644
17645{
17646  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17647  test -d "$tmp"
17648}  ||
17649{
17650  tmp=./conf$$-$RANDOM
17651  (umask 077 && mkdir "$tmp")
17652} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17653ac_tmp=$tmp
17654
17655# Set up the scripts for CONFIG_FILES section.
17656# No need to generate them if there are no CONFIG_FILES.
17657# This happens for instance with `./config.status config.h'.
17658if test -n "$CONFIG_FILES"; then
17659
17660
17661ac_cr=`echo X | tr X '\015'`
17662# On cygwin, bash can eat \r inside `` if the user requested igncr.
17663# But we know of no other shell where ac_cr would be empty at this
17664# point, so we can use a bashism as a fallback.
17665if test "x$ac_cr" = x; then
17666  eval ac_cr=\$\'\\r\'
17667fi
17668ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17669if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17670  ac_cs_awk_cr='\\r'
17671else
17672  ac_cs_awk_cr=$ac_cr
17673fi
17674
17675echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17676_ACEOF
17677
17678
17679{
17680  echo "cat >conf$$subs.awk <<_ACEOF" &&
17681  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17682  echo "_ACEOF"
17683} >conf$$subs.sh ||
17684  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17685ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17686ac_delim='%!_!# '
17687for ac_last_try in false false false false false :; do
17688  . ./conf$$subs.sh ||
17689    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17690
17691  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17692  if test $ac_delim_n = $ac_delim_num; then
17693    break
17694  elif $ac_last_try; then
17695    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17696  else
17697    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17698  fi
17699done
17700rm -f conf$$subs.sh
17701
17702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17703cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17704_ACEOF
17705sed -n '
17706h
17707s/^/S["/; s/!.*/"]=/
17708p
17709g
17710s/^[^!]*!//
17711:repl
17712t repl
17713s/'"$ac_delim"'$//
17714t delim
17715:nl
17716h
17717s/\(.\{148\}\)..*/\1/
17718t more1
17719s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17720p
17721n
17722b repl
17723:more1
17724s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17725p
17726g
17727s/.\{148\}//
17728t nl
17729:delim
17730h
17731s/\(.\{148\}\)..*/\1/
17732t more2
17733s/["\\]/\\&/g; s/^/"/; s/$/"/
17734p
17735b
17736:more2
17737s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17738p
17739g
17740s/.\{148\}//
17741t delim
17742' <conf$$subs.awk | sed '
17743/^[^""]/{
17744  N
17745  s/\n//
17746}
17747' >>$CONFIG_STATUS || ac_write_fail=1
17748rm -f conf$$subs.awk
17749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17750_ACAWK
17751cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17752  for (key in S) S_is_set[key] = 1
17753  FS = ""
17754
17755}
17756{
17757  line = $ 0
17758  nfields = split(line, field, "@")
17759  substed = 0
17760  len = length(field[1])
17761  for (i = 2; i < nfields; i++) {
17762    key = field[i]
17763    keylen = length(key)
17764    if (S_is_set[key]) {
17765      value = S[key]
17766      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17767      len += length(value) + length(field[++i])
17768      substed = 1
17769    } else
17770      len += 1 + keylen
17771  }
17772
17773  print line
17774}
17775
17776_ACAWK
17777_ACEOF
17778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17779if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17780  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17781else
17782  cat
17783fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17784  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17785_ACEOF
17786
17787# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17788# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17789# trailing colons and then remove the whole line if VPATH becomes empty
17790# (actually we leave an empty line to preserve line numbers).
17791if test "x$srcdir" = x.; then
17792  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17793h
17794s///
17795s/^/:/
17796s/[	 ]*$/:/
17797s/:\$(srcdir):/:/g
17798s/:\${srcdir}:/:/g
17799s/:@srcdir@:/:/g
17800s/^:*//
17801s/:*$//
17802x
17803s/\(=[	 ]*\).*/\1/
17804G
17805s/\n//
17806s/^[^=]*=[	 ]*$//
17807}'
17808fi
17809
17810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17811fi # test -n "$CONFIG_FILES"
17812
17813# Set up the scripts for CONFIG_HEADERS section.
17814# No need to generate them if there are no CONFIG_HEADERS.
17815# This happens for instance with `./config.status Makefile'.
17816if test -n "$CONFIG_HEADERS"; then
17817cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17818BEGIN {
17819_ACEOF
17820
17821# Transform confdefs.h into an awk script `defines.awk', embedded as
17822# here-document in config.status, that substitutes the proper values into
17823# config.h.in to produce config.h.
17824
17825# Create a delimiter string that does not exist in confdefs.h, to ease
17826# handling of long lines.
17827ac_delim='%!_!# '
17828for ac_last_try in false false :; do
17829  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17830  if test -z "$ac_tt"; then
17831    break
17832  elif $ac_last_try; then
17833    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17834  else
17835    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17836  fi
17837done
17838
17839# For the awk script, D is an array of macro values keyed by name,
17840# likewise P contains macro parameters if any.  Preserve backslash
17841# newline sequences.
17842
17843ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17844sed -n '
17845s/.\{148\}/&'"$ac_delim"'/g
17846t rset
17847:rset
17848s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17849t def
17850d
17851:def
17852s/\\$//
17853t bsnl
17854s/["\\]/\\&/g
17855s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17856D["\1"]=" \3"/p
17857s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17858d
17859:bsnl
17860s/["\\]/\\&/g
17861s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17862D["\1"]=" \3\\\\\\n"\\/p
17863t cont
17864s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17865t cont
17866d
17867:cont
17868n
17869s/.\{148\}/&'"$ac_delim"'/g
17870t clear
17871:clear
17872s/\\$//
17873t bsnlc
17874s/["\\]/\\&/g; s/^/"/; s/$/"/p
17875d
17876:bsnlc
17877s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17878b cont
17879' <confdefs.h | sed '
17880s/'"$ac_delim"'/"\\\
17881"/g' >>$CONFIG_STATUS || ac_write_fail=1
17882
17883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17884  for (key in D) D_is_set[key] = 1
17885  FS = ""
17886}
17887/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17888  line = \$ 0
17889  split(line, arg, " ")
17890  if (arg[1] == "#") {
17891    defundef = arg[2]
17892    mac1 = arg[3]
17893  } else {
17894    defundef = substr(arg[1], 2)
17895    mac1 = arg[2]
17896  }
17897  split(mac1, mac2, "(") #)
17898  macro = mac2[1]
17899  prefix = substr(line, 1, index(line, defundef) - 1)
17900  if (D_is_set[macro]) {
17901    # Preserve the white space surrounding the "#".
17902    print prefix "define", macro P[macro] D[macro]
17903    next
17904  } else {
17905    # Replace #undef with comments.  This is necessary, for example,
17906    # in the case of _POSIX_SOURCE, which is predefined and required
17907    # on some systems where configure will not decide to define it.
17908    if (defundef == "undef") {
17909      print "/*", prefix defundef, macro, "*/"
17910      next
17911    }
17912  }
17913}
17914{ print }
17915_ACAWK
17916_ACEOF
17917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17918  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17919fi # test -n "$CONFIG_HEADERS"
17920
17921
17922eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17923shift
17924for ac_tag
17925do
17926  case $ac_tag in
17927  :[FHLC]) ac_mode=$ac_tag; continue;;
17928  esac
17929  case $ac_mode$ac_tag in
17930  :[FHL]*:*);;
17931  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17932  :[FH]-) ac_tag=-:-;;
17933  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17934  esac
17935  ac_save_IFS=$IFS
17936  IFS=:
17937  set x $ac_tag
17938  IFS=$ac_save_IFS
17939  shift
17940  ac_file=$1
17941  shift
17942
17943  case $ac_mode in
17944  :L) ac_source=$1;;
17945  :[FH])
17946    ac_file_inputs=
17947    for ac_f
17948    do
17949      case $ac_f in
17950      -) ac_f="$ac_tmp/stdin";;
17951      *) # Look for the file first in the build tree, then in the source tree
17952	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17953	 # because $ac_f cannot contain `:'.
17954	 test -f "$ac_f" ||
17955	   case $ac_f in
17956	   [\\/$]*) false;;
17957	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17958	   esac ||
17959	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17960      esac
17961      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17962      as_fn_append ac_file_inputs " '$ac_f'"
17963    done
17964
17965    # Let's still pretend it is `configure' which instantiates (i.e., don't
17966    # use $as_me), people would be surprised to read:
17967    #    /* config.h.  Generated by config.status.  */
17968    configure_input='Generated from '`
17969	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17970	`' by configure.'
17971    if test x"$ac_file" != x-; then
17972      configure_input="$ac_file.  $configure_input"
17973      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17974$as_echo "$as_me: creating $ac_file" >&6;}
17975    fi
17976    # Neutralize special characters interpreted by sed in replacement strings.
17977    case $configure_input in #(
17978    *\&* | *\|* | *\\* )
17979       ac_sed_conf_input=`$as_echo "$configure_input" |
17980       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17981    *) ac_sed_conf_input=$configure_input;;
17982    esac
17983
17984    case $ac_tag in
17985    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17986      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17987    esac
17988    ;;
17989  esac
17990
17991  ac_dir=`$as_dirname -- "$ac_file" ||
17992$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17993	 X"$ac_file" : 'X\(//\)[^/]' \| \
17994	 X"$ac_file" : 'X\(//\)$' \| \
17995	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17996$as_echo X"$ac_file" |
17997    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17998	    s//\1/
17999	    q
18000	  }
18001	  /^X\(\/\/\)[^/].*/{
18002	    s//\1/
18003	    q
18004	  }
18005	  /^X\(\/\/\)$/{
18006	    s//\1/
18007	    q
18008	  }
18009	  /^X\(\/\).*/{
18010	    s//\1/
18011	    q
18012	  }
18013	  s/.*/./; q'`
18014  as_dir="$ac_dir"; as_fn_mkdir_p
18015  ac_builddir=.
18016
18017case "$ac_dir" in
18018.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18019*)
18020  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18021  # A ".." for each directory in $ac_dir_suffix.
18022  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18023  case $ac_top_builddir_sub in
18024  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18025  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18026  esac ;;
18027esac
18028ac_abs_top_builddir=$ac_pwd
18029ac_abs_builddir=$ac_pwd$ac_dir_suffix
18030# for backward compatibility:
18031ac_top_builddir=$ac_top_build_prefix
18032
18033case $srcdir in
18034  .)  # We are building in place.
18035    ac_srcdir=.
18036    ac_top_srcdir=$ac_top_builddir_sub
18037    ac_abs_top_srcdir=$ac_pwd ;;
18038  [\\/]* | ?:[\\/]* )  # Absolute name.
18039    ac_srcdir=$srcdir$ac_dir_suffix;
18040    ac_top_srcdir=$srcdir
18041    ac_abs_top_srcdir=$srcdir ;;
18042  *) # Relative name.
18043    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18044    ac_top_srcdir=$ac_top_build_prefix$srcdir
18045    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18046esac
18047ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18048
18049
18050  case $ac_mode in
18051  :F)
18052  #
18053  # CONFIG_FILE
18054  #
18055
18056  case $INSTALL in
18057  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18058  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18059  esac
18060  ac_MKDIR_P=$MKDIR_P
18061  case $MKDIR_P in
18062  [\\/$]* | ?:[\\/]* ) ;;
18063  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18064  esac
18065_ACEOF
18066
18067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18068# If the template does not know about datarootdir, expand it.
18069# FIXME: This hack should be removed a few years after 2.60.
18070ac_datarootdir_hack=; ac_datarootdir_seen=
18071ac_sed_dataroot='
18072/datarootdir/ {
18073  p
18074  q
18075}
18076/@datadir@/p
18077/@docdir@/p
18078/@infodir@/p
18079/@localedir@/p
18080/@mandir@/p'
18081case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18082*datarootdir*) ac_datarootdir_seen=yes;;
18083*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18084  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18085$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18086_ACEOF
18087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18088  ac_datarootdir_hack='
18089  s&@datadir@&$datadir&g
18090  s&@docdir@&$docdir&g
18091  s&@infodir@&$infodir&g
18092  s&@localedir@&$localedir&g
18093  s&@mandir@&$mandir&g
18094  s&\\\${datarootdir}&$datarootdir&g' ;;
18095esac
18096_ACEOF
18097
18098# Neutralize VPATH when `$srcdir' = `.'.
18099# Shell code in configure.ac might set extrasub.
18100# FIXME: do we really want to maintain this feature?
18101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18102ac_sed_extra="$ac_vpsub
18103$extrasub
18104_ACEOF
18105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18106:t
18107/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18108s|@configure_input@|$ac_sed_conf_input|;t t
18109s&@top_builddir@&$ac_top_builddir_sub&;t t
18110s&@top_build_prefix@&$ac_top_build_prefix&;t t
18111s&@srcdir@&$ac_srcdir&;t t
18112s&@abs_srcdir@&$ac_abs_srcdir&;t t
18113s&@top_srcdir@&$ac_top_srcdir&;t t
18114s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18115s&@builddir@&$ac_builddir&;t t
18116s&@abs_builddir@&$ac_abs_builddir&;t t
18117s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18118s&@INSTALL@&$ac_INSTALL&;t t
18119s&@MKDIR_P@&$ac_MKDIR_P&;t t
18120$ac_datarootdir_hack
18121"
18122eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18123  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18124
18125test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18126  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18127  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18128      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18129  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18130which seems to be undefined.  Please make sure it is defined" >&5
18131$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18132which seems to be undefined.  Please make sure it is defined" >&2;}
18133
18134  rm -f "$ac_tmp/stdin"
18135  case $ac_file in
18136  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18137  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18138  esac \
18139  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18140 ;;
18141  :H)
18142  #
18143  # CONFIG_HEADER
18144  #
18145  if test x"$ac_file" != x-; then
18146    {
18147      $as_echo "/* $configure_input  */" \
18148      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18149    } >"$ac_tmp/config.h" \
18150      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18151    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18152      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18153$as_echo "$as_me: $ac_file is unchanged" >&6;}
18154    else
18155      rm -f "$ac_file"
18156      mv "$ac_tmp/config.h" "$ac_file" \
18157	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18158    fi
18159  else
18160    $as_echo "/* $configure_input  */" \
18161      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18162      || as_fn_error $? "could not create -" "$LINENO" 5
18163  fi
18164# Compute "$ac_file"'s index in $config_headers.
18165_am_arg="$ac_file"
18166_am_stamp_count=1
18167for _am_header in $config_headers :; do
18168  case $_am_header in
18169    $_am_arg | $_am_arg:* )
18170      break ;;
18171    * )
18172      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18173  esac
18174done
18175echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18176$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18177	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18178	 X"$_am_arg" : 'X\(//\)$' \| \
18179	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18180$as_echo X"$_am_arg" |
18181    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18182	    s//\1/
18183	    q
18184	  }
18185	  /^X\(\/\/\)[^/].*/{
18186	    s//\1/
18187	    q
18188	  }
18189	  /^X\(\/\/\)$/{
18190	    s//\1/
18191	    q
18192	  }
18193	  /^X\(\/\).*/{
18194	    s//\1/
18195	    q
18196	  }
18197	  s/.*/./; q'`/stamp-h$_am_stamp_count
18198 ;;
18199
18200  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18201$as_echo "$as_me: executing $ac_file commands" >&6;}
18202 ;;
18203  esac
18204
18205
18206  case $ac_file$ac_mode in
18207    "libtool":C)
18208
18209    # See if we are running on zsh, and set the options which allow our
18210    # commands through without removal of \ escapes.
18211    if test -n "${ZSH_VERSION+set}" ; then
18212      setopt NO_GLOB_SUBST
18213    fi
18214
18215    cfgfile="${ofile}T"
18216    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18217    $RM "$cfgfile"
18218
18219    cat <<_LT_EOF >> "$cfgfile"
18220#! $SHELL
18221
18222# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18223# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18224# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18225# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18226#
18227#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18228#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18229#   Written by Gordon Matzigkeit, 1996
18230#
18231#   This file is part of GNU Libtool.
18232#
18233# GNU Libtool is free software; you can redistribute it and/or
18234# modify it under the terms of the GNU General Public License as
18235# published by the Free Software Foundation; either version 2 of
18236# the License, or (at your option) any later version.
18237#
18238# As a special exception to the GNU General Public License,
18239# if you distribute this file as part of a program or library that
18240# is built using GNU Libtool, you may include this file under the
18241# same distribution terms that you use for the rest of that program.
18242#
18243# GNU Libtool is distributed in the hope that it will be useful,
18244# but WITHOUT ANY WARRANTY; without even the implied warranty of
18245# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18246# GNU General Public License for more details.
18247#
18248# You should have received a copy of the GNU General Public License
18249# along with GNU Libtool; see the file COPYING.  If not, a copy
18250# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18251# obtained by writing to the Free Software Foundation, Inc.,
18252# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18253
18254
18255# The names of the tagged configurations supported by this script.
18256available_tags=""
18257
18258# ### BEGIN LIBTOOL CONFIG
18259
18260# Which release of libtool.m4 was used?
18261macro_version=$macro_version
18262macro_revision=$macro_revision
18263
18264# Whether or not to build shared libraries.
18265build_libtool_libs=$enable_shared
18266
18267# Whether or not to build static libraries.
18268build_old_libs=$enable_static
18269
18270# What type of objects to build.
18271pic_mode=$pic_mode
18272
18273# Whether or not to optimize for fast installation.
18274fast_install=$enable_fast_install
18275
18276# Shell to use when invoking shell scripts.
18277SHELL=$lt_SHELL
18278
18279# An echo program that protects backslashes.
18280ECHO=$lt_ECHO
18281
18282# The host system.
18283host_alias=$host_alias
18284host=$host
18285host_os=$host_os
18286
18287# The build system.
18288build_alias=$build_alias
18289build=$build
18290build_os=$build_os
18291
18292# A sed program that does not truncate output.
18293SED=$lt_SED
18294
18295# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18296Xsed="\$SED -e 1s/^X//"
18297
18298# A grep program that handles long lines.
18299GREP=$lt_GREP
18300
18301# An ERE matcher.
18302EGREP=$lt_EGREP
18303
18304# A literal string matcher.
18305FGREP=$lt_FGREP
18306
18307# A BSD- or MS-compatible name lister.
18308NM=$lt_NM
18309
18310# Whether we need soft or hard links.
18311LN_S=$lt_LN_S
18312
18313# What is the maximum length of a command?
18314max_cmd_len=$max_cmd_len
18315
18316# Object file suffix (normally "o").
18317objext=$ac_objext
18318
18319# Executable file suffix (normally "").
18320exeext=$exeext
18321
18322# whether the shell understands "unset".
18323lt_unset=$lt_unset
18324
18325# turn spaces into newlines.
18326SP2NL=$lt_lt_SP2NL
18327
18328# turn newlines into spaces.
18329NL2SP=$lt_lt_NL2SP
18330
18331# An object symbol dumper.
18332OBJDUMP=$lt_OBJDUMP
18333
18334# Method to check whether dependent libraries are shared objects.
18335deplibs_check_method=$lt_deplibs_check_method
18336
18337# Command to use when deplibs_check_method == "file_magic".
18338file_magic_cmd=$lt_file_magic_cmd
18339
18340# The archiver.
18341AR=$lt_AR
18342AR_FLAGS=$lt_AR_FLAGS
18343
18344# A symbol stripping program.
18345STRIP=$lt_STRIP
18346
18347# Commands used to install an old-style archive.
18348RANLIB=$lt_RANLIB
18349old_postinstall_cmds=$lt_old_postinstall_cmds
18350old_postuninstall_cmds=$lt_old_postuninstall_cmds
18351
18352# Whether to use a lock for old archive extraction.
18353lock_old_archive_extraction=$lock_old_archive_extraction
18354
18355# A C compiler.
18356LTCC=$lt_CC
18357
18358# LTCC compiler flags.
18359LTCFLAGS=$lt_CFLAGS
18360
18361# Take the output of nm and produce a listing of raw symbols and C names.
18362global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18363
18364# Transform the output of nm in a proper C declaration.
18365global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18366
18367# Transform the output of nm in a C name address pair.
18368global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18369
18370# Transform the output of nm in a C name address pair when lib prefix is needed.
18371global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18372
18373# The name of the directory that contains temporary libtool files.
18374objdir=$objdir
18375
18376# Used to examine libraries when file_magic_cmd begins with "file".
18377MAGIC_CMD=$MAGIC_CMD
18378
18379# Must we lock files when doing compilation?
18380need_locks=$lt_need_locks
18381
18382# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18383DSYMUTIL=$lt_DSYMUTIL
18384
18385# Tool to change global to local symbols on Mac OS X.
18386NMEDIT=$lt_NMEDIT
18387
18388# Tool to manipulate fat objects and archives on Mac OS X.
18389LIPO=$lt_LIPO
18390
18391# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18392OTOOL=$lt_OTOOL
18393
18394# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18395OTOOL64=$lt_OTOOL64
18396
18397# Old archive suffix (normally "a").
18398libext=$libext
18399
18400# Shared library suffix (normally ".so").
18401shrext_cmds=$lt_shrext_cmds
18402
18403# The commands to extract the exported symbol list from a shared archive.
18404extract_expsyms_cmds=$lt_extract_expsyms_cmds
18405
18406# Variables whose values should be saved in libtool wrapper scripts and
18407# restored at link time.
18408variables_saved_for_relink=$lt_variables_saved_for_relink
18409
18410# Do we need the "lib" prefix for modules?
18411need_lib_prefix=$need_lib_prefix
18412
18413# Do we need a version for libraries?
18414need_version=$need_version
18415
18416# Library versioning type.
18417version_type=$version_type
18418
18419# Shared library runtime path variable.
18420runpath_var=$runpath_var
18421
18422# Shared library path variable.
18423shlibpath_var=$shlibpath_var
18424
18425# Is shlibpath searched before the hard-coded library search path?
18426shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18427
18428# Format of library name prefix.
18429libname_spec=$lt_libname_spec
18430
18431# List of archive names.  First name is the real one, the rest are links.
18432# The last name is the one that the linker finds with -lNAME
18433library_names_spec=$lt_library_names_spec
18434
18435# The coded name of the library, if different from the real name.
18436soname_spec=$lt_soname_spec
18437
18438# Permission mode override for installation of shared libraries.
18439install_override_mode=$lt_install_override_mode
18440
18441# Command to use after installation of a shared archive.
18442postinstall_cmds=$lt_postinstall_cmds
18443
18444# Command to use after uninstallation of a shared archive.
18445postuninstall_cmds=$lt_postuninstall_cmds
18446
18447# Commands used to finish a libtool library installation in a directory.
18448finish_cmds=$lt_finish_cmds
18449
18450# As "finish_cmds", except a single script fragment to be evaled but
18451# not shown.
18452finish_eval=$lt_finish_eval
18453
18454# Whether we should hardcode library paths into libraries.
18455hardcode_into_libs=$hardcode_into_libs
18456
18457# Compile-time system search path for libraries.
18458sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18459
18460# Run-time system search path for libraries.
18461sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18462
18463# Whether dlopen is supported.
18464dlopen_support=$enable_dlopen
18465
18466# Whether dlopen of programs is supported.
18467dlopen_self=$enable_dlopen_self
18468
18469# Whether dlopen of statically linked programs is supported.
18470dlopen_self_static=$enable_dlopen_self_static
18471
18472# Commands to strip libraries.
18473old_striplib=$lt_old_striplib
18474striplib=$lt_striplib
18475
18476
18477# The linker used to build libraries.
18478LD=$lt_LD
18479
18480# How to create reloadable object files.
18481reload_flag=$lt_reload_flag
18482reload_cmds=$lt_reload_cmds
18483
18484# Commands used to build an old-style archive.
18485old_archive_cmds=$lt_old_archive_cmds
18486
18487# A language specific compiler.
18488CC=$lt_compiler
18489
18490# Is the compiler the GNU compiler?
18491with_gcc=$GCC
18492
18493# Compiler flag to turn off builtin functions.
18494no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18495
18496# How to pass a linker flag through the compiler.
18497wl=$lt_lt_prog_compiler_wl
18498
18499# Additional compiler flags for building library objects.
18500pic_flag=$lt_lt_prog_compiler_pic
18501
18502# Compiler flag to prevent dynamic linking.
18503link_static_flag=$lt_lt_prog_compiler_static
18504
18505# Does compiler simultaneously support -c and -o options?
18506compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18507
18508# Whether or not to add -lc for building shared libraries.
18509build_libtool_need_lc=$archive_cmds_need_lc
18510
18511# Whether or not to disallow shared libs when runtime libs are static.
18512allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18513
18514# Compiler flag to allow reflexive dlopens.
18515export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18516
18517# Compiler flag to generate shared objects directly from archives.
18518whole_archive_flag_spec=$lt_whole_archive_flag_spec
18519
18520# Whether the compiler copes with passing no objects directly.
18521compiler_needs_object=$lt_compiler_needs_object
18522
18523# Create an old-style archive from a shared archive.
18524old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18525
18526# Create a temporary old-style archive to link instead of a shared archive.
18527old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18528
18529# Commands used to build a shared archive.
18530archive_cmds=$lt_archive_cmds
18531archive_expsym_cmds=$lt_archive_expsym_cmds
18532
18533# Commands used to build a loadable module if different from building
18534# a shared archive.
18535module_cmds=$lt_module_cmds
18536module_expsym_cmds=$lt_module_expsym_cmds
18537
18538# Whether we are building with GNU ld or not.
18539with_gnu_ld=$lt_with_gnu_ld
18540
18541# Flag that allows shared libraries with undefined symbols to be built.
18542allow_undefined_flag=$lt_allow_undefined_flag
18543
18544# Flag that enforces no undefined symbols.
18545no_undefined_flag=$lt_no_undefined_flag
18546
18547# Flag to hardcode \$libdir into a binary during linking.
18548# This must work even if \$libdir does not exist
18549hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18550
18551# If ld is used when linking, flag to hardcode \$libdir into a binary
18552# during linking.  This must work even if \$libdir does not exist.
18553hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18554
18555# Whether we need a single "-rpath" flag with a separated argument.
18556hardcode_libdir_separator=$lt_hardcode_libdir_separator
18557
18558# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18559# DIR into the resulting binary.
18560hardcode_direct=$hardcode_direct
18561
18562# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18563# DIR into the resulting binary and the resulting library dependency is
18564# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18565# library is relocated.
18566hardcode_direct_absolute=$hardcode_direct_absolute
18567
18568# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18569# into the resulting binary.
18570hardcode_minus_L=$hardcode_minus_L
18571
18572# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18573# into the resulting binary.
18574hardcode_shlibpath_var=$hardcode_shlibpath_var
18575
18576# Set to "yes" if building a shared library automatically hardcodes DIR
18577# into the library and all subsequent libraries and executables linked
18578# against it.
18579hardcode_automatic=$hardcode_automatic
18580
18581# Set to yes if linker adds runtime paths of dependent libraries
18582# to runtime path list.
18583inherit_rpath=$inherit_rpath
18584
18585# Whether libtool must link a program against all its dependency libraries.
18586link_all_deplibs=$link_all_deplibs
18587
18588# Fix the shell variable \$srcfile for the compiler.
18589fix_srcfile_path=$lt_fix_srcfile_path
18590
18591# Set to "yes" if exported symbols are required.
18592always_export_symbols=$always_export_symbols
18593
18594# The commands to list exported symbols.
18595export_symbols_cmds=$lt_export_symbols_cmds
18596
18597# Symbols that should not be listed in the preloaded symbols.
18598exclude_expsyms=$lt_exclude_expsyms
18599
18600# Symbols that must always be exported.
18601include_expsyms=$lt_include_expsyms
18602
18603# Commands necessary for linking programs (against libraries) with templates.
18604prelink_cmds=$lt_prelink_cmds
18605
18606# Specify filename containing input files.
18607file_list_spec=$lt_file_list_spec
18608
18609# How to hardcode a shared library path into an executable.
18610hardcode_action=$hardcode_action
18611
18612# ### END LIBTOOL CONFIG
18613
18614_LT_EOF
18615
18616  case $host_os in
18617  aix3*)
18618    cat <<\_LT_EOF >> "$cfgfile"
18619# AIX sometimes has problems with the GCC collect2 program.  For some
18620# reason, if we set the COLLECT_NAMES environment variable, the problems
18621# vanish in a puff of smoke.
18622if test "X${COLLECT_NAMES+set}" != Xset; then
18623  COLLECT_NAMES=
18624  export COLLECT_NAMES
18625fi
18626_LT_EOF
18627    ;;
18628  esac
18629
18630
18631ltmain="$ac_aux_dir/ltmain.sh"
18632
18633
18634  # We use sed instead of cat because bash on DJGPP gets confused if
18635  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18636  # text mode, it properly converts lines to CR/LF.  This bash problem
18637  # is reportedly fixed, but why not run on old versions too?
18638  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18639    || (rm -f "$cfgfile"; exit 1)
18640
18641  case $xsi_shell in
18642  yes)
18643    cat << \_LT_EOF >> "$cfgfile"
18644
18645# func_dirname file append nondir_replacement
18646# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18647# otherwise set result to NONDIR_REPLACEMENT.
18648func_dirname ()
18649{
18650  case ${1} in
18651    */*) func_dirname_result="${1%/*}${2}" ;;
18652    *  ) func_dirname_result="${3}" ;;
18653  esac
18654}
18655
18656# func_basename file
18657func_basename ()
18658{
18659  func_basename_result="${1##*/}"
18660}
18661
18662# func_dirname_and_basename file append nondir_replacement
18663# perform func_basename and func_dirname in a single function
18664# call:
18665#   dirname:  Compute the dirname of FILE.  If nonempty,
18666#             add APPEND to the result, otherwise set result
18667#             to NONDIR_REPLACEMENT.
18668#             value returned in "$func_dirname_result"
18669#   basename: Compute filename of FILE.
18670#             value retuned in "$func_basename_result"
18671# Implementation must be kept synchronized with func_dirname
18672# and func_basename. For efficiency, we do not delegate to
18673# those functions but instead duplicate the functionality here.
18674func_dirname_and_basename ()
18675{
18676  case ${1} in
18677    */*) func_dirname_result="${1%/*}${2}" ;;
18678    *  ) func_dirname_result="${3}" ;;
18679  esac
18680  func_basename_result="${1##*/}"
18681}
18682
18683# func_stripname prefix suffix name
18684# strip PREFIX and SUFFIX off of NAME.
18685# PREFIX and SUFFIX must not contain globbing or regex special
18686# characters, hashes, percent signs, but SUFFIX may contain a leading
18687# dot (in which case that matches only a dot).
18688func_stripname ()
18689{
18690  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18691  # positional parameters, so assign one to ordinary parameter first.
18692  func_stripname_result=${3}
18693  func_stripname_result=${func_stripname_result#"${1}"}
18694  func_stripname_result=${func_stripname_result%"${2}"}
18695}
18696
18697# func_opt_split
18698func_opt_split ()
18699{
18700  func_opt_split_opt=${1%%=*}
18701  func_opt_split_arg=${1#*=}
18702}
18703
18704# func_lo2o object
18705func_lo2o ()
18706{
18707  case ${1} in
18708    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18709    *)    func_lo2o_result=${1} ;;
18710  esac
18711}
18712
18713# func_xform libobj-or-source
18714func_xform ()
18715{
18716  func_xform_result=${1%.*}.lo
18717}
18718
18719# func_arith arithmetic-term...
18720func_arith ()
18721{
18722  func_arith_result=$(( $* ))
18723}
18724
18725# func_len string
18726# STRING may not start with a hyphen.
18727func_len ()
18728{
18729  func_len_result=${#1}
18730}
18731
18732_LT_EOF
18733    ;;
18734  *) # Bourne compatible functions.
18735    cat << \_LT_EOF >> "$cfgfile"
18736
18737# func_dirname file append nondir_replacement
18738# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18739# otherwise set result to NONDIR_REPLACEMENT.
18740func_dirname ()
18741{
18742  # Extract subdirectory from the argument.
18743  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18744  if test "X$func_dirname_result" = "X${1}"; then
18745    func_dirname_result="${3}"
18746  else
18747    func_dirname_result="$func_dirname_result${2}"
18748  fi
18749}
18750
18751# func_basename file
18752func_basename ()
18753{
18754  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18755}
18756
18757
18758# func_stripname prefix suffix name
18759# strip PREFIX and SUFFIX off of NAME.
18760# PREFIX and SUFFIX must not contain globbing or regex special
18761# characters, hashes, percent signs, but SUFFIX may contain a leading
18762# dot (in which case that matches only a dot).
18763# func_strip_suffix prefix name
18764func_stripname ()
18765{
18766  case ${2} in
18767    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18768    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18769  esac
18770}
18771
18772# sed scripts:
18773my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18774my_sed_long_arg='1s/^-[^=]*=//'
18775
18776# func_opt_split
18777func_opt_split ()
18778{
18779  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18780  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18781}
18782
18783# func_lo2o object
18784func_lo2o ()
18785{
18786  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18787}
18788
18789# func_xform libobj-or-source
18790func_xform ()
18791{
18792  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18793}
18794
18795# func_arith arithmetic-term...
18796func_arith ()
18797{
18798  func_arith_result=`expr "$@"`
18799}
18800
18801# func_len string
18802# STRING may not start with a hyphen.
18803func_len ()
18804{
18805  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18806}
18807
18808_LT_EOF
18809esac
18810
18811case $lt_shell_append in
18812  yes)
18813    cat << \_LT_EOF >> "$cfgfile"
18814
18815# func_append var value
18816# Append VALUE to the end of shell variable VAR.
18817func_append ()
18818{
18819  eval "$1+=\$2"
18820}
18821_LT_EOF
18822    ;;
18823  *)
18824    cat << \_LT_EOF >> "$cfgfile"
18825
18826# func_append var value
18827# Append VALUE to the end of shell variable VAR.
18828func_append ()
18829{
18830  eval "$1=\$$1\$2"
18831}
18832
18833_LT_EOF
18834    ;;
18835  esac
18836
18837
18838  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18839    || (rm -f "$cfgfile"; exit 1)
18840
18841  mv -f "$cfgfile" "$ofile" ||
18842    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18843  chmod +x "$ofile"
18844
18845 ;;
18846    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18847  # Older Autoconf quotes --file arguments for eval, but not when files
18848  # are listed without --file.  Let's play safe and only enable the eval
18849  # if we detect the quoting.
18850  case $CONFIG_FILES in
18851  *\'*) eval set x "$CONFIG_FILES" ;;
18852  *)   set x $CONFIG_FILES ;;
18853  esac
18854  shift
18855  for mf
18856  do
18857    # Strip MF so we end up with the name of the file.
18858    mf=`echo "$mf" | sed -e 's/:.*$//'`
18859    # Check whether this is an Automake generated Makefile or not.
18860    # We used to match only the files named 'Makefile.in', but
18861    # some people rename them; so instead we look at the file content.
18862    # Grep'ing the first line is not enough: some people post-process
18863    # each Makefile.in and add a new line on top of each file to say so.
18864    # Grep'ing the whole file is not good either: AIX grep has a line
18865    # limit of 2048, but all sed's we know have understand at least 4000.
18866    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18867      dirpart=`$as_dirname -- "$mf" ||
18868$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18869	 X"$mf" : 'X\(//\)[^/]' \| \
18870	 X"$mf" : 'X\(//\)$' \| \
18871	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18872$as_echo X"$mf" |
18873    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18874	    s//\1/
18875	    q
18876	  }
18877	  /^X\(\/\/\)[^/].*/{
18878	    s//\1/
18879	    q
18880	  }
18881	  /^X\(\/\/\)$/{
18882	    s//\1/
18883	    q
18884	  }
18885	  /^X\(\/\).*/{
18886	    s//\1/
18887	    q
18888	  }
18889	  s/.*/./; q'`
18890    else
18891      continue
18892    fi
18893    # Extract the definition of DEPDIR, am__include, and am__quote
18894    # from the Makefile without running 'make'.
18895    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18896    test -z "$DEPDIR" && continue
18897    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18898    test -z "$am__include" && continue
18899    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18900    # Find all dependency output files, they are included files with
18901    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18902    # simplest approach to changing $(DEPDIR) to its actual value in the
18903    # expansion.
18904    for file in `sed -n "
18905      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18906	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18907      # Make sure the directory exists.
18908      test -f "$dirpart/$file" && continue
18909      fdir=`$as_dirname -- "$file" ||
18910$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18911	 X"$file" : 'X\(//\)[^/]' \| \
18912	 X"$file" : 'X\(//\)$' \| \
18913	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18914$as_echo X"$file" |
18915    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18916	    s//\1/
18917	    q
18918	  }
18919	  /^X\(\/\/\)[^/].*/{
18920	    s//\1/
18921	    q
18922	  }
18923	  /^X\(\/\/\)$/{
18924	    s//\1/
18925	    q
18926	  }
18927	  /^X\(\/\).*/{
18928	    s//\1/
18929	    q
18930	  }
18931	  s/.*/./; q'`
18932      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18933      # echo "creating $dirpart/$file"
18934      echo '# dummy' > "$dirpart/$file"
18935    done
18936  done
18937}
18938 ;;
18939    "aarch64/Makefile":C) sed -n \
18940	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18941		/^srcdir = / s:$:/aarch64:
18942		p
18943	}' \
18944	<Make-common.sim >aarch64/Makesim1.tmp
18945 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
18946 sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
18947	-e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
18948	<aarch64/Makefile.sim >aarch64/Makefile
18949 rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
18950 ;;
18951    "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
18952    "arm/Makefile":C) sed -n \
18953	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18954		/^srcdir = / s:$:/arm:
18955		p
18956	}' \
18957	<Make-common.sim >arm/Makesim1.tmp
18958 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
18959 sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
18960	-e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
18961	<arm/Makefile.sim >arm/Makefile
18962 rm -f arm/Makesim1.tmp arm/Makesim2.tmp
18963 ;;
18964    "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
18965    "avr/Makefile":C) sed -n \
18966	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18967		/^srcdir = / s:$:/avr:
18968		p
18969	}' \
18970	<Make-common.sim >avr/Makesim1.tmp
18971 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
18972 sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
18973	-e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
18974	<avr/Makefile.sim >avr/Makefile
18975 rm -f avr/Makesim1.tmp avr/Makesim2.tmp
18976 ;;
18977    "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
18978    "bfin/Makefile":C) sed -n \
18979	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18980		/^srcdir = / s:$:/bfin:
18981		p
18982	}' \
18983	<Make-common.sim >bfin/Makesim1.tmp
18984 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bfin/Makesim2.tmp
18985 sed -e '/^## COMMON_PRE_/ r bfin/Makesim1.tmp' \
18986	-e '/^## COMMON_POST_/ r bfin/Makesim2.tmp' \
18987	<bfin/Makefile.sim >bfin/Makefile
18988 rm -f bfin/Makesim1.tmp bfin/Makesim2.tmp
18989 ;;
18990    "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
18991    "bpf/Makefile":C) sed -n \
18992	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18993		/^srcdir = / s:$:/bpf:
18994		p
18995	}' \
18996	<Make-common.sim >bpf/Makesim1.tmp
18997 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bpf/Makesim2.tmp
18998 sed -e '/^## COMMON_PRE_/ r bpf/Makesim1.tmp' \
18999	-e '/^## COMMON_POST_/ r bpf/Makesim2.tmp' \
19000	<bpf/Makefile.sim >bpf/Makefile
19001 rm -f bpf/Makesim1.tmp bpf/Makesim2.tmp
19002 ;;
19003    "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
19004    "cr16/Makefile":C) sed -n \
19005	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19006		/^srcdir = / s:$:/cr16:
19007		p
19008	}' \
19009	<Make-common.sim >cr16/Makesim1.tmp
19010 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
19011 sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
19012	-e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
19013	<cr16/Makefile.sim >cr16/Makefile
19014 rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
19015 ;;
19016    "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
19017    "cris/Makefile":C) sed -n \
19018	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19019		/^srcdir = / s:$:/cris:
19020		p
19021	}' \
19022	<Make-common.sim >cris/Makesim1.tmp
19023 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cris/Makesim2.tmp
19024 sed -e '/^## COMMON_PRE_/ r cris/Makesim1.tmp' \
19025	-e '/^## COMMON_POST_/ r cris/Makesim2.tmp' \
19026	<cris/Makefile.sim >cris/Makefile
19027 rm -f cris/Makesim1.tmp cris/Makesim2.tmp
19028 ;;
19029    "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
19030    "d10v/Makefile":C) sed -n \
19031	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19032		/^srcdir = / s:$:/d10v:
19033		p
19034	}' \
19035	<Make-common.sim >d10v/Makesim1.tmp
19036 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
19037 sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
19038	-e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
19039	<d10v/Makefile.sim >d10v/Makefile
19040 rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
19041 ;;
19042    "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
19043    "frv/Makefile":C) sed -n \
19044	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19045		/^srcdir = / s:$:/frv:
19046		p
19047	}' \
19048	<Make-common.sim >frv/Makesim1.tmp
19049 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >frv/Makesim2.tmp
19050 sed -e '/^## COMMON_PRE_/ r frv/Makesim1.tmp' \
19051	-e '/^## COMMON_POST_/ r frv/Makesim2.tmp' \
19052	<frv/Makefile.sim >frv/Makefile
19053 rm -f frv/Makesim1.tmp frv/Makesim2.tmp
19054 ;;
19055    "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
19056    "ft32/Makefile":C) sed -n \
19057	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19058		/^srcdir = / s:$:/ft32:
19059		p
19060	}' \
19061	<Make-common.sim >ft32/Makesim1.tmp
19062 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
19063 sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
19064	-e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
19065	<ft32/Makefile.sim >ft32/Makefile
19066 rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
19067 ;;
19068    "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
19069    "h8300/Makefile":C) sed -n \
19070	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19071		/^srcdir = / s:$:/h8300:
19072		p
19073	}' \
19074	<Make-common.sim >h8300/Makesim1.tmp
19075 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
19076 sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
19077	-e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
19078	<h8300/Makefile.sim >h8300/Makefile
19079 rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
19080 ;;
19081    "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
19082    "iq2000/Makefile":C) sed -n \
19083	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19084		/^srcdir = / s:$:/iq2000:
19085		p
19086	}' \
19087	<Make-common.sim >iq2000/Makesim1.tmp
19088 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >iq2000/Makesim2.tmp
19089 sed -e '/^## COMMON_PRE_/ r iq2000/Makesim1.tmp' \
19090	-e '/^## COMMON_POST_/ r iq2000/Makesim2.tmp' \
19091	<iq2000/Makefile.sim >iq2000/Makefile
19092 rm -f iq2000/Makesim1.tmp iq2000/Makesim2.tmp
19093 ;;
19094    "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
19095    "lm32/Makefile":C) sed -n \
19096	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19097		/^srcdir = / s:$:/lm32:
19098		p
19099	}' \
19100	<Make-common.sim >lm32/Makesim1.tmp
19101 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >lm32/Makesim2.tmp
19102 sed -e '/^## COMMON_PRE_/ r lm32/Makesim1.tmp' \
19103	-e '/^## COMMON_POST_/ r lm32/Makesim2.tmp' \
19104	<lm32/Makefile.sim >lm32/Makefile
19105 rm -f lm32/Makesim1.tmp lm32/Makesim2.tmp
19106 ;;
19107    "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
19108    "m32c/Makefile":C) sed -n \
19109	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19110		/^srcdir = / s:$:/m32c:
19111		p
19112	}' \
19113	<Make-common.sim >m32c/Makesim1.tmp
19114 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
19115 sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
19116	-e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
19117	<m32c/Makefile.sim >m32c/Makefile
19118 rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
19119 ;;
19120    "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
19121    "m32r/Makefile":C) sed -n \
19122	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19123		/^srcdir = / s:$:/m32r:
19124		p
19125	}' \
19126	<Make-common.sim >m32r/Makesim1.tmp
19127 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32r/Makesim2.tmp
19128 sed -e '/^## COMMON_PRE_/ r m32r/Makesim1.tmp' \
19129	-e '/^## COMMON_POST_/ r m32r/Makesim2.tmp' \
19130	<m32r/Makefile.sim >m32r/Makefile
19131 rm -f m32r/Makesim1.tmp m32r/Makesim2.tmp
19132 ;;
19133    "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
19134    "m68hc11/Makefile":C) sed -n \
19135	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19136		/^srcdir = / s:$:/m68hc11:
19137		p
19138	}' \
19139	<Make-common.sim >m68hc11/Makesim1.tmp
19140 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
19141 sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
19142	-e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
19143	<m68hc11/Makefile.sim >m68hc11/Makefile
19144 rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
19145 ;;
19146    "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
19147    "mcore/Makefile":C) sed -n \
19148	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19149		/^srcdir = / s:$:/mcore:
19150		p
19151	}' \
19152	<Make-common.sim >mcore/Makesim1.tmp
19153 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
19154 sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
19155	-e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
19156	<mcore/Makefile.sim >mcore/Makefile
19157 rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
19158 ;;
19159    "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
19160    "microblaze/Makefile":C) sed -n \
19161	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19162		/^srcdir = / s:$:/microblaze:
19163		p
19164	}' \
19165	<Make-common.sim >microblaze/Makesim1.tmp
19166 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
19167 sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
19168	-e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
19169	<microblaze/Makefile.sim >microblaze/Makefile
19170 rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
19171 ;;
19172    "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
19173    "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
19174    "mn10300/Makefile":C) sed -n \
19175	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19176		/^srcdir = / s:$:/mn10300:
19177		p
19178	}' \
19179	<Make-common.sim >mn10300/Makesim1.tmp
19180 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mn10300/Makesim2.tmp
19181 sed -e '/^## COMMON_PRE_/ r mn10300/Makesim1.tmp' \
19182	-e '/^## COMMON_POST_/ r mn10300/Makesim2.tmp' \
19183	<mn10300/Makefile.sim >mn10300/Makefile
19184 rm -f mn10300/Makesim1.tmp mn10300/Makesim2.tmp
19185 ;;
19186    "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
19187    "moxie/Makefile":C) sed -n \
19188	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19189		/^srcdir = / s:$:/moxie:
19190		p
19191	}' \
19192	<Make-common.sim >moxie/Makesim1.tmp
19193 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
19194 sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
19195	-e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
19196	<moxie/Makefile.sim >moxie/Makefile
19197 rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
19198 ;;
19199    "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
19200    "msp430/Makefile":C) sed -n \
19201	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19202		/^srcdir = / s:$:/msp430:
19203		p
19204	}' \
19205	<Make-common.sim >msp430/Makesim1.tmp
19206 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
19207 sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
19208	-e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
19209	<msp430/Makefile.sim >msp430/Makefile
19210 rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
19211 ;;
19212    "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
19213    "or1k/Makefile":C) sed -n \
19214	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19215		/^srcdir = / s:$:/or1k:
19216		p
19217	}' \
19218	<Make-common.sim >or1k/Makesim1.tmp
19219 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >or1k/Makesim2.tmp
19220 sed -e '/^## COMMON_PRE_/ r or1k/Makesim1.tmp' \
19221	-e '/^## COMMON_POST_/ r or1k/Makesim2.tmp' \
19222	<or1k/Makefile.sim >or1k/Makefile
19223 rm -f or1k/Makesim1.tmp or1k/Makesim2.tmp
19224 ;;
19225    "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
19226    "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
19227    "pru/Makefile":C) sed -n \
19228	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19229		/^srcdir = / s:$:/pru:
19230		p
19231	}' \
19232	<Make-common.sim >pru/Makesim1.tmp
19233 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
19234 sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
19235	-e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
19236	<pru/Makefile.sim >pru/Makefile
19237 rm -f pru/Makesim1.tmp pru/Makesim2.tmp
19238 ;;
19239    "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
19240    "riscv/Makefile":C) sed -n \
19241	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19242		/^srcdir = / s:$:/riscv:
19243		p
19244	}' \
19245	<Make-common.sim >riscv/Makesim1.tmp
19246 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >riscv/Makesim2.tmp
19247 sed -e '/^## COMMON_PRE_/ r riscv/Makesim1.tmp' \
19248	-e '/^## COMMON_POST_/ r riscv/Makesim2.tmp' \
19249	<riscv/Makefile.sim >riscv/Makefile
19250 rm -f riscv/Makesim1.tmp riscv/Makesim2.tmp
19251 ;;
19252    "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
19253    "rl78/Makefile":C) sed -n \
19254	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19255		/^srcdir = / s:$:/rl78:
19256		p
19257	}' \
19258	<Make-common.sim >rl78/Makesim1.tmp
19259 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
19260 sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
19261	-e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
19262	<rl78/Makefile.sim >rl78/Makefile
19263 rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
19264 ;;
19265    "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
19266    "rx/Makefile":C) sed -n \
19267	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19268		/^srcdir = / s:$:/rx:
19269		p
19270	}' \
19271	<Make-common.sim >rx/Makesim1.tmp
19272 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp
19273 sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \
19274	-e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \
19275	<rx/Makefile.sim >rx/Makefile
19276 rm -f rx/Makesim1.tmp rx/Makesim2.tmp
19277 ;;
19278    "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
19279    "sh/Makefile":C) sed -n \
19280	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19281		/^srcdir = / s:$:/sh:
19282		p
19283	}' \
19284	<Make-common.sim >sh/Makesim1.tmp
19285 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
19286 sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
19287	-e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
19288	<sh/Makefile.sim >sh/Makefile
19289 rm -f sh/Makesim1.tmp sh/Makesim2.tmp
19290 ;;
19291    "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
19292    "erc32/Makefile":C) sed -n \
19293	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19294		/^srcdir = / s:$:/erc32:
19295		p
19296	}' \
19297	<Make-common.sim >erc32/Makesim1.tmp
19298 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >erc32/Makesim2.tmp
19299 sed -e '/^## COMMON_PRE_/ r erc32/Makesim1.tmp' \
19300	-e '/^## COMMON_POST_/ r erc32/Makesim2.tmp' \
19301	<erc32/Makefile.sim >erc32/Makefile
19302 rm -f erc32/Makesim1.tmp erc32/Makesim2.tmp
19303 ;;
19304    "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
19305    "v850/Makefile":C) sed -n \
19306	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19307		/^srcdir = / s:$:/v850:
19308		p
19309	}' \
19310	<Make-common.sim >v850/Makesim1.tmp
19311 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >v850/Makesim2.tmp
19312 sed -e '/^## COMMON_PRE_/ r v850/Makesim1.tmp' \
19313	-e '/^## COMMON_POST_/ r v850/Makesim2.tmp' \
19314	<v850/Makefile.sim >v850/Makefile
19315 rm -f v850/Makesim1.tmp v850/Makesim2.tmp
19316 ;;
19317    "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
19318    "example-synacor/Makefile":C) sed -n \
19319	-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19320		/^srcdir = / s:$:/example-synacor:
19321		p
19322	}' \
19323	<Make-common.sim >example-synacor/Makesim1.tmp
19324 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
19325 sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
19326	-e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
19327	<example-synacor/Makefile.sim >example-synacor/Makefile
19328 rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
19329 ;;
19330    "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
19331
19332  esac
19333done # for ac_tag
19334
19335
19336as_fn_exit 0
19337_ACEOF
19338ac_clean_files=$ac_clean_files_save
19339
19340test $ac_write_fail = 0 ||
19341  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19342
19343
19344# configure is writing to config.log, and then calls config.status.
19345# config.status does its own redirection, appending to config.log.
19346# Unfortunately, on DOS this fails, as config.log is still kept open
19347# by configure, so config.status won't be able to write to it; its
19348# output is simply discarded.  So we exec the FD to /dev/null,
19349# effectively closing config.log, so it can be properly (re)opened and
19350# appended to by config.status.  When coming back to configure, we
19351# need to make the FD available again.
19352if test "$no_create" != yes; then
19353  ac_cs_success=:
19354  ac_config_status_args=
19355  test "$silent" = yes &&
19356    ac_config_status_args="$ac_config_status_args --quiet"
19357  exec 5>/dev/null
19358  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19359  exec 5>>config.log
19360  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19361  # would make configure fail if this is the last instruction.
19362  $ac_cs_success || as_fn_exit 1
19363fi
19364
19365#
19366# CONFIG_SUBDIRS section.
19367#
19368if test "$no_recursion" != yes; then
19369
19370  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19371  # so they do not pile up.
19372  ac_sub_configure_args=
19373  ac_prev=
19374  eval "set x $ac_configure_args"
19375  shift
19376  for ac_arg
19377  do
19378    if test -n "$ac_prev"; then
19379      ac_prev=
19380      continue
19381    fi
19382    case $ac_arg in
19383    -cache-file | --cache-file | --cache-fil | --cache-fi \
19384    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19385      ac_prev=cache_file ;;
19386    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19387    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19388    | --c=*)
19389      ;;
19390    --config-cache | -C)
19391      ;;
19392    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19393      ac_prev=srcdir ;;
19394    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19395      ;;
19396    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19397      ac_prev=prefix ;;
19398    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19399      ;;
19400    --disable-option-checking)
19401      ;;
19402    *)
19403      case $ac_arg in
19404      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19405      esac
19406      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19407    esac
19408  done
19409
19410  # Always prepend --prefix to ensure using the same prefix
19411  # in subdir configurations.
19412  ac_arg="--prefix=$prefix"
19413  case $ac_arg in
19414  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19415  esac
19416  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19417
19418  # Pass --silent
19419  if test "$silent" = yes; then
19420    ac_sub_configure_args="--silent $ac_sub_configure_args"
19421  fi
19422
19423  # Always prepend --disable-option-checking to silence warnings, since
19424  # different subdirs can have different --enable and --with options.
19425  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19426
19427  ac_popdir=`pwd`
19428  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19429
19430    # Do not complain, so a configure script can configure whichever
19431    # parts of a large source tree are present.
19432    test -d "$srcdir/$ac_dir" || continue
19433
19434    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19435    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19436    $as_echo "$ac_msg" >&6
19437    as_dir="$ac_dir"; as_fn_mkdir_p
19438    ac_builddir=.
19439
19440case "$ac_dir" in
19441.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19442*)
19443  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19444  # A ".." for each directory in $ac_dir_suffix.
19445  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19446  case $ac_top_builddir_sub in
19447  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19448  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19449  esac ;;
19450esac
19451ac_abs_top_builddir=$ac_pwd
19452ac_abs_builddir=$ac_pwd$ac_dir_suffix
19453# for backward compatibility:
19454ac_top_builddir=$ac_top_build_prefix
19455
19456case $srcdir in
19457  .)  # We are building in place.
19458    ac_srcdir=.
19459    ac_top_srcdir=$ac_top_builddir_sub
19460    ac_abs_top_srcdir=$ac_pwd ;;
19461  [\\/]* | ?:[\\/]* )  # Absolute name.
19462    ac_srcdir=$srcdir$ac_dir_suffix;
19463    ac_top_srcdir=$srcdir
19464    ac_abs_top_srcdir=$srcdir ;;
19465  *) # Relative name.
19466    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19467    ac_top_srcdir=$ac_top_build_prefix$srcdir
19468    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19469esac
19470ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19471
19472
19473    cd "$ac_dir"
19474
19475    # Check for guested configure; otherwise get Cygnus style configure.
19476    if test -f "$ac_srcdir/configure.gnu"; then
19477      ac_sub_configure=$ac_srcdir/configure.gnu
19478    elif test -f "$ac_srcdir/configure"; then
19479      ac_sub_configure=$ac_srcdir/configure
19480    elif test -f "$ac_srcdir/configure.in"; then
19481      # This should be Cygnus configure.
19482      ac_sub_configure=$ac_aux_dir/configure
19483    else
19484      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19485$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19486      ac_sub_configure=
19487    fi
19488
19489    # The recursion is here.
19490    if test -n "$ac_sub_configure"; then
19491      # Make the cache file name correct relative to the subdirectory.
19492      case $cache_file in
19493      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19494      *) # Relative name.
19495	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19496      esac
19497
19498      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19499$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19500      # The eval makes quoting arguments work.
19501      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19502	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19503	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19504    fi
19505
19506    cd "$ac_popdir"
19507  done
19508fi
19509if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19510  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19511$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19512fi
19513
19514