1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for GNU Offloading and Multi Processing Runtime Library 1.0.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95  IFS=$as_save_IFS
96  test -z "$as_dir" && as_dir=.
97    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there.  '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136  emulate sh
137  NULLCMD=:
138  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139  # is contrary to our usage.  Disable this feature.
140  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141  setopt NO_GLOB_SUBST
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177    PATH=/empty FPATH=/empty; export PATH FPATH
178    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180test \$(( 1 + 1 )) = 2 || exit 1"
181  if (eval "$as_required") 2>/dev/null; then :
182  as_have_required=yes
183else
184  as_have_required=no
185fi
186  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193  IFS=$as_save_IFS
194  test -z "$as_dir" && as_dir=.
195  as_found=:
196  case $as_dir in #(
197	 /*)
198	   for as_base in sh bash ksh sh5; do
199	     # Try only shells that exist, to save several forks.
200	     as_shell=$as_dir/$as_base
201	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203  CONFIG_SHELL=$as_shell as_have_required=yes
204		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  break 2
206fi
207fi
208	   done;;
209       esac
210  as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214  CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219      if test "x$CONFIG_SHELL" != x; then :
220  # We cannot yet assume a decent shell, so we have to provide a
221	# neutralization value for shells without unset; and this also
222	# works around shells that cannot unset nonexistent variables.
223	BASH_ENV=/dev/null
224	ENV=/dev/null
225	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226	export CONFIG_SHELL
227	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230    if test x$as_have_required = xno; then :
231  $as_echo "$0: This script requires a shell more modern than all"
232  $as_echo "$0: the shells that I found on your system."
233  if test x${ZSH_VERSION+set} = xset ; then
234    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236  else
237    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241  fi
242  exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260  { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269  return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277  set +e
278  as_fn_set_status $1
279  exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288  case $as_dir in #(
289  -*) as_dir=./$as_dir;;
290  esac
291  test -d "$as_dir" || eval $as_mkdir_p || {
292    as_dirs=
293    while :; do
294      case $as_dir in #(
295      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296      *) as_qdir=$as_dir;;
297      esac
298      as_dirs="'$as_qdir' $as_dirs"
299      as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301	 X"$as_dir" : 'X\(//\)[^/]' \| \
302	 X"$as_dir" : 'X\(//\)$' \| \
303	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\/\)[^/].*/{
310	    s//\1/
311	    q
312	  }
313	  /^X\(\/\/\)$/{
314	    s//\1/
315	    q
316	  }
317	  /^X\(\/\).*/{
318	    s//\1/
319	    q
320	  }
321	  s/.*/./; q'`
322      test -d "$as_dir" && break
323    done
324    test -z "$as_dirs" || eval "mkdir $as_dirs"
325  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336  eval 'as_fn_append ()
337  {
338    eval $1+=\$2
339  }'
340else
341  as_fn_append ()
342  {
343    eval $1=\$$1\$2
344  }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353  eval 'as_fn_arith ()
354  {
355    as_val=$(( $* ))
356  }'
357else
358  as_fn_arith ()
359  {
360    as_val=`expr "$@" || test $? -eq 1`
361  }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372  as_status=$?; test $as_status -eq 0 && as_status=1
373  if test "$3"; then
374    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376  fi
377  $as_echo "$as_me: error: $1" >&2
378  as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383  as_expr=expr
384else
385  as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389  as_basename=basename
390else
391  as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395  as_dirname=dirname
396else
397  as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402	 X"$0" : 'X\(//\)$' \| \
403	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405    sed '/^.*\/\([^/][^/]*\)\/*$/{
406	    s//\1/
407	    q
408	  }
409	  /^X\/\(\/\/\)$/{
410	    s//\1/
411	    q
412	  }
413	  /^X\/\(\/\).*/{
414	    s//\1/
415	    q
416	  }
417	  s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450  # Don't try to exec as it changes $[0], causing all sort of problems
451  # (the dirname of $[0] is not the place where we might find the
452  # original and so on.  Autoconf is especially sensitive to this).
453  . "./$as_me.lineno"
454  # Exit status is that of the last command.
455  exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461  case `echo 'xy\c'` in
462  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
463  xy)  ECHO_C='\c';;
464  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465       ECHO_T='	';;
466  esac;;
467*)
468  ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473  rm -f conf$$.dir/conf$$.file
474else
475  rm -f conf$$.dir
476  mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479  if ln -s conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s='ln -s'
481    # ... but there are two gotchas:
482    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484    # In both cases, we have to default to `cp -p'.
485    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486      as_ln_s='cp -p'
487  elif ln conf$$.file conf$$ 2>/dev/null; then
488    as_ln_s=ln
489  else
490    as_ln_s='cp -p'
491  fi
492else
493  as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499  as_mkdir_p='mkdir -p "$as_dir"'
500else
501  test -d ./-p && rmdir ./-p
502  as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506  as_test_x='test -x'
507else
508  if ls -dL / >/dev/null 2>&1; then
509    as_ls_L_option=L
510  else
511    as_ls_L_option=
512  fi
513  as_test_x='
514    eval sh -c '\''
515      if test -d "$1"; then
516	test -d "$1/.";
517      else
518	case $1 in #(
519	-*)set "./$1";;
520	esac;
521	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522	???[sx]*):;;*)false;;esac;fi
523    '\'' sh
524  '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
558PACKAGE_TARNAME='libgomp'
559PACKAGE_VERSION='1.0'
560PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL='http://www.gnu.org/software/libgomp/'
563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
567#ifdef HAVE_SYS_TYPES_H
568# include <sys/types.h>
569#endif
570#ifdef HAVE_SYS_STAT_H
571# include <sys/stat.h>
572#endif
573#ifdef STDC_HEADERS
574# include <stdlib.h>
575# include <stddef.h>
576#else
577# ifdef HAVE_STDLIB_H
578#  include <stdlib.h>
579# endif
580#endif
581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583#  include <memory.h>
584# endif
585# include <string.h>
586#endif
587#ifdef HAVE_STRINGS_H
588# include <strings.h>
589#endif
590#ifdef HAVE_INTTYPES_H
591# include <inttypes.h>
592#endif
593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
597# include <unistd.h>
598#endif"
599
600ac_header_list=
601ac_func_list=
602ac_subst_vars='am__EXEEXT_FALSE
603am__EXEEXT_TRUE
604LTLIBOBJS
605LIBOBJS
606get_gcc_base_ver
607OMP_NEST_LOCK_25_KIND
608OMP_LOCK_25_KIND
609OMP_NEST_LOCK_25_ALIGN
610OMP_NEST_LOCK_25_SIZE
611OMP_LOCK_25_ALIGN
612OMP_LOCK_25_SIZE
613OMP_NEST_LOCK_KIND
614OMP_LOCK_KIND
615OMP_NEST_LOCK_ALIGN
616OMP_NEST_LOCK_SIZE
617OMP_LOCK_ALIGN
618OMP_LOCK_SIZE
619USE_FORTRAN_FALSE
620USE_FORTRAN_TRUE
621link_gomp
622XLDFLAGS
623XCFLAGS
624config_path
625LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
626LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
627LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
628LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
629LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
630LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
631OPT_LDFLAGS
632SECTION_LDFLAGS
633PLUGIN_HSA_FALSE
634PLUGIN_HSA_TRUE
635PLUGIN_NVPTX_FALSE
636PLUGIN_NVPTX_TRUE
637offload_additional_lib_paths
638offload_additional_options
639PLUGIN_HSA_LIBS
640PLUGIN_HSA_LDFLAGS
641PLUGIN_HSA_CPPFLAGS
642PLUGIN_HSA
643HSA_RUNTIME_LIB
644HSA_RUNTIME_INCLUDE
645PLUGIN_NVPTX_LIBS
646PLUGIN_NVPTX_LDFLAGS
647PLUGIN_NVPTX_CPPFLAGS
648PLUGIN_NVPTX
649CUDA_DRIVER_LIB
650CUDA_DRIVER_INCLUDE
651offload_targets
652libtool_VERSION
653ac_ct_FC
654FCFLAGS
655FC
656MAINT
657MAINTAINER_MODE_FALSE
658MAINTAINER_MODE_TRUE
659enable_static
660enable_shared
661lt_host_flags
662CPP
663OTOOL64
664OTOOL
665LIPO
666NMEDIT
667DSYMUTIL
668OBJDUMP
669LN_S
670NM
671ac_ct_DUMPBIN
672DUMPBIN
673LD
674FGREP
675EGREP
676GREP
677SED
678LIBTOOL
679BUILD_INFO_FALSE
680BUILD_INFO_TRUE
681PERL
682RANLIB
683AR
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686CCDEPMODE
687am__nodep
688AMDEPBACKSLASH
689AMDEP_FALSE
690AMDEP_TRUE
691am__quote
692am__include
693DEPDIR
694OBJEXT
695EXEEXT
696ac_ct_CC
697CPPFLAGS
698LDFLAGS
699CFLAGS
700CC
701toolexeclibdir
702toolexecdir
703multi_basedir
704am__untar
705am__tar
706AMTAR
707am__leading_dot
708SET_MAKE
709AWK
710mkdir_p
711MKDIR_P
712INSTALL_STRIP_PROGRAM
713STRIP
714install_sh
715MAKEINFO
716AUTOHEADER
717AUTOMAKE
718AUTOCONF
719ACLOCAL
720VERSION
721PACKAGE
722CYGPATH_W
723am__isrc
724INSTALL_DATA
725INSTALL_SCRIPT
726INSTALL_PROGRAM
727target_os
728target_vendor
729target_cpu
730target
731host_os
732host_vendor
733host_cpu
734host
735build_os
736build_vendor
737build_cpu
738build
739GENINSRC_FALSE
740GENINSRC_TRUE
741target_alias
742host_alias
743build_alias
744LIBS
745ECHO_T
746ECHO_N
747ECHO_C
748DEFS
749mandir
750localedir
751libdir
752psdir
753pdfdir
754dvidir
755htmldir
756infodir
757docdir
758oldincludedir
759includedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL'
779ac_subst_files=''
780ac_user_opts='
781enable_option_checking
782enable_version_specific_runtime_libs
783enable_generated_files_in_srcdir
784enable_multilib
785enable_dependency_tracking
786enable_shared
787enable_static
788with_pic
789enable_fast_install
790with_gnu_ld
791enable_libtool_lock
792enable_maintainer_mode
793with_cuda_driver
794with_cuda_driver_include
795with_cuda_driver_lib
796with_hsa_runtime
797with_hsa_runtime_include
798with_hsa_runtime_lib
799enable_linux_futex
800enable_tls
801enable_symvers
802enable_cet
803with_gcc_major_version_only
804'
805      ac_precious_vars='build_alias
806host_alias
807target_alias
808CPP
809CPPFLAGS
810FC
811FCFLAGS
812LDFLAGS
813LIBS'
814
815
816# Initialize some variables set by options.
817ac_init_help=
818ac_init_version=false
819ac_unrecognized_opts=
820ac_unrecognized_sep=
821# The variables have the same names as the options, with
822# dashes changed to underlines.
823cache_file=/dev/null
824exec_prefix=NONE
825no_create=
826no_recursion=
827prefix=NONE
828program_prefix=NONE
829program_suffix=NONE
830program_transform_name=s,x,x,
831silent=
832site=
833srcdir=
834verbose=
835x_includes=NONE
836x_libraries=NONE
837
838# Installation directory options.
839# These are left unexpanded so users can "make install exec_prefix=/foo"
840# and all the variables that are supposed to be based on exec_prefix
841# by default will actually change.
842# Use braces instead of parens because sh, perl, etc. also accept them.
843# (The list follows the same order as the GNU Coding Standards.)
844bindir='${exec_prefix}/bin'
845sbindir='${exec_prefix}/sbin'
846libexecdir='${exec_prefix}/libexec'
847datarootdir='${prefix}/share'
848datadir='${datarootdir}'
849sysconfdir='${prefix}/etc'
850sharedstatedir='${prefix}/com'
851localstatedir='${prefix}/var'
852includedir='${prefix}/include'
853oldincludedir='/usr/include'
854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855infodir='${datarootdir}/info'
856htmldir='${docdir}'
857dvidir='${docdir}'
858pdfdir='${docdir}'
859psdir='${docdir}'
860libdir='${exec_prefix}/lib'
861localedir='${datarootdir}/locale'
862mandir='${datarootdir}/man'
863
864ac_prev=
865ac_dashdash=
866for ac_option
867do
868  # If the previous option needs an argument, assign it.
869  if test -n "$ac_prev"; then
870    eval $ac_prev=\$ac_option
871    ac_prev=
872    continue
873  fi
874
875  case $ac_option in
876  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877  *)	ac_optarg=yes ;;
878  esac
879
880  # Accept the important Cygnus configure options, so we can diagnose typos.
881
882  case $ac_dashdash$ac_option in
883  --)
884    ac_dashdash=yes ;;
885
886  -bindir | --bindir | --bindi | --bind | --bin | --bi)
887    ac_prev=bindir ;;
888  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889    bindir=$ac_optarg ;;
890
891  -build | --build | --buil | --bui | --bu)
892    ac_prev=build_alias ;;
893  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894    build_alias=$ac_optarg ;;
895
896  -cache-file | --cache-file | --cache-fil | --cache-fi \
897  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898    ac_prev=cache_file ;;
899  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901    cache_file=$ac_optarg ;;
902
903  --config-cache | -C)
904    cache_file=config.cache ;;
905
906  -datadir | --datadir | --datadi | --datad)
907    ac_prev=datadir ;;
908  -datadir=* | --datadir=* | --datadi=* | --datad=*)
909    datadir=$ac_optarg ;;
910
911  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912  | --dataroo | --dataro | --datar)
913    ac_prev=datarootdir ;;
914  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916    datarootdir=$ac_optarg ;;
917
918  -disable-* | --disable-*)
919    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920    # Reject names that are not valid shell variable names.
921    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922      as_fn_error "invalid feature name: $ac_useropt"
923    ac_useropt_orig=$ac_useropt
924    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925    case $ac_user_opts in
926      *"
927"enable_$ac_useropt"
928"*) ;;
929      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930	 ac_unrecognized_sep=', ';;
931    esac
932    eval enable_$ac_useropt=no ;;
933
934  -docdir | --docdir | --docdi | --doc | --do)
935    ac_prev=docdir ;;
936  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937    docdir=$ac_optarg ;;
938
939  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940    ac_prev=dvidir ;;
941  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942    dvidir=$ac_optarg ;;
943
944  -enable-* | --enable-*)
945    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946    # Reject names that are not valid shell variable names.
947    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948      as_fn_error "invalid feature name: $ac_useropt"
949    ac_useropt_orig=$ac_useropt
950    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951    case $ac_user_opts in
952      *"
953"enable_$ac_useropt"
954"*) ;;
955      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956	 ac_unrecognized_sep=', ';;
957    esac
958    eval enable_$ac_useropt=\$ac_optarg ;;
959
960  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962  | --exec | --exe | --ex)
963    ac_prev=exec_prefix ;;
964  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966  | --exec=* | --exe=* | --ex=*)
967    exec_prefix=$ac_optarg ;;
968
969  -gas | --gas | --ga | --g)
970    # Obsolete; use --with-gas.
971    with_gas=yes ;;
972
973  -help | --help | --hel | --he | -h)
974    ac_init_help=long ;;
975  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976    ac_init_help=recursive ;;
977  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978    ac_init_help=short ;;
979
980  -host | --host | --hos | --ho)
981    ac_prev=host_alias ;;
982  -host=* | --host=* | --hos=* | --ho=*)
983    host_alias=$ac_optarg ;;
984
985  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986    ac_prev=htmldir ;;
987  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988  | --ht=*)
989    htmldir=$ac_optarg ;;
990
991  -includedir | --includedir | --includedi | --included | --include \
992  | --includ | --inclu | --incl | --inc)
993    ac_prev=includedir ;;
994  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995  | --includ=* | --inclu=* | --incl=* | --inc=*)
996    includedir=$ac_optarg ;;
997
998  -infodir | --infodir | --infodi | --infod | --info | --inf)
999    ac_prev=infodir ;;
1000  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001    infodir=$ac_optarg ;;
1002
1003  -libdir | --libdir | --libdi | --libd)
1004    ac_prev=libdir ;;
1005  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006    libdir=$ac_optarg ;;
1007
1008  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009  | --libexe | --libex | --libe)
1010    ac_prev=libexecdir ;;
1011  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012  | --libexe=* | --libex=* | --libe=*)
1013    libexecdir=$ac_optarg ;;
1014
1015  -localedir | --localedir | --localedi | --localed | --locale)
1016    ac_prev=localedir ;;
1017  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018    localedir=$ac_optarg ;;
1019
1020  -localstatedir | --localstatedir | --localstatedi | --localstated \
1021  | --localstate | --localstat | --localsta | --localst | --locals)
1022    ac_prev=localstatedir ;;
1023  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025    localstatedir=$ac_optarg ;;
1026
1027  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028    ac_prev=mandir ;;
1029  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030    mandir=$ac_optarg ;;
1031
1032  -nfp | --nfp | --nf)
1033    # Obsolete; use --without-fp.
1034    with_fp=no ;;
1035
1036  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037  | --no-cr | --no-c | -n)
1038    no_create=yes ;;
1039
1040  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042    no_recursion=yes ;;
1043
1044  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046  | --oldin | --oldi | --old | --ol | --o)
1047    ac_prev=oldincludedir ;;
1048  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051    oldincludedir=$ac_optarg ;;
1052
1053  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054    ac_prev=prefix ;;
1055  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056    prefix=$ac_optarg ;;
1057
1058  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059  | --program-pre | --program-pr | --program-p)
1060    ac_prev=program_prefix ;;
1061  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063    program_prefix=$ac_optarg ;;
1064
1065  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066  | --program-suf | --program-su | --program-s)
1067    ac_prev=program_suffix ;;
1068  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070    program_suffix=$ac_optarg ;;
1071
1072  -program-transform-name | --program-transform-name \
1073  | --program-transform-nam | --program-transform-na \
1074  | --program-transform-n | --program-transform- \
1075  | --program-transform | --program-transfor \
1076  | --program-transfo | --program-transf \
1077  | --program-trans | --program-tran \
1078  | --progr-tra | --program-tr | --program-t)
1079    ac_prev=program_transform_name ;;
1080  -program-transform-name=* | --program-transform-name=* \
1081  | --program-transform-nam=* | --program-transform-na=* \
1082  | --program-transform-n=* | --program-transform-=* \
1083  | --program-transform=* | --program-transfor=* \
1084  | --program-transfo=* | --program-transf=* \
1085  | --program-trans=* | --program-tran=* \
1086  | --progr-tra=* | --program-tr=* | --program-t=*)
1087    program_transform_name=$ac_optarg ;;
1088
1089  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090    ac_prev=pdfdir ;;
1091  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092    pdfdir=$ac_optarg ;;
1093
1094  -psdir | --psdir | --psdi | --psd | --ps)
1095    ac_prev=psdir ;;
1096  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097    psdir=$ac_optarg ;;
1098
1099  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100  | -silent | --silent | --silen | --sile | --sil)
1101    silent=yes ;;
1102
1103  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104    ac_prev=sbindir ;;
1105  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106  | --sbi=* | --sb=*)
1107    sbindir=$ac_optarg ;;
1108
1109  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111  | --sharedst | --shareds | --shared | --share | --shar \
1112  | --sha | --sh)
1113    ac_prev=sharedstatedir ;;
1114  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117  | --sha=* | --sh=*)
1118    sharedstatedir=$ac_optarg ;;
1119
1120  -site | --site | --sit)
1121    ac_prev=site ;;
1122  -site=* | --site=* | --sit=*)
1123    site=$ac_optarg ;;
1124
1125  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126    ac_prev=srcdir ;;
1127  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128    srcdir=$ac_optarg ;;
1129
1130  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131  | --syscon | --sysco | --sysc | --sys | --sy)
1132    ac_prev=sysconfdir ;;
1133  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135    sysconfdir=$ac_optarg ;;
1136
1137  -target | --target | --targe | --targ | --tar | --ta | --t)
1138    ac_prev=target_alias ;;
1139  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140    target_alias=$ac_optarg ;;
1141
1142  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143    verbose=yes ;;
1144
1145  -version | --version | --versio | --versi | --vers | -V)
1146    ac_init_version=: ;;
1147
1148  -with-* | --with-*)
1149    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150    # Reject names that are not valid shell variable names.
1151    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152      as_fn_error "invalid package name: $ac_useropt"
1153    ac_useropt_orig=$ac_useropt
1154    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155    case $ac_user_opts in
1156      *"
1157"with_$ac_useropt"
1158"*) ;;
1159      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160	 ac_unrecognized_sep=', ';;
1161    esac
1162    eval with_$ac_useropt=\$ac_optarg ;;
1163
1164  -without-* | --without-*)
1165    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166    # Reject names that are not valid shell variable names.
1167    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168      as_fn_error "invalid package name: $ac_useropt"
1169    ac_useropt_orig=$ac_useropt
1170    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171    case $ac_user_opts in
1172      *"
1173"with_$ac_useropt"
1174"*) ;;
1175      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176	 ac_unrecognized_sep=', ';;
1177    esac
1178    eval with_$ac_useropt=no ;;
1179
1180  --x)
1181    # Obsolete; use --with-x.
1182    with_x=yes ;;
1183
1184  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185  | --x-incl | --x-inc | --x-in | --x-i)
1186    ac_prev=x_includes ;;
1187  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189    x_includes=$ac_optarg ;;
1190
1191  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193    ac_prev=x_libraries ;;
1194  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196    x_libraries=$ac_optarg ;;
1197
1198  -*) as_fn_error "unrecognized option: \`$ac_option'
1199Try \`$0 --help' for more information."
1200    ;;
1201
1202  *=*)
1203    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204    # Reject names that are not valid shell variable names.
1205    case $ac_envvar in #(
1206      '' | [0-9]* | *[!_$as_cr_alnum]* )
1207      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1208    esac
1209    eval $ac_envvar=\$ac_optarg
1210    export $ac_envvar ;;
1211
1212  *)
1213    # FIXME: should be removed in autoconf 3.0.
1214    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1218    ;;
1219
1220  esac
1221done
1222
1223if test -n "$ac_prev"; then
1224  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225  as_fn_error "missing argument to $ac_option"
1226fi
1227
1228if test -n "$ac_unrecognized_opts"; then
1229  case $enable_option_checking in
1230    no) ;;
1231    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1232    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233  esac
1234fi
1235
1236# Check all directory arguments for consistency.
1237for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238		datadir sysconfdir sharedstatedir localstatedir includedir \
1239		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240		libdir localedir mandir
1241do
1242  eval ac_val=\$$ac_var
1243  # Remove trailing slashes.
1244  case $ac_val in
1245    */ )
1246      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247      eval $ac_var=\$ac_val;;
1248  esac
1249  # Be sure to have absolute directory names.
1250  case $ac_val in
1251    [\\/$]* | ?:[\\/]* )  continue;;
1252    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253  esac
1254  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1255done
1256
1257# There might be people who depend on the old broken behavior: `$host'
1258# used to hold the argument of --host etc.
1259# FIXME: To remove some day.
1260build=$build_alias
1261host=$host_alias
1262target=$target_alias
1263
1264# FIXME: To remove some day.
1265if test "x$host_alias" != x; then
1266  if test "x$build_alias" = x; then
1267    cross_compiling=maybe
1268    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1269    If a cross compiler is detected then cross compile mode will be used." >&2
1270  elif test "x$build_alias" != "x$host_alias"; then
1271    cross_compiling=yes
1272  fi
1273fi
1274
1275ac_tool_prefix=
1276test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278test "$silent" = yes && exec 6>/dev/null
1279
1280
1281ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282ac_ls_di=`ls -di .` &&
1283ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284  as_fn_error "working directory cannot be determined"
1285test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286  as_fn_error "pwd does not report name of working directory"
1287
1288
1289# Find the source files, if location was not specified.
1290if test -z "$srcdir"; then
1291  ac_srcdir_defaulted=yes
1292  # Try the directory containing this script, then the parent directory.
1293  ac_confdir=`$as_dirname -- "$as_myself" ||
1294$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295	 X"$as_myself" : 'X\(//\)[^/]' \| \
1296	 X"$as_myself" : 'X\(//\)$' \| \
1297	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298$as_echo X"$as_myself" |
1299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\/\)[^/].*/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\/\)$/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\).*/{
1312	    s//\1/
1313	    q
1314	  }
1315	  s/.*/./; q'`
1316  srcdir=$ac_confdir
1317  if test ! -r "$srcdir/$ac_unique_file"; then
1318    srcdir=..
1319  fi
1320else
1321  ac_srcdir_defaulted=no
1322fi
1323if test ! -r "$srcdir/$ac_unique_file"; then
1324  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1326fi
1327ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328ac_abs_confdir=`(
1329	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1330	pwd)`
1331# When building in place, set srcdir=.
1332if test "$ac_abs_confdir" = "$ac_pwd"; then
1333  srcdir=.
1334fi
1335# Remove unnecessary trailing slashes from srcdir.
1336# Double slashes in file names in object file debugging info
1337# mess up M-x gdb in Emacs.
1338case $srcdir in
1339*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340esac
1341for ac_var in $ac_precious_vars; do
1342  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343  eval ac_env_${ac_var}_value=\$${ac_var}
1344  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346done
1347
1348#
1349# Report the --help message.
1350#
1351if test "$ac_init_help" = "long"; then
1352  # Omit some internal or obsolete options to make the list less imposing.
1353  # This message is too long to be a string in the A/UX 3.1 sh.
1354  cat <<_ACEOF
1355\`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1356
1357Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360VAR=VALUE.  See below for descriptions of some of the useful variables.
1361
1362Defaults for the options are specified in brackets.
1363
1364Configuration:
1365  -h, --help              display this help and exit
1366      --help=short        display options specific to this package
1367      --help=recursive    display the short help of all the included packages
1368  -V, --version           display version information and exit
1369  -q, --quiet, --silent   do not print \`checking...' messages
1370      --cache-file=FILE   cache test results in FILE [disabled]
1371  -C, --config-cache      alias for \`--cache-file=config.cache'
1372  -n, --no-create         do not create output files
1373      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1374
1375Installation directories:
1376  --prefix=PREFIX         install architecture-independent files in PREFIX
1377                          [$ac_default_prefix]
1378  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1379                          [PREFIX]
1380
1381By default, \`make install' will install all the files in
1382\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1383an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384for instance \`--prefix=\$HOME'.
1385
1386For better control, use the options below.
1387
1388Fine tuning of the installation directories:
1389  --bindir=DIR            user executables [EPREFIX/bin]
1390  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1391  --libexecdir=DIR        program executables [EPREFIX/libexec]
1392  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1393  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1394  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1395  --libdir=DIR            object code libraries [EPREFIX/lib]
1396  --includedir=DIR        C header files [PREFIX/include]
1397  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1398  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1399  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1400  --infodir=DIR           info documentation [DATAROOTDIR/info]
1401  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1402  --mandir=DIR            man documentation [DATAROOTDIR/man]
1403  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgomp]
1404  --htmldir=DIR           html documentation [DOCDIR]
1405  --dvidir=DIR            dvi documentation [DOCDIR]
1406  --pdfdir=DIR            pdf documentation [DOCDIR]
1407  --psdir=DIR             ps documentation [DOCDIR]
1408_ACEOF
1409
1410  cat <<\_ACEOF
1411
1412Program names:
1413  --program-prefix=PREFIX            prepend PREFIX to installed program names
1414  --program-suffix=SUFFIX            append SUFFIX to installed program names
1415  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1416
1417System types:
1418  --build=BUILD     configure for building on BUILD [guessed]
1419  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1420  --target=TARGET   configure for building compilers for TARGET [HOST]
1421_ACEOF
1422fi
1423
1424if test -n "$ac_init_help"; then
1425  case $ac_init_help in
1426     short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1427   esac
1428  cat <<\_ACEOF
1429
1430Optional Features:
1431  --disable-option-checking  ignore unrecognized --enable/--with options
1432  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1433  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1434  --enable-version-specific-runtime-libs
1435                          Specify that runtime libraries should be installed
1436                          in a compiler-specific directory [default=no]
1437  --enable-generated-files-in-srcdir
1438                          put copies of generated files in source dir intended
1439                          for creating source tarballs for users without
1440                          texinfo bison or flex. [default=no]
1441  --enable-multilib       build many library versions (default)
1442  --disable-dependency-tracking  speeds up one-time build
1443  --enable-dependency-tracking   do not reject slow dependency extractors
1444  --enable-shared[=PKGS]  build shared libraries [default=yes]
1445  --enable-static[=PKGS]  build static libraries [default=yes]
1446  --enable-fast-install[=PKGS]
1447                          optimize for fast installation [default=yes]
1448  --disable-libtool-lock  avoid locking (might break parallel builds)
1449  --enable-maintainer-mode  enable make rules and dependencies not useful
1450			  (and sometimes confusing) to the casual installer
1451  --enable-linux-futex    use the Linux futex system call [default=default]
1452  --enable-tls            Use thread-local storage [default=yes]
1453  --enable-symvers=STYLE  enables symbol versioning of the shared library
1454                          [default=yes]
1455  --enable-cet            enable Intel CET in target libraries [default=no]
1456
1457Optional Packages:
1458  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460  --with-pic              try to use only PIC/non-PIC objects [default=use
1461                          both]
1462  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1463  --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1464                          package. Equivalent to
1465                          --with-cuda-driver-include=PATH/include plus
1466                          --with-cuda-driver-lib=PATH/lib
1467  --with-cuda-driver-include=PATH
1468                          specify directory for installed CUDA driver include
1469                          files
1470  --with-cuda-driver-lib=PATH
1471                          specify directory for the installed CUDA driver
1472                          library
1473  --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1474                          package. Equivalent to
1475                          --with-hsa-runtime-include=PATH/include plus
1476                          --with-hsa-runtime-lib=PATH/lib
1477  --with-hsa-runtime-include=PATH
1478                          specify directory for installed HSA run-time include
1479                          files
1480  --with-hsa-runtime-lib=PATH
1481                          specify directory for the installed HSA run-time
1482                          library
1483  --with-gcc-major-version-only
1484                          use only GCC major number in filesystem paths
1485
1486Some influential environment variables:
1487  CC          C compiler command
1488  CFLAGS      C compiler flags
1489  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490              nonstandard directory <lib dir>
1491  LIBS        libraries to pass to the linker, e.g. -l<library>
1492  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493              you have headers in a nonstandard directory <include dir>
1494  CPP         C preprocessor
1495  FC          Fortran compiler command
1496  FCFLAGS     Fortran compiler flags
1497
1498Use these variables to override the choices made by `configure' or to help
1499it to find libraries and programs with nonstandard names/locations.
1500
1501Report bugs to the package provider.
1502GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1503General help using GNU software: <http://www.gnu.org/gethelp/>.
1504_ACEOF
1505ac_status=$?
1506fi
1507
1508if test "$ac_init_help" = "recursive"; then
1509  # If there are subdirs, report their specific --help.
1510  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511    test -d "$ac_dir" ||
1512      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513      continue
1514    ac_builddir=.
1515
1516case "$ac_dir" in
1517.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518*)
1519  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1520  # A ".." for each directory in $ac_dir_suffix.
1521  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522  case $ac_top_builddir_sub in
1523  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525  esac ;;
1526esac
1527ac_abs_top_builddir=$ac_pwd
1528ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529# for backward compatibility:
1530ac_top_builddir=$ac_top_build_prefix
1531
1532case $srcdir in
1533  .)  # We are building in place.
1534    ac_srcdir=.
1535    ac_top_srcdir=$ac_top_builddir_sub
1536    ac_abs_top_srcdir=$ac_pwd ;;
1537  [\\/]* | ?:[\\/]* )  # Absolute name.
1538    ac_srcdir=$srcdir$ac_dir_suffix;
1539    ac_top_srcdir=$srcdir
1540    ac_abs_top_srcdir=$srcdir ;;
1541  *) # Relative name.
1542    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543    ac_top_srcdir=$ac_top_build_prefix$srcdir
1544    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545esac
1546ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548    cd "$ac_dir" || { ac_status=$?; continue; }
1549    # Check for guested configure.
1550    if test -f "$ac_srcdir/configure.gnu"; then
1551      echo &&
1552      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553    elif test -f "$ac_srcdir/configure"; then
1554      echo &&
1555      $SHELL "$ac_srcdir/configure" --help=recursive
1556    else
1557      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558    fi || ac_status=$?
1559    cd "$ac_pwd" || { ac_status=$?; break; }
1560  done
1561fi
1562
1563test -n "$ac_init_help" && exit $ac_status
1564if $ac_init_version; then
1565  cat <<\_ACEOF
1566GNU Offloading and Multi Processing Runtime Library configure 1.0
1567generated by GNU Autoconf 2.64
1568
1569Copyright (C) 2009 Free Software Foundation, Inc.
1570This configure script is free software; the Free Software Foundation
1571gives unlimited permission to copy, distribute and modify it.
1572_ACEOF
1573  exit
1574fi
1575
1576## ------------------------ ##
1577## Autoconf initialization. ##
1578## ------------------------ ##
1579
1580# ac_fn_c_try_compile LINENO
1581# --------------------------
1582# Try to compile conftest.$ac_ext, and return whether this succeeded.
1583ac_fn_c_try_compile ()
1584{
1585  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586  rm -f conftest.$ac_objext
1587  if { { ac_try="$ac_compile"
1588case "(($ac_try" in
1589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590  *) ac_try_echo=$ac_try;;
1591esac
1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593$as_echo "$ac_try_echo"; } >&5
1594  (eval "$ac_compile") 2>conftest.err
1595  ac_status=$?
1596  if test -s conftest.err; then
1597    grep -v '^ *+' conftest.err >conftest.er1
1598    cat conftest.er1 >&5
1599    mv -f conftest.er1 conftest.err
1600  fi
1601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602  test $ac_status = 0; } && {
1603	 test -z "$ac_c_werror_flag" ||
1604	 test ! -s conftest.err
1605       } && test -s conftest.$ac_objext; then :
1606  ac_retval=0
1607else
1608  $as_echo "$as_me: failed program was:" >&5
1609sed 's/^/| /' conftest.$ac_ext >&5
1610
1611	ac_retval=1
1612fi
1613  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614  return $ac_retval
1615
1616} # ac_fn_c_try_compile
1617
1618# ac_fn_c_try_link LINENO
1619# -----------------------
1620# Try to link conftest.$ac_ext, and return whether this succeeded.
1621ac_fn_c_try_link ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  rm -f conftest.$ac_objext conftest$ac_exeext
1625  if { { ac_try="$ac_link"
1626case "(($ac_try" in
1627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628  *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632  (eval "$ac_link") 2>conftest.err
1633  ac_status=$?
1634  if test -s conftest.err; then
1635    grep -v '^ *+' conftest.err >conftest.er1
1636    cat conftest.er1 >&5
1637    mv -f conftest.er1 conftest.err
1638  fi
1639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640  test $ac_status = 0; } && {
1641	 test -z "$ac_c_werror_flag" ||
1642	 test ! -s conftest.err
1643       } && test -s conftest$ac_exeext && {
1644	 test "$cross_compiling" = yes ||
1645	 $as_test_x conftest$ac_exeext
1646       }; then :
1647  ac_retval=0
1648else
1649  $as_echo "$as_me: failed program was:" >&5
1650sed 's/^/| /' conftest.$ac_ext >&5
1651
1652	ac_retval=1
1653fi
1654  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1655  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1656  # interfere with the next link command; also delete a directory that is
1657  # left behind by Apple's compiler.  We do this before executing the actions.
1658  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1659  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660  return $ac_retval
1661
1662} # ac_fn_c_try_link
1663
1664# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665# -------------------------------------------------------
1666# Tests whether HEADER exists and can be compiled using the include files in
1667# INCLUDES, setting the cache variable VAR accordingly.
1668ac_fn_c_check_header_compile ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672$as_echo_n "checking for $2... " >&6; }
1673if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1674  $as_echo_n "(cached) " >&6
1675else
1676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h.  */
1678$4
1679#include <$2>
1680_ACEOF
1681if ac_fn_c_try_compile "$LINENO"; then :
1682  eval "$3=yes"
1683else
1684  eval "$3=no"
1685fi
1686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687fi
1688eval ac_res=\$$3
1689	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690$as_echo "$ac_res" >&6; }
1691  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692
1693} # ac_fn_c_check_header_compile
1694
1695# ac_fn_c_try_cpp LINENO
1696# ----------------------
1697# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_cpp ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  if { { ac_try="$ac_cpp conftest.$ac_ext"
1702case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709  ac_status=$?
1710  if test -s conftest.err; then
1711    grep -v '^ *+' conftest.err >conftest.er1
1712    cat conftest.er1 >&5
1713    mv -f conftest.er1 conftest.err
1714  fi
1715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716  test $ac_status = 0; } >/dev/null && {
1717	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1718	 test ! -s conftest.err
1719       }; then :
1720  ac_retval=0
1721else
1722  $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725    ac_retval=1
1726fi
1727  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728  return $ac_retval
1729
1730} # ac_fn_c_try_cpp
1731
1732# ac_fn_c_try_run LINENO
1733# ----------------------
1734# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1735# that executables *can* be run.
1736ac_fn_c_try_run ()
1737{
1738  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739  if { { ac_try="$ac_link"
1740case "(($ac_try" in
1741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742  *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746  (eval "$ac_link") 2>&5
1747  ac_status=$?
1748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1750  { { case "(($ac_try" in
1751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752  *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
1756  (eval "$ac_try") 2>&5
1757  ac_status=$?
1758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759  test $ac_status = 0; }; }; then :
1760  ac_retval=0
1761else
1762  $as_echo "$as_me: program exited with status $ac_status" >&5
1763       $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766       ac_retval=$ac_status
1767fi
1768  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770  return $ac_retval
1771
1772} # ac_fn_c_try_run
1773
1774# ac_fn_c_check_func LINENO FUNC VAR
1775# ----------------------------------
1776# Tests whether FUNC exists, setting the cache variable VAR accordingly
1777ac_fn_c_check_func ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781$as_echo_n "checking for $2... " >&6; }
1782if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1783  $as_echo_n "(cached) " >&6
1784else
1785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h.  */
1787/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1788   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1789#define $2 innocuous_$2
1790
1791/* System header to define __stub macros and hopefully few prototypes,
1792    which can conflict with char $2 (); below.
1793    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1794    <limits.h> exists even on freestanding compilers.  */
1795
1796#ifdef __STDC__
1797# include <limits.h>
1798#else
1799# include <assert.h>
1800#endif
1801
1802#undef $2
1803
1804/* Override any GCC internal prototype to avoid an error.
1805   Use char because int might match the return type of a GCC
1806   builtin and then its argument prototype would still apply.  */
1807#ifdef __cplusplus
1808extern "C"
1809#endif
1810char $2 ();
1811/* The GNU C library defines this for functions which it implements
1812    to always fail with ENOSYS.  Some functions are actually named
1813    something starting with __ and the normal name is an alias.  */
1814#if defined __stub_$2 || defined __stub___$2
1815choke me
1816#endif
1817
1818int
1819main ()
1820{
1821return $2 ();
1822  ;
1823  return 0;
1824}
1825_ACEOF
1826if ac_fn_c_try_link "$LINENO"; then :
1827  eval "$3=yes"
1828else
1829  eval "$3=no"
1830fi
1831rm -f core conftest.err conftest.$ac_objext \
1832    conftest$ac_exeext conftest.$ac_ext
1833fi
1834eval ac_res=\$$3
1835	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836$as_echo "$ac_res" >&6; }
1837  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838
1839} # ac_fn_c_check_func
1840
1841# ac_fn_fc_try_compile LINENO
1842# ---------------------------
1843# Try to compile conftest.$ac_ext, and return whether this succeeded.
1844ac_fn_fc_try_compile ()
1845{
1846  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847  rm -f conftest.$ac_objext
1848  if { { ac_try="$ac_compile"
1849case "(($ac_try" in
1850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851  *) ac_try_echo=$ac_try;;
1852esac
1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854$as_echo "$ac_try_echo"; } >&5
1855  (eval "$ac_compile") 2>conftest.err
1856  ac_status=$?
1857  if test -s conftest.err; then
1858    grep -v '^ *+' conftest.err >conftest.er1
1859    cat conftest.er1 >&5
1860    mv -f conftest.er1 conftest.err
1861  fi
1862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863  test $ac_status = 0; } && {
1864	 test -z "$ac_fc_werror_flag" ||
1865	 test ! -s conftest.err
1866       } && test -s conftest.$ac_objext; then :
1867  ac_retval=0
1868else
1869  $as_echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872	ac_retval=1
1873fi
1874  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875  return $ac_retval
1876
1877} # ac_fn_fc_try_compile
1878
1879# ac_fn_fc_try_link LINENO
1880# ------------------------
1881# Try to link conftest.$ac_ext, and return whether this succeeded.
1882ac_fn_fc_try_link ()
1883{
1884  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885  rm -f conftest.$ac_objext conftest$ac_exeext
1886  if { { ac_try="$ac_link"
1887case "(($ac_try" in
1888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889  *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893  (eval "$ac_link") 2>conftest.err
1894  ac_status=$?
1895  if test -s conftest.err; then
1896    grep -v '^ *+' conftest.err >conftest.er1
1897    cat conftest.er1 >&5
1898    mv -f conftest.er1 conftest.err
1899  fi
1900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901  test $ac_status = 0; } && {
1902	 test -z "$ac_fc_werror_flag" ||
1903	 test ! -s conftest.err
1904       } && test -s conftest$ac_exeext && {
1905	 test "$cross_compiling" = yes ||
1906	 $as_test_x conftest$ac_exeext
1907       }; then :
1908  ac_retval=0
1909else
1910  $as_echo "$as_me: failed program was:" >&5
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
1913	ac_retval=1
1914fi
1915  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917  # interfere with the next link command; also delete a directory that is
1918  # left behind by Apple's compiler.  We do this before executing the actions.
1919  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921  return $ac_retval
1922
1923} # ac_fn_fc_try_link
1924
1925# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1926# -------------------------------------------------------
1927# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1928# the include files in INCLUDES and setting the cache variable VAR
1929# accordingly.
1930ac_fn_c_check_header_mongrel ()
1931{
1932  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935$as_echo_n "checking for $2... " >&6; }
1936if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937  $as_echo_n "(cached) " >&6
1938fi
1939eval ac_res=\$$3
1940	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941$as_echo "$ac_res" >&6; }
1942else
1943  # Is the header compilable?
1944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1945$as_echo_n "checking $2 usability... " >&6; }
1946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h.  */
1948$4
1949#include <$2>
1950_ACEOF
1951if ac_fn_c_try_compile "$LINENO"; then :
1952  ac_header_compiler=yes
1953else
1954  ac_header_compiler=no
1955fi
1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1958$as_echo "$ac_header_compiler" >&6; }
1959
1960# Is the header present?
1961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1962$as_echo_n "checking $2 presence... " >&6; }
1963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h.  */
1965#include <$2>
1966_ACEOF
1967if ac_fn_c_try_cpp "$LINENO"; then :
1968  ac_header_preproc=yes
1969else
1970  ac_header_preproc=no
1971fi
1972rm -f conftest.err conftest.$ac_ext
1973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1974$as_echo "$ac_header_preproc" >&6; }
1975
1976# So?  What about this header?
1977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1978  yes:no: )
1979    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1980$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1981    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983    ;;
1984  no:yes:* )
1985    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1986$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1987    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1988$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1989    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1990$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1991    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1992$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1993    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1995    ;;
1996esac
1997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998$as_echo_n "checking for $2... " >&6; }
1999if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2000  $as_echo_n "(cached) " >&6
2001else
2002  eval "$3=\$ac_header_compiler"
2003fi
2004eval ac_res=\$$3
2005	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006$as_echo "$ac_res" >&6; }
2007fi
2008  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009
2010} # ac_fn_c_check_header_mongrel
2011
2012# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2013# -------------------------------------------
2014# Tests whether TYPE exists after having included INCLUDES, setting cache
2015# variable VAR accordingly.
2016ac_fn_c_check_type ()
2017{
2018  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020$as_echo_n "checking for $2... " >&6; }
2021if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2022  $as_echo_n "(cached) " >&6
2023else
2024  eval "$3=no"
2025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026/* end confdefs.h.  */
2027$4
2028int
2029main ()
2030{
2031if (sizeof ($2))
2032	 return 0;
2033  ;
2034  return 0;
2035}
2036_ACEOF
2037if ac_fn_c_try_compile "$LINENO"; then :
2038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h.  */
2040$4
2041int
2042main ()
2043{
2044if (sizeof (($2)))
2045	    return 0;
2046  ;
2047  return 0;
2048}
2049_ACEOF
2050if ac_fn_c_try_compile "$LINENO"; then :
2051
2052else
2053  eval "$3=yes"
2054fi
2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058fi
2059eval ac_res=\$$3
2060	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061$as_echo "$ac_res" >&6; }
2062  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063
2064} # ac_fn_c_check_type
2065
2066# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2067# --------------------------------------------
2068# Tries to find the compile-time value of EXPR in a program that includes
2069# INCLUDES, setting VAR accordingly. Returns whether the value could be
2070# computed
2071ac_fn_c_compute_int ()
2072{
2073  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074  if test "$cross_compiling" = yes; then
2075    # Depending upon the size, compute the lo and hi bounds.
2076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h.  */
2078$4
2079int
2080main ()
2081{
2082static int test_array [1 - 2 * !(($2) >= 0)];
2083test_array [0] = 0
2084
2085  ;
2086  return 0;
2087}
2088_ACEOF
2089if ac_fn_c_try_compile "$LINENO"; then :
2090  ac_lo=0 ac_mid=0
2091  while :; do
2092    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093/* end confdefs.h.  */
2094$4
2095int
2096main ()
2097{
2098static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099test_array [0] = 0
2100
2101  ;
2102  return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
2106  ac_hi=$ac_mid; break
2107else
2108  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2109			if test $ac_lo -le $ac_mid; then
2110			  ac_lo= ac_hi=
2111			  break
2112			fi
2113			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2114fi
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116  done
2117else
2118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h.  */
2120$4
2121int
2122main ()
2123{
2124static int test_array [1 - 2 * !(($2) < 0)];
2125test_array [0] = 0
2126
2127  ;
2128  return 0;
2129}
2130_ACEOF
2131if ac_fn_c_try_compile "$LINENO"; then :
2132  ac_hi=-1 ac_mid=-1
2133  while :; do
2134    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135/* end confdefs.h.  */
2136$4
2137int
2138main ()
2139{
2140static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2141test_array [0] = 0
2142
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_compile "$LINENO"; then :
2148  ac_lo=$ac_mid; break
2149else
2150  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2151			if test $ac_mid -le $ac_hi; then
2152			  ac_lo= ac_hi=
2153			  break
2154			fi
2155			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2156fi
2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158  done
2159else
2160  ac_lo= ac_hi=
2161fi
2162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163fi
2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165# Binary search between lo and hi bounds.
2166while test "x$ac_lo" != "x$ac_hi"; do
2167  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h.  */
2170$4
2171int
2172main ()
2173{
2174static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175test_array [0] = 0
2176
2177  ;
2178  return 0;
2179}
2180_ACEOF
2181if ac_fn_c_try_compile "$LINENO"; then :
2182  ac_hi=$ac_mid
2183else
2184  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2185fi
2186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187done
2188case $ac_lo in #((
2189?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2190'') ac_retval=1 ;;
2191esac
2192  else
2193    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h.  */
2195$4
2196static long int longval () { return $2; }
2197static unsigned long int ulongval () { return $2; }
2198#include <stdio.h>
2199#include <stdlib.h>
2200int
2201main ()
2202{
2203
2204  FILE *f = fopen ("conftest.val", "w");
2205  if (! f)
2206    return 1;
2207  if (($2) < 0)
2208    {
2209      long int i = longval ();
2210      if (i != ($2))
2211	return 1;
2212      fprintf (f, "%ld", i);
2213    }
2214  else
2215    {
2216      unsigned long int i = ulongval ();
2217      if (i != ($2))
2218	return 1;
2219      fprintf (f, "%lu", i);
2220    }
2221  /* Do not output a trailing newline, as this causes \r\n confusion
2222     on some platforms.  */
2223  return ferror (f) || fclose (f) != 0;
2224
2225  ;
2226  return 0;
2227}
2228_ACEOF
2229if ac_fn_c_try_run "$LINENO"; then :
2230  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2231else
2232  ac_retval=1
2233fi
2234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2235  conftest.$ac_objext conftest.beam conftest.$ac_ext
2236rm -f conftest.val
2237
2238  fi
2239  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240  return $ac_retval
2241
2242} # ac_fn_c_compute_int
2243cat >config.log <<_ACEOF
2244This file contains any messages produced by compilers while
2245running configure, to aid debugging if configure makes a mistake.
2246
2247It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2248generated by GNU Autoconf 2.64.  Invocation command line was
2249
2250  $ $0 $@
2251
2252_ACEOF
2253exec 5>>config.log
2254{
2255cat <<_ASUNAME
2256## --------- ##
2257## Platform. ##
2258## --------- ##
2259
2260hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2261uname -m = `(uname -m) 2>/dev/null || echo unknown`
2262uname -r = `(uname -r) 2>/dev/null || echo unknown`
2263uname -s = `(uname -s) 2>/dev/null || echo unknown`
2264uname -v = `(uname -v) 2>/dev/null || echo unknown`
2265
2266/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2267/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2268
2269/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2270/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2271/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2272/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2273/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2274/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2275/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2276
2277_ASUNAME
2278
2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282  IFS=$as_save_IFS
2283  test -z "$as_dir" && as_dir=.
2284    $as_echo "PATH: $as_dir"
2285  done
2286IFS=$as_save_IFS
2287
2288} >&5
2289
2290cat >&5 <<_ACEOF
2291
2292
2293## ----------- ##
2294## Core tests. ##
2295## ----------- ##
2296
2297_ACEOF
2298
2299
2300# Keep a trace of the command line.
2301# Strip out --no-create and --no-recursion so they do not pile up.
2302# Strip out --silent because we don't want to record it for future runs.
2303# Also quote any args containing shell meta-characters.
2304# Make two passes to allow for proper duplicate-argument suppression.
2305ac_configure_args=
2306ac_configure_args0=
2307ac_configure_args1=
2308ac_must_keep_next=false
2309for ac_pass in 1 2
2310do
2311  for ac_arg
2312  do
2313    case $ac_arg in
2314    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2315    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2316    | -silent | --silent | --silen | --sile | --sil)
2317      continue ;;
2318    *\'*)
2319      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2320    esac
2321    case $ac_pass in
2322    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2323    2)
2324      as_fn_append ac_configure_args1 " '$ac_arg'"
2325      if test $ac_must_keep_next = true; then
2326	ac_must_keep_next=false # Got value, back to normal.
2327      else
2328	case $ac_arg in
2329	  *=* | --config-cache | -C | -disable-* | --disable-* \
2330	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2331	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2332	  | -with-* | --with-* | -without-* | --without-* | --x)
2333	    case "$ac_configure_args0 " in
2334	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2335	    esac
2336	    ;;
2337	  -* ) ac_must_keep_next=true ;;
2338	esac
2339      fi
2340      as_fn_append ac_configure_args " '$ac_arg'"
2341      ;;
2342    esac
2343  done
2344done
2345{ ac_configure_args0=; unset ac_configure_args0;}
2346{ ac_configure_args1=; unset ac_configure_args1;}
2347
2348# When interrupted or exit'd, cleanup temporary files, and complete
2349# config.log.  We remove comments because anyway the quotes in there
2350# would cause problems or look ugly.
2351# WARNING: Use '\'' to represent an apostrophe within the trap.
2352# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2353trap 'exit_status=$?
2354  # Save into config.log some information that might help in debugging.
2355  {
2356    echo
2357
2358    cat <<\_ASBOX
2359## ---------------- ##
2360## Cache variables. ##
2361## ---------------- ##
2362_ASBOX
2363    echo
2364    # The following way of writing the cache mishandles newlines in values,
2365(
2366  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2367    eval ac_val=\$$ac_var
2368    case $ac_val in #(
2369    *${as_nl}*)
2370      case $ac_var in #(
2371      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2372$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2373      esac
2374      case $ac_var in #(
2375      _ | IFS | as_nl) ;; #(
2376      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2377      *) { eval $ac_var=; unset $ac_var;} ;;
2378      esac ;;
2379    esac
2380  done
2381  (set) 2>&1 |
2382    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2383    *${as_nl}ac_space=\ *)
2384      sed -n \
2385	"s/'\''/'\''\\\\'\'''\''/g;
2386	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2387      ;; #(
2388    *)
2389      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2390      ;;
2391    esac |
2392    sort
2393)
2394    echo
2395
2396    cat <<\_ASBOX
2397## ----------------- ##
2398## Output variables. ##
2399## ----------------- ##
2400_ASBOX
2401    echo
2402    for ac_var in $ac_subst_vars
2403    do
2404      eval ac_val=\$$ac_var
2405      case $ac_val in
2406      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407      esac
2408      $as_echo "$ac_var='\''$ac_val'\''"
2409    done | sort
2410    echo
2411
2412    if test -n "$ac_subst_files"; then
2413      cat <<\_ASBOX
2414## ------------------- ##
2415## File substitutions. ##
2416## ------------------- ##
2417_ASBOX
2418      echo
2419      for ac_var in $ac_subst_files
2420      do
2421	eval ac_val=\$$ac_var
2422	case $ac_val in
2423	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424	esac
2425	$as_echo "$ac_var='\''$ac_val'\''"
2426      done | sort
2427      echo
2428    fi
2429
2430    if test -s confdefs.h; then
2431      cat <<\_ASBOX
2432## ----------- ##
2433## confdefs.h. ##
2434## ----------- ##
2435_ASBOX
2436      echo
2437      cat confdefs.h
2438      echo
2439    fi
2440    test "$ac_signal" != 0 &&
2441      $as_echo "$as_me: caught signal $ac_signal"
2442    $as_echo "$as_me: exit $exit_status"
2443  } >&5
2444  rm -f core *.core core.conftest.* &&
2445    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2446    exit $exit_status
2447' 0
2448for ac_signal in 1 2 13 15; do
2449  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2450done
2451ac_signal=0
2452
2453# confdefs.h avoids OS command line length limits that DEFS can exceed.
2454rm -f -r conftest* confdefs.h
2455
2456$as_echo "/* confdefs.h */" > confdefs.h
2457
2458# Predefined preprocessor variables.
2459
2460cat >>confdefs.h <<_ACEOF
2461#define PACKAGE_NAME "$PACKAGE_NAME"
2462_ACEOF
2463
2464cat >>confdefs.h <<_ACEOF
2465#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2466_ACEOF
2467
2468cat >>confdefs.h <<_ACEOF
2469#define PACKAGE_VERSION "$PACKAGE_VERSION"
2470_ACEOF
2471
2472cat >>confdefs.h <<_ACEOF
2473#define PACKAGE_STRING "$PACKAGE_STRING"
2474_ACEOF
2475
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2478_ACEOF
2479
2480cat >>confdefs.h <<_ACEOF
2481#define PACKAGE_URL "$PACKAGE_URL"
2482_ACEOF
2483
2484
2485# Let the site file select an alternate cache file if it wants to.
2486# Prefer an explicitly selected file to automatically selected ones.
2487ac_site_file1=NONE
2488ac_site_file2=NONE
2489if test -n "$CONFIG_SITE"; then
2490  ac_site_file1=$CONFIG_SITE
2491elif test "x$prefix" != xNONE; then
2492  ac_site_file1=$prefix/share/config.site
2493  ac_site_file2=$prefix/etc/config.site
2494else
2495  ac_site_file1=$ac_default_prefix/share/config.site
2496  ac_site_file2=$ac_default_prefix/etc/config.site
2497fi
2498for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2499do
2500  test "x$ac_site_file" = xNONE && continue
2501  if test -r "$ac_site_file"; then
2502    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2503$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2504    sed 's/^/| /' "$ac_site_file" >&5
2505    . "$ac_site_file"
2506  fi
2507done
2508
2509if test -r "$cache_file"; then
2510  # Some versions of bash will fail to source /dev/null (special
2511  # files actually), so we avoid doing that.
2512  if test -f "$cache_file"; then
2513    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2514$as_echo "$as_me: loading cache $cache_file" >&6;}
2515    case $cache_file in
2516      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2517      *)                      . "./$cache_file";;
2518    esac
2519  fi
2520else
2521  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2522$as_echo "$as_me: creating cache $cache_file" >&6;}
2523  >$cache_file
2524fi
2525
2526as_fn_append ac_header_list " unistd.h"
2527as_fn_append ac_func_list " secure_getenv"
2528as_fn_append ac_func_list " __secure_getenv"
2529as_fn_append ac_func_list " getuid"
2530as_fn_append ac_func_list " geteuid"
2531as_fn_append ac_func_list " getgid"
2532as_fn_append ac_func_list " getegid"
2533# Check that the precious variables saved in the cache have kept the same
2534# value.
2535ac_cache_corrupted=false
2536for ac_var in $ac_precious_vars; do
2537  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538  eval ac_new_set=\$ac_env_${ac_var}_set
2539  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540  eval ac_new_val=\$ac_env_${ac_var}_value
2541  case $ac_old_set,$ac_new_set in
2542    set,)
2543      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2544$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2545      ac_cache_corrupted=: ;;
2546    ,set)
2547      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2548$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2549      ac_cache_corrupted=: ;;
2550    ,);;
2551    *)
2552      if test "x$ac_old_val" != "x$ac_new_val"; then
2553	# differences in whitespace do not lead to failure.
2554	ac_old_val_w=`echo x $ac_old_val`
2555	ac_new_val_w=`echo x $ac_new_val`
2556	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2558$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2559	  ac_cache_corrupted=:
2560	else
2561	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2562$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2563	  eval $ac_var=\$ac_old_val
2564	fi
2565	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2566$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2567	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2568$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2569      fi;;
2570  esac
2571  # Pass precious variables to config.status.
2572  if test "$ac_new_set" = set; then
2573    case $ac_new_val in
2574    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575    *) ac_arg=$ac_var=$ac_new_val ;;
2576    esac
2577    case " $ac_configure_args " in
2578      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2579      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2580    esac
2581  fi
2582done
2583if $ac_cache_corrupted; then
2584  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2587$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2588  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2589fi
2590## -------------------- ##
2591## Main body of script. ##
2592## -------------------- ##
2593
2594ac_ext=c
2595ac_cpp='$CPP $CPPFLAGS'
2596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599
2600
2601
2602
2603
2604ac_config_headers="$ac_config_headers config.h"
2605
2606
2607# -------
2608# Options
2609# -------
2610
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2612$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2613 # Check whether --enable-version-specific-runtime-libs was given.
2614if test "${enable_version_specific_runtime_libs+set}" = set; then :
2615  enableval=$enable_version_specific_runtime_libs;
2616      case "$enableval" in
2617       yes|no) ;;
2618       *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2619                          esac
2620
2621else
2622  enable_version_specific_runtime_libs=no
2623fi
2624
2625
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2627$as_echo "$enable_version_specific_runtime_libs" >&6; }
2628
2629# We would like our source tree to be readonly. However when releases or
2630# pre-releases are generated, the flex/bison generated files as well as the
2631# various formats of manuals need to be included along with the rest of the
2632# sources.  Therefore we have --enable-generated-files-in-srcdir to do
2633# just that.
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2635$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2636 # Check whether --enable-generated-files-in-srcdir was given.
2637if test "${enable_generated_files_in_srcdir+set}" = set; then :
2638  enableval=$enable_generated_files_in_srcdir;
2639      case "$enableval" in
2640       yes|no) ;;
2641       *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2642                          esac
2643
2644else
2645  enable_generated_files_in_srcdir=no
2646fi
2647
2648
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2650$as_echo "$enable_generated_files_in_srcdir" >&6; }
2651 if test "$enable_generated_files_in_srcdir" = yes; then
2652  GENINSRC_TRUE=
2653  GENINSRC_FALSE='#'
2654else
2655  GENINSRC_TRUE='#'
2656  GENINSRC_FALSE=
2657fi
2658
2659
2660
2661# -------
2662# -------
2663
2664# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2665#
2666# You will slowly go insane if you do not grok the following fact:  when
2667# building this library, the top-level /target/ becomes the library's /host/.
2668#
2669# configure then causes --target to default to --host, exactly like any
2670# other package using autoconf.  Therefore, 'target' and 'host' will
2671# always be the same.  This makes sense both for native and cross compilers
2672# just think about it for a little while.  :-)
2673#
2674# Also, if this library is being configured as part of a cross compiler, the
2675# top-level configure script will pass the "real" host as $with_cross_host.
2676#
2677# Do not delete or change the following two lines.  For why, see
2678# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2679ac_aux_dir=
2680for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2681  for ac_t in install-sh install.sh shtool; do
2682    if test -f "$ac_dir/$ac_t"; then
2683      ac_aux_dir=$ac_dir
2684      ac_install_sh="$ac_aux_dir/$ac_t -c"
2685      break 2
2686    fi
2687  done
2688done
2689if test -z "$ac_aux_dir"; then
2690  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2691fi
2692
2693# These three variables are undocumented and unsupported,
2694# and are intended to be withdrawn in a future Autoconf release.
2695# They can cause serious problems if a builder's source tree is in a directory
2696# whose full name contains unusual characters.
2697ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2698ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2699ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2700
2701
2702# Make sure we can run config.sub.
2703$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2704  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2705
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2707$as_echo_n "checking build system type... " >&6; }
2708if test "${ac_cv_build+set}" = set; then :
2709  $as_echo_n "(cached) " >&6
2710else
2711  ac_build_alias=$build_alias
2712test "x$ac_build_alias" = x &&
2713  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2714test "x$ac_build_alias" = x &&
2715  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2716ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2717  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2718
2719fi
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2721$as_echo "$ac_cv_build" >&6; }
2722case $ac_cv_build in
2723*-*-*) ;;
2724*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2725esac
2726build=$ac_cv_build
2727ac_save_IFS=$IFS; IFS='-'
2728set x $ac_cv_build
2729shift
2730build_cpu=$1
2731build_vendor=$2
2732shift; shift
2733# Remember, the first character of IFS is used to create $*,
2734# except with old shells:
2735build_os=$*
2736IFS=$ac_save_IFS
2737case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2738
2739
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2741$as_echo_n "checking host system type... " >&6; }
2742if test "${ac_cv_host+set}" = set; then :
2743  $as_echo_n "(cached) " >&6
2744else
2745  if test "x$host_alias" = x; then
2746  ac_cv_host=$ac_cv_build
2747else
2748  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2749    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2750fi
2751
2752fi
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2754$as_echo "$ac_cv_host" >&6; }
2755case $ac_cv_host in
2756*-*-*) ;;
2757*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2758esac
2759host=$ac_cv_host
2760ac_save_IFS=$IFS; IFS='-'
2761set x $ac_cv_host
2762shift
2763host_cpu=$1
2764host_vendor=$2
2765shift; shift
2766# Remember, the first character of IFS is used to create $*,
2767# except with old shells:
2768host_os=$*
2769IFS=$ac_save_IFS
2770case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2771
2772
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2774$as_echo_n "checking target system type... " >&6; }
2775if test "${ac_cv_target+set}" = set; then :
2776  $as_echo_n "(cached) " >&6
2777else
2778  if test "x$target_alias" = x; then
2779  ac_cv_target=$ac_cv_host
2780else
2781  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2782    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2783fi
2784
2785fi
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2787$as_echo "$ac_cv_target" >&6; }
2788case $ac_cv_target in
2789*-*-*) ;;
2790*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2791esac
2792target=$ac_cv_target
2793ac_save_IFS=$IFS; IFS='-'
2794set x $ac_cv_target
2795shift
2796target_cpu=$1
2797target_vendor=$2
2798shift; shift
2799# Remember, the first character of IFS is used to create $*,
2800# except with old shells:
2801target_os=$*
2802IFS=$ac_save_IFS
2803case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2804
2805
2806# The aliases save the names the user supplied, while $host etc.
2807# will get canonicalized.
2808test -n "$target_alias" &&
2809  test "$program_prefix$program_suffix$program_transform_name" = \
2810    NONENONEs,x,x, &&
2811  program_prefix=${target_alias}-
2812
2813target_alias=${target_alias-$host_alias}
2814
2815# Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
2816# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2817#  1.9.0:  minimum required version
2818#  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
2819#              of other PACKAGE_* variables will, however, and there's nothing
2820#              we can do about that; they come from AC_INIT).
2821#  foreign:  we don't follow the normal rules for GNU packages (no COPYING
2822#            file in the top srcdir, etc, etc), so stop complaining.
2823#  no-dist:  we don't want 'dist' and related rules.
2824#  -Wall:  turns on all automake warnings...
2825#  -Wno-portability:  ...except this one, since GNU make is required.
2826#  -Wno-override: ... and this one, since we do want this in testsuite.
2827am__api_version='1.11'
2828
2829# Find a good install program.  We prefer a C program (faster),
2830# so one script is as good as another.  But avoid the broken or
2831# incompatible versions:
2832# SysV /etc/install, /usr/sbin/install
2833# SunOS /usr/etc/install
2834# IRIX /sbin/install
2835# AIX /bin/install
2836# AmigaOS /C/install, which installs bootblocks on floppy discs
2837# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2838# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2839# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2840# OS/2's system install, which has a completely different semantic
2841# ./install, which can be erroneously created by make from ./install.sh.
2842# Reject install programs that cannot install multiple files.
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2844$as_echo_n "checking for a BSD-compatible install... " >&6; }
2845if test -z "$INSTALL"; then
2846if test "${ac_cv_path_install+set}" = set; then :
2847  $as_echo_n "(cached) " >&6
2848else
2849  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852  IFS=$as_save_IFS
2853  test -z "$as_dir" && as_dir=.
2854    # Account for people who put trailing slashes in PATH elements.
2855case $as_dir/ in #((
2856  ./ | .// | /[cC]/* | \
2857  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2858  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2859  /usr/ucb/* ) ;;
2860  *)
2861    # OSF1 and SCO ODT 3.0 have their own names for install.
2862    # Don't use installbsd from OSF since it installs stuff as root
2863    # by default.
2864    for ac_prog in ginstall scoinst install; do
2865      for ac_exec_ext in '' $ac_executable_extensions; do
2866	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2867	  if test $ac_prog = install &&
2868	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2869	    # AIX install.  It has an incompatible calling convention.
2870	    :
2871	  elif test $ac_prog = install &&
2872	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2873	    # program-specific install script used by HP pwplus--don't use.
2874	    :
2875	  else
2876	    rm -rf conftest.one conftest.two conftest.dir
2877	    echo one > conftest.one
2878	    echo two > conftest.two
2879	    mkdir conftest.dir
2880	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2881	      test -s conftest.one && test -s conftest.two &&
2882	      test -s conftest.dir/conftest.one &&
2883	      test -s conftest.dir/conftest.two
2884	    then
2885	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2886	      break 3
2887	    fi
2888	  fi
2889	fi
2890      done
2891    done
2892    ;;
2893esac
2894
2895  done
2896IFS=$as_save_IFS
2897
2898rm -rf conftest.one conftest.two conftest.dir
2899
2900fi
2901  if test "${ac_cv_path_install+set}" = set; then
2902    INSTALL=$ac_cv_path_install
2903  else
2904    # As a last resort, use the slow shell script.  Don't cache a
2905    # value for INSTALL within a source directory, because that will
2906    # break other packages using the cache if that directory is
2907    # removed, or if the value is a relative name.
2908    INSTALL=$ac_install_sh
2909  fi
2910fi
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2912$as_echo "$INSTALL" >&6; }
2913
2914# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2915# It thinks the first close brace ends the variable substitution.
2916test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2917
2918test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2919
2920test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2921
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2923$as_echo_n "checking whether build environment is sane... " >&6; }
2924# Just in case
2925sleep 1
2926echo timestamp > conftest.file
2927# Reject unsafe characters in $srcdir or the absolute working directory
2928# name.  Accept space and tab only in the latter.
2929am_lf='
2930'
2931case `pwd` in
2932  *[\\\"\#\$\&\'\`$am_lf]*)
2933    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2934esac
2935case $srcdir in
2936  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2937    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2938esac
2939
2940# Do `set' in a subshell so we don't clobber the current shell's
2941# arguments.  Must try -L first in case configure is actually a
2942# symlink; some systems play weird games with the mod time of symlinks
2943# (eg FreeBSD returns the mod time of the symlink's containing
2944# directory).
2945if (
2946   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2947   if test "$*" = "X"; then
2948      # -L didn't work.
2949      set X `ls -t "$srcdir/configure" conftest.file`
2950   fi
2951   rm -f conftest.file
2952   if test "$*" != "X $srcdir/configure conftest.file" \
2953      && test "$*" != "X conftest.file $srcdir/configure"; then
2954
2955      # If neither matched, then we have a broken ls.  This can happen
2956      # if, for instance, CONFIG_SHELL is bash and it inherits a
2957      # broken ls alias from the environment.  This has actually
2958      # happened.  Such a system could not be considered "sane".
2959      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2960alias in your environment" "$LINENO" 5
2961   fi
2962
2963   test "$2" = conftest.file
2964   )
2965then
2966   # Ok.
2967   :
2968else
2969   as_fn_error "newly created file is older than distributed files!
2970Check your system clock" "$LINENO" 5
2971fi
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973$as_echo "yes" >&6; }
2974test "$program_prefix" != NONE &&
2975  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2976# Use a double $ so make ignores it.
2977test "$program_suffix" != NONE &&
2978  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2979# Double any \ or $.
2980# By default was `s,x,x', remove it if useless.
2981ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2982program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2983
2984# expand $ac_aux_dir to an absolute path
2985am_aux_dir=`cd $ac_aux_dir && pwd`
2986
2987if test x"${MISSING+set}" != xset; then
2988  case $am_aux_dir in
2989  *\ * | *\	*)
2990    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2991  *)
2992    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2993  esac
2994fi
2995# Use eval to expand $SHELL
2996if eval "$MISSING --run true"; then
2997  am_missing_run="$MISSING --run "
2998else
2999  am_missing_run=
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3001$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3002fi
3003
3004if test x"${install_sh}" != xset; then
3005  case $am_aux_dir in
3006  *\ * | *\	*)
3007    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3008  *)
3009    install_sh="\${SHELL} $am_aux_dir/install-sh"
3010  esac
3011fi
3012
3013# Installed binaries are usually stripped using `strip' when the user
3014# run `make install-strip'.  However `strip' might not be the right
3015# tool to use in cross-compilation environments, therefore Automake
3016# will honor the `STRIP' environment variable to overrule this program.
3017if test "$cross_compiling" != no; then
3018  if test -n "$ac_tool_prefix"; then
3019  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3020set dummy ${ac_tool_prefix}strip; ac_word=$2
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022$as_echo_n "checking for $ac_word... " >&6; }
3023if test "${ac_cv_prog_STRIP+set}" = set; then :
3024  $as_echo_n "(cached) " >&6
3025else
3026  if test -n "$STRIP"; then
3027  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032  IFS=$as_save_IFS
3033  test -z "$as_dir" && as_dir=.
3034    for ac_exec_ext in '' $ac_executable_extensions; do
3035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038    break 2
3039  fi
3040done
3041  done
3042IFS=$as_save_IFS
3043
3044fi
3045fi
3046STRIP=$ac_cv_prog_STRIP
3047if test -n "$STRIP"; then
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3049$as_echo "$STRIP" >&6; }
3050else
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055
3056fi
3057if test -z "$ac_cv_prog_STRIP"; then
3058  ac_ct_STRIP=$STRIP
3059  # Extract the first word of "strip", so it can be a program name with args.
3060set dummy strip; ac_word=$2
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062$as_echo_n "checking for $ac_word... " >&6; }
3063if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3064  $as_echo_n "(cached) " >&6
3065else
3066  if test -n "$ac_ct_STRIP"; then
3067  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3068else
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072  IFS=$as_save_IFS
3073  test -z "$as_dir" && as_dir=.
3074    for ac_exec_ext in '' $ac_executable_extensions; do
3075  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076    ac_cv_prog_ac_ct_STRIP="strip"
3077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078    break 2
3079  fi
3080done
3081  done
3082IFS=$as_save_IFS
3083
3084fi
3085fi
3086ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3087if test -n "$ac_ct_STRIP"; then
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3089$as_echo "$ac_ct_STRIP" >&6; }
3090else
3091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092$as_echo "no" >&6; }
3093fi
3094
3095  if test "x$ac_ct_STRIP" = x; then
3096    STRIP=":"
3097  else
3098    case $cross_compiling:$ac_tool_warned in
3099yes:)
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102ac_tool_warned=yes ;;
3103esac
3104    STRIP=$ac_ct_STRIP
3105  fi
3106else
3107  STRIP="$ac_cv_prog_STRIP"
3108fi
3109
3110fi
3111INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3112
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3114$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3115if test -z "$MKDIR_P"; then
3116  if test "${ac_cv_path_mkdir+set}" = set; then :
3117  $as_echo_n "(cached) " >&6
3118else
3119  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3121do
3122  IFS=$as_save_IFS
3123  test -z "$as_dir" && as_dir=.
3124    for ac_prog in mkdir gmkdir; do
3125	 for ac_exec_ext in '' $ac_executable_extensions; do
3126	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3127	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3128	     'mkdir (GNU coreutils) '* | \
3129	     'mkdir (coreutils) '* | \
3130	     'mkdir (fileutils) '4.1*)
3131	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3132	       break 3;;
3133	   esac
3134	 done
3135       done
3136  done
3137IFS=$as_save_IFS
3138
3139fi
3140
3141  if test "${ac_cv_path_mkdir+set}" = set; then
3142    MKDIR_P="$ac_cv_path_mkdir -p"
3143  else
3144    # As a last resort, use the slow shell script.  Don't cache a
3145    # value for MKDIR_P within a source directory, because that will
3146    # break other packages using the cache if that directory is
3147    # removed, or if the value is a relative name.
3148    test -d ./--version && rmdir ./--version
3149    MKDIR_P="$ac_install_sh -d"
3150  fi
3151fi
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3153$as_echo "$MKDIR_P" >&6; }
3154
3155mkdir_p="$MKDIR_P"
3156case $mkdir_p in
3157  [\\/$]* | ?:[\\/]*) ;;
3158  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3159esac
3160
3161for ac_prog in gawk mawk nawk awk
3162do
3163  # Extract the first word of "$ac_prog", so it can be a program name with args.
3164set dummy $ac_prog; ac_word=$2
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166$as_echo_n "checking for $ac_word... " >&6; }
3167if test "${ac_cv_prog_AWK+set}" = set; then :
3168  $as_echo_n "(cached) " >&6
3169else
3170  if test -n "$AWK"; then
3171  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3172else
3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH
3175do
3176  IFS=$as_save_IFS
3177  test -z "$as_dir" && as_dir=.
3178    for ac_exec_ext in '' $ac_executable_extensions; do
3179  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180    ac_cv_prog_AWK="$ac_prog"
3181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182    break 2
3183  fi
3184done
3185  done
3186IFS=$as_save_IFS
3187
3188fi
3189fi
3190AWK=$ac_cv_prog_AWK
3191if test -n "$AWK"; then
3192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3193$as_echo "$AWK" >&6; }
3194else
3195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196$as_echo "no" >&6; }
3197fi
3198
3199
3200  test -n "$AWK" && break
3201done
3202
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3204$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3205set x ${MAKE-make}
3206ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3207if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3208  $as_echo_n "(cached) " >&6
3209else
3210  cat >conftest.make <<\_ACEOF
3211SHELL = /bin/sh
3212all:
3213	@echo '@@@%%%=$(MAKE)=@@@%%%'
3214_ACEOF
3215# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3216case `${MAKE-make} -f conftest.make 2>/dev/null` in
3217  *@@@%%%=?*=@@@%%%*)
3218    eval ac_cv_prog_make_${ac_make}_set=yes;;
3219  *)
3220    eval ac_cv_prog_make_${ac_make}_set=no;;
3221esac
3222rm -f conftest.make
3223fi
3224if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226$as_echo "yes" >&6; }
3227  SET_MAKE=
3228else
3229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230$as_echo "no" >&6; }
3231  SET_MAKE="MAKE=${MAKE-make}"
3232fi
3233
3234rm -rf .tst 2>/dev/null
3235mkdir .tst 2>/dev/null
3236if test -d .tst; then
3237  am__leading_dot=.
3238else
3239  am__leading_dot=_
3240fi
3241rmdir .tst 2>/dev/null
3242
3243if test "`cd $srcdir && pwd`" != "`pwd`"; then
3244  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3245  # is not polluted with repeated "-I."
3246  am__isrc=' -I$(srcdir)'
3247  # test to see if srcdir already configured
3248  if test -f $srcdir/config.status; then
3249    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3250  fi
3251fi
3252
3253# test whether we have cygpath
3254if test -z "$CYGPATH_W"; then
3255  if (cygpath --version) >/dev/null 2>/dev/null; then
3256    CYGPATH_W='cygpath -w'
3257  else
3258    CYGPATH_W=echo
3259  fi
3260fi
3261
3262
3263# Define the identity of the package.
3264 PACKAGE='libgomp'
3265 VERSION='1.0'
3266
3267
3268cat >>confdefs.h <<_ACEOF
3269#define PACKAGE "$PACKAGE"
3270_ACEOF
3271
3272
3273cat >>confdefs.h <<_ACEOF
3274#define VERSION "$VERSION"
3275_ACEOF
3276
3277# Some tools Automake needs.
3278
3279ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3280
3281
3282AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3283
3284
3285AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3286
3287
3288AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3289
3290
3291MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3292
3293# We need awk for the "check" target.  The system "awk" is bad on
3294# some platforms.
3295# Always define AMTAR for backward compatibility.  Yes, it's still used
3296# in the wild :-(  We should find a proper way to deprecate it ...
3297AMTAR='$${TAR-tar}'
3298
3299am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3300
3301
3302
3303
3304
3305# Default to --enable-multilib
3306# Check whether --enable-multilib was given.
3307if test "${enable_multilib+set}" = set; then :
3308  enableval=$enable_multilib; case "$enableval" in
3309  yes) multilib=yes ;;
3310  no)  multilib=no ;;
3311  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3312 esac
3313else
3314  multilib=yes
3315fi
3316
3317
3318# We may get other options which we leave undocumented:
3319# --with-target-subdir, --with-multisrctop, --with-multisubdir
3320# See config-ml.in if you want the gory details.
3321
3322if test "$srcdir" = "."; then
3323  if test "$with_target_subdir" != "."; then
3324    multi_basedir="$srcdir/$with_multisrctop../.."
3325  else
3326    multi_basedir="$srcdir/$with_multisrctop.."
3327  fi
3328else
3329  multi_basedir="$srcdir/.."
3330fi
3331
3332
3333# Even if the default multilib is not a cross compilation,
3334# it may be that some of the other multilibs are.
3335if test $cross_compiling = no && test $multilib = yes \
3336   && test "x${with_multisubdir}" != x ; then
3337   cross_compiling=maybe
3338fi
3339
3340ac_config_commands="$ac_config_commands default-1"
3341
3342
3343# Calculate toolexeclibdir
3344# Also toolexecdir, though it's only used in toolexeclibdir
3345case ${enable_version_specific_runtime_libs} in
3346  yes)
3347    # Need the gcc compiler version to know where to install libraries
3348    # and header files if --enable-version-specific-runtime-libs option
3349    # is selected.
3350    toolexecdir='$(libdir)/gcc/$(target_alias)'
3351    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3352    ;;
3353  no)
3354    if test -n "$with_cross_host" &&
3355       test x"$with_cross_host" != x"no"; then
3356      # Install a library built with a cross compiler in tooldir, not libdir.
3357      toolexecdir='$(exec_prefix)/$(target_alias)'
3358      toolexeclibdir='$(toolexecdir)/lib'
3359    else
3360      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3361      toolexeclibdir='$(libdir)'
3362    fi
3363    multi_os_directory=`$CC -print-multi-os-directory`
3364    case $multi_os_directory in
3365      .) ;; # Avoid trailing /.
3366      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3367    esac
3368    ;;
3369esac
3370
3371
3372
3373# Check the compiler.
3374# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3375# We must force CC to /not/ be precious variables; otherwise
3376# the wrong, non-multilib-adjusted value will be used in multilibs.
3377# As a side effect, we have to subst CFLAGS ourselves.
3378
3379
3380
3381ac_ext=c
3382ac_cpp='$CPP $CPPFLAGS'
3383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386if test -n "$ac_tool_prefix"; then
3387  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3388set dummy ${ac_tool_prefix}gcc; ac_word=$2
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390$as_echo_n "checking for $ac_word... " >&6; }
3391if test "${ac_cv_prog_CC+set}" = set; then :
3392  $as_echo_n "(cached) " >&6
3393else
3394  if test -n "$CC"; then
3395  ac_cv_prog_CC="$CC" # Let the user override the test.
3396else
3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398for as_dir in $PATH
3399do
3400  IFS=$as_save_IFS
3401  test -z "$as_dir" && as_dir=.
3402    for ac_exec_ext in '' $ac_executable_extensions; do
3403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406    break 2
3407  fi
3408done
3409  done
3410IFS=$as_save_IFS
3411
3412fi
3413fi
3414CC=$ac_cv_prog_CC
3415if test -n "$CC"; then
3416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3417$as_echo "$CC" >&6; }
3418else
3419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420$as_echo "no" >&6; }
3421fi
3422
3423
3424fi
3425if test -z "$ac_cv_prog_CC"; then
3426  ac_ct_CC=$CC
3427  # Extract the first word of "gcc", so it can be a program name with args.
3428set dummy gcc; ac_word=$2
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430$as_echo_n "checking for $ac_word... " >&6; }
3431if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3432  $as_echo_n "(cached) " >&6
3433else
3434  if test -n "$ac_ct_CC"; then
3435  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3436else
3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438for as_dir in $PATH
3439do
3440  IFS=$as_save_IFS
3441  test -z "$as_dir" && as_dir=.
3442    for ac_exec_ext in '' $ac_executable_extensions; do
3443  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3444    ac_cv_prog_ac_ct_CC="gcc"
3445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446    break 2
3447  fi
3448done
3449  done
3450IFS=$as_save_IFS
3451
3452fi
3453fi
3454ac_ct_CC=$ac_cv_prog_ac_ct_CC
3455if test -n "$ac_ct_CC"; then
3456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3457$as_echo "$ac_ct_CC" >&6; }
3458else
3459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460$as_echo "no" >&6; }
3461fi
3462
3463  if test "x$ac_ct_CC" = x; then
3464    CC=""
3465  else
3466    case $cross_compiling:$ac_tool_warned in
3467yes:)
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3470ac_tool_warned=yes ;;
3471esac
3472    CC=$ac_ct_CC
3473  fi
3474else
3475  CC="$ac_cv_prog_CC"
3476fi
3477
3478if test -z "$CC"; then
3479          if test -n "$ac_tool_prefix"; then
3480    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3481set dummy ${ac_tool_prefix}cc; ac_word=$2
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483$as_echo_n "checking for $ac_word... " >&6; }
3484if test "${ac_cv_prog_CC+set}" = set; then :
3485  $as_echo_n "(cached) " >&6
3486else
3487  if test -n "$CC"; then
3488  ac_cv_prog_CC="$CC" # Let the user override the test.
3489else
3490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491for as_dir in $PATH
3492do
3493  IFS=$as_save_IFS
3494  test -z "$as_dir" && as_dir=.
3495    for ac_exec_ext in '' $ac_executable_extensions; do
3496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3497    ac_cv_prog_CC="${ac_tool_prefix}cc"
3498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499    break 2
3500  fi
3501done
3502  done
3503IFS=$as_save_IFS
3504
3505fi
3506fi
3507CC=$ac_cv_prog_CC
3508if test -n "$CC"; then
3509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3510$as_echo "$CC" >&6; }
3511else
3512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513$as_echo "no" >&6; }
3514fi
3515
3516
3517  fi
3518fi
3519if test -z "$CC"; then
3520  # Extract the first word of "cc", so it can be a program name with args.
3521set dummy cc; ac_word=$2
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523$as_echo_n "checking for $ac_word... " >&6; }
3524if test "${ac_cv_prog_CC+set}" = set; then :
3525  $as_echo_n "(cached) " >&6
3526else
3527  if test -n "$CC"; then
3528  ac_cv_prog_CC="$CC" # Let the user override the test.
3529else
3530  ac_prog_rejected=no
3531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532for as_dir in $PATH
3533do
3534  IFS=$as_save_IFS
3535  test -z "$as_dir" && as_dir=.
3536    for ac_exec_ext in '' $ac_executable_extensions; do
3537  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3538    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3539       ac_prog_rejected=yes
3540       continue
3541     fi
3542    ac_cv_prog_CC="cc"
3543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544    break 2
3545  fi
3546done
3547  done
3548IFS=$as_save_IFS
3549
3550if test $ac_prog_rejected = yes; then
3551  # We found a bogon in the path, so make sure we never use it.
3552  set dummy $ac_cv_prog_CC
3553  shift
3554  if test $# != 0; then
3555    # We chose a different compiler from the bogus one.
3556    # However, it has the same basename, so the bogon will be chosen
3557    # first if we set CC to just the basename; use the full file name.
3558    shift
3559    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3560  fi
3561fi
3562fi
3563fi
3564CC=$ac_cv_prog_CC
3565if test -n "$CC"; then
3566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567$as_echo "$CC" >&6; }
3568else
3569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570$as_echo "no" >&6; }
3571fi
3572
3573
3574fi
3575if test -z "$CC"; then
3576  if test -n "$ac_tool_prefix"; then
3577  for ac_prog in cl.exe
3578  do
3579    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3580set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582$as_echo_n "checking for $ac_word... " >&6; }
3583if test "${ac_cv_prog_CC+set}" = set; then :
3584  $as_echo_n "(cached) " >&6
3585else
3586  if test -n "$CC"; then
3587  ac_cv_prog_CC="$CC" # Let the user override the test.
3588else
3589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592  IFS=$as_save_IFS
3593  test -z "$as_dir" && as_dir=.
3594    for ac_exec_ext in '' $ac_executable_extensions; do
3595  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598    break 2
3599  fi
3600done
3601  done
3602IFS=$as_save_IFS
3603
3604fi
3605fi
3606CC=$ac_cv_prog_CC
3607if test -n "$CC"; then
3608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3609$as_echo "$CC" >&6; }
3610else
3611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612$as_echo "no" >&6; }
3613fi
3614
3615
3616    test -n "$CC" && break
3617  done
3618fi
3619if test -z "$CC"; then
3620  ac_ct_CC=$CC
3621  for ac_prog in cl.exe
3622do
3623  # Extract the first word of "$ac_prog", so it can be a program name with args.
3624set dummy $ac_prog; ac_word=$2
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626$as_echo_n "checking for $ac_word... " >&6; }
3627if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3628  $as_echo_n "(cached) " >&6
3629else
3630  if test -n "$ac_ct_CC"; then
3631  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3632else
3633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634for as_dir in $PATH
3635do
3636  IFS=$as_save_IFS
3637  test -z "$as_dir" && as_dir=.
3638    for ac_exec_ext in '' $ac_executable_extensions; do
3639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640    ac_cv_prog_ac_ct_CC="$ac_prog"
3641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642    break 2
3643  fi
3644done
3645  done
3646IFS=$as_save_IFS
3647
3648fi
3649fi
3650ac_ct_CC=$ac_cv_prog_ac_ct_CC
3651if test -n "$ac_ct_CC"; then
3652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3653$as_echo "$ac_ct_CC" >&6; }
3654else
3655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656$as_echo "no" >&6; }
3657fi
3658
3659
3660  test -n "$ac_ct_CC" && break
3661done
3662
3663  if test "x$ac_ct_CC" = x; then
3664    CC=""
3665  else
3666    case $cross_compiling:$ac_tool_warned in
3667yes:)
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3670ac_tool_warned=yes ;;
3671esac
3672    CC=$ac_ct_CC
3673  fi
3674fi
3675
3676fi
3677
3678
3679test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681as_fn_error "no acceptable C compiler found in \$PATH
3682See \`config.log' for more details." "$LINENO" 5; }
3683
3684# Provide some information about the compiler.
3685$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3686set X $ac_compile
3687ac_compiler=$2
3688for ac_option in --version -v -V -qversion; do
3689  { { ac_try="$ac_compiler $ac_option >&5"
3690case "(($ac_try" in
3691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692  *) ac_try_echo=$ac_try;;
3693esac
3694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695$as_echo "$ac_try_echo"; } >&5
3696  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3697  ac_status=$?
3698  if test -s conftest.err; then
3699    sed '10a\
3700... rest of stderr output deleted ...
3701         10q' conftest.err >conftest.er1
3702    cat conftest.er1 >&5
3703    rm -f conftest.er1 conftest.err
3704  fi
3705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706  test $ac_status = 0; }
3707done
3708
3709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710/* end confdefs.h.  */
3711
3712int
3713main ()
3714{
3715
3716  ;
3717  return 0;
3718}
3719_ACEOF
3720ac_clean_files_save=$ac_clean_files
3721ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3722# Try to create an executable without -o first, disregard a.out.
3723# It will help us diagnose broken compilers, and finding out an intuition
3724# of exeext.
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3726$as_echo_n "checking for C compiler default output file name... " >&6; }
3727ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3728
3729# The possible output files:
3730ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3731
3732ac_rmfiles=
3733for ac_file in $ac_files
3734do
3735  case $ac_file in
3736    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3737    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3738  esac
3739done
3740rm -f $ac_rmfiles
3741
3742if { { ac_try="$ac_link_default"
3743case "(($ac_try" in
3744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745  *) ac_try_echo=$ac_try;;
3746esac
3747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748$as_echo "$ac_try_echo"; } >&5
3749  (eval "$ac_link_default") 2>&5
3750  ac_status=$?
3751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752  test $ac_status = 0; }; then :
3753  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3754# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3755# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3756# so that the user can short-circuit this test for compilers unknown to
3757# Autoconf.
3758for ac_file in $ac_files ''
3759do
3760  test -f "$ac_file" || continue
3761  case $ac_file in
3762    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3763	;;
3764    [ab].out )
3765	# We found the default executable, but exeext='' is most
3766	# certainly right.
3767	break;;
3768    *.* )
3769	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3770	then :; else
3771	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3772	fi
3773	# We set ac_cv_exeext here because the later test for it is not
3774	# safe: cross compilers may not add the suffix if given an `-o'
3775	# argument, so we may need to know it at that point already.
3776	# Even if this section looks crufty: it has the advantage of
3777	# actually working.
3778	break;;
3779    * )
3780	break;;
3781  esac
3782done
3783test "$ac_cv_exeext" = no && ac_cv_exeext=
3784
3785else
3786  ac_file=''
3787fi
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3789$as_echo "$ac_file" >&6; }
3790if test -z "$ac_file"; then :
3791  $as_echo "$as_me: failed program was:" >&5
3792sed 's/^/| /' conftest.$ac_ext >&5
3793
3794{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796{ as_fn_set_status 77
3797as_fn_error "C compiler cannot create executables
3798See \`config.log' for more details." "$LINENO" 5; }; }
3799fi
3800ac_exeext=$ac_cv_exeext
3801
3802# Check that the compiler produces executables we can run.  If not, either
3803# the compiler is broken, or we cross compile.
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3805$as_echo_n "checking whether the C compiler works... " >&6; }
3806# If not cross compiling, check that we can run a simple program.
3807if test "$cross_compiling" != yes; then
3808  if { ac_try='./$ac_file'
3809  { { case "(($ac_try" in
3810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811  *) ac_try_echo=$ac_try;;
3812esac
3813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814$as_echo "$ac_try_echo"; } >&5
3815  (eval "$ac_try") 2>&5
3816  ac_status=$?
3817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818  test $ac_status = 0; }; }; then
3819    cross_compiling=no
3820  else
3821    if test "$cross_compiling" = maybe; then
3822	cross_compiling=yes
3823    else
3824	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3826as_fn_error "cannot run C compiled programs.
3827If you meant to cross compile, use \`--host'.
3828See \`config.log' for more details." "$LINENO" 5; }
3829    fi
3830  fi
3831fi
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3833$as_echo "yes" >&6; }
3834
3835rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3836ac_clean_files=$ac_clean_files_save
3837# Check that the compiler produces executables we can run.  If not, either
3838# the compiler is broken, or we cross compile.
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3840$as_echo_n "checking whether we are cross compiling... " >&6; }
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3842$as_echo "$cross_compiling" >&6; }
3843
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3845$as_echo_n "checking for suffix of executables... " >&6; }
3846if { { ac_try="$ac_link"
3847case "(($ac_try" in
3848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849  *) ac_try_echo=$ac_try;;
3850esac
3851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852$as_echo "$ac_try_echo"; } >&5
3853  (eval "$ac_link") 2>&5
3854  ac_status=$?
3855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856  test $ac_status = 0; }; then :
3857  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3858# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3859# work properly (i.e., refer to `conftest.exe'), while it won't with
3860# `rm'.
3861for ac_file in conftest.exe conftest conftest.*; do
3862  test -f "$ac_file" || continue
3863  case $ac_file in
3864    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3865    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3866	  break;;
3867    * ) break;;
3868  esac
3869done
3870else
3871  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873as_fn_error "cannot compute suffix of executables: cannot compile and link
3874See \`config.log' for more details." "$LINENO" 5; }
3875fi
3876rm -f conftest$ac_cv_exeext
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3878$as_echo "$ac_cv_exeext" >&6; }
3879
3880rm -f conftest.$ac_ext
3881EXEEXT=$ac_cv_exeext
3882ac_exeext=$EXEEXT
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3884$as_echo_n "checking for suffix of object files... " >&6; }
3885if test "${ac_cv_objext+set}" = set; then :
3886  $as_echo_n "(cached) " >&6
3887else
3888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889/* end confdefs.h.  */
3890
3891int
3892main ()
3893{
3894
3895  ;
3896  return 0;
3897}
3898_ACEOF
3899rm -f conftest.o conftest.obj
3900if { { ac_try="$ac_compile"
3901case "(($ac_try" in
3902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903  *) ac_try_echo=$ac_try;;
3904esac
3905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906$as_echo "$ac_try_echo"; } >&5
3907  (eval "$ac_compile") 2>&5
3908  ac_status=$?
3909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910  test $ac_status = 0; }; then :
3911  for ac_file in conftest.o conftest.obj conftest.*; do
3912  test -f "$ac_file" || continue;
3913  case $ac_file in
3914    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3915    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3916       break;;
3917  esac
3918done
3919else
3920  $as_echo "$as_me: failed program was:" >&5
3921sed 's/^/| /' conftest.$ac_ext >&5
3922
3923{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925as_fn_error "cannot compute suffix of object files: cannot compile
3926See \`config.log' for more details." "$LINENO" 5; }
3927fi
3928rm -f conftest.$ac_cv_objext conftest.$ac_ext
3929fi
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3931$as_echo "$ac_cv_objext" >&6; }
3932OBJEXT=$ac_cv_objext
3933ac_objext=$OBJEXT
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3935$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3936if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3937  $as_echo_n "(cached) " >&6
3938else
3939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h.  */
3941
3942int
3943main ()
3944{
3945#ifndef __GNUC__
3946       choke me
3947#endif
3948
3949  ;
3950  return 0;
3951}
3952_ACEOF
3953if ac_fn_c_try_compile "$LINENO"; then :
3954  ac_compiler_gnu=yes
3955else
3956  ac_compiler_gnu=no
3957fi
3958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959ac_cv_c_compiler_gnu=$ac_compiler_gnu
3960
3961fi
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3963$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3964if test $ac_compiler_gnu = yes; then
3965  GCC=yes
3966else
3967  GCC=
3968fi
3969ac_test_CFLAGS=${CFLAGS+set}
3970ac_save_CFLAGS=$CFLAGS
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3972$as_echo_n "checking whether $CC accepts -g... " >&6; }
3973if test "${ac_cv_prog_cc_g+set}" = set; then :
3974  $as_echo_n "(cached) " >&6
3975else
3976  ac_save_c_werror_flag=$ac_c_werror_flag
3977   ac_c_werror_flag=yes
3978   ac_cv_prog_cc_g=no
3979   CFLAGS="-g"
3980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h.  */
3982
3983int
3984main ()
3985{
3986
3987  ;
3988  return 0;
3989}
3990_ACEOF
3991if ac_fn_c_try_compile "$LINENO"; then :
3992  ac_cv_prog_cc_g=yes
3993else
3994  CFLAGS=""
3995      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996/* end confdefs.h.  */
3997
3998int
3999main ()
4000{
4001
4002  ;
4003  return 0;
4004}
4005_ACEOF
4006if ac_fn_c_try_compile "$LINENO"; then :
4007
4008else
4009  ac_c_werror_flag=$ac_save_c_werror_flag
4010	 CFLAGS="-g"
4011	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h.  */
4013
4014int
4015main ()
4016{
4017
4018  ;
4019  return 0;
4020}
4021_ACEOF
4022if ac_fn_c_try_compile "$LINENO"; then :
4023  ac_cv_prog_cc_g=yes
4024fi
4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026fi
4027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028fi
4029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030   ac_c_werror_flag=$ac_save_c_werror_flag
4031fi
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4033$as_echo "$ac_cv_prog_cc_g" >&6; }
4034if test "$ac_test_CFLAGS" = set; then
4035  CFLAGS=$ac_save_CFLAGS
4036elif test $ac_cv_prog_cc_g = yes; then
4037  if test "$GCC" = yes; then
4038    CFLAGS="-g -O2"
4039  else
4040    CFLAGS="-g"
4041  fi
4042else
4043  if test "$GCC" = yes; then
4044    CFLAGS="-O2"
4045  else
4046    CFLAGS=
4047  fi
4048fi
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4050$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4051if test "${ac_cv_prog_cc_c89+set}" = set; then :
4052  $as_echo_n "(cached) " >&6
4053else
4054  ac_cv_prog_cc_c89=no
4055ac_save_CC=$CC
4056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057/* end confdefs.h.  */
4058#include <stdarg.h>
4059#include <stdio.h>
4060#include <sys/types.h>
4061#include <sys/stat.h>
4062/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4063struct buf { int x; };
4064FILE * (*rcsopen) (struct buf *, struct stat *, int);
4065static char *e (p, i)
4066     char **p;
4067     int i;
4068{
4069  return p[i];
4070}
4071static char *f (char * (*g) (char **, int), char **p, ...)
4072{
4073  char *s;
4074  va_list v;
4075  va_start (v,p);
4076  s = g (p, va_arg (v,int));
4077  va_end (v);
4078  return s;
4079}
4080
4081/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4082   function prototypes and stuff, but not '\xHH' hex character constants.
4083   These don't provoke an error unfortunately, instead are silently treated
4084   as 'x'.  The following induces an error, until -std is added to get
4085   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4086   array size at least.  It's necessary to write '\x00'==0 to get something
4087   that's true only with -std.  */
4088int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4089
4090/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4091   inside strings and character constants.  */
4092#define FOO(x) 'x'
4093int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4094
4095int test (int i, double x);
4096struct s1 {int (*f) (int a);};
4097struct s2 {int (*f) (double a);};
4098int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4099int argc;
4100char **argv;
4101int
4102main ()
4103{
4104return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4105  ;
4106  return 0;
4107}
4108_ACEOF
4109for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4110	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4111do
4112  CC="$ac_save_CC $ac_arg"
4113  if ac_fn_c_try_compile "$LINENO"; then :
4114  ac_cv_prog_cc_c89=$ac_arg
4115fi
4116rm -f core conftest.err conftest.$ac_objext
4117  test "x$ac_cv_prog_cc_c89" != "xno" && break
4118done
4119rm -f conftest.$ac_ext
4120CC=$ac_save_CC
4121
4122fi
4123# AC_CACHE_VAL
4124case "x$ac_cv_prog_cc_c89" in
4125  x)
4126    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4127$as_echo "none needed" >&6; } ;;
4128  xno)
4129    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4130$as_echo "unsupported" >&6; } ;;
4131  *)
4132    CC="$CC $ac_cv_prog_cc_c89"
4133    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4134$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4135esac
4136if test "x$ac_cv_prog_cc_c89" != xno; then :
4137
4138fi
4139
4140ac_ext=c
4141ac_cpp='$CPP $CPPFLAGS'
4142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145DEPDIR="${am__leading_dot}deps"
4146
4147ac_config_commands="$ac_config_commands depfiles"
4148
4149
4150am_make=${MAKE-make}
4151cat > confinc << 'END'
4152am__doit:
4153	@echo this is the am__doit target
4154.PHONY: am__doit
4155END
4156# If we don't find an include directive, just comment out the code.
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4158$as_echo_n "checking for style of include used by $am_make... " >&6; }
4159am__include="#"
4160am__quote=
4161_am_result=none
4162# First try GNU make style include.
4163echo "include confinc" > confmf
4164# Ignore all kinds of additional output from `make'.
4165case `$am_make -s -f confmf 2> /dev/null` in #(
4166*the\ am__doit\ target*)
4167  am__include=include
4168  am__quote=
4169  _am_result=GNU
4170  ;;
4171esac
4172# Now try BSD make style include.
4173if test "$am__include" = "#"; then
4174   echo '.include "confinc"' > confmf
4175   case `$am_make -s -f confmf 2> /dev/null` in #(
4176   *the\ am__doit\ target*)
4177     am__include=.include
4178     am__quote="\""
4179     _am_result=BSD
4180     ;;
4181   esac
4182fi
4183
4184
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4186$as_echo "$_am_result" >&6; }
4187rm -f confinc confmf
4188
4189# Check whether --enable-dependency-tracking was given.
4190if test "${enable_dependency_tracking+set}" = set; then :
4191  enableval=$enable_dependency_tracking;
4192fi
4193
4194if test "x$enable_dependency_tracking" != xno; then
4195  am_depcomp="$ac_aux_dir/depcomp"
4196  AMDEPBACKSLASH='\'
4197  am__nodep='_no'
4198fi
4199 if test "x$enable_dependency_tracking" != xno; then
4200  AMDEP_TRUE=
4201  AMDEP_FALSE='#'
4202else
4203  AMDEP_TRUE='#'
4204  AMDEP_FALSE=
4205fi
4206
4207
4208
4209depcc="$CC"   am_compiler_list=
4210
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4212$as_echo_n "checking dependency style of $depcc... " >&6; }
4213if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4214  $as_echo_n "(cached) " >&6
4215else
4216  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4217  # We make a subdir and do the tests there.  Otherwise we can end up
4218  # making bogus files that we don't know about and never remove.  For
4219  # instance it was reported that on HP-UX the gcc test will end up
4220  # making a dummy file named `D' -- because `-MD' means `put the output
4221  # in D'.
4222  rm -rf conftest.dir
4223  mkdir conftest.dir
4224  # Copy depcomp to subdir because otherwise we won't find it if we're
4225  # using a relative directory.
4226  cp "$am_depcomp" conftest.dir
4227  cd conftest.dir
4228  # We will build objects and dependencies in a subdirectory because
4229  # it helps to detect inapplicable dependency modes.  For instance
4230  # both Tru64's cc and ICC support -MD to output dependencies as a
4231  # side effect of compilation, but ICC will put the dependencies in
4232  # the current directory while Tru64 will put them in the object
4233  # directory.
4234  mkdir sub
4235
4236  am_cv_CC_dependencies_compiler_type=none
4237  if test "$am_compiler_list" = ""; then
4238     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4239  fi
4240  am__universal=false
4241  case " $depcc " in #(
4242     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4243     esac
4244
4245  for depmode in $am_compiler_list; do
4246    # Setup a source with many dependencies, because some compilers
4247    # like to wrap large dependency lists on column 80 (with \), and
4248    # we should not choose a depcomp mode which is confused by this.
4249    #
4250    # We need to recreate these files for each test, as the compiler may
4251    # overwrite some of them when testing with obscure command lines.
4252    # This happens at least with the AIX C compiler.
4253    : > sub/conftest.c
4254    for i in 1 2 3 4 5 6; do
4255      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4256      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4257      # Solaris 8's {/usr,}/bin/sh.
4258      touch sub/conftst$i.h
4259    done
4260    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4261
4262    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4263    # mode.  It turns out that the SunPro C++ compiler does not properly
4264    # handle `-M -o', and we need to detect this.  Also, some Intel
4265    # versions had trouble with output in subdirs
4266    am__obj=sub/conftest.${OBJEXT-o}
4267    am__minus_obj="-o $am__obj"
4268    case $depmode in
4269    gcc)
4270      # This depmode causes a compiler race in universal mode.
4271      test "$am__universal" = false || continue
4272      ;;
4273    nosideeffect)
4274      # after this tag, mechanisms are not by side-effect, so they'll
4275      # only be used when explicitly requested
4276      if test "x$enable_dependency_tracking" = xyes; then
4277	continue
4278      else
4279	break
4280      fi
4281      ;;
4282    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4283      # This compiler won't grok `-c -o', but also, the minuso test has
4284      # not run yet.  These depmodes are late enough in the game, and
4285      # so weak that their functioning should not be impacted.
4286      am__obj=conftest.${OBJEXT-o}
4287      am__minus_obj=
4288      ;;
4289    none) break ;;
4290    esac
4291    if depmode=$depmode \
4292       source=sub/conftest.c object=$am__obj \
4293       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4294       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4295         >/dev/null 2>conftest.err &&
4296       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4297       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4298       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4299       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4300      # icc doesn't choke on unknown options, it will just issue warnings
4301      # or remarks (even with -Werror).  So we grep stderr for any message
4302      # that says an option was ignored or not supported.
4303      # When given -MP, icc 7.0 and 7.1 complain thusly:
4304      #   icc: Command line warning: ignoring option '-M'; no argument required
4305      # The diagnosis changed in icc 8.0:
4306      #   icc: Command line remark: option '-MP' not supported
4307      if (grep 'ignoring option' conftest.err ||
4308          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4309        am_cv_CC_dependencies_compiler_type=$depmode
4310        break
4311      fi
4312    fi
4313  done
4314
4315  cd ..
4316  rm -rf conftest.dir
4317else
4318  am_cv_CC_dependencies_compiler_type=none
4319fi
4320
4321fi
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4323$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4324CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4325
4326 if
4327  test "x$enable_dependency_tracking" != xno \
4328  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4329  am__fastdepCC_TRUE=
4330  am__fastdepCC_FALSE='#'
4331else
4332  am__fastdepCC_TRUE='#'
4333  am__fastdepCC_FALSE=
4334fi
4335
4336
4337
4338
4339
4340
4341# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4342# in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
4343# in both places for now and restore CFLAGS at the end of config.
4344save_CFLAGS="$CFLAGS"
4345
4346# Add -Wall -Werror if we are using GCC.
4347if test "x$GCC" = "xyes"; then
4348  XCFLAGS="$XCFLAGS -Wall -Werror"
4349fi
4350
4351# Find other programs we need.
4352if test -n "$ac_tool_prefix"; then
4353  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4354set dummy ${ac_tool_prefix}ar; ac_word=$2
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356$as_echo_n "checking for $ac_word... " >&6; }
4357if test "${ac_cv_prog_AR+set}" = set; then :
4358  $as_echo_n "(cached) " >&6
4359else
4360  if test -n "$AR"; then
4361  ac_cv_prog_AR="$AR" # Let the user override the test.
4362else
4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366  IFS=$as_save_IFS
4367  test -z "$as_dir" && as_dir=.
4368    for ac_exec_ext in '' $ac_executable_extensions; do
4369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370    ac_cv_prog_AR="${ac_tool_prefix}ar"
4371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372    break 2
4373  fi
4374done
4375  done
4376IFS=$as_save_IFS
4377
4378fi
4379fi
4380AR=$ac_cv_prog_AR
4381if test -n "$AR"; then
4382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4383$as_echo "$AR" >&6; }
4384else
4385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386$as_echo "no" >&6; }
4387fi
4388
4389
4390fi
4391if test -z "$ac_cv_prog_AR"; then
4392  ac_ct_AR=$AR
4393  # Extract the first word of "ar", so it can be a program name with args.
4394set dummy ar; ac_word=$2
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396$as_echo_n "checking for $ac_word... " >&6; }
4397if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4398  $as_echo_n "(cached) " >&6
4399else
4400  if test -n "$ac_ct_AR"; then
4401  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4402else
4403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH
4405do
4406  IFS=$as_save_IFS
4407  test -z "$as_dir" && as_dir=.
4408    for ac_exec_ext in '' $ac_executable_extensions; do
4409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410    ac_cv_prog_ac_ct_AR="ar"
4411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412    break 2
4413  fi
4414done
4415  done
4416IFS=$as_save_IFS
4417
4418fi
4419fi
4420ac_ct_AR=$ac_cv_prog_ac_ct_AR
4421if test -n "$ac_ct_AR"; then
4422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4423$as_echo "$ac_ct_AR" >&6; }
4424else
4425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426$as_echo "no" >&6; }
4427fi
4428
4429  if test "x$ac_ct_AR" = x; then
4430    AR=""
4431  else
4432    case $cross_compiling:$ac_tool_warned in
4433yes:)
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4436ac_tool_warned=yes ;;
4437esac
4438    AR=$ac_ct_AR
4439  fi
4440else
4441  AR="$ac_cv_prog_AR"
4442fi
4443
4444if test -n "$ac_tool_prefix"; then
4445  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4446set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448$as_echo_n "checking for $ac_word... " >&6; }
4449if test "${ac_cv_prog_RANLIB+set}" = set; then :
4450  $as_echo_n "(cached) " >&6
4451else
4452  if test -n "$RANLIB"; then
4453  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4454else
4455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456for as_dir in $PATH
4457do
4458  IFS=$as_save_IFS
4459  test -z "$as_dir" && as_dir=.
4460    for ac_exec_ext in '' $ac_executable_extensions; do
4461  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464    break 2
4465  fi
4466done
4467  done
4468IFS=$as_save_IFS
4469
4470fi
4471fi
4472RANLIB=$ac_cv_prog_RANLIB
4473if test -n "$RANLIB"; then
4474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4475$as_echo "$RANLIB" >&6; }
4476else
4477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478$as_echo "no" >&6; }
4479fi
4480
4481
4482fi
4483if test -z "$ac_cv_prog_RANLIB"; then
4484  ac_ct_RANLIB=$RANLIB
4485  # Extract the first word of "ranlib", so it can be a program name with args.
4486set dummy ranlib; ac_word=$2
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488$as_echo_n "checking for $ac_word... " >&6; }
4489if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4490  $as_echo_n "(cached) " >&6
4491else
4492  if test -n "$ac_ct_RANLIB"; then
4493  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4494else
4495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496for as_dir in $PATH
4497do
4498  IFS=$as_save_IFS
4499  test -z "$as_dir" && as_dir=.
4500    for ac_exec_ext in '' $ac_executable_extensions; do
4501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502    ac_cv_prog_ac_ct_RANLIB="ranlib"
4503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504    break 2
4505  fi
4506done
4507  done
4508IFS=$as_save_IFS
4509
4510fi
4511fi
4512ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4513if test -n "$ac_ct_RANLIB"; then
4514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4515$as_echo "$ac_ct_RANLIB" >&6; }
4516else
4517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518$as_echo "no" >&6; }
4519fi
4520
4521  if test "x$ac_ct_RANLIB" = x; then
4522    RANLIB="ranlib-not-found-in-path-error"
4523  else
4524    case $cross_compiling:$ac_tool_warned in
4525yes:)
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4528ac_tool_warned=yes ;;
4529esac
4530    RANLIB=$ac_ct_RANLIB
4531  fi
4532else
4533  RANLIB="$ac_cv_prog_RANLIB"
4534fi
4535
4536# Extract the first word of "perl", so it can be a program name with args.
4537set dummy perl; ac_word=$2
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539$as_echo_n "checking for $ac_word... " >&6; }
4540if test "${ac_cv_path_PERL+set}" = set; then :
4541  $as_echo_n "(cached) " >&6
4542else
4543  case $PERL in
4544  [\\/]* | ?:[\\/]*)
4545  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4546  ;;
4547  *)
4548  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH
4550do
4551  IFS=$as_save_IFS
4552  test -z "$as_dir" && as_dir=.
4553    for ac_exec_ext in '' $ac_executable_extensions; do
4554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557    break 2
4558  fi
4559done
4560  done
4561IFS=$as_save_IFS
4562
4563  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4564  ;;
4565esac
4566fi
4567PERL=$ac_cv_path_PERL
4568if test -n "$PERL"; then
4569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4570$as_echo "$PERL" >&6; }
4571else
4572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573$as_echo "no" >&6; }
4574fi
4575
4576
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4578$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4579set x ${MAKE-make}
4580ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4581if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4582  $as_echo_n "(cached) " >&6
4583else
4584  cat >conftest.make <<\_ACEOF
4585SHELL = /bin/sh
4586all:
4587	@echo '@@@%%%=$(MAKE)=@@@%%%'
4588_ACEOF
4589# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4590case `${MAKE-make} -f conftest.make 2>/dev/null` in
4591  *@@@%%%=?*=@@@%%%*)
4592    eval ac_cv_prog_make_${ac_make}_set=yes;;
4593  *)
4594    eval ac_cv_prog_make_${ac_make}_set=no;;
4595esac
4596rm -f conftest.make
4597fi
4598if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4600$as_echo "yes" >&6; }
4601  SET_MAKE=
4602else
4603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604$as_echo "no" >&6; }
4605  SET_MAKE="MAKE=${MAKE-make}"
4606fi
4607
4608
4609
4610# See if makeinfo has been installed and is modern enough
4611# that we can use it.
4612
4613  # Extract the first word of "makeinfo", so it can be a program name with args.
4614set dummy makeinfo; ac_word=$2
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616$as_echo_n "checking for $ac_word... " >&6; }
4617if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4618  $as_echo_n "(cached) " >&6
4619else
4620  if test -n "$MAKEINFO"; then
4621  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4622else
4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626  IFS=$as_save_IFS
4627  test -z "$as_dir" && as_dir=.
4628    for ac_exec_ext in '' $ac_executable_extensions; do
4629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630    ac_cv_prog_MAKEINFO="makeinfo"
4631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632    break 2
4633  fi
4634done
4635  done
4636IFS=$as_save_IFS
4637
4638fi
4639fi
4640MAKEINFO=$ac_cv_prog_MAKEINFO
4641if test -n "$MAKEINFO"; then
4642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4643$as_echo "$MAKEINFO" >&6; }
4644else
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646$as_echo "no" >&6; }
4647fi
4648
4649
4650  if test -n "$MAKEINFO"; then
4651    # Found it, now check the version.
4652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4653$as_echo_n "checking for modern makeinfo... " >&6; }
4654if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4655  $as_echo_n "(cached) " >&6
4656else
4657  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4658                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4659
4660                    case $ac_prog_version in
4661                      '')  gcc_cv_prog_makeinfo_modern=no;;
4662                      4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
4663                      *)   gcc_cv_prog_makeinfo_modern=no;;
4664                    esac
4665
4666fi
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4668$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4669  else
4670    gcc_cv_prog_makeinfo_modern=no
4671  fi
4672  if test $gcc_cv_prog_makeinfo_modern = no; then
4673    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4674  fi
4675
4676 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4677  BUILD_INFO_TRUE=
4678  BUILD_INFO_FALSE='#'
4679else
4680  BUILD_INFO_TRUE='#'
4681  BUILD_INFO_FALSE=
4682fi
4683
4684
4685
4686# Configure libtool
4687case `pwd` in
4688  *\ * | *\	*)
4689    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4690$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4691esac
4692
4693
4694
4695macro_version='2.2.7a'
4696macro_revision='1.3134'
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710ltmain="$ac_aux_dir/ltmain.sh"
4711
4712# Backslashify metacharacters that are still active within
4713# double-quoted strings.
4714sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4715
4716# Same as above, but do not quote variable references.
4717double_quote_subst='s/\(["`\\]\)/\\\1/g'
4718
4719# Sed substitution to delay expansion of an escaped shell variable in a
4720# double_quote_subst'ed string.
4721delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4722
4723# Sed substitution to delay expansion of an escaped single quote.
4724delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4725
4726# Sed substitution to avoid accidental globbing in evaled expressions
4727no_glob_subst='s/\*/\\\*/g'
4728
4729ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4730ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4731ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4732
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4734$as_echo_n "checking how to print strings... " >&6; }
4735# Test print first, because it will be a builtin if present.
4736if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4737   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4738  ECHO='print -r --'
4739elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4740  ECHO='printf %s\n'
4741else
4742  # Use this function as a fallback that always works.
4743  func_fallback_echo ()
4744  {
4745    eval 'cat <<_LTECHO_EOF
4746$1
4747_LTECHO_EOF'
4748  }
4749  ECHO='func_fallback_echo'
4750fi
4751
4752# func_echo_all arg...
4753# Invoke $ECHO with all args, space-separated.
4754func_echo_all ()
4755{
4756    $ECHO ""
4757}
4758
4759case "$ECHO" in
4760  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4761$as_echo "printf" >&6; } ;;
4762  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4763$as_echo "print -r" >&6; } ;;
4764  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4765$as_echo "cat" >&6; } ;;
4766esac
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4782$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4783if test "${ac_cv_path_SED+set}" = set; then :
4784  $as_echo_n "(cached) " >&6
4785else
4786            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4787     for ac_i in 1 2 3 4 5 6 7; do
4788       ac_script="$ac_script$as_nl$ac_script"
4789     done
4790     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4791     { ac_script=; unset ac_script;}
4792     if test -z "$SED"; then
4793  ac_path_SED_found=false
4794  # Loop through the user's path and test for each of PROGNAME-LIST
4795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796for as_dir in $PATH
4797do
4798  IFS=$as_save_IFS
4799  test -z "$as_dir" && as_dir=.
4800    for ac_prog in sed gsed; do
4801    for ac_exec_ext in '' $ac_executable_extensions; do
4802      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4803      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4804# Check for GNU ac_path_SED and select it if it is found.
4805  # Check for GNU $ac_path_SED
4806case `"$ac_path_SED" --version 2>&1` in
4807*GNU*)
4808  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4809*)
4810  ac_count=0
4811  $as_echo_n 0123456789 >"conftest.in"
4812  while :
4813  do
4814    cat "conftest.in" "conftest.in" >"conftest.tmp"
4815    mv "conftest.tmp" "conftest.in"
4816    cp "conftest.in" "conftest.nl"
4817    $as_echo '' >> "conftest.nl"
4818    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4819    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4820    as_fn_arith $ac_count + 1 && ac_count=$as_val
4821    if test $ac_count -gt ${ac_path_SED_max-0}; then
4822      # Best one so far, save it but keep looking for a better one
4823      ac_cv_path_SED="$ac_path_SED"
4824      ac_path_SED_max=$ac_count
4825    fi
4826    # 10*(2^10) chars as input seems more than enough
4827    test $ac_count -gt 10 && break
4828  done
4829  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4830esac
4831
4832      $ac_path_SED_found && break 3
4833    done
4834  done
4835  done
4836IFS=$as_save_IFS
4837  if test -z "$ac_cv_path_SED"; then
4838    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4839  fi
4840else
4841  ac_cv_path_SED=$SED
4842fi
4843
4844fi
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4846$as_echo "$ac_cv_path_SED" >&6; }
4847 SED="$ac_cv_path_SED"
4848  rm -f conftest.sed
4849
4850test -z "$SED" && SED=sed
4851Xsed="$SED -e 1s/^X//"
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4864$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4865if test "${ac_cv_path_GREP+set}" = set; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  if test -z "$GREP"; then
4869  ac_path_GREP_found=false
4870  # Loop through the user's path and test for each of PROGNAME-LIST
4871  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4873do
4874  IFS=$as_save_IFS
4875  test -z "$as_dir" && as_dir=.
4876    for ac_prog in grep ggrep; do
4877    for ac_exec_ext in '' $ac_executable_extensions; do
4878      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4879      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4880# Check for GNU ac_path_GREP and select it if it is found.
4881  # Check for GNU $ac_path_GREP
4882case `"$ac_path_GREP" --version 2>&1` in
4883*GNU*)
4884  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4885*)
4886  ac_count=0
4887  $as_echo_n 0123456789 >"conftest.in"
4888  while :
4889  do
4890    cat "conftest.in" "conftest.in" >"conftest.tmp"
4891    mv "conftest.tmp" "conftest.in"
4892    cp "conftest.in" "conftest.nl"
4893    $as_echo 'GREP' >> "conftest.nl"
4894    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4895    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4896    as_fn_arith $ac_count + 1 && ac_count=$as_val
4897    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4898      # Best one so far, save it but keep looking for a better one
4899      ac_cv_path_GREP="$ac_path_GREP"
4900      ac_path_GREP_max=$ac_count
4901    fi
4902    # 10*(2^10) chars as input seems more than enough
4903    test $ac_count -gt 10 && break
4904  done
4905  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4906esac
4907
4908      $ac_path_GREP_found && break 3
4909    done
4910  done
4911  done
4912IFS=$as_save_IFS
4913  if test -z "$ac_cv_path_GREP"; then
4914    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4915  fi
4916else
4917  ac_cv_path_GREP=$GREP
4918fi
4919
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4922$as_echo "$ac_cv_path_GREP" >&6; }
4923 GREP="$ac_cv_path_GREP"
4924
4925
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4927$as_echo_n "checking for egrep... " >&6; }
4928if test "${ac_cv_path_EGREP+set}" = set; then :
4929  $as_echo_n "(cached) " >&6
4930else
4931  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4932   then ac_cv_path_EGREP="$GREP -E"
4933   else
4934     if test -z "$EGREP"; then
4935  ac_path_EGREP_found=false
4936  # Loop through the user's path and test for each of PROGNAME-LIST
4937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4939do
4940  IFS=$as_save_IFS
4941  test -z "$as_dir" && as_dir=.
4942    for ac_prog in egrep; do
4943    for ac_exec_ext in '' $ac_executable_extensions; do
4944      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4945      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4946# Check for GNU ac_path_EGREP and select it if it is found.
4947  # Check for GNU $ac_path_EGREP
4948case `"$ac_path_EGREP" --version 2>&1` in
4949*GNU*)
4950  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4951*)
4952  ac_count=0
4953  $as_echo_n 0123456789 >"conftest.in"
4954  while :
4955  do
4956    cat "conftest.in" "conftest.in" >"conftest.tmp"
4957    mv "conftest.tmp" "conftest.in"
4958    cp "conftest.in" "conftest.nl"
4959    $as_echo 'EGREP' >> "conftest.nl"
4960    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4961    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4962    as_fn_arith $ac_count + 1 && ac_count=$as_val
4963    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4964      # Best one so far, save it but keep looking for a better one
4965      ac_cv_path_EGREP="$ac_path_EGREP"
4966      ac_path_EGREP_max=$ac_count
4967    fi
4968    # 10*(2^10) chars as input seems more than enough
4969    test $ac_count -gt 10 && break
4970  done
4971  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4972esac
4973
4974      $ac_path_EGREP_found && break 3
4975    done
4976  done
4977  done
4978IFS=$as_save_IFS
4979  if test -z "$ac_cv_path_EGREP"; then
4980    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4981  fi
4982else
4983  ac_cv_path_EGREP=$EGREP
4984fi
4985
4986   fi
4987fi
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4989$as_echo "$ac_cv_path_EGREP" >&6; }
4990 EGREP="$ac_cv_path_EGREP"
4991
4992
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4994$as_echo_n "checking for fgrep... " >&6; }
4995if test "${ac_cv_path_FGREP+set}" = set; then :
4996  $as_echo_n "(cached) " >&6
4997else
4998  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4999   then ac_cv_path_FGREP="$GREP -F"
5000   else
5001     if test -z "$FGREP"; then
5002  ac_path_FGREP_found=false
5003  # Loop through the user's path and test for each of PROGNAME-LIST
5004  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5006do
5007  IFS=$as_save_IFS
5008  test -z "$as_dir" && as_dir=.
5009    for ac_prog in fgrep; do
5010    for ac_exec_ext in '' $ac_executable_extensions; do
5011      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5012      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5013# Check for GNU ac_path_FGREP and select it if it is found.
5014  # Check for GNU $ac_path_FGREP
5015case `"$ac_path_FGREP" --version 2>&1` in
5016*GNU*)
5017  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5018*)
5019  ac_count=0
5020  $as_echo_n 0123456789 >"conftest.in"
5021  while :
5022  do
5023    cat "conftest.in" "conftest.in" >"conftest.tmp"
5024    mv "conftest.tmp" "conftest.in"
5025    cp "conftest.in" "conftest.nl"
5026    $as_echo 'FGREP' >> "conftest.nl"
5027    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5028    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5029    as_fn_arith $ac_count + 1 && ac_count=$as_val
5030    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5031      # Best one so far, save it but keep looking for a better one
5032      ac_cv_path_FGREP="$ac_path_FGREP"
5033      ac_path_FGREP_max=$ac_count
5034    fi
5035    # 10*(2^10) chars as input seems more than enough
5036    test $ac_count -gt 10 && break
5037  done
5038  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5039esac
5040
5041      $ac_path_FGREP_found && break 3
5042    done
5043  done
5044  done
5045IFS=$as_save_IFS
5046  if test -z "$ac_cv_path_FGREP"; then
5047    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5048  fi
5049else
5050  ac_cv_path_FGREP=$FGREP
5051fi
5052
5053   fi
5054fi
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5056$as_echo "$ac_cv_path_FGREP" >&6; }
5057 FGREP="$ac_cv_path_FGREP"
5058
5059
5060test -z "$GREP" && GREP=grep
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080# Check whether --with-gnu-ld was given.
5081if test "${with_gnu_ld+set}" = set; then :
5082  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5083else
5084  with_gnu_ld=no
5085fi
5086
5087ac_prog=ld
5088if test "$GCC" = yes; then
5089  # Check if gcc -print-prog-name=ld gives a path.
5090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5091$as_echo_n "checking for ld used by $CC... " >&6; }
5092  case $host in
5093  *-*-mingw*)
5094    # gcc leaves a trailing carriage return which upsets mingw
5095    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5096  *)
5097    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5098  esac
5099  case $ac_prog in
5100    # Accept absolute paths.
5101    [\\/]* | ?:[\\/]*)
5102      re_direlt='/[^/][^/]*/\.\./'
5103      # Canonicalize the pathname of ld
5104      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5105      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5106	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5107      done
5108      test -z "$LD" && LD="$ac_prog"
5109      ;;
5110  "")
5111    # If it fails, then pretend we aren't using GCC.
5112    ac_prog=ld
5113    ;;
5114  *)
5115    # If it is relative, then search for the first ld in PATH.
5116    with_gnu_ld=unknown
5117    ;;
5118  esac
5119elif test "$with_gnu_ld" = yes; then
5120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5121$as_echo_n "checking for GNU ld... " >&6; }
5122else
5123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5124$as_echo_n "checking for non-GNU ld... " >&6; }
5125fi
5126if test "${lt_cv_path_LD+set}" = set; then :
5127  $as_echo_n "(cached) " >&6
5128else
5129  if test -z "$LD"; then
5130  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5131  for ac_dir in $PATH; do
5132    IFS="$lt_save_ifs"
5133    test -z "$ac_dir" && ac_dir=.
5134    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5135      lt_cv_path_LD="$ac_dir/$ac_prog"
5136      # Check to see if the program is GNU ld.  I'd rather use --version,
5137      # but apparently some variants of GNU ld only accept -v.
5138      # Break only if it was the GNU/non-GNU ld that we prefer.
5139      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5140      *GNU* | *'with BFD'*)
5141	test "$with_gnu_ld" != no && break
5142	;;
5143      *)
5144	test "$with_gnu_ld" != yes && break
5145	;;
5146      esac
5147    fi
5148  done
5149  IFS="$lt_save_ifs"
5150else
5151  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5152fi
5153fi
5154
5155LD="$lt_cv_path_LD"
5156if test -n "$LD"; then
5157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5158$as_echo "$LD" >&6; }
5159else
5160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161$as_echo "no" >&6; }
5162fi
5163test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5165$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5166if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5167  $as_echo_n "(cached) " >&6
5168else
5169  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5170case `$LD -v 2>&1 </dev/null` in
5171*GNU* | *'with BFD'*)
5172  lt_cv_prog_gnu_ld=yes
5173  ;;
5174*)
5175  lt_cv_prog_gnu_ld=no
5176  ;;
5177esac
5178fi
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5180$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5181with_gnu_ld=$lt_cv_prog_gnu_ld
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5192$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5193if test "${lt_cv_path_NM+set}" = set; then :
5194  $as_echo_n "(cached) " >&6
5195else
5196  if test -n "$NM"; then
5197  # Let the user override the test.
5198  lt_cv_path_NM="$NM"
5199else
5200  lt_nm_to_check="${ac_tool_prefix}nm"
5201  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5202    lt_nm_to_check="$lt_nm_to_check nm"
5203  fi
5204  for lt_tmp_nm in $lt_nm_to_check; do
5205    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5206    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5207      IFS="$lt_save_ifs"
5208      test -z "$ac_dir" && ac_dir=.
5209      tmp_nm="$ac_dir/$lt_tmp_nm"
5210      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5211	# Check to see if the nm accepts a BSD-compat flag.
5212	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5213	#   nm: unknown option "B" ignored
5214	# Tru64's nm complains that /dev/null is an invalid object file
5215	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5216	*/dev/null* | *'Invalid file or object type'*)
5217	  lt_cv_path_NM="$tmp_nm -B"
5218	  break
5219	  ;;
5220	*)
5221	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5222	  */dev/null*)
5223	    lt_cv_path_NM="$tmp_nm -p"
5224	    break
5225	    ;;
5226	  *)
5227	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5228	    continue # so that we can try to find one that supports BSD flags
5229	    ;;
5230	  esac
5231	  ;;
5232	esac
5233      fi
5234    done
5235    IFS="$lt_save_ifs"
5236  done
5237  : ${lt_cv_path_NM=no}
5238fi
5239fi
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5241$as_echo "$lt_cv_path_NM" >&6; }
5242if test "$lt_cv_path_NM" != "no"; then
5243  NM="$lt_cv_path_NM"
5244else
5245  # Didn't find any BSD compatible name lister, look for dumpbin.
5246  if test -n "$DUMPBIN"; then :
5247    # Let the user override the test.
5248  else
5249    if test -n "$ac_tool_prefix"; then
5250  for ac_prog in dumpbin "link -dump"
5251  do
5252    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5253set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255$as_echo_n "checking for $ac_word... " >&6; }
5256if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5257  $as_echo_n "(cached) " >&6
5258else
5259  if test -n "$DUMPBIN"; then
5260  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5261else
5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263for as_dir in $PATH
5264do
5265  IFS=$as_save_IFS
5266  test -z "$as_dir" && as_dir=.
5267    for ac_exec_ext in '' $ac_executable_extensions; do
5268  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271    break 2
5272  fi
5273done
5274  done
5275IFS=$as_save_IFS
5276
5277fi
5278fi
5279DUMPBIN=$ac_cv_prog_DUMPBIN
5280if test -n "$DUMPBIN"; then
5281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5282$as_echo "$DUMPBIN" >&6; }
5283else
5284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285$as_echo "no" >&6; }
5286fi
5287
5288
5289    test -n "$DUMPBIN" && break
5290  done
5291fi
5292if test -z "$DUMPBIN"; then
5293  ac_ct_DUMPBIN=$DUMPBIN
5294  for ac_prog in dumpbin "link -dump"
5295do
5296  # Extract the first word of "$ac_prog", so it can be a program name with args.
5297set dummy $ac_prog; ac_word=$2
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299$as_echo_n "checking for $ac_word... " >&6; }
5300if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5301  $as_echo_n "(cached) " >&6
5302else
5303  if test -n "$ac_ct_DUMPBIN"; then
5304  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5305else
5306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307for as_dir in $PATH
5308do
5309  IFS=$as_save_IFS
5310  test -z "$as_dir" && as_dir=.
5311    for ac_exec_ext in '' $ac_executable_extensions; do
5312  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315    break 2
5316  fi
5317done
5318  done
5319IFS=$as_save_IFS
5320
5321fi
5322fi
5323ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5324if test -n "$ac_ct_DUMPBIN"; then
5325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5326$as_echo "$ac_ct_DUMPBIN" >&6; }
5327else
5328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329$as_echo "no" >&6; }
5330fi
5331
5332
5333  test -n "$ac_ct_DUMPBIN" && break
5334done
5335
5336  if test "x$ac_ct_DUMPBIN" = x; then
5337    DUMPBIN=":"
5338  else
5339    case $cross_compiling:$ac_tool_warned in
5340yes:)
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5343ac_tool_warned=yes ;;
5344esac
5345    DUMPBIN=$ac_ct_DUMPBIN
5346  fi
5347fi
5348
5349    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5350    *COFF*)
5351      DUMPBIN="$DUMPBIN -symbols"
5352      ;;
5353    *)
5354      DUMPBIN=:
5355      ;;
5356    esac
5357  fi
5358
5359  if test "$DUMPBIN" != ":"; then
5360    NM="$DUMPBIN"
5361  fi
5362fi
5363test -z "$NM" && NM=nm
5364
5365
5366
5367
5368
5369
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5371$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5372if test "${lt_cv_nm_interface+set}" = set; then :
5373  $as_echo_n "(cached) " >&6
5374else
5375  lt_cv_nm_interface="BSD nm"
5376  echo "int some_variable = 0;" > conftest.$ac_ext
5377  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5378  (eval "$ac_compile" 2>conftest.err)
5379  cat conftest.err >&5
5380  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5381  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5382  cat conftest.err >&5
5383  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5384  cat conftest.out >&5
5385  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5386    lt_cv_nm_interface="MS dumpbin"
5387  fi
5388  rm -f conftest*
5389fi
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5391$as_echo "$lt_cv_nm_interface" >&6; }
5392
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5394$as_echo_n "checking whether ln -s works... " >&6; }
5395LN_S=$as_ln_s
5396if test "$LN_S" = "ln -s"; then
5397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5398$as_echo "yes" >&6; }
5399else
5400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5401$as_echo "no, using $LN_S" >&6; }
5402fi
5403
5404# find the maximum length of command line arguments
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5406$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5407if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5408  $as_echo_n "(cached) " >&6
5409else
5410    i=0
5411  teststring="ABCD"
5412
5413  case $build_os in
5414  msdosdjgpp*)
5415    # On DJGPP, this test can blow up pretty badly due to problems in libc
5416    # (any single argument exceeding 2000 bytes causes a buffer overrun
5417    # during glob expansion).  Even if it were fixed, the result of this
5418    # check would be larger than it should be.
5419    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5420    ;;
5421
5422  gnu*)
5423    # Under GNU Hurd, this test is not required because there is
5424    # no limit to the length of command line arguments.
5425    # Libtool will interpret -1 as no limit whatsoever
5426    lt_cv_sys_max_cmd_len=-1;
5427    ;;
5428
5429  cygwin* | mingw* | cegcc*)
5430    # On Win9x/ME, this test blows up -- it succeeds, but takes
5431    # about 5 minutes as the teststring grows exponentially.
5432    # Worse, since 9x/ME are not pre-emptively multitasking,
5433    # you end up with a "frozen" computer, even though with patience
5434    # the test eventually succeeds (with a max line length of 256k).
5435    # Instead, let's just punt: use the minimum linelength reported by
5436    # all of the supported platforms: 8192 (on NT/2K/XP).
5437    lt_cv_sys_max_cmd_len=8192;
5438    ;;
5439
5440  mint*)
5441    # On MiNT this can take a long time and run out of memory.
5442    lt_cv_sys_max_cmd_len=8192;
5443    ;;
5444
5445  amigaos*)
5446    # On AmigaOS with pdksh, this test takes hours, literally.
5447    # So we just punt and use a minimum line length of 8192.
5448    lt_cv_sys_max_cmd_len=8192;
5449    ;;
5450
5451  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5452    # This has been around since 386BSD, at least.  Likely further.
5453    if test -x /sbin/sysctl; then
5454      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5455    elif test -x /usr/sbin/sysctl; then
5456      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5457    else
5458      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5459    fi
5460    # And add a safety zone
5461    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5462    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5463    ;;
5464
5465  interix*)
5466    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5467    lt_cv_sys_max_cmd_len=196608
5468    ;;
5469
5470  osf*)
5471    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5472    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5473    # nice to cause kernel panics so lets avoid the loop below.
5474    # First set a reasonable default.
5475    lt_cv_sys_max_cmd_len=16384
5476    #
5477    if test -x /sbin/sysconfig; then
5478      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5479        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5480      esac
5481    fi
5482    ;;
5483  sco3.2v5*)
5484    lt_cv_sys_max_cmd_len=102400
5485    ;;
5486  sysv5* | sco5v6* | sysv4.2uw2*)
5487    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5488    if test -n "$kargmax"; then
5489      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5490    else
5491      lt_cv_sys_max_cmd_len=32768
5492    fi
5493    ;;
5494  *)
5495    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5496    if test -n "$lt_cv_sys_max_cmd_len"; then
5497      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5498      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5499    else
5500      # Make teststring a little bigger before we do anything with it.
5501      # a 1K string should be a reasonable start.
5502      for i in 1 2 3 4 5 6 7 8 ; do
5503        teststring=$teststring$teststring
5504      done
5505      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5506      # If test is not a shell built-in, we'll probably end up computing a
5507      # maximum length that is only half of the actual maximum length, but
5508      # we can't tell.
5509      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5510	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5511	      test $i != 17 # 1/2 MB should be enough
5512      do
5513        i=`expr $i + 1`
5514        teststring=$teststring$teststring
5515      done
5516      # Only check the string length outside the loop.
5517      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5518      teststring=
5519      # Add a significant safety factor because C++ compilers can tack on
5520      # massive amounts of additional arguments before passing them to the
5521      # linker.  It appears as though 1/2 is a usable value.
5522      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5523    fi
5524    ;;
5525  esac
5526
5527fi
5528
5529if test -n $lt_cv_sys_max_cmd_len ; then
5530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5531$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5532else
5533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5534$as_echo "none" >&6; }
5535fi
5536max_cmd_len=$lt_cv_sys_max_cmd_len
5537
5538
5539
5540
5541
5542
5543: ${CP="cp -f"}
5544: ${MV="mv -f"}
5545: ${RM="rm -f"}
5546
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5548$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5549# Try some XSI features
5550xsi_shell=no
5551( _lt_dummy="a/b/c"
5552  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5553      = c,a/b,, \
5554    && eval 'test $(( 1 + 1 )) -eq 2 \
5555    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5556  && xsi_shell=yes
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5558$as_echo "$xsi_shell" >&6; }
5559
5560
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5562$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5563lt_shell_append=no
5564( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5565    >/dev/null 2>&1 \
5566  && lt_shell_append=yes
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5568$as_echo "$lt_shell_append" >&6; }
5569
5570
5571if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5572  lt_unset=unset
5573else
5574  lt_unset=false
5575fi
5576
5577
5578
5579
5580
5581# test EBCDIC or ASCII
5582case `echo X|tr X '\101'` in
5583 A) # ASCII based system
5584    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5585  lt_SP2NL='tr \040 \012'
5586  lt_NL2SP='tr \015\012 \040\040'
5587  ;;
5588 *) # EBCDIC based system
5589  lt_SP2NL='tr \100 \n'
5590  lt_NL2SP='tr \r\n \100\100'
5591  ;;
5592esac
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5603$as_echo_n "checking for $LD option to reload object files... " >&6; }
5604if test "${lt_cv_ld_reload_flag+set}" = set; then :
5605  $as_echo_n "(cached) " >&6
5606else
5607  lt_cv_ld_reload_flag='-r'
5608fi
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5610$as_echo "$lt_cv_ld_reload_flag" >&6; }
5611reload_flag=$lt_cv_ld_reload_flag
5612case $reload_flag in
5613"" | " "*) ;;
5614*) reload_flag=" $reload_flag" ;;
5615esac
5616reload_cmds='$LD$reload_flag -o $output$reload_objs'
5617case $host_os in
5618  darwin*)
5619    if test "$GCC" = yes; then
5620      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5621    else
5622      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5623    fi
5624    ;;
5625esac
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635if test -n "$ac_tool_prefix"; then
5636  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5637set dummy ${ac_tool_prefix}objdump; ac_word=$2
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639$as_echo_n "checking for $ac_word... " >&6; }
5640if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5641  $as_echo_n "(cached) " >&6
5642else
5643  if test -n "$OBJDUMP"; then
5644  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5645else
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649  IFS=$as_save_IFS
5650  test -z "$as_dir" && as_dir=.
5651    for ac_exec_ext in '' $ac_executable_extensions; do
5652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5653    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655    break 2
5656  fi
5657done
5658  done
5659IFS=$as_save_IFS
5660
5661fi
5662fi
5663OBJDUMP=$ac_cv_prog_OBJDUMP
5664if test -n "$OBJDUMP"; then
5665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5666$as_echo "$OBJDUMP" >&6; }
5667else
5668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669$as_echo "no" >&6; }
5670fi
5671
5672
5673fi
5674if test -z "$ac_cv_prog_OBJDUMP"; then
5675  ac_ct_OBJDUMP=$OBJDUMP
5676  # Extract the first word of "objdump", so it can be a program name with args.
5677set dummy objdump; ac_word=$2
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679$as_echo_n "checking for $ac_word... " >&6; }
5680if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5681  $as_echo_n "(cached) " >&6
5682else
5683  if test -n "$ac_ct_OBJDUMP"; then
5684  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5685else
5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687for as_dir in $PATH
5688do
5689  IFS=$as_save_IFS
5690  test -z "$as_dir" && as_dir=.
5691    for ac_exec_ext in '' $ac_executable_extensions; do
5692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695    break 2
5696  fi
5697done
5698  done
5699IFS=$as_save_IFS
5700
5701fi
5702fi
5703ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5704if test -n "$ac_ct_OBJDUMP"; then
5705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5706$as_echo "$ac_ct_OBJDUMP" >&6; }
5707else
5708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709$as_echo "no" >&6; }
5710fi
5711
5712  if test "x$ac_ct_OBJDUMP" = x; then
5713    OBJDUMP="false"
5714  else
5715    case $cross_compiling:$ac_tool_warned in
5716yes:)
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5719ac_tool_warned=yes ;;
5720esac
5721    OBJDUMP=$ac_ct_OBJDUMP
5722  fi
5723else
5724  OBJDUMP="$ac_cv_prog_OBJDUMP"
5725fi
5726
5727test -z "$OBJDUMP" && OBJDUMP=objdump
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5738$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5739if test "${lt_cv_deplibs_check_method+set}" = set; then :
5740  $as_echo_n "(cached) " >&6
5741else
5742  lt_cv_file_magic_cmd='$MAGIC_CMD'
5743lt_cv_file_magic_test_file=
5744lt_cv_deplibs_check_method='unknown'
5745# Need to set the preceding variable on all platforms that support
5746# interlibrary dependencies.
5747# 'none' -- dependencies not supported.
5748# `unknown' -- same as none, but documents that we really don't know.
5749# 'pass_all' -- all dependencies passed with no checks.
5750# 'test_compile' -- check by making test program.
5751# 'file_magic [[regex]]' -- check by looking for files in library path
5752# which responds to the $file_magic_cmd with a given extended regex.
5753# If you have `file' or equivalent on your system and you're not sure
5754# whether `pass_all' will *always* work, you probably want this one.
5755
5756case $host_os in
5757aix[4-9]*)
5758  lt_cv_deplibs_check_method=pass_all
5759  ;;
5760
5761beos*)
5762  lt_cv_deplibs_check_method=pass_all
5763  ;;
5764
5765bsdi[45]*)
5766  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5767  lt_cv_file_magic_cmd='/usr/bin/file -L'
5768  lt_cv_file_magic_test_file=/shlib/libc.so
5769  ;;
5770
5771cygwin*)
5772  # func_win32_libid is a shell function defined in ltmain.sh
5773  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5774  lt_cv_file_magic_cmd='func_win32_libid'
5775  ;;
5776
5777mingw* | pw32*)
5778  # Base MSYS/MinGW do not provide the 'file' command needed by
5779  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5780  # unless we find 'file', for example because we are cross-compiling.
5781  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5782  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5783    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5784    lt_cv_file_magic_cmd='func_win32_libid'
5785  else
5786    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5787    lt_cv_file_magic_cmd='$OBJDUMP -f'
5788  fi
5789  ;;
5790
5791cegcc*)
5792  # use the weaker test based on 'objdump'. See mingw*.
5793  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5794  lt_cv_file_magic_cmd='$OBJDUMP -f'
5795  ;;
5796
5797darwin* | rhapsody*)
5798  lt_cv_deplibs_check_method=pass_all
5799  ;;
5800
5801freebsd* | dragonfly*)
5802  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5803    case $host_cpu in
5804    i*86 )
5805      # Not sure whether the presence of OpenBSD here was a mistake.
5806      # Let's accept both of them until this is cleared up.
5807      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5808      lt_cv_file_magic_cmd=/usr/bin/file
5809      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5810      ;;
5811    esac
5812  else
5813    lt_cv_deplibs_check_method=pass_all
5814  fi
5815  ;;
5816
5817gnu*)
5818  lt_cv_deplibs_check_method=pass_all
5819  ;;
5820
5821haiku*)
5822  lt_cv_deplibs_check_method=pass_all
5823  ;;
5824
5825hpux10.20* | hpux11*)
5826  lt_cv_file_magic_cmd=/usr/bin/file
5827  case $host_cpu in
5828  ia64*)
5829    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5830    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5831    ;;
5832  hppa*64*)
5833    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]'
5834    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5835    ;;
5836  *)
5837    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5838    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5839    ;;
5840  esac
5841  ;;
5842
5843interix[3-9]*)
5844  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5845  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5846  ;;
5847
5848irix5* | irix6* | nonstopux*)
5849  case $LD in
5850  *-32|*"-32 ") libmagic=32-bit;;
5851  *-n32|*"-n32 ") libmagic=N32;;
5852  *-64|*"-64 ") libmagic=64-bit;;
5853  *) libmagic=never-match;;
5854  esac
5855  lt_cv_deplibs_check_method=pass_all
5856  ;;
5857
5858# This must be Linux ELF.
5859linux* | k*bsd*-gnu | kopensolaris*-gnu)
5860  lt_cv_deplibs_check_method=pass_all
5861  ;;
5862
5863netbsd*)
5864  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5865    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5866  else
5867    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5868  fi
5869  ;;
5870
5871newos6*)
5872  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5873  lt_cv_file_magic_cmd=/usr/bin/file
5874  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5875  ;;
5876
5877*nto* | *qnx*)
5878  lt_cv_deplibs_check_method=pass_all
5879  ;;
5880
5881openbsd*)
5882  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5883    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5884  else
5885    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5886  fi
5887  ;;
5888
5889osf3* | osf4* | osf5*)
5890  lt_cv_deplibs_check_method=pass_all
5891  ;;
5892
5893rdos*)
5894  lt_cv_deplibs_check_method=pass_all
5895  ;;
5896
5897solaris*)
5898  lt_cv_deplibs_check_method=pass_all
5899  ;;
5900
5901sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5902  lt_cv_deplibs_check_method=pass_all
5903  ;;
5904
5905sysv4 | sysv4.3*)
5906  case $host_vendor in
5907  motorola)
5908    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]'
5909    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5910    ;;
5911  ncr)
5912    lt_cv_deplibs_check_method=pass_all
5913    ;;
5914  sequent)
5915    lt_cv_file_magic_cmd='/bin/file'
5916    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5917    ;;
5918  sni)
5919    lt_cv_file_magic_cmd='/bin/file'
5920    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5921    lt_cv_file_magic_test_file=/lib/libc.so
5922    ;;
5923  siemens)
5924    lt_cv_deplibs_check_method=pass_all
5925    ;;
5926  pc)
5927    lt_cv_deplibs_check_method=pass_all
5928    ;;
5929  esac
5930  ;;
5931
5932tpf*)
5933  lt_cv_deplibs_check_method=pass_all
5934  ;;
5935esac
5936
5937fi
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5939$as_echo "$lt_cv_deplibs_check_method" >&6; }
5940file_magic_cmd=$lt_cv_file_magic_cmd
5941deplibs_check_method=$lt_cv_deplibs_check_method
5942test -z "$deplibs_check_method" && deplibs_check_method=unknown
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955if test -n "$ac_tool_prefix"; then
5956  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5957set dummy ${ac_tool_prefix}ar; ac_word=$2
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959$as_echo_n "checking for $ac_word... " >&6; }
5960if test "${ac_cv_prog_AR+set}" = set; then :
5961  $as_echo_n "(cached) " >&6
5962else
5963  if test -n "$AR"; then
5964  ac_cv_prog_AR="$AR" # Let the user override the test.
5965else
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969  IFS=$as_save_IFS
5970  test -z "$as_dir" && as_dir=.
5971    for ac_exec_ext in '' $ac_executable_extensions; do
5972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973    ac_cv_prog_AR="${ac_tool_prefix}ar"
5974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975    break 2
5976  fi
5977done
5978  done
5979IFS=$as_save_IFS
5980
5981fi
5982fi
5983AR=$ac_cv_prog_AR
5984if test -n "$AR"; then
5985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5986$as_echo "$AR" >&6; }
5987else
5988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989$as_echo "no" >&6; }
5990fi
5991
5992
5993fi
5994if test -z "$ac_cv_prog_AR"; then
5995  ac_ct_AR=$AR
5996  # Extract the first word of "ar", so it can be a program name with args.
5997set dummy ar; ac_word=$2
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999$as_echo_n "checking for $ac_word... " >&6; }
6000if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6001  $as_echo_n "(cached) " >&6
6002else
6003  if test -n "$ac_ct_AR"; then
6004  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6005else
6006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007for as_dir in $PATH
6008do
6009  IFS=$as_save_IFS
6010  test -z "$as_dir" && as_dir=.
6011    for ac_exec_ext in '' $ac_executable_extensions; do
6012  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013    ac_cv_prog_ac_ct_AR="ar"
6014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015    break 2
6016  fi
6017done
6018  done
6019IFS=$as_save_IFS
6020
6021fi
6022fi
6023ac_ct_AR=$ac_cv_prog_ac_ct_AR
6024if test -n "$ac_ct_AR"; then
6025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6026$as_echo "$ac_ct_AR" >&6; }
6027else
6028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029$as_echo "no" >&6; }
6030fi
6031
6032  if test "x$ac_ct_AR" = x; then
6033    AR="false"
6034  else
6035    case $cross_compiling:$ac_tool_warned in
6036yes:)
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039ac_tool_warned=yes ;;
6040esac
6041    AR=$ac_ct_AR
6042  fi
6043else
6044  AR="$ac_cv_prog_AR"
6045fi
6046
6047test -z "$AR" && AR=ar
6048test -z "$AR_FLAGS" && AR_FLAGS=cru
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060if test -n "$ac_tool_prefix"; then
6061  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6062set dummy ${ac_tool_prefix}strip; ac_word=$2
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064$as_echo_n "checking for $ac_word... " >&6; }
6065if test "${ac_cv_prog_STRIP+set}" = set; then :
6066  $as_echo_n "(cached) " >&6
6067else
6068  if test -n "$STRIP"; then
6069  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6070else
6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074  IFS=$as_save_IFS
6075  test -z "$as_dir" && as_dir=.
6076    for ac_exec_ext in '' $ac_executable_extensions; do
6077  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080    break 2
6081  fi
6082done
6083  done
6084IFS=$as_save_IFS
6085
6086fi
6087fi
6088STRIP=$ac_cv_prog_STRIP
6089if test -n "$STRIP"; then
6090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6091$as_echo "$STRIP" >&6; }
6092else
6093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094$as_echo "no" >&6; }
6095fi
6096
6097
6098fi
6099if test -z "$ac_cv_prog_STRIP"; then
6100  ac_ct_STRIP=$STRIP
6101  # Extract the first word of "strip", so it can be a program name with args.
6102set dummy strip; ac_word=$2
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104$as_echo_n "checking for $ac_word... " >&6; }
6105if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6106  $as_echo_n "(cached) " >&6
6107else
6108  if test -n "$ac_ct_STRIP"; then
6109  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6110else
6111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112for as_dir in $PATH
6113do
6114  IFS=$as_save_IFS
6115  test -z "$as_dir" && as_dir=.
6116    for ac_exec_ext in '' $ac_executable_extensions; do
6117  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118    ac_cv_prog_ac_ct_STRIP="strip"
6119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120    break 2
6121  fi
6122done
6123  done
6124IFS=$as_save_IFS
6125
6126fi
6127fi
6128ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6129if test -n "$ac_ct_STRIP"; then
6130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6131$as_echo "$ac_ct_STRIP" >&6; }
6132else
6133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134$as_echo "no" >&6; }
6135fi
6136
6137  if test "x$ac_ct_STRIP" = x; then
6138    STRIP=":"
6139  else
6140    case $cross_compiling:$ac_tool_warned in
6141yes:)
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6144ac_tool_warned=yes ;;
6145esac
6146    STRIP=$ac_ct_STRIP
6147  fi
6148else
6149  STRIP="$ac_cv_prog_STRIP"
6150fi
6151
6152test -z "$STRIP" && STRIP=:
6153
6154
6155
6156
6157
6158
6159if test -n "$ac_tool_prefix"; then
6160  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6161set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163$as_echo_n "checking for $ac_word... " >&6; }
6164if test "${ac_cv_prog_RANLIB+set}" = set; then :
6165  $as_echo_n "(cached) " >&6
6166else
6167  if test -n "$RANLIB"; then
6168  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6169else
6170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171for as_dir in $PATH
6172do
6173  IFS=$as_save_IFS
6174  test -z "$as_dir" && as_dir=.
6175    for ac_exec_ext in '' $ac_executable_extensions; do
6176  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179    break 2
6180  fi
6181done
6182  done
6183IFS=$as_save_IFS
6184
6185fi
6186fi
6187RANLIB=$ac_cv_prog_RANLIB
6188if test -n "$RANLIB"; then
6189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6190$as_echo "$RANLIB" >&6; }
6191else
6192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193$as_echo "no" >&6; }
6194fi
6195
6196
6197fi
6198if test -z "$ac_cv_prog_RANLIB"; then
6199  ac_ct_RANLIB=$RANLIB
6200  # Extract the first word of "ranlib", so it can be a program name with args.
6201set dummy ranlib; ac_word=$2
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203$as_echo_n "checking for $ac_word... " >&6; }
6204if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6205  $as_echo_n "(cached) " >&6
6206else
6207  if test -n "$ac_ct_RANLIB"; then
6208  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6209else
6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH
6212do
6213  IFS=$as_save_IFS
6214  test -z "$as_dir" && as_dir=.
6215    for ac_exec_ext in '' $ac_executable_extensions; do
6216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217    ac_cv_prog_ac_ct_RANLIB="ranlib"
6218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219    break 2
6220  fi
6221done
6222  done
6223IFS=$as_save_IFS
6224
6225fi
6226fi
6227ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6228if test -n "$ac_ct_RANLIB"; then
6229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6230$as_echo "$ac_ct_RANLIB" >&6; }
6231else
6232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233$as_echo "no" >&6; }
6234fi
6235
6236  if test "x$ac_ct_RANLIB" = x; then
6237    RANLIB=":"
6238  else
6239    case $cross_compiling:$ac_tool_warned in
6240yes:)
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6243ac_tool_warned=yes ;;
6244esac
6245    RANLIB=$ac_ct_RANLIB
6246  fi
6247else
6248  RANLIB="$ac_cv_prog_RANLIB"
6249fi
6250
6251test -z "$RANLIB" && RANLIB=:
6252
6253
6254
6255
6256
6257
6258# Determine commands to create old-style static archives.
6259old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6260old_postinstall_cmds='chmod 644 $oldlib'
6261old_postuninstall_cmds=
6262
6263if test -n "$RANLIB"; then
6264  case $host_os in
6265  openbsd*)
6266    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6267    ;;
6268  *)
6269    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6270    ;;
6271  esac
6272  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6273fi
6274
6275case $host_os in
6276  darwin*)
6277    lock_old_archive_extraction=yes ;;
6278  *)
6279    lock_old_archive_extraction=no ;;
6280esac
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320# If no C compiler was specified, use CC.
6321LTCC=${LTCC-"$CC"}
6322
6323# If no C compiler flags were specified, use CFLAGS.
6324LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6325
6326# Allow CC to be a program name with arguments.
6327compiler=$CC
6328
6329
6330# Check for command to grab the raw symbol name followed by C symbol from nm.
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6332$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6333if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6334  $as_echo_n "(cached) " >&6
6335else
6336
6337# These are sane defaults that work on at least a few old systems.
6338# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6339
6340# Character class describing NM global symbol codes.
6341symcode='[BCDEGRST]'
6342
6343# Regexp to match symbols that can be accessed directly from C.
6344sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6345
6346# Define system-specific variables.
6347case $host_os in
6348aix*)
6349  symcode='[BCDT]'
6350  ;;
6351cygwin* | mingw* | pw32* | cegcc*)
6352  symcode='[ABCDGISTW]'
6353  ;;
6354hpux*)
6355  if test "$host_cpu" = ia64; then
6356    symcode='[ABCDEGRST]'
6357  fi
6358  ;;
6359irix* | nonstopux*)
6360  symcode='[BCDEGRST]'
6361  ;;
6362osf*)
6363  symcode='[BCDEGQRST]'
6364  ;;
6365solaris*)
6366  symcode='[BDRT]'
6367  ;;
6368sco3.2v5*)
6369  symcode='[DT]'
6370  ;;
6371sysv4.2uw2*)
6372  symcode='[DT]'
6373  ;;
6374sysv5* | sco5v6* | unixware* | OpenUNIX*)
6375  symcode='[ABDT]'
6376  ;;
6377sysv4)
6378  symcode='[DFNSTU]'
6379  ;;
6380esac
6381
6382# If we're using GNU nm, then use its standard symbol codes.
6383case `$NM -V 2>&1` in
6384*GNU* | *'with BFD'*)
6385  symcode='[ABCDGIRSTW]' ;;
6386esac
6387
6388# Transform an extracted symbol line into a proper C declaration.
6389# Some systems (esp. on ia64) link data and code symbols differently,
6390# so use this general approach.
6391lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6392
6393# Transform an extracted symbol line into symbol name and symbol address
6394lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6395lt_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'"
6396
6397# Handle CRLF in mingw tool chain
6398opt_cr=
6399case $build_os in
6400mingw*)
6401  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6402  ;;
6403esac
6404
6405# Try without a prefix underscore, then with it.
6406for ac_symprfx in "" "_"; do
6407
6408  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6409  symxfrm="\\1 $ac_symprfx\\2 \\2"
6410
6411  # Write the raw and C identifiers.
6412  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6413    # Fake it for dumpbin and say T for any non-static function
6414    # and D for any global variable.
6415    # Also find C++ and __fastcall symbols from MSVC++,
6416    # which start with @ or ?.
6417    lt_cv_sys_global_symbol_pipe="$AWK '"\
6418"     {last_section=section; section=\$ 3};"\
6419"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6420"     \$ 0!~/External *\|/{next};"\
6421"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6422"     {if(hide[section]) next};"\
6423"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6424"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6425"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6426"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6427"     ' prfx=^$ac_symprfx"
6428  else
6429    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6430  fi
6431
6432  # Check to see that the pipe works correctly.
6433  pipe_works=no
6434
6435  rm -f conftest*
6436  cat > conftest.$ac_ext <<_LT_EOF
6437#ifdef __cplusplus
6438extern "C" {
6439#endif
6440char nm_test_var;
6441void nm_test_func(void);
6442void nm_test_func(void){}
6443#ifdef __cplusplus
6444}
6445#endif
6446int main(){nm_test_var='a';nm_test_func();return(0);}
6447_LT_EOF
6448
6449  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6450  (eval $ac_compile) 2>&5
6451  ac_status=$?
6452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6453  test $ac_status = 0; }; then
6454    # Now try to grab the symbols.
6455    nlist=conftest.nm
6456    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6457  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6458  ac_status=$?
6459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6460  test $ac_status = 0; } && test -s "$nlist"; then
6461      # Try sorting and uniquifying the output.
6462      if sort "$nlist" | uniq > "$nlist"T; then
6463	mv -f "$nlist"T "$nlist"
6464      else
6465	rm -f "$nlist"T
6466      fi
6467
6468      # Make sure that we snagged all the symbols we need.
6469      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6470	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6471	  cat <<_LT_EOF > conftest.$ac_ext
6472#ifdef __cplusplus
6473extern "C" {
6474#endif
6475
6476_LT_EOF
6477	  # Now generate the symbol file.
6478	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6479
6480	  cat <<_LT_EOF >> conftest.$ac_ext
6481
6482/* The mapping between symbol names and symbols.  */
6483const struct {
6484  const char *name;
6485  void       *address;
6486}
6487lt__PROGRAM__LTX_preloaded_symbols[] =
6488{
6489  { "@PROGRAM@", (void *) 0 },
6490_LT_EOF
6491	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6492	  cat <<\_LT_EOF >> conftest.$ac_ext
6493  {0, (void *) 0}
6494};
6495
6496/* This works around a problem in FreeBSD linker */
6497#ifdef FREEBSD_WORKAROUND
6498static const void *lt_preloaded_setup() {
6499  return lt__PROGRAM__LTX_preloaded_symbols;
6500}
6501#endif
6502
6503#ifdef __cplusplus
6504}
6505#endif
6506_LT_EOF
6507	  # Now try linking the two files.
6508	  mv conftest.$ac_objext conftstm.$ac_objext
6509	  lt_save_LIBS="$LIBS"
6510	  lt_save_CFLAGS="$CFLAGS"
6511	  LIBS="conftstm.$ac_objext"
6512	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6513	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6514  (eval $ac_link) 2>&5
6515  ac_status=$?
6516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6518	    pipe_works=yes
6519	  fi
6520	  LIBS="$lt_save_LIBS"
6521	  CFLAGS="$lt_save_CFLAGS"
6522	else
6523	  echo "cannot find nm_test_func in $nlist" >&5
6524	fi
6525      else
6526	echo "cannot find nm_test_var in $nlist" >&5
6527      fi
6528    else
6529      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6530    fi
6531  else
6532    echo "$progname: failed program was:" >&5
6533    cat conftest.$ac_ext >&5
6534  fi
6535  rm -rf conftest* conftst*
6536
6537  # Do not use the global_symbol_pipe unless it works.
6538  if test "$pipe_works" = yes; then
6539    break
6540  else
6541    lt_cv_sys_global_symbol_pipe=
6542  fi
6543done
6544
6545fi
6546
6547if test -z "$lt_cv_sys_global_symbol_pipe"; then
6548  lt_cv_sys_global_symbol_to_cdecl=
6549fi
6550if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6552$as_echo "failed" >&6; }
6553else
6554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6555$as_echo "ok" >&6; }
6556fi
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580# Check whether --enable-libtool-lock was given.
6581if test "${enable_libtool_lock+set}" = set; then :
6582  enableval=$enable_libtool_lock;
6583fi
6584
6585test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6586
6587# Some flags need to be propagated to the compiler or linker for good
6588# libtool support.
6589case $host in
6590ia64-*-hpux*)
6591  # Find out which ABI we are using.
6592  echo 'int i;' > conftest.$ac_ext
6593  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6594  (eval $ac_compile) 2>&5
6595  ac_status=$?
6596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597  test $ac_status = 0; }; then
6598    case `/usr/bin/file conftest.$ac_objext` in
6599      *ELF-32*)
6600	HPUX_IA64_MODE="32"
6601	;;
6602      *ELF-64*)
6603	HPUX_IA64_MODE="64"
6604	;;
6605    esac
6606  fi
6607  rm -rf conftest*
6608  ;;
6609*-*-irix6*)
6610  # Find out which ABI we are using.
6611  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6612  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6613  (eval $ac_compile) 2>&5
6614  ac_status=$?
6615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616  test $ac_status = 0; }; then
6617    if test "$lt_cv_prog_gnu_ld" = yes; then
6618      case `/usr/bin/file conftest.$ac_objext` in
6619	*32-bit*)
6620	  LD="${LD-ld} -melf32bsmip"
6621	  ;;
6622	*N32*)
6623	  LD="${LD-ld} -melf32bmipn32"
6624	  ;;
6625	*64-bit*)
6626	  LD="${LD-ld} -melf64bmip"
6627	;;
6628      esac
6629    else
6630      case `/usr/bin/file conftest.$ac_objext` in
6631	*32-bit*)
6632	  LD="${LD-ld} -32"
6633	  ;;
6634	*N32*)
6635	  LD="${LD-ld} -n32"
6636	  ;;
6637	*64-bit*)
6638	  LD="${LD-ld} -64"
6639	  ;;
6640      esac
6641    fi
6642  fi
6643  rm -rf conftest*
6644  ;;
6645
6646x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6647s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6648  # Find out which ABI we are using.
6649  echo 'int i;' > conftest.$ac_ext
6650  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6651  (eval $ac_compile) 2>&5
6652  ac_status=$?
6653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654  test $ac_status = 0; }; then
6655    case `/usr/bin/file conftest.o` in
6656      *32-bit*)
6657	case $host in
6658	  x86_64-*kfreebsd*-gnu)
6659	    LD="${LD-ld} -m elf_i386_fbsd"
6660	    ;;
6661	  x86_64-*linux*)
6662	    case `/usr/bin/file conftest.o` in
6663	      *x86-64*)
6664		LD="${LD-ld} -m elf32_x86_64"
6665		;;
6666	      *)
6667		LD="${LD-ld} -m elf_i386"
6668		;;
6669	    esac
6670	    ;;
6671	  powerpc64le-*linux*)
6672	    LD="${LD-ld} -m elf32lppclinux"
6673	    ;;
6674	  powerpc64-*linux*)
6675	    LD="${LD-ld} -m elf32ppclinux"
6676	    ;;
6677	  s390x-*linux*)
6678	    LD="${LD-ld} -m elf_s390"
6679	    ;;
6680	  sparc64-*linux*)
6681	    LD="${LD-ld} -m elf32_sparc"
6682	    ;;
6683	esac
6684	;;
6685      *64-bit*)
6686	case $host in
6687	  x86_64-*kfreebsd*-gnu)
6688	    LD="${LD-ld} -m elf_x86_64_fbsd"
6689	    ;;
6690	  x86_64-*linux*)
6691	    LD="${LD-ld} -m elf_x86_64"
6692	    ;;
6693	  powerpcle-*linux*)
6694	    LD="${LD-ld} -m elf64lppc"
6695	    ;;
6696	  powerpc-*linux*)
6697	    LD="${LD-ld} -m elf64ppc"
6698	    ;;
6699	  s390*-*linux*|s390*-*tpf*)
6700	    LD="${LD-ld} -m elf64_s390"
6701	    ;;
6702	  sparc*-*linux*)
6703	    LD="${LD-ld} -m elf64_sparc"
6704	    ;;
6705	esac
6706	;;
6707    esac
6708  fi
6709  rm -rf conftest*
6710  ;;
6711
6712*-*-sco3.2v5*)
6713  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6714  SAVE_CFLAGS="$CFLAGS"
6715  CFLAGS="$CFLAGS -belf"
6716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6717$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6718if test "${lt_cv_cc_needs_belf+set}" = set; then :
6719  $as_echo_n "(cached) " >&6
6720else
6721  ac_ext=c
6722ac_cpp='$CPP $CPPFLAGS'
6723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6725ac_compiler_gnu=$ac_cv_c_compiler_gnu
6726
6727     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728/* end confdefs.h.  */
6729
6730int
6731main ()
6732{
6733
6734  ;
6735  return 0;
6736}
6737_ACEOF
6738if ac_fn_c_try_link "$LINENO"; then :
6739  lt_cv_cc_needs_belf=yes
6740else
6741  lt_cv_cc_needs_belf=no
6742fi
6743rm -f core conftest.err conftest.$ac_objext \
6744    conftest$ac_exeext conftest.$ac_ext
6745     ac_ext=c
6746ac_cpp='$CPP $CPPFLAGS'
6747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749ac_compiler_gnu=$ac_cv_c_compiler_gnu
6750
6751fi
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6753$as_echo "$lt_cv_cc_needs_belf" >&6; }
6754  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6755    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6756    CFLAGS="$SAVE_CFLAGS"
6757  fi
6758  ;;
6759sparc*-*solaris*)
6760  # Find out which ABI we are using.
6761  echo 'int i;' > conftest.$ac_ext
6762  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6763  (eval $ac_compile) 2>&5
6764  ac_status=$?
6765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6766  test $ac_status = 0; }; then
6767    case `/usr/bin/file conftest.o` in
6768    *64-bit*)
6769      case $lt_cv_prog_gnu_ld in
6770      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6771      *)
6772	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6773	  LD="${LD-ld} -64"
6774	fi
6775	;;
6776      esac
6777      ;;
6778    esac
6779  fi
6780  rm -rf conftest*
6781  ;;
6782esac
6783
6784need_locks="$enable_libtool_lock"
6785
6786
6787  case $host_os in
6788    rhapsody* | darwin*)
6789    if test -n "$ac_tool_prefix"; then
6790  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6791set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793$as_echo_n "checking for $ac_word... " >&6; }
6794if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6795  $as_echo_n "(cached) " >&6
6796else
6797  if test -n "$DSYMUTIL"; then
6798  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803  IFS=$as_save_IFS
6804  test -z "$as_dir" && as_dir=.
6805    for ac_exec_ext in '' $ac_executable_extensions; do
6806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809    break 2
6810  fi
6811done
6812  done
6813IFS=$as_save_IFS
6814
6815fi
6816fi
6817DSYMUTIL=$ac_cv_prog_DSYMUTIL
6818if test -n "$DSYMUTIL"; then
6819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6820$as_echo "$DSYMUTIL" >&6; }
6821else
6822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823$as_echo "no" >&6; }
6824fi
6825
6826
6827fi
6828if test -z "$ac_cv_prog_DSYMUTIL"; then
6829  ac_ct_DSYMUTIL=$DSYMUTIL
6830  # Extract the first word of "dsymutil", so it can be a program name with args.
6831set dummy dsymutil; ac_word=$2
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833$as_echo_n "checking for $ac_word... " >&6; }
6834if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6835  $as_echo_n "(cached) " >&6
6836else
6837  if test -n "$ac_ct_DSYMUTIL"; then
6838  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6839else
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843  IFS=$as_save_IFS
6844  test -z "$as_dir" && as_dir=.
6845    for ac_exec_ext in '' $ac_executable_extensions; do
6846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6847    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849    break 2
6850  fi
6851done
6852  done
6853IFS=$as_save_IFS
6854
6855fi
6856fi
6857ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6858if test -n "$ac_ct_DSYMUTIL"; then
6859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6860$as_echo "$ac_ct_DSYMUTIL" >&6; }
6861else
6862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863$as_echo "no" >&6; }
6864fi
6865
6866  if test "x$ac_ct_DSYMUTIL" = x; then
6867    DSYMUTIL=":"
6868  else
6869    case $cross_compiling:$ac_tool_warned in
6870yes:)
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6873ac_tool_warned=yes ;;
6874esac
6875    DSYMUTIL=$ac_ct_DSYMUTIL
6876  fi
6877else
6878  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6879fi
6880
6881    if test -n "$ac_tool_prefix"; then
6882  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6883set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885$as_echo_n "checking for $ac_word... " >&6; }
6886if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6887  $as_echo_n "(cached) " >&6
6888else
6889  if test -n "$NMEDIT"; then
6890  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6891else
6892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893for as_dir in $PATH
6894do
6895  IFS=$as_save_IFS
6896  test -z "$as_dir" && as_dir=.
6897    for ac_exec_ext in '' $ac_executable_extensions; do
6898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6899    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901    break 2
6902  fi
6903done
6904  done
6905IFS=$as_save_IFS
6906
6907fi
6908fi
6909NMEDIT=$ac_cv_prog_NMEDIT
6910if test -n "$NMEDIT"; then
6911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6912$as_echo "$NMEDIT" >&6; }
6913else
6914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915$as_echo "no" >&6; }
6916fi
6917
6918
6919fi
6920if test -z "$ac_cv_prog_NMEDIT"; then
6921  ac_ct_NMEDIT=$NMEDIT
6922  # Extract the first word of "nmedit", so it can be a program name with args.
6923set dummy nmedit; ac_word=$2
6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925$as_echo_n "checking for $ac_word... " >&6; }
6926if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6927  $as_echo_n "(cached) " >&6
6928else
6929  if test -n "$ac_ct_NMEDIT"; then
6930  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6931else
6932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933for as_dir in $PATH
6934do
6935  IFS=$as_save_IFS
6936  test -z "$as_dir" && as_dir=.
6937    for ac_exec_ext in '' $ac_executable_extensions; do
6938  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6939    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941    break 2
6942  fi
6943done
6944  done
6945IFS=$as_save_IFS
6946
6947fi
6948fi
6949ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6950if test -n "$ac_ct_NMEDIT"; then
6951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6952$as_echo "$ac_ct_NMEDIT" >&6; }
6953else
6954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955$as_echo "no" >&6; }
6956fi
6957
6958  if test "x$ac_ct_NMEDIT" = x; then
6959    NMEDIT=":"
6960  else
6961    case $cross_compiling:$ac_tool_warned in
6962yes:)
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6965ac_tool_warned=yes ;;
6966esac
6967    NMEDIT=$ac_ct_NMEDIT
6968  fi
6969else
6970  NMEDIT="$ac_cv_prog_NMEDIT"
6971fi
6972
6973    if test -n "$ac_tool_prefix"; then
6974  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6975set dummy ${ac_tool_prefix}lipo; ac_word=$2
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977$as_echo_n "checking for $ac_word... " >&6; }
6978if test "${ac_cv_prog_LIPO+set}" = set; then :
6979  $as_echo_n "(cached) " >&6
6980else
6981  if test -n "$LIPO"; then
6982  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6983else
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987  IFS=$as_save_IFS
6988  test -z "$as_dir" && as_dir=.
6989    for ac_exec_ext in '' $ac_executable_extensions; do
6990  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993    break 2
6994  fi
6995done
6996  done
6997IFS=$as_save_IFS
6998
6999fi
7000fi
7001LIPO=$ac_cv_prog_LIPO
7002if test -n "$LIPO"; then
7003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7004$as_echo "$LIPO" >&6; }
7005else
7006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007$as_echo "no" >&6; }
7008fi
7009
7010
7011fi
7012if test -z "$ac_cv_prog_LIPO"; then
7013  ac_ct_LIPO=$LIPO
7014  # Extract the first word of "lipo", so it can be a program name with args.
7015set dummy lipo; ac_word=$2
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017$as_echo_n "checking for $ac_word... " >&6; }
7018if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7019  $as_echo_n "(cached) " >&6
7020else
7021  if test -n "$ac_ct_LIPO"; then
7022  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7023else
7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027  IFS=$as_save_IFS
7028  test -z "$as_dir" && as_dir=.
7029    for ac_exec_ext in '' $ac_executable_extensions; do
7030  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7031    ac_cv_prog_ac_ct_LIPO="lipo"
7032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033    break 2
7034  fi
7035done
7036  done
7037IFS=$as_save_IFS
7038
7039fi
7040fi
7041ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7042if test -n "$ac_ct_LIPO"; then
7043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7044$as_echo "$ac_ct_LIPO" >&6; }
7045else
7046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047$as_echo "no" >&6; }
7048fi
7049
7050  if test "x$ac_ct_LIPO" = x; then
7051    LIPO=":"
7052  else
7053    case $cross_compiling:$ac_tool_warned in
7054yes:)
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7057ac_tool_warned=yes ;;
7058esac
7059    LIPO=$ac_ct_LIPO
7060  fi
7061else
7062  LIPO="$ac_cv_prog_LIPO"
7063fi
7064
7065    if test -n "$ac_tool_prefix"; then
7066  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7067set dummy ${ac_tool_prefix}otool; ac_word=$2
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069$as_echo_n "checking for $ac_word... " >&6; }
7070if test "${ac_cv_prog_OTOOL+set}" = set; then :
7071  $as_echo_n "(cached) " >&6
7072else
7073  if test -n "$OTOOL"; then
7074  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7075else
7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079  IFS=$as_save_IFS
7080  test -z "$as_dir" && as_dir=.
7081    for ac_exec_ext in '' $ac_executable_extensions; do
7082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085    break 2
7086  fi
7087done
7088  done
7089IFS=$as_save_IFS
7090
7091fi
7092fi
7093OTOOL=$ac_cv_prog_OTOOL
7094if test -n "$OTOOL"; then
7095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7096$as_echo "$OTOOL" >&6; }
7097else
7098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099$as_echo "no" >&6; }
7100fi
7101
7102
7103fi
7104if test -z "$ac_cv_prog_OTOOL"; then
7105  ac_ct_OTOOL=$OTOOL
7106  # Extract the first word of "otool", so it can be a program name with args.
7107set dummy otool; ac_word=$2
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109$as_echo_n "checking for $ac_word... " >&6; }
7110if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7111  $as_echo_n "(cached) " >&6
7112else
7113  if test -n "$ac_ct_OTOOL"; then
7114  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7115else
7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119  IFS=$as_save_IFS
7120  test -z "$as_dir" && as_dir=.
7121    for ac_exec_ext in '' $ac_executable_extensions; do
7122  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7123    ac_cv_prog_ac_ct_OTOOL="otool"
7124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125    break 2
7126  fi
7127done
7128  done
7129IFS=$as_save_IFS
7130
7131fi
7132fi
7133ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7134if test -n "$ac_ct_OTOOL"; then
7135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7136$as_echo "$ac_ct_OTOOL" >&6; }
7137else
7138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139$as_echo "no" >&6; }
7140fi
7141
7142  if test "x$ac_ct_OTOOL" = x; then
7143    OTOOL=":"
7144  else
7145    case $cross_compiling:$ac_tool_warned in
7146yes:)
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7149ac_tool_warned=yes ;;
7150esac
7151    OTOOL=$ac_ct_OTOOL
7152  fi
7153else
7154  OTOOL="$ac_cv_prog_OTOOL"
7155fi
7156
7157    if test -n "$ac_tool_prefix"; then
7158  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7159set dummy ${ac_tool_prefix}otool64; ac_word=$2
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161$as_echo_n "checking for $ac_word... " >&6; }
7162if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7163  $as_echo_n "(cached) " >&6
7164else
7165  if test -n "$OTOOL64"; then
7166  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7167else
7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169for as_dir in $PATH
7170do
7171  IFS=$as_save_IFS
7172  test -z "$as_dir" && as_dir=.
7173    for ac_exec_ext in '' $ac_executable_extensions; do
7174  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177    break 2
7178  fi
7179done
7180  done
7181IFS=$as_save_IFS
7182
7183fi
7184fi
7185OTOOL64=$ac_cv_prog_OTOOL64
7186if test -n "$OTOOL64"; then
7187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7188$as_echo "$OTOOL64" >&6; }
7189else
7190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191$as_echo "no" >&6; }
7192fi
7193
7194
7195fi
7196if test -z "$ac_cv_prog_OTOOL64"; then
7197  ac_ct_OTOOL64=$OTOOL64
7198  # Extract the first word of "otool64", so it can be a program name with args.
7199set dummy otool64; ac_word=$2
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201$as_echo_n "checking for $ac_word... " >&6; }
7202if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7203  $as_echo_n "(cached) " >&6
7204else
7205  if test -n "$ac_ct_OTOOL64"; then
7206  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7207else
7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209for as_dir in $PATH
7210do
7211  IFS=$as_save_IFS
7212  test -z "$as_dir" && as_dir=.
7213    for ac_exec_ext in '' $ac_executable_extensions; do
7214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7215    ac_cv_prog_ac_ct_OTOOL64="otool64"
7216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217    break 2
7218  fi
7219done
7220  done
7221IFS=$as_save_IFS
7222
7223fi
7224fi
7225ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7226if test -n "$ac_ct_OTOOL64"; then
7227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7228$as_echo "$ac_ct_OTOOL64" >&6; }
7229else
7230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231$as_echo "no" >&6; }
7232fi
7233
7234  if test "x$ac_ct_OTOOL64" = x; then
7235    OTOOL64=":"
7236  else
7237    case $cross_compiling:$ac_tool_warned in
7238yes:)
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7241ac_tool_warned=yes ;;
7242esac
7243    OTOOL64=$ac_ct_OTOOL64
7244  fi
7245else
7246  OTOOL64="$ac_cv_prog_OTOOL64"
7247fi
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7276$as_echo_n "checking for -single_module linker flag... " >&6; }
7277if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7278  $as_echo_n "(cached) " >&6
7279else
7280  lt_cv_apple_cc_single_mod=no
7281      if test -z "${LT_MULTI_MODULE}"; then
7282	# By default we will add the -single_module flag. You can override
7283	# by either setting the environment variable LT_MULTI_MODULE
7284	# non-empty at configure time, or by adding -multi_module to the
7285	# link flags.
7286	rm -rf libconftest.dylib*
7287	echo "int foo(void){return 1;}" > conftest.c
7288	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7289-dynamiclib -Wl,-single_module conftest.c" >&5
7290	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7291	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7292        _lt_result=$?
7293	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7294	  lt_cv_apple_cc_single_mod=yes
7295	else
7296	  cat conftest.err >&5
7297	fi
7298	rm -rf libconftest.dylib*
7299	rm -f conftest.*
7300      fi
7301fi
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7303$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7304    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7305$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7306if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7307  $as_echo_n "(cached) " >&6
7308else
7309  lt_cv_ld_exported_symbols_list=no
7310      save_LDFLAGS=$LDFLAGS
7311      echo "_main" > conftest.sym
7312      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7313      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314/* end confdefs.h.  */
7315
7316int
7317main ()
7318{
7319
7320  ;
7321  return 0;
7322}
7323_ACEOF
7324if ac_fn_c_try_link "$LINENO"; then :
7325  lt_cv_ld_exported_symbols_list=yes
7326else
7327  lt_cv_ld_exported_symbols_list=no
7328fi
7329rm -f core conftest.err conftest.$ac_objext \
7330    conftest$ac_exeext conftest.$ac_ext
7331	LDFLAGS="$save_LDFLAGS"
7332
7333fi
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7335$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7336    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7337$as_echo_n "checking for -force_load linker flag... " >&6; }
7338if test "${lt_cv_ld_force_load+set}" = set; then :
7339  $as_echo_n "(cached) " >&6
7340else
7341  lt_cv_ld_force_load=no
7342      cat > conftest.c << _LT_EOF
7343int forced_loaded() { return 2;}
7344_LT_EOF
7345      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7346      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7347      echo "$AR cru libconftest.a conftest.o" >&5
7348      $AR cru libconftest.a conftest.o 2>&5
7349      cat > conftest.c << _LT_EOF
7350int main() { return 0;}
7351_LT_EOF
7352      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7353      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7354      _lt_result=$?
7355      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7356	lt_cv_ld_force_load=yes
7357      else
7358	cat conftest.err >&5
7359      fi
7360        rm -f conftest.err libconftest.a conftest conftest.c
7361        rm -rf conftest.dSYM
7362
7363fi
7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7365$as_echo "$lt_cv_ld_force_load" >&6; }
7366    case $host_os in
7367    rhapsody* | darwin1.[012])
7368      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7369    darwin1.*)
7370      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7371    darwin*) # darwin 5.x on
7372      # if running on 10.5 or later, the deployment target defaults
7373      # to the OS version, if on x86, and 10.4, the deployment
7374      # target defaults to 10.4. Don't you love it?
7375      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7376	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7377	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7378	10.[012][,.]*)
7379	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7380	10.*)
7381	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7382      esac
7383    ;;
7384  esac
7385    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7386      _lt_dar_single_mod='$single_module'
7387    fi
7388    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7389      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7390    else
7391      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7392    fi
7393    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7394      _lt_dsymutil='~$DSYMUTIL $lib || :'
7395    else
7396      _lt_dsymutil=
7397    fi
7398    ;;
7399  esac
7400
7401ac_ext=c
7402ac_cpp='$CPP $CPPFLAGS'
7403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405ac_compiler_gnu=$ac_cv_c_compiler_gnu
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7407$as_echo_n "checking how to run the C preprocessor... " >&6; }
7408# On Suns, sometimes $CPP names a directory.
7409if test -n "$CPP" && test -d "$CPP"; then
7410  CPP=
7411fi
7412if test -z "$CPP"; then
7413  if test "${ac_cv_prog_CPP+set}" = set; then :
7414  $as_echo_n "(cached) " >&6
7415else
7416      # Double quotes because CPP needs to be expanded
7417    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7418    do
7419      ac_preproc_ok=false
7420for ac_c_preproc_warn_flag in '' yes
7421do
7422  # Use a header file that comes with gcc, so configuring glibc
7423  # with a fresh cross-compiler works.
7424  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7425  # <limits.h> exists even on freestanding compilers.
7426  # On the NeXT, cc -E runs the code through the compiler's parser,
7427  # not just through cpp. "Syntax error" is here to catch this case.
7428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429/* end confdefs.h.  */
7430#ifdef __STDC__
7431# include <limits.h>
7432#else
7433# include <assert.h>
7434#endif
7435		     Syntax error
7436_ACEOF
7437if ac_fn_c_try_cpp "$LINENO"; then :
7438
7439else
7440  # Broken: fails on valid input.
7441continue
7442fi
7443rm -f conftest.err conftest.$ac_ext
7444
7445  # OK, works on sane cases.  Now check whether nonexistent headers
7446  # can be detected and how.
7447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h.  */
7449#include <ac_nonexistent.h>
7450_ACEOF
7451if ac_fn_c_try_cpp "$LINENO"; then :
7452  # Broken: success on invalid input.
7453continue
7454else
7455  # Passes both tests.
7456ac_preproc_ok=:
7457break
7458fi
7459rm -f conftest.err conftest.$ac_ext
7460
7461done
7462# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7463rm -f conftest.err conftest.$ac_ext
7464if $ac_preproc_ok; then :
7465  break
7466fi
7467
7468    done
7469    ac_cv_prog_CPP=$CPP
7470
7471fi
7472  CPP=$ac_cv_prog_CPP
7473else
7474  ac_cv_prog_CPP=$CPP
7475fi
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7477$as_echo "$CPP" >&6; }
7478ac_preproc_ok=false
7479for ac_c_preproc_warn_flag in '' yes
7480do
7481  # Use a header file that comes with gcc, so configuring glibc
7482  # with a fresh cross-compiler works.
7483  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7484  # <limits.h> exists even on freestanding compilers.
7485  # On the NeXT, cc -E runs the code through the compiler's parser,
7486  # not just through cpp. "Syntax error" is here to catch this case.
7487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488/* end confdefs.h.  */
7489#ifdef __STDC__
7490# include <limits.h>
7491#else
7492# include <assert.h>
7493#endif
7494		     Syntax error
7495_ACEOF
7496if ac_fn_c_try_cpp "$LINENO"; then :
7497
7498else
7499  # Broken: fails on valid input.
7500continue
7501fi
7502rm -f conftest.err conftest.$ac_ext
7503
7504  # OK, works on sane cases.  Now check whether nonexistent headers
7505  # can be detected and how.
7506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507/* end confdefs.h.  */
7508#include <ac_nonexistent.h>
7509_ACEOF
7510if ac_fn_c_try_cpp "$LINENO"; then :
7511  # Broken: success on invalid input.
7512continue
7513else
7514  # Passes both tests.
7515ac_preproc_ok=:
7516break
7517fi
7518rm -f conftest.err conftest.$ac_ext
7519
7520done
7521# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7522rm -f conftest.err conftest.$ac_ext
7523if $ac_preproc_ok; then :
7524
7525else
7526  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7528as_fn_error "C preprocessor \"$CPP\" fails sanity check
7529See \`config.log' for more details." "$LINENO" 5; }
7530fi
7531
7532ac_ext=c
7533ac_cpp='$CPP $CPPFLAGS'
7534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537
7538
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7540$as_echo_n "checking for ANSI C header files... " >&6; }
7541if test "${ac_cv_header_stdc+set}" = set; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545/* end confdefs.h.  */
7546#include <stdlib.h>
7547#include <stdarg.h>
7548#include <string.h>
7549#include <float.h>
7550
7551int
7552main ()
7553{
7554
7555  ;
7556  return 0;
7557}
7558_ACEOF
7559if ac_fn_c_try_compile "$LINENO"; then :
7560  ac_cv_header_stdc=yes
7561else
7562  ac_cv_header_stdc=no
7563fi
7564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565
7566if test $ac_cv_header_stdc = yes; then
7567  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569/* end confdefs.h.  */
7570#include <string.h>
7571
7572_ACEOF
7573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7574  $EGREP "memchr" >/dev/null 2>&1; then :
7575
7576else
7577  ac_cv_header_stdc=no
7578fi
7579rm -f conftest*
7580
7581fi
7582
7583if test $ac_cv_header_stdc = yes; then
7584  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586/* end confdefs.h.  */
7587#include <stdlib.h>
7588
7589_ACEOF
7590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7591  $EGREP "free" >/dev/null 2>&1; then :
7592
7593else
7594  ac_cv_header_stdc=no
7595fi
7596rm -f conftest*
7597
7598fi
7599
7600if test $ac_cv_header_stdc = yes; then
7601  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7602  if test "$cross_compiling" = yes; then :
7603  :
7604else
7605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606/* end confdefs.h.  */
7607#include <ctype.h>
7608#include <stdlib.h>
7609#if ((' ' & 0x0FF) == 0x020)
7610# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7611# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7612#else
7613# define ISLOWER(c) \
7614		   (('a' <= (c) && (c) <= 'i') \
7615		     || ('j' <= (c) && (c) <= 'r') \
7616		     || ('s' <= (c) && (c) <= 'z'))
7617# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7618#endif
7619
7620#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7621int
7622main ()
7623{
7624  int i;
7625  for (i = 0; i < 256; i++)
7626    if (XOR (islower (i), ISLOWER (i))
7627	|| toupper (i) != TOUPPER (i))
7628      return 2;
7629  return 0;
7630}
7631_ACEOF
7632if ac_fn_c_try_run "$LINENO"; then :
7633
7634else
7635  ac_cv_header_stdc=no
7636fi
7637rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7638  conftest.$ac_objext conftest.beam conftest.$ac_ext
7639fi
7640
7641fi
7642fi
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7644$as_echo "$ac_cv_header_stdc" >&6; }
7645if test $ac_cv_header_stdc = yes; then
7646
7647$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7648
7649fi
7650
7651# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7652for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7653		  inttypes.h stdint.h unistd.h
7654do :
7655  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7656ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7657"
7658eval as_val=\$$as_ac_Header
7659   if test "x$as_val" = x""yes; then :
7660  cat >>confdefs.h <<_ACEOF
7661#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7662_ACEOF
7663
7664fi
7665
7666done
7667
7668
7669for ac_header in dlfcn.h
7670do :
7671  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7672"
7673if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7674  cat >>confdefs.h <<_ACEOF
7675#define HAVE_DLFCN_H 1
7676_ACEOF
7677
7678fi
7679
7680done
7681
7682
7683
7684
7685
7686# Set options
7687
7688
7689
7690        enable_dlopen=no
7691
7692
7693  enable_win32_dll=no
7694
7695
7696            # Check whether --enable-shared was given.
7697if test "${enable_shared+set}" = set; then :
7698  enableval=$enable_shared; p=${PACKAGE-default}
7699    case $enableval in
7700    yes) enable_shared=yes ;;
7701    no) enable_shared=no ;;
7702    *)
7703      enable_shared=no
7704      # Look at the argument we got.  We use all the common list separators.
7705      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7706      for pkg in $enableval; do
7707	IFS="$lt_save_ifs"
7708	if test "X$pkg" = "X$p"; then
7709	  enable_shared=yes
7710	fi
7711      done
7712      IFS="$lt_save_ifs"
7713      ;;
7714    esac
7715else
7716  enable_shared=yes
7717fi
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727  # Check whether --enable-static was given.
7728if test "${enable_static+set}" = set; then :
7729  enableval=$enable_static; p=${PACKAGE-default}
7730    case $enableval in
7731    yes) enable_static=yes ;;
7732    no) enable_static=no ;;
7733    *)
7734     enable_static=no
7735      # Look at the argument we got.  We use all the common list separators.
7736      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7737      for pkg in $enableval; do
7738	IFS="$lt_save_ifs"
7739	if test "X$pkg" = "X$p"; then
7740	  enable_static=yes
7741	fi
7742      done
7743      IFS="$lt_save_ifs"
7744      ;;
7745    esac
7746else
7747  enable_static=yes
7748fi
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759# Check whether --with-pic was given.
7760if test "${with_pic+set}" = set; then :
7761  withval=$with_pic; pic_mode="$withval"
7762else
7763  pic_mode=default
7764fi
7765
7766
7767test -z "$pic_mode" && pic_mode=default
7768
7769
7770
7771
7772
7773
7774
7775  # Check whether --enable-fast-install was given.
7776if test "${enable_fast_install+set}" = set; then :
7777  enableval=$enable_fast_install; p=${PACKAGE-default}
7778    case $enableval in
7779    yes) enable_fast_install=yes ;;
7780    no) enable_fast_install=no ;;
7781    *)
7782      enable_fast_install=no
7783      # Look at the argument we got.  We use all the common list separators.
7784      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7785      for pkg in $enableval; do
7786	IFS="$lt_save_ifs"
7787	if test "X$pkg" = "X$p"; then
7788	  enable_fast_install=yes
7789	fi
7790      done
7791      IFS="$lt_save_ifs"
7792      ;;
7793    esac
7794else
7795  enable_fast_install=yes
7796fi
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808# This can be used to rebuild libtool when needed
7809LIBTOOL_DEPS="$ltmain"
7810
7811# Always use our own libtool.
7812LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839test -z "$LN_S" && LN_S="ln -s"
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854if test -n "${ZSH_VERSION+set}" ; then
7855   setopt NO_GLOB_SUBST
7856fi
7857
7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7859$as_echo_n "checking for objdir... " >&6; }
7860if test "${lt_cv_objdir+set}" = set; then :
7861  $as_echo_n "(cached) " >&6
7862else
7863  rm -f .libs 2>/dev/null
7864mkdir .libs 2>/dev/null
7865if test -d .libs; then
7866  lt_cv_objdir=.libs
7867else
7868  # MS-DOS does not allow filenames that begin with a dot.
7869  lt_cv_objdir=_libs
7870fi
7871rmdir .libs 2>/dev/null
7872fi
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7874$as_echo "$lt_cv_objdir" >&6; }
7875objdir=$lt_cv_objdir
7876
7877
7878
7879
7880
7881cat >>confdefs.h <<_ACEOF
7882#define LT_OBJDIR "$lt_cv_objdir/"
7883_ACEOF
7884
7885
7886
7887
7888case $host_os in
7889aix3*)
7890  # AIX sometimes has problems with the GCC collect2 program.  For some
7891  # reason, if we set the COLLECT_NAMES environment variable, the problems
7892  # vanish in a puff of smoke.
7893  if test "X${COLLECT_NAMES+set}" != Xset; then
7894    COLLECT_NAMES=
7895    export COLLECT_NAMES
7896  fi
7897  ;;
7898esac
7899
7900# Global variables:
7901ofile=libtool
7902can_build_shared=yes
7903
7904# All known linkers require a `.a' archive for static linking (except MSVC,
7905# which needs '.lib').
7906libext=a
7907
7908with_gnu_ld="$lt_cv_prog_gnu_ld"
7909
7910old_CC="$CC"
7911old_CFLAGS="$CFLAGS"
7912
7913# Set sane defaults for various variables
7914test -z "$CC" && CC=cc
7915test -z "$LTCC" && LTCC=$CC
7916test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7917test -z "$LD" && LD=ld
7918test -z "$ac_objext" && ac_objext=o
7919
7920for cc_temp in $compiler""; do
7921  case $cc_temp in
7922    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7923    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7924    \-*) ;;
7925    *) break;;
7926  esac
7927done
7928cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7929
7930
7931# Only perform the check for file, if the check method requires it
7932test -z "$MAGIC_CMD" && MAGIC_CMD=file
7933case $deplibs_check_method in
7934file_magic*)
7935  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7937$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7938if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7939  $as_echo_n "(cached) " >&6
7940else
7941  case $MAGIC_CMD in
7942[\\/*] |  ?:[\\/]*)
7943  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7944  ;;
7945*)
7946  lt_save_MAGIC_CMD="$MAGIC_CMD"
7947  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7948  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7949  for ac_dir in $ac_dummy; do
7950    IFS="$lt_save_ifs"
7951    test -z "$ac_dir" && ac_dir=.
7952    if test -f $ac_dir/${ac_tool_prefix}file; then
7953      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7954      if test -n "$file_magic_test_file"; then
7955	case $deplibs_check_method in
7956	"file_magic "*)
7957	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7958	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7959	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7960	    $EGREP "$file_magic_regex" > /dev/null; then
7961	    :
7962	  else
7963	    cat <<_LT_EOF 1>&2
7964
7965*** Warning: the command libtool uses to detect shared libraries,
7966*** $file_magic_cmd, produces output that libtool cannot recognize.
7967*** The result is that libtool may fail to recognize shared libraries
7968*** as such.  This will affect the creation of libtool libraries that
7969*** depend on shared libraries, but programs linked with such libtool
7970*** libraries will work regardless of this problem.  Nevertheless, you
7971*** may want to report the problem to your system manager and/or to
7972*** bug-libtool@gnu.org
7973
7974_LT_EOF
7975	  fi ;;
7976	esac
7977      fi
7978      break
7979    fi
7980  done
7981  IFS="$lt_save_ifs"
7982  MAGIC_CMD="$lt_save_MAGIC_CMD"
7983  ;;
7984esac
7985fi
7986
7987MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7988if test -n "$MAGIC_CMD"; then
7989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7990$as_echo "$MAGIC_CMD" >&6; }
7991else
7992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993$as_echo "no" >&6; }
7994fi
7995
7996
7997
7998
7999
8000if test -z "$lt_cv_path_MAGIC_CMD"; then
8001  if test -n "$ac_tool_prefix"; then
8002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8003$as_echo_n "checking for file... " >&6; }
8004if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8005  $as_echo_n "(cached) " >&6
8006else
8007  case $MAGIC_CMD in
8008[\\/*] |  ?:[\\/]*)
8009  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8010  ;;
8011*)
8012  lt_save_MAGIC_CMD="$MAGIC_CMD"
8013  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8014  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8015  for ac_dir in $ac_dummy; do
8016    IFS="$lt_save_ifs"
8017    test -z "$ac_dir" && ac_dir=.
8018    if test -f $ac_dir/file; then
8019      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8020      if test -n "$file_magic_test_file"; then
8021	case $deplibs_check_method in
8022	"file_magic "*)
8023	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8024	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8025	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8026	    $EGREP "$file_magic_regex" > /dev/null; then
8027	    :
8028	  else
8029	    cat <<_LT_EOF 1>&2
8030
8031*** Warning: the command libtool uses to detect shared libraries,
8032*** $file_magic_cmd, produces output that libtool cannot recognize.
8033*** The result is that libtool may fail to recognize shared libraries
8034*** as such.  This will affect the creation of libtool libraries that
8035*** depend on shared libraries, but programs linked with such libtool
8036*** libraries will work regardless of this problem.  Nevertheless, you
8037*** may want to report the problem to your system manager and/or to
8038*** bug-libtool@gnu.org
8039
8040_LT_EOF
8041	  fi ;;
8042	esac
8043      fi
8044      break
8045    fi
8046  done
8047  IFS="$lt_save_ifs"
8048  MAGIC_CMD="$lt_save_MAGIC_CMD"
8049  ;;
8050esac
8051fi
8052
8053MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8054if test -n "$MAGIC_CMD"; then
8055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8056$as_echo "$MAGIC_CMD" >&6; }
8057else
8058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059$as_echo "no" >&6; }
8060fi
8061
8062
8063  else
8064    MAGIC_CMD=:
8065  fi
8066fi
8067
8068  fi
8069  ;;
8070esac
8071
8072# Use C for the default configuration in the libtool script
8073
8074lt_save_CC="$CC"
8075ac_ext=c
8076ac_cpp='$CPP $CPPFLAGS'
8077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8079ac_compiler_gnu=$ac_cv_c_compiler_gnu
8080
8081
8082# Source file extension for C test sources.
8083ac_ext=c
8084
8085# Object file extension for compiled C test sources.
8086objext=o
8087objext=$objext
8088
8089# Code to be used in simple compile tests
8090lt_simple_compile_test_code="int some_variable = 0;"
8091
8092# Code to be used in simple link tests
8093lt_simple_link_test_code='int main(){return(0);}'
8094
8095
8096
8097
8098
8099
8100
8101# If no C compiler was specified, use CC.
8102LTCC=${LTCC-"$CC"}
8103
8104# If no C compiler flags were specified, use CFLAGS.
8105LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8106
8107# Allow CC to be a program name with arguments.
8108compiler=$CC
8109
8110# Save the default compiler, since it gets overwritten when the other
8111# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8112compiler_DEFAULT=$CC
8113
8114# save warnings/boilerplate of simple test code
8115ac_outfile=conftest.$ac_objext
8116echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8117eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8118_lt_compiler_boilerplate=`cat conftest.err`
8119$RM conftest*
8120
8121ac_outfile=conftest.$ac_objext
8122echo "$lt_simple_link_test_code" >conftest.$ac_ext
8123eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8124_lt_linker_boilerplate=`cat conftest.err`
8125$RM -r conftest*
8126
8127
8128## CAVEAT EMPTOR:
8129## There is no encapsulation within the following macros, do not change
8130## the running order or otherwise move them around unless you know exactly
8131## what you are doing...
8132if test -n "$compiler"; then
8133
8134lt_prog_compiler_no_builtin_flag=
8135
8136if test "$GCC" = yes; then
8137  case $cc_basename in
8138  nvcc*)
8139    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8140  *)
8141    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8142  esac
8143
8144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8145$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8146if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8147  $as_echo_n "(cached) " >&6
8148else
8149  lt_cv_prog_compiler_rtti_exceptions=no
8150   ac_outfile=conftest.$ac_objext
8151   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8152   lt_compiler_flag="-fno-rtti -fno-exceptions"
8153   # Insert the option either (1) after the last *FLAGS variable, or
8154   # (2) before a word containing "conftest.", or (3) at the end.
8155   # Note that $ac_compile itself does not contain backslashes and begins
8156   # with a dollar sign (not a hyphen), so the echo should work correctly.
8157   # The option is referenced via a variable to avoid confusing sed.
8158   lt_compile=`echo "$ac_compile" | $SED \
8159   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8160   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8161   -e 's:$: $lt_compiler_flag:'`
8162   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8163   (eval "$lt_compile" 2>conftest.err)
8164   ac_status=$?
8165   cat conftest.err >&5
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   if (exit $ac_status) && test -s "$ac_outfile"; then
8168     # The compiler can only warn and ignore the option if not recognized
8169     # So say no if there are warnings other than the usual output.
8170     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8171     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8172     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8173       lt_cv_prog_compiler_rtti_exceptions=yes
8174     fi
8175   fi
8176   $RM conftest*
8177
8178fi
8179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8180$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8181
8182if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8183    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8184else
8185    :
8186fi
8187
8188fi
8189
8190
8191
8192
8193
8194
8195  lt_prog_compiler_wl=
8196lt_prog_compiler_pic=
8197lt_prog_compiler_static=
8198
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8200$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8201
8202  if test "$GCC" = yes; then
8203    lt_prog_compiler_wl='-Wl,'
8204    lt_prog_compiler_static='-static'
8205
8206    case $host_os in
8207      aix*)
8208      # All AIX code is PIC.
8209      if test "$host_cpu" = ia64; then
8210	# AIX 5 now supports IA64 processor
8211	lt_prog_compiler_static='-Bstatic'
8212      fi
8213      lt_prog_compiler_pic='-fPIC'
8214      ;;
8215
8216    amigaos*)
8217      case $host_cpu in
8218      powerpc)
8219            # see comment about AmigaOS4 .so support
8220            lt_prog_compiler_pic='-fPIC'
8221        ;;
8222      m68k)
8223            # FIXME: we need at least 68020 code to build shared libraries, but
8224            # adding the `-m68020' flag to GCC prevents building anything better,
8225            # like `-m68040'.
8226            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8227        ;;
8228      esac
8229      ;;
8230
8231    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8232      # PIC is the default for these OSes.
8233      ;;
8234
8235    mingw* | cygwin* | pw32* | os2* | cegcc*)
8236      # This hack is so that the source file can tell whether it is being
8237      # built for inclusion in a dll (and should export symbols for example).
8238      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8239      # (--disable-auto-import) libraries
8240      lt_prog_compiler_pic='-DDLL_EXPORT'
8241      ;;
8242
8243    darwin* | rhapsody*)
8244      # PIC is the default on this platform
8245      # Common symbols not allowed in MH_DYLIB files
8246      lt_prog_compiler_pic='-fno-common'
8247      ;;
8248
8249    haiku*)
8250      # PIC is the default for Haiku.
8251      # The "-static" flag exists, but is broken.
8252      lt_prog_compiler_static=
8253      ;;
8254
8255    hpux*)
8256      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8257      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8258      # sets the default TLS model and affects inlining.
8259      case $host_cpu in
8260      hppa*64*)
8261	# +Z the default
8262	;;
8263      *)
8264	lt_prog_compiler_pic='-fPIC'
8265	;;
8266      esac
8267      ;;
8268
8269    interix[3-9]*)
8270      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8271      # Instead, we relocate shared libraries at runtime.
8272      ;;
8273
8274    msdosdjgpp*)
8275      # Just because we use GCC doesn't mean we suddenly get shared libraries
8276      # on systems that don't support them.
8277      lt_prog_compiler_can_build_shared=no
8278      enable_shared=no
8279      ;;
8280
8281    *nto* | *qnx*)
8282      # QNX uses GNU C++, but need to define -shared option too, otherwise
8283      # it will coredump.
8284      lt_prog_compiler_pic='-fPIC -shared'
8285      ;;
8286
8287    sysv4*MP*)
8288      if test -d /usr/nec; then
8289	lt_prog_compiler_pic=-Kconform_pic
8290      fi
8291      ;;
8292
8293    *)
8294      lt_prog_compiler_pic='-fPIC'
8295      ;;
8296    esac
8297
8298    case $cc_basename in
8299    nvcc*) # Cuda Compiler Driver 2.2
8300      lt_prog_compiler_wl='-Xlinker '
8301      lt_prog_compiler_pic='-Xcompiler -fPIC'
8302      ;;
8303    esac
8304  else
8305    # PORTME Check for flag to pass linker flags through the system compiler.
8306    case $host_os in
8307    aix*)
8308      lt_prog_compiler_wl='-Wl,'
8309      if test "$host_cpu" = ia64; then
8310	# AIX 5 now supports IA64 processor
8311	lt_prog_compiler_static='-Bstatic'
8312      else
8313	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8314      fi
8315      ;;
8316
8317    mingw* | cygwin* | pw32* | os2* | cegcc*)
8318      # This hack is so that the source file can tell whether it is being
8319      # built for inclusion in a dll (and should export symbols for example).
8320      lt_prog_compiler_pic='-DDLL_EXPORT'
8321      ;;
8322
8323    hpux9* | hpux10* | hpux11*)
8324      lt_prog_compiler_wl='-Wl,'
8325      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8326      # not for PA HP-UX.
8327      case $host_cpu in
8328      hppa*64*|ia64*)
8329	# +Z the default
8330	;;
8331      *)
8332	lt_prog_compiler_pic='+Z'
8333	;;
8334      esac
8335      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8336      lt_prog_compiler_static='${wl}-a ${wl}archive'
8337      ;;
8338
8339    irix5* | irix6* | nonstopux*)
8340      lt_prog_compiler_wl='-Wl,'
8341      # PIC (with -KPIC) is the default.
8342      lt_prog_compiler_static='-non_shared'
8343      ;;
8344
8345    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8346      case $cc_basename in
8347      # old Intel for x86_64 which still supported -KPIC.
8348      ecc*)
8349	lt_prog_compiler_wl='-Wl,'
8350	lt_prog_compiler_pic='-KPIC'
8351	lt_prog_compiler_static='-static'
8352        ;;
8353      # icc used to be incompatible with GCC.
8354      # ICC 10 doesn't accept -KPIC any more.
8355      icc* | ifort*)
8356	lt_prog_compiler_wl='-Wl,'
8357	lt_prog_compiler_pic='-fPIC'
8358	lt_prog_compiler_static='-static'
8359        ;;
8360      # Lahey Fortran 8.1.
8361      lf95*)
8362	lt_prog_compiler_wl='-Wl,'
8363	lt_prog_compiler_pic='--shared'
8364	lt_prog_compiler_static='--static'
8365	;;
8366      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8367        # Portland Group compilers (*not* the Pentium gcc compiler,
8368	# which looks to be a dead project)
8369	lt_prog_compiler_wl='-Wl,'
8370	lt_prog_compiler_pic='-fpic'
8371	lt_prog_compiler_static='-Bstatic'
8372        ;;
8373      ccc*)
8374        lt_prog_compiler_wl='-Wl,'
8375        # All Alpha code is PIC.
8376        lt_prog_compiler_static='-non_shared'
8377        ;;
8378      xl* | bgxl* | bgf* | mpixl*)
8379	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8380	lt_prog_compiler_wl='-Wl,'
8381	lt_prog_compiler_pic='-qpic'
8382	lt_prog_compiler_static='-qstaticlink'
8383	;;
8384      *)
8385	case `$CC -V 2>&1 | sed 5q` in
8386	*Sun\ F* | *Sun*Fortran*)
8387	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8388	  lt_prog_compiler_pic='-KPIC'
8389	  lt_prog_compiler_static='-Bstatic'
8390	  lt_prog_compiler_wl=''
8391	  ;;
8392	*Sun\ C*)
8393	  # Sun C 5.9
8394	  lt_prog_compiler_pic='-KPIC'
8395	  lt_prog_compiler_static='-Bstatic'
8396	  lt_prog_compiler_wl='-Wl,'
8397	  ;;
8398	esac
8399	;;
8400      esac
8401      ;;
8402
8403    newsos6)
8404      lt_prog_compiler_pic='-KPIC'
8405      lt_prog_compiler_static='-Bstatic'
8406      ;;
8407
8408    *nto* | *qnx*)
8409      # QNX uses GNU C++, but need to define -shared option too, otherwise
8410      # it will coredump.
8411      lt_prog_compiler_pic='-fPIC -shared'
8412      ;;
8413
8414    osf3* | osf4* | osf5*)
8415      lt_prog_compiler_wl='-Wl,'
8416      # All OSF/1 code is PIC.
8417      lt_prog_compiler_static='-non_shared'
8418      ;;
8419
8420    rdos*)
8421      lt_prog_compiler_static='-non_shared'
8422      ;;
8423
8424    solaris*)
8425      lt_prog_compiler_pic='-KPIC'
8426      lt_prog_compiler_static='-Bstatic'
8427      case $cc_basename in
8428      f77* | f90* | f95*)
8429	lt_prog_compiler_wl='-Qoption ld ';;
8430      *)
8431	lt_prog_compiler_wl='-Wl,';;
8432      esac
8433      ;;
8434
8435    sunos4*)
8436      lt_prog_compiler_wl='-Qoption ld '
8437      lt_prog_compiler_pic='-PIC'
8438      lt_prog_compiler_static='-Bstatic'
8439      ;;
8440
8441    sysv4 | sysv4.2uw2* | sysv4.3*)
8442      lt_prog_compiler_wl='-Wl,'
8443      lt_prog_compiler_pic='-KPIC'
8444      lt_prog_compiler_static='-Bstatic'
8445      ;;
8446
8447    sysv4*MP*)
8448      if test -d /usr/nec ;then
8449	lt_prog_compiler_pic='-Kconform_pic'
8450	lt_prog_compiler_static='-Bstatic'
8451      fi
8452      ;;
8453
8454    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8455      lt_prog_compiler_wl='-Wl,'
8456      lt_prog_compiler_pic='-KPIC'
8457      lt_prog_compiler_static='-Bstatic'
8458      ;;
8459
8460    unicos*)
8461      lt_prog_compiler_wl='-Wl,'
8462      lt_prog_compiler_can_build_shared=no
8463      ;;
8464
8465    uts4*)
8466      lt_prog_compiler_pic='-pic'
8467      lt_prog_compiler_static='-Bstatic'
8468      ;;
8469
8470    *)
8471      lt_prog_compiler_can_build_shared=no
8472      ;;
8473    esac
8474  fi
8475
8476case $host_os in
8477  # For platforms which do not support PIC, -DPIC is meaningless:
8478  *djgpp*)
8479    lt_prog_compiler_pic=
8480    ;;
8481  *)
8482    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8483    ;;
8484esac
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8486$as_echo "$lt_prog_compiler_pic" >&6; }
8487
8488
8489
8490
8491
8492
8493#
8494# Check to make sure the PIC flag actually works.
8495#
8496if test -n "$lt_prog_compiler_pic"; then
8497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8498$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8499if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8500  $as_echo_n "(cached) " >&6
8501else
8502  lt_cv_prog_compiler_pic_works=no
8503   ac_outfile=conftest.$ac_objext
8504   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8505   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8506   # Insert the option either (1) after the last *FLAGS variable, or
8507   # (2) before a word containing "conftest.", or (3) at the end.
8508   # Note that $ac_compile itself does not contain backslashes and begins
8509   # with a dollar sign (not a hyphen), so the echo should work correctly.
8510   # The option is referenced via a variable to avoid confusing sed.
8511   lt_compile=`echo "$ac_compile" | $SED \
8512   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8513   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8514   -e 's:$: $lt_compiler_flag:'`
8515   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8516   (eval "$lt_compile" 2>conftest.err)
8517   ac_status=$?
8518   cat conftest.err >&5
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   if (exit $ac_status) && test -s "$ac_outfile"; then
8521     # The compiler can only warn and ignore the option if not recognized
8522     # So say no if there are warnings other than the usual output.
8523     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8524     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8525     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8526       lt_cv_prog_compiler_pic_works=yes
8527     fi
8528   fi
8529   $RM conftest*
8530
8531fi
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8533$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8534
8535if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8536    case $lt_prog_compiler_pic in
8537     "" | " "*) ;;
8538     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8539     esac
8540else
8541    lt_prog_compiler_pic=
8542     lt_prog_compiler_can_build_shared=no
8543fi
8544
8545fi
8546
8547
8548
8549
8550
8551
8552#
8553# Check to make sure the static flag actually works.
8554#
8555wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8557$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8558if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8559  $as_echo_n "(cached) " >&6
8560else
8561  lt_cv_prog_compiler_static_works=no
8562   save_LDFLAGS="$LDFLAGS"
8563   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8564   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8565   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8566     # The linker can only warn and ignore the option if not recognized
8567     # So say no if there are warnings
8568     if test -s conftest.err; then
8569       # Append any errors to the config.log.
8570       cat conftest.err 1>&5
8571       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8572       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8573       if diff conftest.exp conftest.er2 >/dev/null; then
8574         lt_cv_prog_compiler_static_works=yes
8575       fi
8576     else
8577       lt_cv_prog_compiler_static_works=yes
8578     fi
8579   fi
8580   $RM -r conftest*
8581   LDFLAGS="$save_LDFLAGS"
8582
8583fi
8584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8585$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8586
8587if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8588    :
8589else
8590    lt_prog_compiler_static=
8591fi
8592
8593
8594
8595
8596
8597
8598
8599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8600$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8601if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8602  $as_echo_n "(cached) " >&6
8603else
8604  lt_cv_prog_compiler_c_o=no
8605   $RM -r conftest 2>/dev/null
8606   mkdir conftest
8607   cd conftest
8608   mkdir out
8609   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8610
8611   lt_compiler_flag="-o out/conftest2.$ac_objext"
8612   # Insert the option either (1) after the last *FLAGS variable, or
8613   # (2) before a word containing "conftest.", or (3) at the end.
8614   # Note that $ac_compile itself does not contain backslashes and begins
8615   # with a dollar sign (not a hyphen), so the echo should work correctly.
8616   lt_compile=`echo "$ac_compile" | $SED \
8617   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8618   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8619   -e 's:$: $lt_compiler_flag:'`
8620   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8621   (eval "$lt_compile" 2>out/conftest.err)
8622   ac_status=$?
8623   cat out/conftest.err >&5
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8626   then
8627     # The compiler can only warn and ignore the option if not recognized
8628     # So say no if there are warnings
8629     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8630     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8631     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8632       lt_cv_prog_compiler_c_o=yes
8633     fi
8634   fi
8635   chmod u+w . 2>&5
8636   $RM conftest*
8637   # SGI C++ compiler will create directory out/ii_files/ for
8638   # template instantiation
8639   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8640   $RM out/* && rmdir out
8641   cd ..
8642   $RM -r conftest
8643   $RM conftest*
8644
8645fi
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8647$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8648
8649
8650
8651
8652
8653
8654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8655$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8656if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8657  $as_echo_n "(cached) " >&6
8658else
8659  lt_cv_prog_compiler_c_o=no
8660   $RM -r conftest 2>/dev/null
8661   mkdir conftest
8662   cd conftest
8663   mkdir out
8664   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8665
8666   lt_compiler_flag="-o out/conftest2.$ac_objext"
8667   # Insert the option either (1) after the last *FLAGS variable, or
8668   # (2) before a word containing "conftest.", or (3) at the end.
8669   # Note that $ac_compile itself does not contain backslashes and begins
8670   # with a dollar sign (not a hyphen), so the echo should work correctly.
8671   lt_compile=`echo "$ac_compile" | $SED \
8672   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8673   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8674   -e 's:$: $lt_compiler_flag:'`
8675   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8676   (eval "$lt_compile" 2>out/conftest.err)
8677   ac_status=$?
8678   cat out/conftest.err >&5
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8681   then
8682     # The compiler can only warn and ignore the option if not recognized
8683     # So say no if there are warnings
8684     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8685     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8686     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8687       lt_cv_prog_compiler_c_o=yes
8688     fi
8689   fi
8690   chmod u+w . 2>&5
8691   $RM conftest*
8692   # SGI C++ compiler will create directory out/ii_files/ for
8693   # template instantiation
8694   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8695   $RM out/* && rmdir out
8696   cd ..
8697   $RM -r conftest
8698   $RM conftest*
8699
8700fi
8701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8702$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8703
8704
8705
8706
8707hard_links="nottested"
8708if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8709  # do not overwrite the value of need_locks provided by the user
8710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8711$as_echo_n "checking if we can lock with hard links... " >&6; }
8712  hard_links=yes
8713  $RM conftest*
8714  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8715  touch conftest.a
8716  ln conftest.a conftest.b 2>&5 || hard_links=no
8717  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8719$as_echo "$hard_links" >&6; }
8720  if test "$hard_links" = no; then
8721    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8722$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8723    need_locks=warn
8724  fi
8725else
8726  need_locks=no
8727fi
8728
8729
8730
8731
8732
8733
8734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8735$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8736
8737  runpath_var=
8738  allow_undefined_flag=
8739  always_export_symbols=no
8740  archive_cmds=
8741  archive_expsym_cmds=
8742  compiler_needs_object=no
8743  enable_shared_with_static_runtimes=no
8744  export_dynamic_flag_spec=
8745  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8746  hardcode_automatic=no
8747  hardcode_direct=no
8748  hardcode_direct_absolute=no
8749  hardcode_libdir_flag_spec=
8750  hardcode_libdir_flag_spec_ld=
8751  hardcode_libdir_separator=
8752  hardcode_minus_L=no
8753  hardcode_shlibpath_var=unsupported
8754  inherit_rpath=no
8755  link_all_deplibs=unknown
8756  module_cmds=
8757  module_expsym_cmds=
8758  old_archive_from_new_cmds=
8759  old_archive_from_expsyms_cmds=
8760  thread_safe_flag_spec=
8761  whole_archive_flag_spec=
8762  # include_expsyms should be a list of space-separated symbols to be *always*
8763  # included in the symbol list
8764  include_expsyms=
8765  # exclude_expsyms can be an extended regexp of symbols to exclude
8766  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8767  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8768  # as well as any symbol that contains `d'.
8769  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8770  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8771  # platforms (ab)use it in PIC code, but their linkers get confused if
8772  # the symbol is explicitly referenced.  Since portable code cannot
8773  # rely on this symbol name, it's probably fine to never include it in
8774  # preloaded symbol tables.
8775  # Exclude shared library initialization/finalization symbols.
8776  extract_expsyms_cmds=
8777
8778  case $host_os in
8779  cygwin* | mingw* | pw32* | cegcc*)
8780    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8781    # When not using gcc, we currently assume that we are using
8782    # Microsoft Visual C++.
8783    if test "$GCC" != yes; then
8784      with_gnu_ld=no
8785    fi
8786    ;;
8787  interix*)
8788    # we just hope/assume this is gcc and not c89 (= MSVC++)
8789    with_gnu_ld=yes
8790    ;;
8791  openbsd*)
8792    with_gnu_ld=no
8793    ;;
8794  esac
8795
8796  ld_shlibs=yes
8797
8798  # On some targets, GNU ld is compatible enough with the native linker
8799  # that we're better off using the native interface for both.
8800  lt_use_gnu_ld_interface=no
8801  if test "$with_gnu_ld" = yes; then
8802    case $host_os in
8803      aix*)
8804	# The AIX port of GNU ld has always aspired to compatibility
8805	# with the native linker.  However, as the warning in the GNU ld
8806	# block says, versions before 2.19.5* couldn't really create working
8807	# shared libraries, regardless of the interface used.
8808	case `$LD -v 2>&1` in
8809	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8810	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8811	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8812	  *)
8813	    lt_use_gnu_ld_interface=yes
8814	    ;;
8815	esac
8816	;;
8817      *)
8818	lt_use_gnu_ld_interface=yes
8819	;;
8820    esac
8821  fi
8822
8823  if test "$lt_use_gnu_ld_interface" = yes; then
8824    # If archive_cmds runs LD, not CC, wlarc should be empty
8825    wlarc='${wl}'
8826
8827    # Set some defaults for GNU ld with shared library support. These
8828    # are reset later if shared libraries are not supported. Putting them
8829    # here allows them to be overridden if necessary.
8830    runpath_var=LD_RUN_PATH
8831    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8832    export_dynamic_flag_spec='${wl}--export-dynamic'
8833    # ancient GNU ld didn't support --whole-archive et. al.
8834    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8835      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8836    else
8837      whole_archive_flag_spec=
8838    fi
8839    supports_anon_versioning=no
8840    case `$LD -v 2>&1` in
8841      *GNU\ gold*) supports_anon_versioning=yes ;;
8842      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8843      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8844      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8845      *\ 2.11.*) ;; # other 2.11 versions
8846      *) supports_anon_versioning=yes ;;
8847    esac
8848
8849    # See if GNU ld supports shared libraries.
8850    case $host_os in
8851    aix[3-9]*)
8852      # On AIX/PPC, the GNU linker is very broken
8853      if test "$host_cpu" != ia64; then
8854	ld_shlibs=no
8855	cat <<_LT_EOF 1>&2
8856
8857*** Warning: the GNU linker, at least up to release 2.19, is reported
8858*** to be unable to reliably create shared libraries on AIX.
8859*** Therefore, libtool is disabling shared libraries support.  If you
8860*** really care for shared libraries, you may want to install binutils
8861*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8862*** You will then need to restart the configuration process.
8863
8864_LT_EOF
8865      fi
8866      ;;
8867
8868    amigaos*)
8869      case $host_cpu in
8870      powerpc)
8871            # see comment about AmigaOS4 .so support
8872            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873            archive_expsym_cmds=''
8874        ;;
8875      m68k)
8876            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)'
8877            hardcode_libdir_flag_spec='-L$libdir'
8878            hardcode_minus_L=yes
8879        ;;
8880      esac
8881      ;;
8882
8883    beos*)
8884      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8885	allow_undefined_flag=unsupported
8886	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8887	# support --undefined.  This deserves some investigation.  FIXME
8888	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8889      else
8890	ld_shlibs=no
8891      fi
8892      ;;
8893
8894    cygwin* | mingw* | pw32* | cegcc*)
8895      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8896      # as there is no search path for DLLs.
8897      hardcode_libdir_flag_spec='-L$libdir'
8898      export_dynamic_flag_spec='${wl}--export-all-symbols'
8899      allow_undefined_flag=unsupported
8900      always_export_symbols=no
8901      enable_shared_with_static_runtimes=yes
8902      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8903
8904      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8905        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8906	# If the export-symbols file already is a .def file (1st line
8907	# is EXPORTS), use it as is; otherwise, prepend...
8908	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8909	  cp $export_symbols $output_objdir/$soname.def;
8910	else
8911	  echo EXPORTS > $output_objdir/$soname.def;
8912	  cat $export_symbols >> $output_objdir/$soname.def;
8913	fi~
8914	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8915      else
8916	ld_shlibs=no
8917      fi
8918      ;;
8919
8920    haiku*)
8921      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922      link_all_deplibs=yes
8923      ;;
8924
8925    interix[3-9]*)
8926      hardcode_direct=no
8927      hardcode_shlibpath_var=no
8928      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8929      export_dynamic_flag_spec='${wl}-E'
8930      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8931      # Instead, shared libraries are loaded at an image base (0x10000000 by
8932      # default) and relocated if they conflict, which is a slow very memory
8933      # consuming and fragmenting process.  To avoid this, we pick a random,
8934      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8935      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8936      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8937      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'
8938      ;;
8939
8940    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8941      tmp_diet=no
8942      if test "$host_os" = linux-dietlibc; then
8943	case $cc_basename in
8944	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8945	esac
8946      fi
8947      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8948	 && test "$tmp_diet" = no
8949      then
8950	tmp_addflag=' $pic_flag'
8951	tmp_sharedflag='-shared'
8952	case $cc_basename,$host_cpu in
8953        pgcc*)				# Portland Group C compiler
8954	  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'
8955	  tmp_addflag=' $pic_flag'
8956	  ;;
8957	pgf77* | pgf90* | pgf95* | pgfortran*)
8958					# Portland Group f77 and f90 compilers
8959	  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'
8960	  tmp_addflag=' $pic_flag -Mnomain' ;;
8961	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8962	  tmp_addflag=' -i_dynamic' ;;
8963	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8964	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8965	ifc* | ifort*)			# Intel Fortran compiler
8966	  tmp_addflag=' -nofor_main' ;;
8967	lf95*)				# Lahey Fortran 8.1
8968	  whole_archive_flag_spec=
8969	  tmp_sharedflag='--shared' ;;
8970	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8971	  tmp_sharedflag='-qmkshrobj'
8972	  tmp_addflag= ;;
8973	nvcc*)	# Cuda Compiler Driver 2.2
8974	  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'
8975	  compiler_needs_object=yes
8976	  ;;
8977	esac
8978	case `$CC -V 2>&1 | sed 5q` in
8979	*Sun\ C*)			# Sun C 5.9
8980	  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'
8981	  compiler_needs_object=yes
8982	  tmp_sharedflag='-G' ;;
8983	*Sun\ F*)			# Sun Fortran 8.3
8984	  tmp_sharedflag='-G' ;;
8985	esac
8986	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987
8988        if test "x$supports_anon_versioning" = xyes; then
8989          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8990	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8991	    echo "local: *; };" >> $output_objdir/$libname.ver~
8992	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8993        fi
8994
8995	case $cc_basename in
8996	xlf* | bgf* | bgxlf* | mpixlf*)
8997	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8998	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8999	  hardcode_libdir_flag_spec=
9000	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9001	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9002	  if test "x$supports_anon_versioning" = xyes; then
9003	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9004	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9005	      echo "local: *; };" >> $output_objdir/$libname.ver~
9006	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9007	  fi
9008	  ;;
9009	esac
9010      else
9011        ld_shlibs=no
9012      fi
9013      ;;
9014
9015    netbsd*)
9016      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9017	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9018	wlarc=
9019      else
9020	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9021	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9022      fi
9023      ;;
9024
9025    solaris*)
9026      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9027	ld_shlibs=no
9028	cat <<_LT_EOF 1>&2
9029
9030*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9031*** create shared libraries on Solaris systems.  Therefore, libtool
9032*** is disabling shared libraries support.  We urge you to upgrade GNU
9033*** binutils to release 2.9.1 or newer.  Another option is to modify
9034*** your PATH or compiler configuration so that the native linker is
9035*** used, and then restart.
9036
9037_LT_EOF
9038      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9039	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9041      else
9042	ld_shlibs=no
9043      fi
9044      ;;
9045
9046    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9047      case `$LD -v 2>&1` in
9048        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9049	ld_shlibs=no
9050	cat <<_LT_EOF 1>&2
9051
9052*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9053*** reliably create shared libraries on SCO systems.  Therefore, libtool
9054*** is disabling shared libraries support.  We urge you to upgrade GNU
9055*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9056*** your PATH or compiler configuration so that the native linker is
9057*** used, and then restart.
9058
9059_LT_EOF
9060	;;
9061	*)
9062	  # For security reasons, it is highly recommended that you always
9063	  # use absolute paths for naming shared libraries, and exclude the
9064	  # DT_RUNPATH tag from executables and libraries.  But doing so
9065	  # requires that you compile everything twice, which is a pain.
9066	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9067	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9068	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9069	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9070	  else
9071	    ld_shlibs=no
9072	  fi
9073	;;
9074      esac
9075      ;;
9076
9077    sunos4*)
9078      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9079      wlarc=
9080      hardcode_direct=yes
9081      hardcode_shlibpath_var=no
9082      ;;
9083
9084    *)
9085      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9086	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9088      else
9089	ld_shlibs=no
9090      fi
9091      ;;
9092    esac
9093
9094    if test "$ld_shlibs" = no; then
9095      runpath_var=
9096      hardcode_libdir_flag_spec=
9097      export_dynamic_flag_spec=
9098      whole_archive_flag_spec=
9099    fi
9100  else
9101    # PORTME fill in a description of your system's linker (not GNU ld)
9102    case $host_os in
9103    aix3*)
9104      allow_undefined_flag=unsupported
9105      always_export_symbols=yes
9106      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'
9107      # Note: this linker hardcodes the directories in LIBPATH if there
9108      # are no directories specified by -L.
9109      hardcode_minus_L=yes
9110      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9111	# Neither direct hardcoding nor static linking is supported with a
9112	# broken collect2.
9113	hardcode_direct=unsupported
9114      fi
9115      ;;
9116
9117    aix[4-9]*)
9118      if test "$host_cpu" = ia64; then
9119	# On IA64, the linker does run time linking by default, so we don't
9120	# have to do anything special.
9121	aix_use_runtimelinking=no
9122	exp_sym_flag='-Bexport'
9123	no_entry_flag=""
9124      else
9125	# If we're using GNU nm, then we don't want the "-C" option.
9126	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9127	# Also, AIX nm treats weak defined symbols like other global
9128	# defined symbols, whereas GNU nm marks them as "W".
9129	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9130	  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'
9131	else
9132	  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'
9133	fi
9134	aix_use_runtimelinking=no
9135
9136	# Test if we are trying to use run time linking or normal
9137	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9138	# need to do runtime linking.
9139	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9140	  for ld_flag in $LDFLAGS; do
9141	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9142	    aix_use_runtimelinking=yes
9143	    break
9144	  fi
9145	  done
9146	  ;;
9147	esac
9148
9149	exp_sym_flag='-bexport'
9150	no_entry_flag='-bnoentry'
9151      fi
9152
9153      # When large executables or shared objects are built, AIX ld can
9154      # have problems creating the table of contents.  If linking a library
9155      # or program results in "error TOC overflow" add -mminimal-toc to
9156      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9157      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9158
9159      archive_cmds=''
9160      hardcode_direct=yes
9161      hardcode_direct_absolute=yes
9162      hardcode_libdir_separator=':'
9163      link_all_deplibs=yes
9164      file_list_spec='${wl}-f,'
9165
9166      if test "$GCC" = yes; then
9167	case $host_os in aix4.[012]|aix4.[012].*)
9168	# We only want to do this on AIX 4.2 and lower, the check
9169	# below for broken collect2 doesn't work under 4.3+
9170	  collect2name=`${CC} -print-prog-name=collect2`
9171	  if test -f "$collect2name" &&
9172	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9173	  then
9174	  # We have reworked collect2
9175	  :
9176	  else
9177	  # We have old collect2
9178	  hardcode_direct=unsupported
9179	  # It fails to find uninstalled libraries when the uninstalled
9180	  # path is not listed in the libpath.  Setting hardcode_minus_L
9181	  # to unsupported forces relinking
9182	  hardcode_minus_L=yes
9183	  hardcode_libdir_flag_spec='-L$libdir'
9184	  hardcode_libdir_separator=
9185	  fi
9186	  ;;
9187	esac
9188	shared_flag='-shared'
9189	if test "$aix_use_runtimelinking" = yes; then
9190	  shared_flag="$shared_flag "'${wl}-G'
9191	fi
9192      else
9193	# not using gcc
9194	if test "$host_cpu" = ia64; then
9195	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9196	# chokes on -Wl,-G. The following line is correct:
9197	  shared_flag='-G'
9198	else
9199	  if test "$aix_use_runtimelinking" = yes; then
9200	    shared_flag='${wl}-G'
9201	  else
9202	    shared_flag='${wl}-bM:SRE'
9203	  fi
9204	fi
9205      fi
9206
9207      export_dynamic_flag_spec='${wl}-bexpall'
9208      # It seems that -bexpall does not export symbols beginning with
9209      # underscore (_), so it is better to generate a list of symbols to export.
9210      always_export_symbols=yes
9211      if test "$aix_use_runtimelinking" = yes; then
9212	# Warning - without using the other runtime loading flags (-brtl),
9213	# -berok will link without error, but may produce a broken library.
9214	allow_undefined_flag='-berok'
9215        # Determine the default libpath from the value encoded in an
9216        # empty executable.
9217        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218/* end confdefs.h.  */
9219
9220int
9221main ()
9222{
9223
9224  ;
9225  return 0;
9226}
9227_ACEOF
9228if ac_fn_c_try_link "$LINENO"; then :
9229
9230lt_aix_libpath_sed='
9231    /Import File Strings/,/^$/ {
9232	/^0/ {
9233	    s/^0  *\(.*\)$/\1/
9234	    p
9235	}
9236    }'
9237aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9238# Check for a 64-bit object if we didn't find anything.
9239if test -z "$aix_libpath"; then
9240  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9241fi
9242fi
9243rm -f core conftest.err conftest.$ac_objext \
9244    conftest$ac_exeext conftest.$ac_ext
9245if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9246
9247        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9248        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"
9249      else
9250	if test "$host_cpu" = ia64; then
9251	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9252	  allow_undefined_flag="-z nodefs"
9253	  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"
9254	else
9255	 # Determine the default libpath from the value encoded in an
9256	 # empty executable.
9257	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258/* end confdefs.h.  */
9259
9260int
9261main ()
9262{
9263
9264  ;
9265  return 0;
9266}
9267_ACEOF
9268if ac_fn_c_try_link "$LINENO"; then :
9269
9270lt_aix_libpath_sed='
9271    /Import File Strings/,/^$/ {
9272	/^0/ {
9273	    s/^0  *\(.*\)$/\1/
9274	    p
9275	}
9276    }'
9277aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9278# Check for a 64-bit object if we didn't find anything.
9279if test -z "$aix_libpath"; then
9280  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9281fi
9282fi
9283rm -f core conftest.err conftest.$ac_objext \
9284    conftest$ac_exeext conftest.$ac_ext
9285if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9286
9287	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9288	  # Warning - without using the other run time loading flags,
9289	  # -berok will link without error, but may produce a broken library.
9290	  no_undefined_flag=' ${wl}-bernotok'
9291	  allow_undefined_flag=' ${wl}-berok'
9292	  if test "$with_gnu_ld" = yes; then
9293	    # We only use this code for GNU lds that support --whole-archive.
9294	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9295	  else
9296	    # Exported symbols can be pulled into shared objects from archives
9297	    whole_archive_flag_spec='$convenience'
9298	  fi
9299	  archive_cmds_need_lc=yes
9300	  # This is similar to how AIX traditionally builds its shared libraries.
9301	  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'
9302	fi
9303      fi
9304      ;;
9305
9306    amigaos*)
9307      case $host_cpu in
9308      powerpc)
9309            # see comment about AmigaOS4 .so support
9310            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311            archive_expsym_cmds=''
9312        ;;
9313      m68k)
9314            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)'
9315            hardcode_libdir_flag_spec='-L$libdir'
9316            hardcode_minus_L=yes
9317        ;;
9318      esac
9319      ;;
9320
9321    bsdi[45]*)
9322      export_dynamic_flag_spec=-rdynamic
9323      ;;
9324
9325    cygwin* | mingw* | pw32* | cegcc*)
9326      # When not using gcc, we currently assume that we are using
9327      # Microsoft Visual C++.
9328      # hardcode_libdir_flag_spec is actually meaningless, as there is
9329      # no search path for DLLs.
9330      hardcode_libdir_flag_spec=' '
9331      allow_undefined_flag=unsupported
9332      # Tell ltmain to make .lib files, not .a files.
9333      libext=lib
9334      # Tell ltmain to make .dll files, not .so files.
9335      shrext_cmds=".dll"
9336      # FIXME: Setting linknames here is a bad hack.
9337      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9338      # The linker will automatically build a .lib file if we build a DLL.
9339      old_archive_from_new_cmds='true'
9340      # FIXME: Should let the user specify the lib program.
9341      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9342      fix_srcfile_path='`cygpath -w "$srcfile"`'
9343      enable_shared_with_static_runtimes=yes
9344      ;;
9345
9346    darwin* | rhapsody*)
9347
9348
9349  archive_cmds_need_lc=no
9350  hardcode_direct=no
9351  hardcode_automatic=yes
9352  hardcode_shlibpath_var=unsupported
9353  if test "$lt_cv_ld_force_load" = "yes"; then
9354    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\"`'
9355  else
9356    whole_archive_flag_spec=''
9357  fi
9358  link_all_deplibs=yes
9359  allow_undefined_flag="$_lt_dar_allow_undefined"
9360  case $cc_basename in
9361     ifort*) _lt_dar_can_shared=yes ;;
9362     *) _lt_dar_can_shared=$GCC ;;
9363  esac
9364  if test "$_lt_dar_can_shared" = "yes"; then
9365    output_verbose_link_cmd=func_echo_all
9366    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9367    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9368    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}"
9369    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}"
9370
9371  else
9372  ld_shlibs=no
9373  fi
9374
9375      ;;
9376
9377    dgux*)
9378      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9379      hardcode_libdir_flag_spec='-L$libdir'
9380      hardcode_shlibpath_var=no
9381      ;;
9382
9383    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9384    # support.  Future versions do this automatically, but an explicit c++rt0.o
9385    # does not break anything, and helps significantly (at the cost of a little
9386    # extra space).
9387    freebsd2.2*)
9388      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9389      hardcode_libdir_flag_spec='-R$libdir'
9390      hardcode_direct=yes
9391      hardcode_shlibpath_var=no
9392      ;;
9393
9394    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9395    freebsd2.*)
9396      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9397      hardcode_direct=yes
9398      hardcode_minus_L=yes
9399      hardcode_shlibpath_var=no
9400      ;;
9401
9402    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9403    freebsd* | dragonfly*)
9404      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9405      hardcode_libdir_flag_spec='-R$libdir'
9406      hardcode_direct=yes
9407      hardcode_shlibpath_var=no
9408      ;;
9409
9410    hpux9*)
9411      if test "$GCC" = yes; then
9412	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'
9413      else
9414	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'
9415      fi
9416      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9417      hardcode_libdir_separator=:
9418      hardcode_direct=yes
9419
9420      # hardcode_minus_L: Not really in the search PATH,
9421      # but as the default location of the library.
9422      hardcode_minus_L=yes
9423      export_dynamic_flag_spec='${wl}-E'
9424      ;;
9425
9426    hpux10*)
9427      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9428	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9429      else
9430	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9431      fi
9432      if test "$with_gnu_ld" = no; then
9433	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9434	hardcode_libdir_flag_spec_ld='+b $libdir'
9435	hardcode_libdir_separator=:
9436	hardcode_direct=yes
9437	hardcode_direct_absolute=yes
9438	export_dynamic_flag_spec='${wl}-E'
9439	# hardcode_minus_L: Not really in the search PATH,
9440	# but as the default location of the library.
9441	hardcode_minus_L=yes
9442      fi
9443      ;;
9444
9445    hpux11*)
9446      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9447	case $host_cpu in
9448	hppa*64*)
9449	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9450	  ;;
9451	ia64*)
9452	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9453	  ;;
9454	*)
9455	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9456	  ;;
9457	esac
9458      else
9459	case $host_cpu in
9460	hppa*64*)
9461	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9462	  ;;
9463	ia64*)
9464	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9465	  ;;
9466	*)
9467
9468	  # Older versions of the 11.00 compiler do not understand -b yet
9469	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9470	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9471$as_echo_n "checking if $CC understands -b... " >&6; }
9472if test "${lt_cv_prog_compiler__b+set}" = set; then :
9473  $as_echo_n "(cached) " >&6
9474else
9475  lt_cv_prog_compiler__b=no
9476   save_LDFLAGS="$LDFLAGS"
9477   LDFLAGS="$LDFLAGS -b"
9478   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9479   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9480     # The linker can only warn and ignore the option if not recognized
9481     # So say no if there are warnings
9482     if test -s conftest.err; then
9483       # Append any errors to the config.log.
9484       cat conftest.err 1>&5
9485       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9486       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9487       if diff conftest.exp conftest.er2 >/dev/null; then
9488         lt_cv_prog_compiler__b=yes
9489       fi
9490     else
9491       lt_cv_prog_compiler__b=yes
9492     fi
9493   fi
9494   $RM -r conftest*
9495   LDFLAGS="$save_LDFLAGS"
9496
9497fi
9498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9499$as_echo "$lt_cv_prog_compiler__b" >&6; }
9500
9501if test x"$lt_cv_prog_compiler__b" = xyes; then
9502    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9503else
9504    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9505fi
9506
9507	  ;;
9508	esac
9509      fi
9510      if test "$with_gnu_ld" = no; then
9511	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9512	hardcode_libdir_separator=:
9513
9514	case $host_cpu in
9515	hppa*64*|ia64*)
9516	  hardcode_direct=no
9517	  hardcode_shlibpath_var=no
9518	  ;;
9519	*)
9520	  hardcode_direct=yes
9521	  hardcode_direct_absolute=yes
9522	  export_dynamic_flag_spec='${wl}-E'
9523
9524	  # hardcode_minus_L: Not really in the search PATH,
9525	  # but as the default location of the library.
9526	  hardcode_minus_L=yes
9527	  ;;
9528	esac
9529      fi
9530      ;;
9531
9532    irix5* | irix6* | nonstopux*)
9533      if test "$GCC" = yes; then
9534	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'
9535	# Try to use the -exported_symbol ld option, if it does not
9536	# work, assume that -exports_file does not work either and
9537	# implicitly export all symbols.
9538        save_LDFLAGS="$LDFLAGS"
9539        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9540        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541/* end confdefs.h.  */
9542int foo(void) {}
9543_ACEOF
9544if ac_fn_c_try_link "$LINENO"; then :
9545  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'
9546
9547fi
9548rm -f core conftest.err conftest.$ac_objext \
9549    conftest$ac_exeext conftest.$ac_ext
9550        LDFLAGS="$save_LDFLAGS"
9551      else
9552	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'
9553	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'
9554      fi
9555      archive_cmds_need_lc='no'
9556      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557      hardcode_libdir_separator=:
9558      inherit_rpath=yes
9559      link_all_deplibs=yes
9560      ;;
9561
9562    netbsd*)
9563      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9564	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9565      else
9566	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9567      fi
9568      hardcode_libdir_flag_spec='-R$libdir'
9569      hardcode_direct=yes
9570      hardcode_shlibpath_var=no
9571      ;;
9572
9573    newsos6)
9574      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9575      hardcode_direct=yes
9576      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9577      hardcode_libdir_separator=:
9578      hardcode_shlibpath_var=no
9579      ;;
9580
9581    *nto* | *qnx*)
9582      ;;
9583
9584    openbsd*)
9585      if test -f /usr/libexec/ld.so; then
9586	hardcode_direct=yes
9587	hardcode_shlibpath_var=no
9588	hardcode_direct_absolute=yes
9589	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9590	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9591	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9592	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9593	  export_dynamic_flag_spec='${wl}-E'
9594	else
9595	  case $host_os in
9596	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9597	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9598	     hardcode_libdir_flag_spec='-R$libdir'
9599	     ;;
9600	   *)
9601	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9602	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9603	     ;;
9604	  esac
9605	fi
9606      else
9607	ld_shlibs=no
9608      fi
9609      ;;
9610
9611    os2*)
9612      hardcode_libdir_flag_spec='-L$libdir'
9613      hardcode_minus_L=yes
9614      allow_undefined_flag=unsupported
9615      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'
9616      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9617      ;;
9618
9619    osf3*)
9620      if test "$GCC" = yes; then
9621	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9622	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'
9623      else
9624	allow_undefined_flag=' -expect_unresolved \*'
9625	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'
9626      fi
9627      archive_cmds_need_lc='no'
9628      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9629      hardcode_libdir_separator=:
9630      ;;
9631
9632    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9633      if test "$GCC" = yes; then
9634	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9635	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'
9636	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9637      else
9638	allow_undefined_flag=' -expect_unresolved \*'
9639	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'
9640	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~
9641	$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'
9642
9643	# Both c and cxx compiler support -rpath directly
9644	hardcode_libdir_flag_spec='-rpath $libdir'
9645      fi
9646      archive_cmds_need_lc='no'
9647      hardcode_libdir_separator=:
9648      ;;
9649
9650    solaris*)
9651      no_undefined_flag=' -z defs'
9652      if test "$GCC" = yes; then
9653	wlarc='${wl}'
9654	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9655	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9656	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9657      else
9658	case `$CC -V 2>&1` in
9659	*"Compilers 5.0"*)
9660	  wlarc=''
9661	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9662	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9663	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9664	  ;;
9665	*)
9666	  wlarc='${wl}'
9667	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9668	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9669	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9670	  ;;
9671	esac
9672      fi
9673      hardcode_libdir_flag_spec='-R$libdir'
9674      hardcode_shlibpath_var=no
9675      case $host_os in
9676      solaris2.[0-5] | solaris2.[0-5].*) ;;
9677      *)
9678	# The compiler driver will combine and reorder linker options,
9679	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9680	# but is careful enough not to reorder.
9681	# Supported since Solaris 2.6 (maybe 2.5.1?)
9682	if test "$GCC" = yes; then
9683	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9684	else
9685	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9686	fi
9687	;;
9688      esac
9689      link_all_deplibs=yes
9690      ;;
9691
9692    sunos4*)
9693      if test "x$host_vendor" = xsequent; then
9694	# Use $CC to link under sequent, because it throws in some extra .o
9695	# files that make .init and .fini sections work.
9696	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9697      else
9698	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9699      fi
9700      hardcode_libdir_flag_spec='-L$libdir'
9701      hardcode_direct=yes
9702      hardcode_minus_L=yes
9703      hardcode_shlibpath_var=no
9704      ;;
9705
9706    sysv4)
9707      case $host_vendor in
9708	sni)
9709	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710	  hardcode_direct=yes # is this really true???
9711	;;
9712	siemens)
9713	  ## LD is ld it makes a PLAMLIB
9714	  ## CC just makes a GrossModule.
9715	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9716	  reload_cmds='$CC -r -o $output$reload_objs'
9717	  hardcode_direct=no
9718        ;;
9719	motorola)
9720	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9721	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9722	;;
9723      esac
9724      runpath_var='LD_RUN_PATH'
9725      hardcode_shlibpath_var=no
9726      ;;
9727
9728    sysv4.3*)
9729      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730      hardcode_shlibpath_var=no
9731      export_dynamic_flag_spec='-Bexport'
9732      ;;
9733
9734    sysv4*MP*)
9735      if test -d /usr/nec; then
9736	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737	hardcode_shlibpath_var=no
9738	runpath_var=LD_RUN_PATH
9739	hardcode_runpath_var=yes
9740	ld_shlibs=yes
9741      fi
9742      ;;
9743
9744    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9745      no_undefined_flag='${wl}-z,text'
9746      archive_cmds_need_lc=no
9747      hardcode_shlibpath_var=no
9748      runpath_var='LD_RUN_PATH'
9749
9750      if test "$GCC" = yes; then
9751	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9752	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753      else
9754	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9755	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756      fi
9757      ;;
9758
9759    sysv5* | sco3.2v5* | sco5v6*)
9760      # Note: We can NOT use -z defs as we might desire, because we do not
9761      # link with -lc, and that would cause any symbols used from libc to
9762      # always be unresolved, which means just about no library would
9763      # ever link correctly.  If we're not using GNU ld we use -z text
9764      # though, which does catch some bad symbols but isn't as heavy-handed
9765      # as -z defs.
9766      no_undefined_flag='${wl}-z,text'
9767      allow_undefined_flag='${wl}-z,nodefs'
9768      archive_cmds_need_lc=no
9769      hardcode_shlibpath_var=no
9770      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9771      hardcode_libdir_separator=':'
9772      link_all_deplibs=yes
9773      export_dynamic_flag_spec='${wl}-Bexport'
9774      runpath_var='LD_RUN_PATH'
9775
9776      if test "$GCC" = yes; then
9777	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9778	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9779      else
9780	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9781	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9782      fi
9783      ;;
9784
9785    uts4*)
9786      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787      hardcode_libdir_flag_spec='-L$libdir'
9788      hardcode_shlibpath_var=no
9789      ;;
9790
9791    *)
9792      ld_shlibs=no
9793      ;;
9794    esac
9795
9796    if test x$host_vendor = xsni; then
9797      case $host in
9798      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9799	export_dynamic_flag_spec='${wl}-Blargedynsym'
9800	;;
9801      esac
9802    fi
9803  fi
9804
9805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9806$as_echo "$ld_shlibs" >&6; }
9807test "$ld_shlibs" = no && can_build_shared=no
9808
9809with_gnu_ld=$with_gnu_ld
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825#
9826# Do we need to explicitly link libc?
9827#
9828case "x$archive_cmds_need_lc" in
9829x|xyes)
9830  # Assume -lc should be added
9831  archive_cmds_need_lc=yes
9832
9833  if test "$enable_shared" = yes && test "$GCC" = yes; then
9834    case $archive_cmds in
9835    *'~'*)
9836      # FIXME: we may have to deal with multi-command sequences.
9837      ;;
9838    '$CC '*)
9839      # Test whether the compiler implicitly links with -lc since on some
9840      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9841      # to ld, don't add -lc before -lgcc.
9842      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9843$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9844if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9845  $as_echo_n "(cached) " >&6
9846else
9847  $RM conftest*
9848	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9849
9850	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9851  (eval $ac_compile) 2>&5
9852  ac_status=$?
9853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9854  test $ac_status = 0; } 2>conftest.err; then
9855	  soname=conftest
9856	  lib=conftest
9857	  libobjs=conftest.$ac_objext
9858	  deplibs=
9859	  wl=$lt_prog_compiler_wl
9860	  pic_flag=$lt_prog_compiler_pic
9861	  compiler_flags=-v
9862	  linker_flags=-v
9863	  verstring=
9864	  output_objdir=.
9865	  libname=conftest
9866	  lt_save_allow_undefined_flag=$allow_undefined_flag
9867	  allow_undefined_flag=
9868	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9869  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9870  ac_status=$?
9871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9872  test $ac_status = 0; }
9873	  then
9874	    lt_cv_archive_cmds_need_lc=no
9875	  else
9876	    lt_cv_archive_cmds_need_lc=yes
9877	  fi
9878	  allow_undefined_flag=$lt_save_allow_undefined_flag
9879	else
9880	  cat conftest.err 1>&5
9881	fi
9882	$RM conftest*
9883
9884fi
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9886$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9887      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9888      ;;
9889    esac
9890  fi
9891  ;;
9892esac
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10051$as_echo_n "checking dynamic linker characteristics... " >&6; }
10052
10053if test "$GCC" = yes; then
10054  case $host_os in
10055    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10056    *) lt_awk_arg="/^libraries:/" ;;
10057  esac
10058  case $host_os in
10059    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10060    *) lt_sed_strip_eq="s,=/,/,g" ;;
10061  esac
10062  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10063  case $lt_search_path_spec in
10064  *\;*)
10065    # if the path contains ";" then we assume it to be the separator
10066    # otherwise default to the standard path separator (i.e. ":") - it is
10067    # assumed that no part of a normal pathname contains ";" but that should
10068    # okay in the real world where ";" in dirpaths is itself problematic.
10069    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10070    ;;
10071  *)
10072    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10073    ;;
10074  esac
10075  # Ok, now we have the path, separated by spaces, we can step through it
10076  # and add multilib dir if necessary.
10077  lt_tmp_lt_search_path_spec=
10078  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10079  for lt_sys_path in $lt_search_path_spec; do
10080    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10081      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10082    else
10083      test -d "$lt_sys_path" && \
10084	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10085    fi
10086  done
10087  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10088BEGIN {RS=" "; FS="/|\n";} {
10089  lt_foo="";
10090  lt_count=0;
10091  for (lt_i = NF; lt_i > 0; lt_i--) {
10092    if ($lt_i != "" && $lt_i != ".") {
10093      if ($lt_i == "..") {
10094        lt_count++;
10095      } else {
10096        if (lt_count == 0) {
10097          lt_foo="/" $lt_i lt_foo;
10098        } else {
10099          lt_count--;
10100        }
10101      }
10102    }
10103  }
10104  if (lt_foo != "") { lt_freq[lt_foo]++; }
10105  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10106}'`
10107  # AWK program above erroneously prepends '/' to C:/dos/paths
10108  # for these hosts.
10109  case $host_os in
10110    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10111      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10112  esac
10113  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10114else
10115  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10116fi
10117library_names_spec=
10118libname_spec='lib$name'
10119soname_spec=
10120shrext_cmds=".so"
10121postinstall_cmds=
10122postuninstall_cmds=
10123finish_cmds=
10124finish_eval=
10125shlibpath_var=
10126shlibpath_overrides_runpath=unknown
10127version_type=none
10128dynamic_linker="$host_os ld.so"
10129sys_lib_dlsearch_path_spec="/lib /usr/lib"
10130need_lib_prefix=unknown
10131hardcode_into_libs=no
10132
10133# when you set need_version to no, make sure it does not cause -set_version
10134# flags to be left without arguments
10135need_version=unknown
10136
10137case $host_os in
10138aix3*)
10139  version_type=linux
10140  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10141  shlibpath_var=LIBPATH
10142
10143  # AIX 3 has no versioning support, so we append a major version to the name.
10144  soname_spec='${libname}${release}${shared_ext}$major'
10145  ;;
10146
10147aix[4-9]*)
10148  version_type=linux
10149  need_lib_prefix=no
10150  need_version=no
10151  hardcode_into_libs=yes
10152  if test "$host_cpu" = ia64; then
10153    # AIX 5 supports IA64
10154    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10155    shlibpath_var=LD_LIBRARY_PATH
10156  else
10157    # With GCC up to 2.95.x, collect2 would create an import file
10158    # for dependence libraries.  The import file would start with
10159    # the line `#! .'.  This would cause the generated library to
10160    # depend on `.', always an invalid library.  This was fixed in
10161    # development snapshots of GCC prior to 3.0.
10162    case $host_os in
10163      aix4 | aix4.[01] | aix4.[01].*)
10164      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10165	   echo ' yes '
10166	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10167	:
10168      else
10169	can_build_shared=no
10170      fi
10171      ;;
10172    esac
10173    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10174    # soname into executable. Probably we can add versioning support to
10175    # collect2, so additional links can be useful in future.
10176    if test "$aix_use_runtimelinking" = yes; then
10177      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10178      # instead of lib<name>.a to let people know that these are not
10179      # typical AIX shared libraries.
10180      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181    else
10182      # We preserve .a as extension for shared libraries through AIX4.2
10183      # and later when we are not doing run time linking.
10184      library_names_spec='${libname}${release}.a $libname.a'
10185      soname_spec='${libname}${release}${shared_ext}$major'
10186    fi
10187    shlibpath_var=LIBPATH
10188  fi
10189  ;;
10190
10191amigaos*)
10192  case $host_cpu in
10193  powerpc)
10194    # Since July 2007 AmigaOS4 officially supports .so libraries.
10195    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10196    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197    ;;
10198  m68k)
10199    library_names_spec='$libname.ixlibrary $libname.a'
10200    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10201    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'
10202    ;;
10203  esac
10204  ;;
10205
10206beos*)
10207  library_names_spec='${libname}${shared_ext}'
10208  dynamic_linker="$host_os ld.so"
10209  shlibpath_var=LIBRARY_PATH
10210  ;;
10211
10212bsdi[45]*)
10213  version_type=linux
10214  need_version=no
10215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216  soname_spec='${libname}${release}${shared_ext}$major'
10217  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10218  shlibpath_var=LD_LIBRARY_PATH
10219  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10220  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10221  # the default ld.so.conf also contains /usr/contrib/lib and
10222  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10223  # libtool to hard-code these into programs
10224  ;;
10225
10226cygwin* | mingw* | pw32* | cegcc*)
10227  version_type=windows
10228  shrext_cmds=".dll"
10229  need_version=no
10230  need_lib_prefix=no
10231
10232  case $GCC,$host_os in
10233  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10234    library_names_spec='$libname.dll.a'
10235    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10236    postinstall_cmds='base_file=`basename \${file}`~
10237      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10238      dldir=$destdir/`dirname \$dlpath`~
10239      test -d \$dldir || mkdir -p \$dldir~
10240      $install_prog $dir/$dlname \$dldir/$dlname~
10241      chmod a+x \$dldir/$dlname~
10242      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10243        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10244      fi'
10245    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10246      dlpath=$dir/\$dldll~
10247       $RM \$dlpath'
10248    shlibpath_overrides_runpath=yes
10249
10250    case $host_os in
10251    cygwin*)
10252      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10253      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10254
10255      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10256      ;;
10257    mingw* | cegcc*)
10258      # MinGW DLLs use traditional 'lib' prefix
10259      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10260      ;;
10261    pw32*)
10262      # pw32 DLLs use 'pw' prefix rather than 'lib'
10263      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10264      ;;
10265    esac
10266    ;;
10267
10268  *)
10269    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10270    ;;
10271  esac
10272  dynamic_linker='Win32 ld.exe'
10273  # FIXME: first we should search . and the directory the executable is in
10274  shlibpath_var=PATH
10275  ;;
10276
10277darwin* | rhapsody*)
10278  dynamic_linker="$host_os dyld"
10279  version_type=darwin
10280  need_lib_prefix=no
10281  need_version=no
10282  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10283  soname_spec='${libname}${release}${major}$shared_ext'
10284  shlibpath_overrides_runpath=yes
10285  shlibpath_var=DYLD_LIBRARY_PATH
10286  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10287
10288  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10289  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10290  ;;
10291
10292dgux*)
10293  version_type=linux
10294  need_lib_prefix=no
10295  need_version=no
10296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10297  soname_spec='${libname}${release}${shared_ext}$major'
10298  shlibpath_var=LD_LIBRARY_PATH
10299  ;;
10300
10301freebsd* | dragonfly*)
10302  # DragonFly does not have aout.  When/if they implement a new
10303  # versioning mechanism, adjust this.
10304  if test -x /usr/bin/objformat; then
10305    objformat=`/usr/bin/objformat`
10306  else
10307    case $host_os in
10308    freebsd[23].*) objformat=aout ;;
10309    *) objformat=elf ;;
10310    esac
10311  fi
10312  version_type=freebsd-$objformat
10313  case $version_type in
10314    freebsd-elf*)
10315      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10316      need_version=no
10317      need_lib_prefix=no
10318      ;;
10319    freebsd-*)
10320      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10321      need_version=yes
10322      ;;
10323  esac
10324  shlibpath_var=LD_LIBRARY_PATH
10325  case $host_os in
10326  freebsd2.*)
10327    shlibpath_overrides_runpath=yes
10328    ;;
10329  freebsd3.[01]* | freebsdelf3.[01]*)
10330    shlibpath_overrides_runpath=yes
10331    hardcode_into_libs=yes
10332    ;;
10333  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10334  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10335    shlibpath_overrides_runpath=no
10336    hardcode_into_libs=yes
10337    ;;
10338  *) # from 4.6 on, and DragonFly
10339    shlibpath_overrides_runpath=yes
10340    hardcode_into_libs=yes
10341    ;;
10342  esac
10343  ;;
10344
10345gnu*)
10346  version_type=linux
10347  need_lib_prefix=no
10348  need_version=no
10349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10350  soname_spec='${libname}${release}${shared_ext}$major'
10351  shlibpath_var=LD_LIBRARY_PATH
10352  hardcode_into_libs=yes
10353  ;;
10354
10355haiku*)
10356  version_type=linux
10357  need_lib_prefix=no
10358  need_version=no
10359  dynamic_linker="$host_os runtime_loader"
10360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10361  soname_spec='${libname}${release}${shared_ext}$major'
10362  shlibpath_var=LIBRARY_PATH
10363  shlibpath_overrides_runpath=yes
10364  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10365  hardcode_into_libs=yes
10366  ;;
10367
10368hpux9* | hpux10* | hpux11*)
10369  # Give a soname corresponding to the major version so that dld.sl refuses to
10370  # link against other versions.
10371  version_type=sunos
10372  need_lib_prefix=no
10373  need_version=no
10374  case $host_cpu in
10375  ia64*)
10376    shrext_cmds='.so'
10377    hardcode_into_libs=yes
10378    dynamic_linker="$host_os dld.so"
10379    shlibpath_var=LD_LIBRARY_PATH
10380    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10381    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10382    soname_spec='${libname}${release}${shared_ext}$major'
10383    if test "X$HPUX_IA64_MODE" = X32; then
10384      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10385    else
10386      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10387    fi
10388    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10389    ;;
10390  hppa*64*)
10391    shrext_cmds='.sl'
10392    hardcode_into_libs=yes
10393    dynamic_linker="$host_os dld.sl"
10394    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10395    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10396    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397    soname_spec='${libname}${release}${shared_ext}$major'
10398    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10399    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10400    ;;
10401  *)
10402    shrext_cmds='.sl'
10403    dynamic_linker="$host_os dld.sl"
10404    shlibpath_var=SHLIB_PATH
10405    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10406    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407    soname_spec='${libname}${release}${shared_ext}$major'
10408    ;;
10409  esac
10410  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10411  postinstall_cmds='chmod 555 $lib'
10412  # or fails outright, so override atomically:
10413  install_override_mode=555
10414  ;;
10415
10416interix[3-9]*)
10417  version_type=linux
10418  need_lib_prefix=no
10419  need_version=no
10420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10421  soname_spec='${libname}${release}${shared_ext}$major'
10422  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10423  shlibpath_var=LD_LIBRARY_PATH
10424  shlibpath_overrides_runpath=no
10425  hardcode_into_libs=yes
10426  ;;
10427
10428irix5* | irix6* | nonstopux*)
10429  case $host_os in
10430    nonstopux*) version_type=nonstopux ;;
10431    *)
10432	if test "$lt_cv_prog_gnu_ld" = yes; then
10433		version_type=linux
10434	else
10435		version_type=irix
10436	fi ;;
10437  esac
10438  need_lib_prefix=no
10439  need_version=no
10440  soname_spec='${libname}${release}${shared_ext}$major'
10441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10442  case $host_os in
10443  irix5* | nonstopux*)
10444    libsuff= shlibsuff=
10445    ;;
10446  *)
10447    case $LD in # libtool.m4 will add one of these switches to LD
10448    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10449      libsuff= shlibsuff= libmagic=32-bit;;
10450    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10451      libsuff=32 shlibsuff=N32 libmagic=N32;;
10452    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10453      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10454    *) libsuff= shlibsuff= libmagic=never-match;;
10455    esac
10456    ;;
10457  esac
10458  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10459  shlibpath_overrides_runpath=no
10460  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10461  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10462  hardcode_into_libs=yes
10463  ;;
10464
10465# No shared lib support for Linux oldld, aout, or coff.
10466linux*oldld* | linux*aout* | linux*coff*)
10467  dynamic_linker=no
10468  ;;
10469
10470# This must be Linux ELF.
10471linux* | k*bsd*-gnu | kopensolaris*-gnu)
10472  version_type=linux
10473  need_lib_prefix=no
10474  need_version=no
10475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476  soname_spec='${libname}${release}${shared_ext}$major'
10477  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10478  shlibpath_var=LD_LIBRARY_PATH
10479  shlibpath_overrides_runpath=no
10480
10481  # Some binutils ld are patched to set DT_RUNPATH
10482  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10483  $as_echo_n "(cached) " >&6
10484else
10485  lt_cv_shlibpath_overrides_runpath=no
10486    save_LDFLAGS=$LDFLAGS
10487    save_libdir=$libdir
10488    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10489	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10490    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491/* end confdefs.h.  */
10492
10493int
10494main ()
10495{
10496
10497  ;
10498  return 0;
10499}
10500_ACEOF
10501if ac_fn_c_try_link "$LINENO"; then :
10502  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10503  lt_cv_shlibpath_overrides_runpath=yes
10504fi
10505fi
10506rm -f core conftest.err conftest.$ac_objext \
10507    conftest$ac_exeext conftest.$ac_ext
10508    LDFLAGS=$save_LDFLAGS
10509    libdir=$save_libdir
10510
10511fi
10512
10513  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10514
10515  # This implies no fast_install, which is unacceptable.
10516  # Some rework will be needed to allow for fast_install
10517  # before this can be enabled.
10518  hardcode_into_libs=yes
10519
10520  # Append ld.so.conf contents to the search path
10521  if test -f /etc/ld.so.conf; then
10522    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' ' '`
10523    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10524  fi
10525
10526  # We used to test for /lib/ld.so.1 and disable shared libraries on
10527  # powerpc, because MkLinux only supported shared libraries with the
10528  # GNU dynamic linker.  Since this was broken with cross compilers,
10529  # most powerpc-linux boxes support dynamic linking these days and
10530  # people can always --disable-shared, the test was removed, and we
10531  # assume the GNU/Linux dynamic linker is in use.
10532  dynamic_linker='GNU/Linux ld.so'
10533  ;;
10534
10535netbsd*)
10536  version_type=sunos
10537  need_lib_prefix=no
10538  need_version=no
10539  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10540    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10541    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10542    dynamic_linker='NetBSD (a.out) ld.so'
10543  else
10544    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10545    soname_spec='${libname}${release}${shared_ext}$major'
10546    dynamic_linker='NetBSD ld.elf_so'
10547  fi
10548  shlibpath_var=LD_LIBRARY_PATH
10549  shlibpath_overrides_runpath=yes
10550  hardcode_into_libs=yes
10551  ;;
10552
10553newsos6)
10554  version_type=linux
10555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556  shlibpath_var=LD_LIBRARY_PATH
10557  shlibpath_overrides_runpath=yes
10558  ;;
10559
10560*nto* | *qnx*)
10561  version_type=qnx
10562  need_lib_prefix=no
10563  need_version=no
10564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565  soname_spec='${libname}${release}${shared_ext}$major'
10566  shlibpath_var=LD_LIBRARY_PATH
10567  shlibpath_overrides_runpath=no
10568  hardcode_into_libs=yes
10569  dynamic_linker='ldqnx.so'
10570  ;;
10571
10572openbsd*)
10573  version_type=sunos
10574  sys_lib_dlsearch_path_spec="/usr/lib"
10575  need_lib_prefix=no
10576  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10577  case $host_os in
10578    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10579    *)				need_version=no  ;;
10580  esac
10581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10582  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10583  shlibpath_var=LD_LIBRARY_PATH
10584  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10585    case $host_os in
10586      openbsd2.[89] | openbsd2.[89].*)
10587	shlibpath_overrides_runpath=no
10588	;;
10589      *)
10590	shlibpath_overrides_runpath=yes
10591	;;
10592      esac
10593  else
10594    shlibpath_overrides_runpath=yes
10595  fi
10596  ;;
10597
10598os2*)
10599  libname_spec='$name'
10600  shrext_cmds=".dll"
10601  need_lib_prefix=no
10602  library_names_spec='$libname${shared_ext} $libname.a'
10603  dynamic_linker='OS/2 ld.exe'
10604  shlibpath_var=LIBPATH
10605  ;;
10606
10607osf3* | osf4* | osf5*)
10608  version_type=osf
10609  need_lib_prefix=no
10610  need_version=no
10611  soname_spec='${libname}${release}${shared_ext}$major'
10612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613  shlibpath_var=LD_LIBRARY_PATH
10614  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10615  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10616  ;;
10617
10618rdos*)
10619  dynamic_linker=no
10620  ;;
10621
10622solaris*)
10623  version_type=linux
10624  need_lib_prefix=no
10625  need_version=no
10626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627  soname_spec='${libname}${release}${shared_ext}$major'
10628  shlibpath_var=LD_LIBRARY_PATH
10629  shlibpath_overrides_runpath=yes
10630  hardcode_into_libs=yes
10631  # ldd complains unless libraries are executable
10632  postinstall_cmds='chmod +x $lib'
10633  ;;
10634
10635sunos4*)
10636  version_type=sunos
10637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10638  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10639  shlibpath_var=LD_LIBRARY_PATH
10640  shlibpath_overrides_runpath=yes
10641  if test "$with_gnu_ld" = yes; then
10642    need_lib_prefix=no
10643  fi
10644  need_version=yes
10645  ;;
10646
10647sysv4 | sysv4.3*)
10648  version_type=linux
10649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650  soname_spec='${libname}${release}${shared_ext}$major'
10651  shlibpath_var=LD_LIBRARY_PATH
10652  case $host_vendor in
10653    sni)
10654      shlibpath_overrides_runpath=no
10655      need_lib_prefix=no
10656      runpath_var=LD_RUN_PATH
10657      ;;
10658    siemens)
10659      need_lib_prefix=no
10660      ;;
10661    motorola)
10662      need_lib_prefix=no
10663      need_version=no
10664      shlibpath_overrides_runpath=no
10665      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10666      ;;
10667  esac
10668  ;;
10669
10670sysv4*MP*)
10671  if test -d /usr/nec ;then
10672    version_type=linux
10673    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10674    soname_spec='$libname${shared_ext}.$major'
10675    shlibpath_var=LD_LIBRARY_PATH
10676  fi
10677  ;;
10678
10679sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10680  version_type=freebsd-elf
10681  need_lib_prefix=no
10682  need_version=no
10683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10684  soname_spec='${libname}${release}${shared_ext}$major'
10685  shlibpath_var=LD_LIBRARY_PATH
10686  shlibpath_overrides_runpath=yes
10687  hardcode_into_libs=yes
10688  if test "$with_gnu_ld" = yes; then
10689    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10690  else
10691    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10692    case $host_os in
10693      sco3.2v5*)
10694        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10695	;;
10696    esac
10697  fi
10698  sys_lib_dlsearch_path_spec='/usr/lib'
10699  ;;
10700
10701tpf*)
10702  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10703  version_type=linux
10704  need_lib_prefix=no
10705  need_version=no
10706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707  shlibpath_var=LD_LIBRARY_PATH
10708  shlibpath_overrides_runpath=no
10709  hardcode_into_libs=yes
10710  ;;
10711
10712uts4*)
10713  version_type=linux
10714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715  soname_spec='${libname}${release}${shared_ext}$major'
10716  shlibpath_var=LD_LIBRARY_PATH
10717  ;;
10718
10719*)
10720  dynamic_linker=no
10721  ;;
10722esac
10723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10724$as_echo "$dynamic_linker" >&6; }
10725test "$dynamic_linker" = no && can_build_shared=no
10726
10727variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10728if test "$GCC" = yes; then
10729  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10730fi
10731
10732if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10733  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10734fi
10735if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10736  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10737fi
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10831$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10832hardcode_action=
10833if test -n "$hardcode_libdir_flag_spec" ||
10834   test -n "$runpath_var" ||
10835   test "X$hardcode_automatic" = "Xyes" ; then
10836
10837  # We can hardcode non-existent directories.
10838  if test "$hardcode_direct" != no &&
10839     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10840     # have to relink, otherwise we might link with an installed library
10841     # when we should be linking with a yet-to-be-installed one
10842     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10843     test "$hardcode_minus_L" != no; then
10844    # Linking always hardcodes the temporary library directory.
10845    hardcode_action=relink
10846  else
10847    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10848    hardcode_action=immediate
10849  fi
10850else
10851  # We cannot hardcode anything, or else we can only hardcode existing
10852  # directories.
10853  hardcode_action=unsupported
10854fi
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10856$as_echo "$hardcode_action" >&6; }
10857
10858if test "$hardcode_action" = relink ||
10859   test "$inherit_rpath" = yes; then
10860  # Fast installation is not supported
10861  enable_fast_install=no
10862elif test "$shlibpath_overrides_runpath" = yes ||
10863     test "$enable_shared" = no; then
10864  # Fast installation is not necessary
10865  enable_fast_install=needless
10866fi
10867
10868
10869
10870
10871
10872
10873  if test "x$enable_dlopen" != xyes; then
10874  enable_dlopen=unknown
10875  enable_dlopen_self=unknown
10876  enable_dlopen_self_static=unknown
10877else
10878  lt_cv_dlopen=no
10879  lt_cv_dlopen_libs=
10880
10881  case $host_os in
10882  beos*)
10883    lt_cv_dlopen="load_add_on"
10884    lt_cv_dlopen_libs=
10885    lt_cv_dlopen_self=yes
10886    ;;
10887
10888  mingw* | pw32* | cegcc*)
10889    lt_cv_dlopen="LoadLibrary"
10890    lt_cv_dlopen_libs=
10891    ;;
10892
10893  cygwin*)
10894    lt_cv_dlopen="dlopen"
10895    lt_cv_dlopen_libs=
10896    ;;
10897
10898  darwin*)
10899  # if libdl is installed we need to link against it
10900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10901$as_echo_n "checking for dlopen in -ldl... " >&6; }
10902if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10903  $as_echo_n "(cached) " >&6
10904else
10905  ac_check_lib_save_LIBS=$LIBS
10906LIBS="-ldl  $LIBS"
10907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908/* end confdefs.h.  */
10909
10910/* Override any GCC internal prototype to avoid an error.
10911   Use char because int might match the return type of a GCC
10912   builtin and then its argument prototype would still apply.  */
10913#ifdef __cplusplus
10914extern "C"
10915#endif
10916char dlopen ();
10917int
10918main ()
10919{
10920return dlopen ();
10921  ;
10922  return 0;
10923}
10924_ACEOF
10925if ac_fn_c_try_link "$LINENO"; then :
10926  ac_cv_lib_dl_dlopen=yes
10927else
10928  ac_cv_lib_dl_dlopen=no
10929fi
10930rm -f core conftest.err conftest.$ac_objext \
10931    conftest$ac_exeext conftest.$ac_ext
10932LIBS=$ac_check_lib_save_LIBS
10933fi
10934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10935$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10936if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10937  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10938else
10939
10940    lt_cv_dlopen="dyld"
10941    lt_cv_dlopen_libs=
10942    lt_cv_dlopen_self=yes
10943
10944fi
10945
10946    ;;
10947
10948  *)
10949    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10950if test "x$ac_cv_func_shl_load" = x""yes; then :
10951  lt_cv_dlopen="shl_load"
10952else
10953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10954$as_echo_n "checking for shl_load in -ldld... " >&6; }
10955if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10956  $as_echo_n "(cached) " >&6
10957else
10958  ac_check_lib_save_LIBS=$LIBS
10959LIBS="-ldld  $LIBS"
10960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961/* end confdefs.h.  */
10962
10963/* Override any GCC internal prototype to avoid an error.
10964   Use char because int might match the return type of a GCC
10965   builtin and then its argument prototype would still apply.  */
10966#ifdef __cplusplus
10967extern "C"
10968#endif
10969char shl_load ();
10970int
10971main ()
10972{
10973return shl_load ();
10974  ;
10975  return 0;
10976}
10977_ACEOF
10978if ac_fn_c_try_link "$LINENO"; then :
10979  ac_cv_lib_dld_shl_load=yes
10980else
10981  ac_cv_lib_dld_shl_load=no
10982fi
10983rm -f core conftest.err conftest.$ac_objext \
10984    conftest$ac_exeext conftest.$ac_ext
10985LIBS=$ac_check_lib_save_LIBS
10986fi
10987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10988$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10989if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10990  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10991else
10992  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10993if test "x$ac_cv_func_dlopen" = x""yes; then :
10994  lt_cv_dlopen="dlopen"
10995else
10996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10997$as_echo_n "checking for dlopen in -ldl... " >&6; }
10998if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10999  $as_echo_n "(cached) " >&6
11000else
11001  ac_check_lib_save_LIBS=$LIBS
11002LIBS="-ldl  $LIBS"
11003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004/* end confdefs.h.  */
11005
11006/* Override any GCC internal prototype to avoid an error.
11007   Use char because int might match the return type of a GCC
11008   builtin and then its argument prototype would still apply.  */
11009#ifdef __cplusplus
11010extern "C"
11011#endif
11012char dlopen ();
11013int
11014main ()
11015{
11016return dlopen ();
11017  ;
11018  return 0;
11019}
11020_ACEOF
11021if ac_fn_c_try_link "$LINENO"; then :
11022  ac_cv_lib_dl_dlopen=yes
11023else
11024  ac_cv_lib_dl_dlopen=no
11025fi
11026rm -f core conftest.err conftest.$ac_objext \
11027    conftest$ac_exeext conftest.$ac_ext
11028LIBS=$ac_check_lib_save_LIBS
11029fi
11030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11031$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11032if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11033  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11034else
11035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11036$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11037if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11038  $as_echo_n "(cached) " >&6
11039else
11040  ac_check_lib_save_LIBS=$LIBS
11041LIBS="-lsvld  $LIBS"
11042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043/* end confdefs.h.  */
11044
11045/* Override any GCC internal prototype to avoid an error.
11046   Use char because int might match the return type of a GCC
11047   builtin and then its argument prototype would still apply.  */
11048#ifdef __cplusplus
11049extern "C"
11050#endif
11051char dlopen ();
11052int
11053main ()
11054{
11055return dlopen ();
11056  ;
11057  return 0;
11058}
11059_ACEOF
11060if ac_fn_c_try_link "$LINENO"; then :
11061  ac_cv_lib_svld_dlopen=yes
11062else
11063  ac_cv_lib_svld_dlopen=no
11064fi
11065rm -f core conftest.err conftest.$ac_objext \
11066    conftest$ac_exeext conftest.$ac_ext
11067LIBS=$ac_check_lib_save_LIBS
11068fi
11069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11070$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11071if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11072  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11073else
11074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11075$as_echo_n "checking for dld_link in -ldld... " >&6; }
11076if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11077  $as_echo_n "(cached) " >&6
11078else
11079  ac_check_lib_save_LIBS=$LIBS
11080LIBS="-ldld  $LIBS"
11081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082/* end confdefs.h.  */
11083
11084/* Override any GCC internal prototype to avoid an error.
11085   Use char because int might match the return type of a GCC
11086   builtin and then its argument prototype would still apply.  */
11087#ifdef __cplusplus
11088extern "C"
11089#endif
11090char dld_link ();
11091int
11092main ()
11093{
11094return dld_link ();
11095  ;
11096  return 0;
11097}
11098_ACEOF
11099if ac_fn_c_try_link "$LINENO"; then :
11100  ac_cv_lib_dld_dld_link=yes
11101else
11102  ac_cv_lib_dld_dld_link=no
11103fi
11104rm -f core conftest.err conftest.$ac_objext \
11105    conftest$ac_exeext conftest.$ac_ext
11106LIBS=$ac_check_lib_save_LIBS
11107fi
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11109$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11110if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11111  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11112fi
11113
11114
11115fi
11116
11117
11118fi
11119
11120
11121fi
11122
11123
11124fi
11125
11126
11127fi
11128
11129    ;;
11130  esac
11131
11132  if test "x$lt_cv_dlopen" != xno; then
11133    enable_dlopen=yes
11134  else
11135    enable_dlopen=no
11136  fi
11137
11138  case $lt_cv_dlopen in
11139  dlopen)
11140    save_CPPFLAGS="$CPPFLAGS"
11141    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11142
11143    save_LDFLAGS="$LDFLAGS"
11144    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11145
11146    save_LIBS="$LIBS"
11147    LIBS="$lt_cv_dlopen_libs $LIBS"
11148
11149    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11150$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11151if test "${lt_cv_dlopen_self+set}" = set; then :
11152  $as_echo_n "(cached) " >&6
11153else
11154  	  if test "$cross_compiling" = yes; then :
11155  lt_cv_dlopen_self=cross
11156else
11157  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11158  lt_status=$lt_dlunknown
11159  cat > conftest.$ac_ext <<_LT_EOF
11160#line 11160 "configure"
11161#include "confdefs.h"
11162
11163#if HAVE_DLFCN_H
11164#include <dlfcn.h>
11165#endif
11166
11167#include <stdio.h>
11168
11169#ifdef RTLD_GLOBAL
11170#  define LT_DLGLOBAL		RTLD_GLOBAL
11171#else
11172#  ifdef DL_GLOBAL
11173#    define LT_DLGLOBAL		DL_GLOBAL
11174#  else
11175#    define LT_DLGLOBAL		0
11176#  endif
11177#endif
11178
11179/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11180   find out it does not work in some platform. */
11181#ifndef LT_DLLAZY_OR_NOW
11182#  ifdef RTLD_LAZY
11183#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11184#  else
11185#    ifdef DL_LAZY
11186#      define LT_DLLAZY_OR_NOW		DL_LAZY
11187#    else
11188#      ifdef RTLD_NOW
11189#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11190#      else
11191#        ifdef DL_NOW
11192#          define LT_DLLAZY_OR_NOW	DL_NOW
11193#        else
11194#          define LT_DLLAZY_OR_NOW	0
11195#        endif
11196#      endif
11197#    endif
11198#  endif
11199#endif
11200
11201/* When -fvisbility=hidden is used, assume the code has been annotated
11202   correspondingly for the symbols needed.  */
11203#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11204void fnord () __attribute__((visibility("default")));
11205#endif
11206
11207void fnord () { int i=42; }
11208int main ()
11209{
11210  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11211  int status = $lt_dlunknown;
11212
11213  if (self)
11214    {
11215      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11216      else
11217        {
11218	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11219          else puts (dlerror ());
11220	}
11221      /* dlclose (self); */
11222    }
11223  else
11224    puts (dlerror ());
11225
11226  return status;
11227}
11228_LT_EOF
11229  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11230  (eval $ac_link) 2>&5
11231  ac_status=$?
11232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11233  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11234    (./conftest; exit; ) >&5 2>/dev/null
11235    lt_status=$?
11236    case x$lt_status in
11237      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11238      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11239      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11240    esac
11241  else :
11242    # compilation failed
11243    lt_cv_dlopen_self=no
11244  fi
11245fi
11246rm -fr conftest*
11247
11248
11249fi
11250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11251$as_echo "$lt_cv_dlopen_self" >&6; }
11252
11253    if test "x$lt_cv_dlopen_self" = xyes; then
11254      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11255      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11256$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11257if test "${lt_cv_dlopen_self_static+set}" = set; then :
11258  $as_echo_n "(cached) " >&6
11259else
11260  	  if test "$cross_compiling" = yes; then :
11261  lt_cv_dlopen_self_static=cross
11262else
11263  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11264  lt_status=$lt_dlunknown
11265  cat > conftest.$ac_ext <<_LT_EOF
11266#line 11266 "configure"
11267#include "confdefs.h"
11268
11269#if HAVE_DLFCN_H
11270#include <dlfcn.h>
11271#endif
11272
11273#include <stdio.h>
11274
11275#ifdef RTLD_GLOBAL
11276#  define LT_DLGLOBAL		RTLD_GLOBAL
11277#else
11278#  ifdef DL_GLOBAL
11279#    define LT_DLGLOBAL		DL_GLOBAL
11280#  else
11281#    define LT_DLGLOBAL		0
11282#  endif
11283#endif
11284
11285/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11286   find out it does not work in some platform. */
11287#ifndef LT_DLLAZY_OR_NOW
11288#  ifdef RTLD_LAZY
11289#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11290#  else
11291#    ifdef DL_LAZY
11292#      define LT_DLLAZY_OR_NOW		DL_LAZY
11293#    else
11294#      ifdef RTLD_NOW
11295#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11296#      else
11297#        ifdef DL_NOW
11298#          define LT_DLLAZY_OR_NOW	DL_NOW
11299#        else
11300#          define LT_DLLAZY_OR_NOW	0
11301#        endif
11302#      endif
11303#    endif
11304#  endif
11305#endif
11306
11307/* When -fvisbility=hidden is used, assume the code has been annotated
11308   correspondingly for the symbols needed.  */
11309#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11310void fnord () __attribute__((visibility("default")));
11311#endif
11312
11313void fnord () { int i=42; }
11314int main ()
11315{
11316  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11317  int status = $lt_dlunknown;
11318
11319  if (self)
11320    {
11321      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11322      else
11323        {
11324	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11325          else puts (dlerror ());
11326	}
11327      /* dlclose (self); */
11328    }
11329  else
11330    puts (dlerror ());
11331
11332  return status;
11333}
11334_LT_EOF
11335  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11336  (eval $ac_link) 2>&5
11337  ac_status=$?
11338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11339  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11340    (./conftest; exit; ) >&5 2>/dev/null
11341    lt_status=$?
11342    case x$lt_status in
11343      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11344      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11345      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11346    esac
11347  else :
11348    # compilation failed
11349    lt_cv_dlopen_self_static=no
11350  fi
11351fi
11352rm -fr conftest*
11353
11354
11355fi
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11357$as_echo "$lt_cv_dlopen_self_static" >&6; }
11358    fi
11359
11360    CPPFLAGS="$save_CPPFLAGS"
11361    LDFLAGS="$save_LDFLAGS"
11362    LIBS="$save_LIBS"
11363    ;;
11364  esac
11365
11366  case $lt_cv_dlopen_self in
11367  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11368  *) enable_dlopen_self=unknown ;;
11369  esac
11370
11371  case $lt_cv_dlopen_self_static in
11372  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11373  *) enable_dlopen_self_static=unknown ;;
11374  esac
11375fi
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393striplib=
11394old_striplib=
11395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11396$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11397if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11398  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11399  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11401$as_echo "yes" >&6; }
11402else
11403# FIXME - insert some real tests, host_os isn't really good enough
11404  case $host_os in
11405  darwin*)
11406    if test -n "$STRIP" ; then
11407      striplib="$STRIP -x"
11408      old_striplib="$STRIP -S"
11409      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11410$as_echo "yes" >&6; }
11411    else
11412      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413$as_echo "no" >&6; }
11414    fi
11415    ;;
11416  *)
11417    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418$as_echo "no" >&6; }
11419    ;;
11420  esac
11421fi
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434  # Report which library types will actually be built
11435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11436$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11438$as_echo "$can_build_shared" >&6; }
11439
11440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11441$as_echo_n "checking whether to build shared libraries... " >&6; }
11442  test "$can_build_shared" = "no" && enable_shared=no
11443
11444  # On AIX, shared libraries and static libraries use the same namespace, and
11445  # are all built from PIC.
11446  case $host_os in
11447  aix3*)
11448    test "$enable_shared" = yes && enable_static=no
11449    if test -n "$RANLIB"; then
11450      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11451      postinstall_cmds='$RANLIB $lib'
11452    fi
11453    ;;
11454
11455  aix[4-9]*)
11456    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11457      test "$enable_shared" = yes && enable_static=no
11458    fi
11459    ;;
11460  esac
11461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11462$as_echo "$enable_shared" >&6; }
11463
11464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11465$as_echo_n "checking whether to build static libraries... " >&6; }
11466  # Make sure either enable_shared or enable_static is yes.
11467  test "$enable_shared" = yes || enable_static=yes
11468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11469$as_echo "$enable_static" >&6; }
11470
11471
11472
11473
11474fi
11475ac_ext=c
11476ac_cpp='$CPP $CPPFLAGS'
11477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11479ac_compiler_gnu=$ac_cv_c_compiler_gnu
11480
11481CC="$lt_save_CC"
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495        ac_config_commands="$ac_config_commands libtool"
11496
11497
11498
11499
11500# Only expand once:
11501
11502
11503
11504
11505
11506case $host in
11507  *-cygwin* | *-mingw*)
11508    # 'host' will be top-level target in the case of a target lib,
11509    # we must compare to with_cross_host to decide if this is a native
11510    # or cross-compiler and select where to install dlls appropriately.
11511    if test -n "$with_cross_host" &&
11512	test x"$with_cross_host" != x"no"; then
11513      lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11514    else
11515      lt_host_flags='-no-undefined -bindir "$(bindir)"';
11516    fi
11517    ;;
11518  *)
11519    lt_host_flags=
11520    ;;
11521esac
11522
11523
11524
11525
11526
11527
11528
11529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11530$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11531    # Check whether --enable-maintainer-mode was given.
11532if test "${enable_maintainer_mode+set}" = set; then :
11533  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11534else
11535  USE_MAINTAINER_MODE=no
11536fi
11537
11538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11539$as_echo "$USE_MAINTAINER_MODE" >&6; }
11540   if test $USE_MAINTAINER_MODE = yes; then
11541  MAINTAINER_MODE_TRUE=
11542  MAINTAINER_MODE_FALSE='#'
11543else
11544  MAINTAINER_MODE_TRUE='#'
11545  MAINTAINER_MODE_FALSE=
11546fi
11547
11548  MAINT=$MAINTAINER_MODE_TRUE
11549
11550
11551
11552# Create a spec file, so that compile/link tests don't fail
11553test -f libgfortran.spec || touch libgfortran.spec
11554FCFLAGS="$FCFLAGS -L."
11555
11556# We need gfortran to compile parts of the library
11557# We can't use AC_PROG_FC because it expects a fully working gfortran.
11558#AC_PROG_FC(gfortran)
11559case `echo $GFORTRAN` in
11560  -* | no* )
11561    FC=no ;;
11562  *)
11563    set dummy $GFORTRAN; ac_word=$2
11564    if test -x "$ac_word"; then
11565      FC="$GFORTRAN"
11566    else
11567      FC=no
11568    fi ;;
11569esac
11570ac_ext=${ac_fc_srcext-f}
11571ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11572ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11573ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11574if test -n "$ac_tool_prefix"; then
11575  for ac_prog in gfortran
11576  do
11577    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11578set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11580$as_echo_n "checking for $ac_word... " >&6; }
11581if test "${ac_cv_prog_FC+set}" = set; then :
11582  $as_echo_n "(cached) " >&6
11583else
11584  if test -n "$FC"; then
11585  ac_cv_prog_FC="$FC" # Let the user override the test.
11586else
11587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588for as_dir in $PATH
11589do
11590  IFS=$as_save_IFS
11591  test -z "$as_dir" && as_dir=.
11592    for ac_exec_ext in '' $ac_executable_extensions; do
11593  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11594    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11596    break 2
11597  fi
11598done
11599  done
11600IFS=$as_save_IFS
11601
11602fi
11603fi
11604FC=$ac_cv_prog_FC
11605if test -n "$FC"; then
11606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11607$as_echo "$FC" >&6; }
11608else
11609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610$as_echo "no" >&6; }
11611fi
11612
11613
11614    test -n "$FC" && break
11615  done
11616fi
11617if test -z "$FC"; then
11618  ac_ct_FC=$FC
11619  for ac_prog in gfortran
11620do
11621  # Extract the first word of "$ac_prog", so it can be a program name with args.
11622set dummy $ac_prog; ac_word=$2
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624$as_echo_n "checking for $ac_word... " >&6; }
11625if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11626  $as_echo_n "(cached) " >&6
11627else
11628  if test -n "$ac_ct_FC"; then
11629  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11630else
11631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632for as_dir in $PATH
11633do
11634  IFS=$as_save_IFS
11635  test -z "$as_dir" && as_dir=.
11636    for ac_exec_ext in '' $ac_executable_extensions; do
11637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11638    ac_cv_prog_ac_ct_FC="$ac_prog"
11639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640    break 2
11641  fi
11642done
11643  done
11644IFS=$as_save_IFS
11645
11646fi
11647fi
11648ac_ct_FC=$ac_cv_prog_ac_ct_FC
11649if test -n "$ac_ct_FC"; then
11650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11651$as_echo "$ac_ct_FC" >&6; }
11652else
11653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654$as_echo "no" >&6; }
11655fi
11656
11657
11658  test -n "$ac_ct_FC" && break
11659done
11660
11661  if test "x$ac_ct_FC" = x; then
11662    FC=""
11663  else
11664    case $cross_compiling:$ac_tool_warned in
11665yes:)
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11668ac_tool_warned=yes ;;
11669esac
11670    FC=$ac_ct_FC
11671  fi
11672fi
11673
11674
11675# Provide some information about the compiler.
11676$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11677set X $ac_compile
11678ac_compiler=$2
11679for ac_option in --version -v -V -qversion; do
11680  { { ac_try="$ac_compiler $ac_option >&5"
11681case "(($ac_try" in
11682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683  *) ac_try_echo=$ac_try;;
11684esac
11685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11686$as_echo "$ac_try_echo"; } >&5
11687  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11688  ac_status=$?
11689  if test -s conftest.err; then
11690    sed '10a\
11691... rest of stderr output deleted ...
11692         10q' conftest.err >conftest.er1
11693    cat conftest.er1 >&5
11694    rm -f conftest.er1 conftest.err
11695  fi
11696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11697  test $ac_status = 0; }
11698done
11699rm -f a.out
11700
11701# If we don't use `.F' as extension, the preprocessor is not run on the
11702# input file.  (Note that this only needs to work for GNU compilers.)
11703ac_save_ext=$ac_ext
11704ac_ext=F
11705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11706$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11707if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11708  $as_echo_n "(cached) " >&6
11709else
11710  cat > conftest.$ac_ext <<_ACEOF
11711      program main
11712#ifndef __GNUC__
11713       choke me
11714#endif
11715
11716      end
11717_ACEOF
11718if ac_fn_fc_try_compile "$LINENO"; then :
11719  ac_compiler_gnu=yes
11720else
11721  ac_compiler_gnu=no
11722fi
11723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11724ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11725
11726fi
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11728$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11729ac_ext=$ac_save_ext
11730ac_test_FCFLAGS=${FCFLAGS+set}
11731ac_save_FCFLAGS=$FCFLAGS
11732FCFLAGS=
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11734$as_echo_n "checking whether $FC accepts -g... " >&6; }
11735if test "${ac_cv_prog_fc_g+set}" = set; then :
11736  $as_echo_n "(cached) " >&6
11737else
11738  FCFLAGS=-g
11739cat > conftest.$ac_ext <<_ACEOF
11740      program main
11741
11742      end
11743_ACEOF
11744if ac_fn_fc_try_compile "$LINENO"; then :
11745  ac_cv_prog_fc_g=yes
11746else
11747  ac_cv_prog_fc_g=no
11748fi
11749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11750
11751fi
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11753$as_echo "$ac_cv_prog_fc_g" >&6; }
11754if test "$ac_test_FCFLAGS" = set; then
11755  FCFLAGS=$ac_save_FCFLAGS
11756elif test $ac_cv_prog_fc_g = yes; then
11757  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11758    FCFLAGS="-g -O2"
11759  else
11760    FCFLAGS="-g"
11761  fi
11762else
11763  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11764    FCFLAGS="-O2"
11765  else
11766    FCFLAGS=
11767  fi
11768fi
11769
11770ac_ext=c
11771ac_cpp='$CPP $CPPFLAGS'
11772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11774ac_compiler_gnu=$ac_cv_c_compiler_gnu
11775
11776      ac_ext=${ac_fc_srcext-f}
11777ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11778ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11779ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11780
11781
11782if test -z "$FC" || test "X$FC" = "Xno"; then
11783  _lt_disable_FC=yes
11784fi
11785
11786archive_cmds_need_lc_FC=no
11787allow_undefined_flag_FC=
11788always_export_symbols_FC=no
11789archive_expsym_cmds_FC=
11790export_dynamic_flag_spec_FC=
11791hardcode_direct_FC=no
11792hardcode_direct_absolute_FC=no
11793hardcode_libdir_flag_spec_FC=
11794hardcode_libdir_flag_spec_ld_FC=
11795hardcode_libdir_separator_FC=
11796hardcode_minus_L_FC=no
11797hardcode_automatic_FC=no
11798inherit_rpath_FC=no
11799module_cmds_FC=
11800module_expsym_cmds_FC=
11801link_all_deplibs_FC=unknown
11802old_archive_cmds_FC=$old_archive_cmds
11803reload_flag_FC=$reload_flag
11804reload_cmds_FC=$reload_cmds
11805no_undefined_flag_FC=
11806whole_archive_flag_spec_FC=
11807enable_shared_with_static_runtimes_FC=no
11808
11809# Source file extension for fc test sources.
11810ac_ext=${ac_fc_srcext-f}
11811
11812# Object file extension for compiled fc test sources.
11813objext=o
11814objext_FC=$objext
11815
11816# No sense in running all these tests if we already determined that
11817# the FC compiler isn't working.  Some variables (like enable_shared)
11818# are currently assumed to apply to all compilers on this platform,
11819# and will be corrupted by setting them based on a non-working compiler.
11820if test "$_lt_disable_FC" != yes; then
11821  # Code to be used in simple compile tests
11822  lt_simple_compile_test_code="\
11823      subroutine t
11824      return
11825      end
11826"
11827
11828  # Code to be used in simple link tests
11829  lt_simple_link_test_code="\
11830      program t
11831      end
11832"
11833
11834  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11835
11836
11837
11838
11839
11840
11841# If no C compiler was specified, use CC.
11842LTCC=${LTCC-"$CC"}
11843
11844# If no C compiler flags were specified, use CFLAGS.
11845LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11846
11847# Allow CC to be a program name with arguments.
11848compiler=$CC
11849
11850
11851  # save warnings/boilerplate of simple test code
11852  ac_outfile=conftest.$ac_objext
11853echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11854eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11855_lt_compiler_boilerplate=`cat conftest.err`
11856$RM conftest*
11857
11858  ac_outfile=conftest.$ac_objext
11859echo "$lt_simple_link_test_code" >conftest.$ac_ext
11860eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11861_lt_linker_boilerplate=`cat conftest.err`
11862$RM -r conftest*
11863
11864
11865  # Allow CC to be a program name with arguments.
11866  lt_save_CC="$CC"
11867  lt_save_GCC=$GCC
11868  CC=${FC-"f95"}
11869  compiler=$CC
11870  GCC=$ac_cv_fc_compiler_gnu
11871
11872  compiler_FC=$CC
11873  for cc_temp in $compiler""; do
11874  case $cc_temp in
11875    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11876    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11877    \-*) ;;
11878    *) break;;
11879  esac
11880done
11881cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11882
11883
11884  if test -n "$compiler"; then
11885    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11886$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11887    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11888$as_echo "$can_build_shared" >&6; }
11889
11890    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11891$as_echo_n "checking whether to build shared libraries... " >&6; }
11892    test "$can_build_shared" = "no" && enable_shared=no
11893
11894    # On AIX, shared libraries and static libraries use the same namespace, and
11895    # are all built from PIC.
11896    case $host_os in
11897      aix3*)
11898        test "$enable_shared" = yes && enable_static=no
11899        if test -n "$RANLIB"; then
11900          archive_cmds="$archive_cmds~\$RANLIB \$lib"
11901          postinstall_cmds='$RANLIB $lib'
11902        fi
11903        ;;
11904      aix[4-9]*)
11905	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11906	  test "$enable_shared" = yes && enable_static=no
11907	fi
11908        ;;
11909    esac
11910    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11911$as_echo "$enable_shared" >&6; }
11912
11913    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11914$as_echo_n "checking whether to build static libraries... " >&6; }
11915    # Make sure either enable_shared or enable_static is yes.
11916    test "$enable_shared" = yes || enable_static=yes
11917    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11918$as_echo "$enable_static" >&6; }
11919
11920    GCC_FC="$ac_cv_fc_compiler_gnu"
11921    LD_FC="$LD"
11922
11923    ## CAVEAT EMPTOR:
11924    ## There is no encapsulation within the following macros, do not change
11925    ## the running order or otherwise move them around unless you know exactly
11926    ## what you are doing...
11927    # Dependencies to place before and after the object being linked:
11928predep_objects_FC=
11929postdep_objects_FC=
11930predeps_FC=
11931postdeps_FC=
11932compiler_lib_search_path_FC=
11933
11934cat > conftest.$ac_ext <<_LT_EOF
11935      subroutine foo
11936      implicit none
11937      integer a
11938      a=0
11939      return
11940      end
11941_LT_EOF
11942
11943if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11944  (eval $ac_compile) 2>&5
11945  ac_status=$?
11946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11947  test $ac_status = 0; }; then
11948  # Parse the compiler output and extract the necessary
11949  # objects, libraries and library flags.
11950
11951  # Sentinel used to keep track of whether or not we are before
11952  # the conftest object file.
11953  pre_test_object_deps_done=no
11954
11955  for p in `eval "$output_verbose_link_cmd"`; do
11956    case $p in
11957
11958    -L* | -R* | -l*)
11959       # Some compilers place space between "-{L,R}" and the path.
11960       # Remove the space.
11961       if test $p = "-L" ||
11962          test $p = "-R"; then
11963	 prev=$p
11964	 continue
11965       else
11966	 prev=
11967       fi
11968
11969       if test "$pre_test_object_deps_done" = no; then
11970	 case $p in
11971	 -L* | -R*)
11972	   # Internal compiler library paths should come after those
11973	   # provided the user.  The postdeps already come after the
11974	   # user supplied libs so there is no need to process them.
11975	   if test -z "$compiler_lib_search_path_FC"; then
11976	     compiler_lib_search_path_FC="${prev}${p}"
11977	   else
11978	     compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11979	   fi
11980	   ;;
11981	 # The "-l" case would never come before the object being
11982	 # linked, so don't bother handling this case.
11983	 esac
11984       else
11985	 if test -z "$postdeps_FC"; then
11986	   postdeps_FC="${prev}${p}"
11987	 else
11988	   postdeps_FC="${postdeps_FC} ${prev}${p}"
11989	 fi
11990       fi
11991       ;;
11992
11993    *.$objext)
11994       # This assumes that the test object file only shows up
11995       # once in the compiler output.
11996       if test "$p" = "conftest.$objext"; then
11997	 pre_test_object_deps_done=yes
11998	 continue
11999       fi
12000
12001       if test "$pre_test_object_deps_done" = no; then
12002	 if test -z "$predep_objects_FC"; then
12003	   predep_objects_FC="$p"
12004	 else
12005	   predep_objects_FC="$predep_objects_FC $p"
12006	 fi
12007       else
12008	 if test -z "$postdep_objects_FC"; then
12009	   postdep_objects_FC="$p"
12010	 else
12011	   postdep_objects_FC="$postdep_objects_FC $p"
12012	 fi
12013       fi
12014       ;;
12015
12016    *) ;; # Ignore the rest.
12017
12018    esac
12019  done
12020
12021  # Clean up.
12022  rm -f a.out a.exe
12023else
12024  echo "libtool.m4: error: problem compiling FC test program"
12025fi
12026
12027$RM -f confest.$objext
12028
12029# PORTME: override above test on systems where it is broken
12030
12031
12032case " $postdeps_FC " in
12033*" -lc "*) archive_cmds_need_lc_FC=no ;;
12034esac
12035 compiler_lib_search_dirs_FC=
12036if test -n "${compiler_lib_search_path_FC}"; then
12037 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12038fi
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    lt_prog_compiler_wl_FC=
12071lt_prog_compiler_pic_FC=
12072lt_prog_compiler_static_FC=
12073
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12075$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12076
12077  if test "$GCC" = yes; then
12078    lt_prog_compiler_wl_FC='-Wl,'
12079    lt_prog_compiler_static_FC='-static'
12080
12081    case $host_os in
12082      aix*)
12083      # All AIX code is PIC.
12084      if test "$host_cpu" = ia64; then
12085	# AIX 5 now supports IA64 processor
12086	lt_prog_compiler_static_FC='-Bstatic'
12087      fi
12088      lt_prog_compiler_pic_FC='-fPIC'
12089      ;;
12090
12091    amigaos*)
12092      case $host_cpu in
12093      powerpc)
12094            # see comment about AmigaOS4 .so support
12095            lt_prog_compiler_pic_FC='-fPIC'
12096        ;;
12097      m68k)
12098            # FIXME: we need at least 68020 code to build shared libraries, but
12099            # adding the `-m68020' flag to GCC prevents building anything better,
12100            # like `-m68040'.
12101            lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12102        ;;
12103      esac
12104      ;;
12105
12106    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12107      # PIC is the default for these OSes.
12108      ;;
12109
12110    mingw* | cygwin* | pw32* | os2* | cegcc*)
12111      # This hack is so that the source file can tell whether it is being
12112      # built for inclusion in a dll (and should export symbols for example).
12113      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12114      # (--disable-auto-import) libraries
12115      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12116      ;;
12117
12118    darwin* | rhapsody*)
12119      # PIC is the default on this platform
12120      # Common symbols not allowed in MH_DYLIB files
12121      lt_prog_compiler_pic_FC='-fno-common'
12122      ;;
12123
12124    haiku*)
12125      # PIC is the default for Haiku.
12126      # The "-static" flag exists, but is broken.
12127      lt_prog_compiler_static_FC=
12128      ;;
12129
12130    hpux*)
12131      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12132      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12133      # sets the default TLS model and affects inlining.
12134      case $host_cpu in
12135      hppa*64*)
12136	# +Z the default
12137	;;
12138      *)
12139	lt_prog_compiler_pic_FC='-fPIC'
12140	;;
12141      esac
12142      ;;
12143
12144    interix[3-9]*)
12145      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12146      # Instead, we relocate shared libraries at runtime.
12147      ;;
12148
12149    msdosdjgpp*)
12150      # Just because we use GCC doesn't mean we suddenly get shared libraries
12151      # on systems that don't support them.
12152      lt_prog_compiler_can_build_shared_FC=no
12153      enable_shared=no
12154      ;;
12155
12156    *nto* | *qnx*)
12157      # QNX uses GNU C++, but need to define -shared option too, otherwise
12158      # it will coredump.
12159      lt_prog_compiler_pic_FC='-fPIC -shared'
12160      ;;
12161
12162    sysv4*MP*)
12163      if test -d /usr/nec; then
12164	lt_prog_compiler_pic_FC=-Kconform_pic
12165      fi
12166      ;;
12167
12168    *)
12169      lt_prog_compiler_pic_FC='-fPIC'
12170      ;;
12171    esac
12172
12173    case $cc_basename in
12174    nvcc*) # Cuda Compiler Driver 2.2
12175      lt_prog_compiler_wl_FC='-Xlinker '
12176      lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12177      ;;
12178    esac
12179  else
12180    # PORTME Check for flag to pass linker flags through the system compiler.
12181    case $host_os in
12182    aix*)
12183      lt_prog_compiler_wl_FC='-Wl,'
12184      if test "$host_cpu" = ia64; then
12185	# AIX 5 now supports IA64 processor
12186	lt_prog_compiler_static_FC='-Bstatic'
12187      else
12188	lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12189      fi
12190      ;;
12191
12192    mingw* | cygwin* | pw32* | os2* | cegcc*)
12193      # This hack is so that the source file can tell whether it is being
12194      # built for inclusion in a dll (and should export symbols for example).
12195      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12196      ;;
12197
12198    hpux9* | hpux10* | hpux11*)
12199      lt_prog_compiler_wl_FC='-Wl,'
12200      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12201      # not for PA HP-UX.
12202      case $host_cpu in
12203      hppa*64*|ia64*)
12204	# +Z the default
12205	;;
12206      *)
12207	lt_prog_compiler_pic_FC='+Z'
12208	;;
12209      esac
12210      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12211      lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12212      ;;
12213
12214    irix5* | irix6* | nonstopux*)
12215      lt_prog_compiler_wl_FC='-Wl,'
12216      # PIC (with -KPIC) is the default.
12217      lt_prog_compiler_static_FC='-non_shared'
12218      ;;
12219
12220    linux* | k*bsd*-gnu | kopensolaris*-gnu)
12221      case $cc_basename in
12222      # old Intel for x86_64 which still supported -KPIC.
12223      ecc*)
12224	lt_prog_compiler_wl_FC='-Wl,'
12225	lt_prog_compiler_pic_FC='-KPIC'
12226	lt_prog_compiler_static_FC='-static'
12227        ;;
12228      # icc used to be incompatible with GCC.
12229      # ICC 10 doesn't accept -KPIC any more.
12230      icc* | ifort*)
12231	lt_prog_compiler_wl_FC='-Wl,'
12232	lt_prog_compiler_pic_FC='-fPIC'
12233	lt_prog_compiler_static_FC='-static'
12234        ;;
12235      # Lahey Fortran 8.1.
12236      lf95*)
12237	lt_prog_compiler_wl_FC='-Wl,'
12238	lt_prog_compiler_pic_FC='--shared'
12239	lt_prog_compiler_static_FC='--static'
12240	;;
12241      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12242        # Portland Group compilers (*not* the Pentium gcc compiler,
12243	# which looks to be a dead project)
12244	lt_prog_compiler_wl_FC='-Wl,'
12245	lt_prog_compiler_pic_FC='-fpic'
12246	lt_prog_compiler_static_FC='-Bstatic'
12247        ;;
12248      ccc*)
12249        lt_prog_compiler_wl_FC='-Wl,'
12250        # All Alpha code is PIC.
12251        lt_prog_compiler_static_FC='-non_shared'
12252        ;;
12253      xl* | bgxl* | bgf* | mpixl*)
12254	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12255	lt_prog_compiler_wl_FC='-Wl,'
12256	lt_prog_compiler_pic_FC='-qpic'
12257	lt_prog_compiler_static_FC='-qstaticlink'
12258	;;
12259      *)
12260	case `$CC -V 2>&1 | sed 5q` in
12261	*Sun\ F* | *Sun*Fortran*)
12262	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12263	  lt_prog_compiler_pic_FC='-KPIC'
12264	  lt_prog_compiler_static_FC='-Bstatic'
12265	  lt_prog_compiler_wl_FC=''
12266	  ;;
12267	*Sun\ C*)
12268	  # Sun C 5.9
12269	  lt_prog_compiler_pic_FC='-KPIC'
12270	  lt_prog_compiler_static_FC='-Bstatic'
12271	  lt_prog_compiler_wl_FC='-Wl,'
12272	  ;;
12273	esac
12274	;;
12275      esac
12276      ;;
12277
12278    newsos6)
12279      lt_prog_compiler_pic_FC='-KPIC'
12280      lt_prog_compiler_static_FC='-Bstatic'
12281      ;;
12282
12283    *nto* | *qnx*)
12284      # QNX uses GNU C++, but need to define -shared option too, otherwise
12285      # it will coredump.
12286      lt_prog_compiler_pic_FC='-fPIC -shared'
12287      ;;
12288
12289    osf3* | osf4* | osf5*)
12290      lt_prog_compiler_wl_FC='-Wl,'
12291      # All OSF/1 code is PIC.
12292      lt_prog_compiler_static_FC='-non_shared'
12293      ;;
12294
12295    rdos*)
12296      lt_prog_compiler_static_FC='-non_shared'
12297      ;;
12298
12299    solaris*)
12300      lt_prog_compiler_pic_FC='-KPIC'
12301      lt_prog_compiler_static_FC='-Bstatic'
12302      case $cc_basename in
12303      f77* | f90* | f95*)
12304	lt_prog_compiler_wl_FC='-Qoption ld ';;
12305      *)
12306	lt_prog_compiler_wl_FC='-Wl,';;
12307      esac
12308      ;;
12309
12310    sunos4*)
12311      lt_prog_compiler_wl_FC='-Qoption ld '
12312      lt_prog_compiler_pic_FC='-PIC'
12313      lt_prog_compiler_static_FC='-Bstatic'
12314      ;;
12315
12316    sysv4 | sysv4.2uw2* | sysv4.3*)
12317      lt_prog_compiler_wl_FC='-Wl,'
12318      lt_prog_compiler_pic_FC='-KPIC'
12319      lt_prog_compiler_static_FC='-Bstatic'
12320      ;;
12321
12322    sysv4*MP*)
12323      if test -d /usr/nec ;then
12324	lt_prog_compiler_pic_FC='-Kconform_pic'
12325	lt_prog_compiler_static_FC='-Bstatic'
12326      fi
12327      ;;
12328
12329    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12330      lt_prog_compiler_wl_FC='-Wl,'
12331      lt_prog_compiler_pic_FC='-KPIC'
12332      lt_prog_compiler_static_FC='-Bstatic'
12333      ;;
12334
12335    unicos*)
12336      lt_prog_compiler_wl_FC='-Wl,'
12337      lt_prog_compiler_can_build_shared_FC=no
12338      ;;
12339
12340    uts4*)
12341      lt_prog_compiler_pic_FC='-pic'
12342      lt_prog_compiler_static_FC='-Bstatic'
12343      ;;
12344
12345    *)
12346      lt_prog_compiler_can_build_shared_FC=no
12347      ;;
12348    esac
12349  fi
12350
12351case $host_os in
12352  # For platforms which do not support PIC, -DPIC is meaningless:
12353  *djgpp*)
12354    lt_prog_compiler_pic_FC=
12355    ;;
12356  *)
12357    lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12358    ;;
12359esac
12360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12361$as_echo "$lt_prog_compiler_pic_FC" >&6; }
12362
12363
12364
12365#
12366# Check to make sure the PIC flag actually works.
12367#
12368if test -n "$lt_prog_compiler_pic_FC"; then
12369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12370$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12371if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12372  $as_echo_n "(cached) " >&6
12373else
12374  lt_cv_prog_compiler_pic_works_FC=no
12375   ac_outfile=conftest.$ac_objext
12376   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12377   lt_compiler_flag="$lt_prog_compiler_pic_FC"
12378   # Insert the option either (1) after the last *FLAGS variable, or
12379   # (2) before a word containing "conftest.", or (3) at the end.
12380   # Note that $ac_compile itself does not contain backslashes and begins
12381   # with a dollar sign (not a hyphen), so the echo should work correctly.
12382   # The option is referenced via a variable to avoid confusing sed.
12383   lt_compile=`echo "$ac_compile" | $SED \
12384   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12385   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12386   -e 's:$: $lt_compiler_flag:'`
12387   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12388   (eval "$lt_compile" 2>conftest.err)
12389   ac_status=$?
12390   cat conftest.err >&5
12391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392   if (exit $ac_status) && test -s "$ac_outfile"; then
12393     # The compiler can only warn and ignore the option if not recognized
12394     # So say no if there are warnings other than the usual output.
12395     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12396     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12397     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12398       lt_cv_prog_compiler_pic_works_FC=yes
12399     fi
12400   fi
12401   $RM conftest*
12402
12403fi
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12405$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12406
12407if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12408    case $lt_prog_compiler_pic_FC in
12409     "" | " "*) ;;
12410     *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12411     esac
12412else
12413    lt_prog_compiler_pic_FC=
12414     lt_prog_compiler_can_build_shared_FC=no
12415fi
12416
12417fi
12418
12419
12420
12421#
12422# Check to make sure the static flag actually works.
12423#
12424wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12426$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12427if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12428  $as_echo_n "(cached) " >&6
12429else
12430  lt_cv_prog_compiler_static_works_FC=no
12431   save_LDFLAGS="$LDFLAGS"
12432   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12433   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12434   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12435     # The linker can only warn and ignore the option if not recognized
12436     # So say no if there are warnings
12437     if test -s conftest.err; then
12438       # Append any errors to the config.log.
12439       cat conftest.err 1>&5
12440       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12441       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12442       if diff conftest.exp conftest.er2 >/dev/null; then
12443         lt_cv_prog_compiler_static_works_FC=yes
12444       fi
12445     else
12446       lt_cv_prog_compiler_static_works_FC=yes
12447     fi
12448   fi
12449   $RM -r conftest*
12450   LDFLAGS="$save_LDFLAGS"
12451
12452fi
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12454$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12455
12456if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12457    :
12458else
12459    lt_prog_compiler_static_FC=
12460fi
12461
12462
12463
12464
12465    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12466$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12467if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12468  $as_echo_n "(cached) " >&6
12469else
12470  lt_cv_prog_compiler_c_o_FC=no
12471   $RM -r conftest 2>/dev/null
12472   mkdir conftest
12473   cd conftest
12474   mkdir out
12475   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12476
12477   lt_compiler_flag="-o out/conftest2.$ac_objext"
12478   # Insert the option either (1) after the last *FLAGS variable, or
12479   # (2) before a word containing "conftest.", or (3) at the end.
12480   # Note that $ac_compile itself does not contain backslashes and begins
12481   # with a dollar sign (not a hyphen), so the echo should work correctly.
12482   lt_compile=`echo "$ac_compile" | $SED \
12483   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12484   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12485   -e 's:$: $lt_compiler_flag:'`
12486   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12487   (eval "$lt_compile" 2>out/conftest.err)
12488   ac_status=$?
12489   cat out/conftest.err >&5
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12492   then
12493     # The compiler can only warn and ignore the option if not recognized
12494     # So say no if there are warnings
12495     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12496     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12497     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12498       lt_cv_prog_compiler_c_o_FC=yes
12499     fi
12500   fi
12501   chmod u+w . 2>&5
12502   $RM conftest*
12503   # SGI C++ compiler will create directory out/ii_files/ for
12504   # template instantiation
12505   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12506   $RM out/* && rmdir out
12507   cd ..
12508   $RM -r conftest
12509   $RM conftest*
12510
12511fi
12512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12513$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12514
12515
12516
12517    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12518$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12519if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12520  $as_echo_n "(cached) " >&6
12521else
12522  lt_cv_prog_compiler_c_o_FC=no
12523   $RM -r conftest 2>/dev/null
12524   mkdir conftest
12525   cd conftest
12526   mkdir out
12527   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12528
12529   lt_compiler_flag="-o out/conftest2.$ac_objext"
12530   # Insert the option either (1) after the last *FLAGS variable, or
12531   # (2) before a word containing "conftest.", or (3) at the end.
12532   # Note that $ac_compile itself does not contain backslashes and begins
12533   # with a dollar sign (not a hyphen), so the echo should work correctly.
12534   lt_compile=`echo "$ac_compile" | $SED \
12535   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12536   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12537   -e 's:$: $lt_compiler_flag:'`
12538   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12539   (eval "$lt_compile" 2>out/conftest.err)
12540   ac_status=$?
12541   cat out/conftest.err >&5
12542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12544   then
12545     # The compiler can only warn and ignore the option if not recognized
12546     # So say no if there are warnings
12547     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12548     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12549     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12550       lt_cv_prog_compiler_c_o_FC=yes
12551     fi
12552   fi
12553   chmod u+w . 2>&5
12554   $RM conftest*
12555   # SGI C++ compiler will create directory out/ii_files/ for
12556   # template instantiation
12557   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12558   $RM out/* && rmdir out
12559   cd ..
12560   $RM -r conftest
12561   $RM conftest*
12562
12563fi
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12565$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12566
12567
12568
12569
12570hard_links="nottested"
12571if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12572  # do not overwrite the value of need_locks provided by the user
12573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12574$as_echo_n "checking if we can lock with hard links... " >&6; }
12575  hard_links=yes
12576  $RM conftest*
12577  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12578  touch conftest.a
12579  ln conftest.a conftest.b 2>&5 || hard_links=no
12580  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12582$as_echo "$hard_links" >&6; }
12583  if test "$hard_links" = no; then
12584    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12585$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12586    need_locks=warn
12587  fi
12588else
12589  need_locks=no
12590fi
12591
12592
12593
12594    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12595$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12596
12597  runpath_var=
12598  allow_undefined_flag_FC=
12599  always_export_symbols_FC=no
12600  archive_cmds_FC=
12601  archive_expsym_cmds_FC=
12602  compiler_needs_object_FC=no
12603  enable_shared_with_static_runtimes_FC=no
12604  export_dynamic_flag_spec_FC=
12605  export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12606  hardcode_automatic_FC=no
12607  hardcode_direct_FC=no
12608  hardcode_direct_absolute_FC=no
12609  hardcode_libdir_flag_spec_FC=
12610  hardcode_libdir_flag_spec_ld_FC=
12611  hardcode_libdir_separator_FC=
12612  hardcode_minus_L_FC=no
12613  hardcode_shlibpath_var_FC=unsupported
12614  inherit_rpath_FC=no
12615  link_all_deplibs_FC=unknown
12616  module_cmds_FC=
12617  module_expsym_cmds_FC=
12618  old_archive_from_new_cmds_FC=
12619  old_archive_from_expsyms_cmds_FC=
12620  thread_safe_flag_spec_FC=
12621  whole_archive_flag_spec_FC=
12622  # include_expsyms should be a list of space-separated symbols to be *always*
12623  # included in the symbol list
12624  include_expsyms_FC=
12625  # exclude_expsyms can be an extended regexp of symbols to exclude
12626  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12627  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12628  # as well as any symbol that contains `d'.
12629  exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12630  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12631  # platforms (ab)use it in PIC code, but their linkers get confused if
12632  # the symbol is explicitly referenced.  Since portable code cannot
12633  # rely on this symbol name, it's probably fine to never include it in
12634  # preloaded symbol tables.
12635  # Exclude shared library initialization/finalization symbols.
12636  extract_expsyms_cmds=
12637
12638  case $host_os in
12639  cygwin* | mingw* | pw32* | cegcc*)
12640    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12641    # When not using gcc, we currently assume that we are using
12642    # Microsoft Visual C++.
12643    if test "$GCC" != yes; then
12644      with_gnu_ld=no
12645    fi
12646    ;;
12647  interix*)
12648    # we just hope/assume this is gcc and not c89 (= MSVC++)
12649    with_gnu_ld=yes
12650    ;;
12651  openbsd*)
12652    with_gnu_ld=no
12653    ;;
12654  esac
12655
12656  ld_shlibs_FC=yes
12657
12658  # On some targets, GNU ld is compatible enough with the native linker
12659  # that we're better off using the native interface for both.
12660  lt_use_gnu_ld_interface=no
12661  if test "$with_gnu_ld" = yes; then
12662    case $host_os in
12663      aix*)
12664	# The AIX port of GNU ld has always aspired to compatibility
12665	# with the native linker.  However, as the warning in the GNU ld
12666	# block says, versions before 2.19.5* couldn't really create working
12667	# shared libraries, regardless of the interface used.
12668	case `$LD -v 2>&1` in
12669	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12670	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12671	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12672	  *)
12673	    lt_use_gnu_ld_interface=yes
12674	    ;;
12675	esac
12676	;;
12677      *)
12678	lt_use_gnu_ld_interface=yes
12679	;;
12680    esac
12681  fi
12682
12683  if test "$lt_use_gnu_ld_interface" = yes; then
12684    # If archive_cmds runs LD, not CC, wlarc should be empty
12685    wlarc='${wl}'
12686
12687    # Set some defaults for GNU ld with shared library support. These
12688    # are reset later if shared libraries are not supported. Putting them
12689    # here allows them to be overridden if necessary.
12690    runpath_var=LD_RUN_PATH
12691    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12692    export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12693    # ancient GNU ld didn't support --whole-archive et. al.
12694    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12695      whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12696    else
12697      whole_archive_flag_spec_FC=
12698    fi
12699    supports_anon_versioning=no
12700    case `$LD -v 2>&1` in
12701      *GNU\ gold*) supports_anon_versioning=yes ;;
12702      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12703      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12704      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12705      *\ 2.11.*) ;; # other 2.11 versions
12706      *) supports_anon_versioning=yes ;;
12707    esac
12708
12709    # See if GNU ld supports shared libraries.
12710    case $host_os in
12711    aix[3-9]*)
12712      # On AIX/PPC, the GNU linker is very broken
12713      if test "$host_cpu" != ia64; then
12714	ld_shlibs_FC=no
12715	cat <<_LT_EOF 1>&2
12716
12717*** Warning: the GNU linker, at least up to release 2.19, is reported
12718*** to be unable to reliably create shared libraries on AIX.
12719*** Therefore, libtool is disabling shared libraries support.  If you
12720*** really care for shared libraries, you may want to install binutils
12721*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12722*** You will then need to restart the configuration process.
12723
12724_LT_EOF
12725      fi
12726      ;;
12727
12728    amigaos*)
12729      case $host_cpu in
12730      powerpc)
12731            # see comment about AmigaOS4 .so support
12732            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12733            archive_expsym_cmds_FC=''
12734        ;;
12735      m68k)
12736            archive_cmds_FC='$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)'
12737            hardcode_libdir_flag_spec_FC='-L$libdir'
12738            hardcode_minus_L_FC=yes
12739        ;;
12740      esac
12741      ;;
12742
12743    beos*)
12744      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12745	allow_undefined_flag_FC=unsupported
12746	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12747	# support --undefined.  This deserves some investigation.  FIXME
12748	archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12749      else
12750	ld_shlibs_FC=no
12751      fi
12752      ;;
12753
12754    cygwin* | mingw* | pw32* | cegcc*)
12755      # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12756      # as there is no search path for DLLs.
12757      hardcode_libdir_flag_spec_FC='-L$libdir'
12758      export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12759      allow_undefined_flag_FC=unsupported
12760      always_export_symbols_FC=no
12761      enable_shared_with_static_runtimes_FC=yes
12762      export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12763
12764      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12765        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12766	# If the export-symbols file already is a .def file (1st line
12767	# is EXPORTS), use it as is; otherwise, prepend...
12768	archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12769	  cp $export_symbols $output_objdir/$soname.def;
12770	else
12771	  echo EXPORTS > $output_objdir/$soname.def;
12772	  cat $export_symbols >> $output_objdir/$soname.def;
12773	fi~
12774	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12775      else
12776	ld_shlibs_FC=no
12777      fi
12778      ;;
12779
12780    haiku*)
12781      archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12782      link_all_deplibs_FC=yes
12783      ;;
12784
12785    interix[3-9]*)
12786      hardcode_direct_FC=no
12787      hardcode_shlibpath_var_FC=no
12788      hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12789      export_dynamic_flag_spec_FC='${wl}-E'
12790      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12791      # Instead, shared libraries are loaded at an image base (0x10000000 by
12792      # default) and relocated if they conflict, which is a slow very memory
12793      # consuming and fragmenting process.  To avoid this, we pick a random,
12794      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12795      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12796      archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12797      archive_expsym_cmds_FC='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'
12798      ;;
12799
12800    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12801      tmp_diet=no
12802      if test "$host_os" = linux-dietlibc; then
12803	case $cc_basename in
12804	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12805	esac
12806      fi
12807      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12808	 && test "$tmp_diet" = no
12809      then
12810	tmp_addflag=' $pic_flag'
12811	tmp_sharedflag='-shared'
12812	case $cc_basename,$host_cpu in
12813        pgcc*)				# Portland Group C compiler
12814	  whole_archive_flag_spec_FC='${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'
12815	  tmp_addflag=' $pic_flag'
12816	  ;;
12817	pgf77* | pgf90* | pgf95* | pgfortran*)
12818					# Portland Group f77 and f90 compilers
12819	  whole_archive_flag_spec_FC='${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'
12820	  tmp_addflag=' $pic_flag -Mnomain' ;;
12821	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12822	  tmp_addflag=' -i_dynamic' ;;
12823	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12824	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12825	ifc* | ifort*)			# Intel Fortran compiler
12826	  tmp_addflag=' -nofor_main' ;;
12827	lf95*)				# Lahey Fortran 8.1
12828	  whole_archive_flag_spec_FC=
12829	  tmp_sharedflag='--shared' ;;
12830	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12831	  tmp_sharedflag='-qmkshrobj'
12832	  tmp_addflag= ;;
12833	nvcc*)	# Cuda Compiler Driver 2.2
12834	  whole_archive_flag_spec_FC='${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'
12835	  compiler_needs_object_FC=yes
12836	  ;;
12837	esac
12838	case `$CC -V 2>&1 | sed 5q` in
12839	*Sun\ C*)			# Sun C 5.9
12840	  whole_archive_flag_spec_FC='${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'
12841	  compiler_needs_object_FC=yes
12842	  tmp_sharedflag='-G' ;;
12843	*Sun\ F*)			# Sun Fortran 8.3
12844	  tmp_sharedflag='-G' ;;
12845	esac
12846	archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12847
12848        if test "x$supports_anon_versioning" = xyes; then
12849          archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12850	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12851	    echo "local: *; };" >> $output_objdir/$libname.ver~
12852	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12853        fi
12854
12855	case $cc_basename in
12856	xlf* | bgf* | bgxlf* | mpixlf*)
12857	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12858	  whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12859	  hardcode_libdir_flag_spec_FC=
12860	  hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12861	  archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12862	  if test "x$supports_anon_versioning" = xyes; then
12863	    archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12864	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12865	      echo "local: *; };" >> $output_objdir/$libname.ver~
12866	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12867	  fi
12868	  ;;
12869	esac
12870      else
12871        ld_shlibs_FC=no
12872      fi
12873      ;;
12874
12875    netbsd*)
12876      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12877	archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12878	wlarc=
12879      else
12880	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12881	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12882      fi
12883      ;;
12884
12885    solaris*)
12886      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12887	ld_shlibs_FC=no
12888	cat <<_LT_EOF 1>&2
12889
12890*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12891*** create shared libraries on Solaris systems.  Therefore, libtool
12892*** is disabling shared libraries support.  We urge you to upgrade GNU
12893*** binutils to release 2.9.1 or newer.  Another option is to modify
12894*** your PATH or compiler configuration so that the native linker is
12895*** used, and then restart.
12896
12897_LT_EOF
12898      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12899	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12900	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12901      else
12902	ld_shlibs_FC=no
12903      fi
12904      ;;
12905
12906    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12907      case `$LD -v 2>&1` in
12908        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12909	ld_shlibs_FC=no
12910	cat <<_LT_EOF 1>&2
12911
12912*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12913*** reliably create shared libraries on SCO systems.  Therefore, libtool
12914*** is disabling shared libraries support.  We urge you to upgrade GNU
12915*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12916*** your PATH or compiler configuration so that the native linker is
12917*** used, and then restart.
12918
12919_LT_EOF
12920	;;
12921	*)
12922	  # For security reasons, it is highly recommended that you always
12923	  # use absolute paths for naming shared libraries, and exclude the
12924	  # DT_RUNPATH tag from executables and libraries.  But doing so
12925	  # requires that you compile everything twice, which is a pain.
12926	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12927	    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12928	    archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12929	    archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12930	  else
12931	    ld_shlibs_FC=no
12932	  fi
12933	;;
12934      esac
12935      ;;
12936
12937    sunos4*)
12938      archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12939      wlarc=
12940      hardcode_direct_FC=yes
12941      hardcode_shlibpath_var_FC=no
12942      ;;
12943
12944    *)
12945      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12946	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12947	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12948      else
12949	ld_shlibs_FC=no
12950      fi
12951      ;;
12952    esac
12953
12954    if test "$ld_shlibs_FC" = no; then
12955      runpath_var=
12956      hardcode_libdir_flag_spec_FC=
12957      export_dynamic_flag_spec_FC=
12958      whole_archive_flag_spec_FC=
12959    fi
12960  else
12961    # PORTME fill in a description of your system's linker (not GNU ld)
12962    case $host_os in
12963    aix3*)
12964      allow_undefined_flag_FC=unsupported
12965      always_export_symbols_FC=yes
12966      archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12967      # Note: this linker hardcodes the directories in LIBPATH if there
12968      # are no directories specified by -L.
12969      hardcode_minus_L_FC=yes
12970      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12971	# Neither direct hardcoding nor static linking is supported with a
12972	# broken collect2.
12973	hardcode_direct_FC=unsupported
12974      fi
12975      ;;
12976
12977    aix[4-9]*)
12978      if test "$host_cpu" = ia64; then
12979	# On IA64, the linker does run time linking by default, so we don't
12980	# have to do anything special.
12981	aix_use_runtimelinking=no
12982	exp_sym_flag='-Bexport'
12983	no_entry_flag=""
12984      else
12985	# If we're using GNU nm, then we don't want the "-C" option.
12986	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12987	# Also, AIX nm treats weak defined symbols like other global
12988	# defined symbols, whereas GNU nm marks them as "W".
12989	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12990	  export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12991	else
12992	  export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12993	fi
12994	aix_use_runtimelinking=no
12995
12996	# Test if we are trying to use run time linking or normal
12997	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12998	# need to do runtime linking.
12999	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13000	  for ld_flag in $LDFLAGS; do
13001	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13002	    aix_use_runtimelinking=yes
13003	    break
13004	  fi
13005	  done
13006	  ;;
13007	esac
13008
13009	exp_sym_flag='-bexport'
13010	no_entry_flag='-bnoentry'
13011      fi
13012
13013      # When large executables or shared objects are built, AIX ld can
13014      # have problems creating the table of contents.  If linking a library
13015      # or program results in "error TOC overflow" add -mminimal-toc to
13016      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13017      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13018
13019      archive_cmds_FC=''
13020      hardcode_direct_FC=yes
13021      hardcode_direct_absolute_FC=yes
13022      hardcode_libdir_separator_FC=':'
13023      link_all_deplibs_FC=yes
13024      file_list_spec_FC='${wl}-f,'
13025
13026      if test "$GCC" = yes; then
13027	case $host_os in aix4.[012]|aix4.[012].*)
13028	# We only want to do this on AIX 4.2 and lower, the check
13029	# below for broken collect2 doesn't work under 4.3+
13030	  collect2name=`${CC} -print-prog-name=collect2`
13031	  if test -f "$collect2name" &&
13032	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13033	  then
13034	  # We have reworked collect2
13035	  :
13036	  else
13037	  # We have old collect2
13038	  hardcode_direct_FC=unsupported
13039	  # It fails to find uninstalled libraries when the uninstalled
13040	  # path is not listed in the libpath.  Setting hardcode_minus_L
13041	  # to unsupported forces relinking
13042	  hardcode_minus_L_FC=yes
13043	  hardcode_libdir_flag_spec_FC='-L$libdir'
13044	  hardcode_libdir_separator_FC=
13045	  fi
13046	  ;;
13047	esac
13048	shared_flag='-shared'
13049	if test "$aix_use_runtimelinking" = yes; then
13050	  shared_flag="$shared_flag "'${wl}-G'
13051	fi
13052      else
13053	# not using gcc
13054	if test "$host_cpu" = ia64; then
13055	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13056	# chokes on -Wl,-G. The following line is correct:
13057	  shared_flag='-G'
13058	else
13059	  if test "$aix_use_runtimelinking" = yes; then
13060	    shared_flag='${wl}-G'
13061	  else
13062	    shared_flag='${wl}-bM:SRE'
13063	  fi
13064	fi
13065      fi
13066
13067      export_dynamic_flag_spec_FC='${wl}-bexpall'
13068      # It seems that -bexpall does not export symbols beginning with
13069      # underscore (_), so it is better to generate a list of symbols to export.
13070      always_export_symbols_FC=yes
13071      if test "$aix_use_runtimelinking" = yes; then
13072	# Warning - without using the other runtime loading flags (-brtl),
13073	# -berok will link without error, but may produce a broken library.
13074	allow_undefined_flag_FC='-berok'
13075        # Determine the default libpath from the value encoded in an
13076        # empty executable.
13077        cat > conftest.$ac_ext <<_ACEOF
13078      program main
13079
13080      end
13081_ACEOF
13082if ac_fn_fc_try_link "$LINENO"; then :
13083
13084lt_aix_libpath_sed='
13085    /Import File Strings/,/^$/ {
13086	/^0/ {
13087	    s/^0  *\(.*\)$/\1/
13088	    p
13089	}
13090    }'
13091aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13092# Check for a 64-bit object if we didn't find anything.
13093if test -z "$aix_libpath"; then
13094  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13095fi
13096fi
13097rm -f core conftest.err conftest.$ac_objext \
13098    conftest$ac_exeext conftest.$ac_ext
13099if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13100
13101        hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13102        archive_expsym_cmds_FC='$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"
13103      else
13104	if test "$host_cpu" = ia64; then
13105	  hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13106	  allow_undefined_flag_FC="-z nodefs"
13107	  archive_expsym_cmds_FC="\$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"
13108	else
13109	 # Determine the default libpath from the value encoded in an
13110	 # empty executable.
13111	 cat > conftest.$ac_ext <<_ACEOF
13112      program main
13113
13114      end
13115_ACEOF
13116if ac_fn_fc_try_link "$LINENO"; then :
13117
13118lt_aix_libpath_sed='
13119    /Import File Strings/,/^$/ {
13120	/^0/ {
13121	    s/^0  *\(.*\)$/\1/
13122	    p
13123	}
13124    }'
13125aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13126# Check for a 64-bit object if we didn't find anything.
13127if test -z "$aix_libpath"; then
13128  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13129fi
13130fi
13131rm -f core conftest.err conftest.$ac_objext \
13132    conftest$ac_exeext conftest.$ac_ext
13133if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13134
13135	 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13136	  # Warning - without using the other run time loading flags,
13137	  # -berok will link without error, but may produce a broken library.
13138	  no_undefined_flag_FC=' ${wl}-bernotok'
13139	  allow_undefined_flag_FC=' ${wl}-berok'
13140	  if test "$with_gnu_ld" = yes; then
13141	    # We only use this code for GNU lds that support --whole-archive.
13142	    whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13143	  else
13144	    # Exported symbols can be pulled into shared objects from archives
13145	    whole_archive_flag_spec_FC='$convenience'
13146	  fi
13147	  archive_cmds_need_lc_FC=yes
13148	  # This is similar to how AIX traditionally builds its shared libraries.
13149	  archive_expsym_cmds_FC="\$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'
13150	fi
13151      fi
13152      ;;
13153
13154    amigaos*)
13155      case $host_cpu in
13156      powerpc)
13157            # see comment about AmigaOS4 .so support
13158            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13159            archive_expsym_cmds_FC=''
13160        ;;
13161      m68k)
13162            archive_cmds_FC='$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)'
13163            hardcode_libdir_flag_spec_FC='-L$libdir'
13164            hardcode_minus_L_FC=yes
13165        ;;
13166      esac
13167      ;;
13168
13169    bsdi[45]*)
13170      export_dynamic_flag_spec_FC=-rdynamic
13171      ;;
13172
13173    cygwin* | mingw* | pw32* | cegcc*)
13174      # When not using gcc, we currently assume that we are using
13175      # Microsoft Visual C++.
13176      # hardcode_libdir_flag_spec is actually meaningless, as there is
13177      # no search path for DLLs.
13178      hardcode_libdir_flag_spec_FC=' '
13179      allow_undefined_flag_FC=unsupported
13180      # Tell ltmain to make .lib files, not .a files.
13181      libext=lib
13182      # Tell ltmain to make .dll files, not .so files.
13183      shrext_cmds=".dll"
13184      # FIXME: Setting linknames here is a bad hack.
13185      archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13186      # The linker will automatically build a .lib file if we build a DLL.
13187      old_archive_from_new_cmds_FC='true'
13188      # FIXME: Should let the user specify the lib program.
13189      old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13190      fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13191      enable_shared_with_static_runtimes_FC=yes
13192      ;;
13193
13194    darwin* | rhapsody*)
13195
13196
13197  archive_cmds_need_lc_FC=no
13198  hardcode_direct_FC=no
13199  hardcode_automatic_FC=yes
13200  hardcode_shlibpath_var_FC=unsupported
13201  if test "$lt_cv_ld_force_load" = "yes"; then
13202    whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13203  else
13204    whole_archive_flag_spec_FC=''
13205  fi
13206  link_all_deplibs_FC=yes
13207  allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13208  case $cc_basename in
13209     ifort*) _lt_dar_can_shared=yes ;;
13210     *) _lt_dar_can_shared=$GCC ;;
13211  esac
13212  if test "$_lt_dar_can_shared" = "yes"; then
13213    output_verbose_link_cmd=func_echo_all
13214    archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13215    module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13216    archive_expsym_cmds_FC="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}"
13217    module_expsym_cmds_FC="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}"
13218
13219  else
13220  ld_shlibs_FC=no
13221  fi
13222
13223      ;;
13224
13225    dgux*)
13226      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13227      hardcode_libdir_flag_spec_FC='-L$libdir'
13228      hardcode_shlibpath_var_FC=no
13229      ;;
13230
13231    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13232    # support.  Future versions do this automatically, but an explicit c++rt0.o
13233    # does not break anything, and helps significantly (at the cost of a little
13234    # extra space).
13235    freebsd2.2*)
13236      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13237      hardcode_libdir_flag_spec_FC='-R$libdir'
13238      hardcode_direct_FC=yes
13239      hardcode_shlibpath_var_FC=no
13240      ;;
13241
13242    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13243    freebsd2.*)
13244      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13245      hardcode_direct_FC=yes
13246      hardcode_minus_L_FC=yes
13247      hardcode_shlibpath_var_FC=no
13248      ;;
13249
13250    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13251    freebsd* | dragonfly*)
13252      archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13253      hardcode_libdir_flag_spec_FC='-R$libdir'
13254      hardcode_direct_FC=yes
13255      hardcode_shlibpath_var_FC=no
13256      ;;
13257
13258    hpux9*)
13259      if test "$GCC" = yes; then
13260	archive_cmds_FC='$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'
13261      else
13262	archive_cmds_FC='$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'
13263      fi
13264      hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13265      hardcode_libdir_separator_FC=:
13266      hardcode_direct_FC=yes
13267
13268      # hardcode_minus_L: Not really in the search PATH,
13269      # but as the default location of the library.
13270      hardcode_minus_L_FC=yes
13271      export_dynamic_flag_spec_FC='${wl}-E'
13272      ;;
13273
13274    hpux10*)
13275      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13276	archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13277      else
13278	archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13279      fi
13280      if test "$with_gnu_ld" = no; then
13281	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13282	hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13283	hardcode_libdir_separator_FC=:
13284	hardcode_direct_FC=yes
13285	hardcode_direct_absolute_FC=yes
13286	export_dynamic_flag_spec_FC='${wl}-E'
13287	# hardcode_minus_L: Not really in the search PATH,
13288	# but as the default location of the library.
13289	hardcode_minus_L_FC=yes
13290      fi
13291      ;;
13292
13293    hpux11*)
13294      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13295	case $host_cpu in
13296	hppa*64*)
13297	  archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13298	  ;;
13299	ia64*)
13300	  archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13301	  ;;
13302	*)
13303	  archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13304	  ;;
13305	esac
13306      else
13307	case $host_cpu in
13308	hppa*64*)
13309	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13310	  ;;
13311	ia64*)
13312	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13313	  ;;
13314	*)
13315	archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13316	  ;;
13317	esac
13318      fi
13319      if test "$with_gnu_ld" = no; then
13320	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13321	hardcode_libdir_separator_FC=:
13322
13323	case $host_cpu in
13324	hppa*64*|ia64*)
13325	  hardcode_direct_FC=no
13326	  hardcode_shlibpath_var_FC=no
13327	  ;;
13328	*)
13329	  hardcode_direct_FC=yes
13330	  hardcode_direct_absolute_FC=yes
13331	  export_dynamic_flag_spec_FC='${wl}-E'
13332
13333	  # hardcode_minus_L: Not really in the search PATH,
13334	  # but as the default location of the library.
13335	  hardcode_minus_L_FC=yes
13336	  ;;
13337	esac
13338      fi
13339      ;;
13340
13341    irix5* | irix6* | nonstopux*)
13342      if test "$GCC" = yes; then
13343	archive_cmds_FC='$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'
13344	# Try to use the -exported_symbol ld option, if it does not
13345	# work, assume that -exports_file does not work either and
13346	# implicitly export all symbols.
13347        save_LDFLAGS="$LDFLAGS"
13348        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13349        cat > conftest.$ac_ext <<_ACEOF
13350int foo(void) {}
13351_ACEOF
13352if ac_fn_fc_try_link "$LINENO"; then :
13353  archive_expsym_cmds_FC='$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'
13354
13355fi
13356rm -f core conftest.err conftest.$ac_objext \
13357    conftest$ac_exeext conftest.$ac_ext
13358        LDFLAGS="$save_LDFLAGS"
13359      else
13360	archive_cmds_FC='$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'
13361	archive_expsym_cmds_FC='$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'
13362      fi
13363      archive_cmds_need_lc_FC='no'
13364      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13365      hardcode_libdir_separator_FC=:
13366      inherit_rpath_FC=yes
13367      link_all_deplibs_FC=yes
13368      ;;
13369
13370    netbsd*)
13371      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13372	archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13373      else
13374	archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13375      fi
13376      hardcode_libdir_flag_spec_FC='-R$libdir'
13377      hardcode_direct_FC=yes
13378      hardcode_shlibpath_var_FC=no
13379      ;;
13380
13381    newsos6)
13382      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13383      hardcode_direct_FC=yes
13384      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13385      hardcode_libdir_separator_FC=:
13386      hardcode_shlibpath_var_FC=no
13387      ;;
13388
13389    *nto* | *qnx*)
13390      ;;
13391
13392    openbsd*)
13393      if test -f /usr/libexec/ld.so; then
13394	hardcode_direct_FC=yes
13395	hardcode_shlibpath_var_FC=no
13396	hardcode_direct_absolute_FC=yes
13397	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13398	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13399	  archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13400	  hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13401	  export_dynamic_flag_spec_FC='${wl}-E'
13402	else
13403	  case $host_os in
13404	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13405	     archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13406	     hardcode_libdir_flag_spec_FC='-R$libdir'
13407	     ;;
13408	   *)
13409	     archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13410	     hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13411	     ;;
13412	  esac
13413	fi
13414      else
13415	ld_shlibs_FC=no
13416      fi
13417      ;;
13418
13419    os2*)
13420      hardcode_libdir_flag_spec_FC='-L$libdir'
13421      hardcode_minus_L_FC=yes
13422      allow_undefined_flag_FC=unsupported
13423      archive_cmds_FC='$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'
13424      old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13425      ;;
13426
13427    osf3*)
13428      if test "$GCC" = yes; then
13429	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13430	archive_cmds_FC='$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'
13431      else
13432	allow_undefined_flag_FC=' -expect_unresolved \*'
13433	archive_cmds_FC='$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'
13434      fi
13435      archive_cmds_need_lc_FC='no'
13436      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13437      hardcode_libdir_separator_FC=:
13438      ;;
13439
13440    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13441      if test "$GCC" = yes; then
13442	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13443	archive_cmds_FC='$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'
13444	hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13445      else
13446	allow_undefined_flag_FC=' -expect_unresolved \*'
13447	archive_cmds_FC='$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'
13448	archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13449	$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'
13450
13451	# Both c and cxx compiler support -rpath directly
13452	hardcode_libdir_flag_spec_FC='-rpath $libdir'
13453      fi
13454      archive_cmds_need_lc_FC='no'
13455      hardcode_libdir_separator_FC=:
13456      ;;
13457
13458    solaris*)
13459      no_undefined_flag_FC=' -z defs'
13460      if test "$GCC" = yes; then
13461	wlarc='${wl}'
13462	archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13463	archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13464	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13465      else
13466	case `$CC -V 2>&1` in
13467	*"Compilers 5.0"*)
13468	  wlarc=''
13469	  archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13470	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13471	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13472	  ;;
13473	*)
13474	  wlarc='${wl}'
13475	  archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13476	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13477	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13478	  ;;
13479	esac
13480      fi
13481      hardcode_libdir_flag_spec_FC='-R$libdir'
13482      hardcode_shlibpath_var_FC=no
13483      case $host_os in
13484      solaris2.[0-5] | solaris2.[0-5].*) ;;
13485      *)
13486	# The compiler driver will combine and reorder linker options,
13487	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13488	# but is careful enough not to reorder.
13489	# Supported since Solaris 2.6 (maybe 2.5.1?)
13490	if test "$GCC" = yes; then
13491	  whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13492	else
13493	  whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13494	fi
13495	;;
13496      esac
13497      link_all_deplibs_FC=yes
13498      ;;
13499
13500    sunos4*)
13501      if test "x$host_vendor" = xsequent; then
13502	# Use $CC to link under sequent, because it throws in some extra .o
13503	# files that make .init and .fini sections work.
13504	archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13505      else
13506	archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13507      fi
13508      hardcode_libdir_flag_spec_FC='-L$libdir'
13509      hardcode_direct_FC=yes
13510      hardcode_minus_L_FC=yes
13511      hardcode_shlibpath_var_FC=no
13512      ;;
13513
13514    sysv4)
13515      case $host_vendor in
13516	sni)
13517	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13518	  hardcode_direct_FC=yes # is this really true???
13519	;;
13520	siemens)
13521	  ## LD is ld it makes a PLAMLIB
13522	  ## CC just makes a GrossModule.
13523	  archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13524	  reload_cmds_FC='$CC -r -o $output$reload_objs'
13525	  hardcode_direct_FC=no
13526        ;;
13527	motorola)
13528	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13529	  hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13530	;;
13531      esac
13532      runpath_var='LD_RUN_PATH'
13533      hardcode_shlibpath_var_FC=no
13534      ;;
13535
13536    sysv4.3*)
13537      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13538      hardcode_shlibpath_var_FC=no
13539      export_dynamic_flag_spec_FC='-Bexport'
13540      ;;
13541
13542    sysv4*MP*)
13543      if test -d /usr/nec; then
13544	archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13545	hardcode_shlibpath_var_FC=no
13546	runpath_var=LD_RUN_PATH
13547	hardcode_runpath_var=yes
13548	ld_shlibs_FC=yes
13549      fi
13550      ;;
13551
13552    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13553      no_undefined_flag_FC='${wl}-z,text'
13554      archive_cmds_need_lc_FC=no
13555      hardcode_shlibpath_var_FC=no
13556      runpath_var='LD_RUN_PATH'
13557
13558      if test "$GCC" = yes; then
13559	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13560	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13561      else
13562	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13563	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13564      fi
13565      ;;
13566
13567    sysv5* | sco3.2v5* | sco5v6*)
13568      # Note: We can NOT use -z defs as we might desire, because we do not
13569      # link with -lc, and that would cause any symbols used from libc to
13570      # always be unresolved, which means just about no library would
13571      # ever link correctly.  If we're not using GNU ld we use -z text
13572      # though, which does catch some bad symbols but isn't as heavy-handed
13573      # as -z defs.
13574      no_undefined_flag_FC='${wl}-z,text'
13575      allow_undefined_flag_FC='${wl}-z,nodefs'
13576      archive_cmds_need_lc_FC=no
13577      hardcode_shlibpath_var_FC=no
13578      hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13579      hardcode_libdir_separator_FC=':'
13580      link_all_deplibs_FC=yes
13581      export_dynamic_flag_spec_FC='${wl}-Bexport'
13582      runpath_var='LD_RUN_PATH'
13583
13584      if test "$GCC" = yes; then
13585	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13586	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13587      else
13588	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13589	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13590      fi
13591      ;;
13592
13593    uts4*)
13594      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13595      hardcode_libdir_flag_spec_FC='-L$libdir'
13596      hardcode_shlibpath_var_FC=no
13597      ;;
13598
13599    *)
13600      ld_shlibs_FC=no
13601      ;;
13602    esac
13603
13604    if test x$host_vendor = xsni; then
13605      case $host in
13606      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13607	export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13608	;;
13609      esac
13610    fi
13611  fi
13612
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13614$as_echo "$ld_shlibs_FC" >&6; }
13615test "$ld_shlibs_FC" = no && can_build_shared=no
13616
13617with_gnu_ld_FC=$with_gnu_ld
13618
13619
13620
13621
13622
13623
13624#
13625# Do we need to explicitly link libc?
13626#
13627case "x$archive_cmds_need_lc_FC" in
13628x|xyes)
13629  # Assume -lc should be added
13630  archive_cmds_need_lc_FC=yes
13631
13632  if test "$enable_shared" = yes && test "$GCC" = yes; then
13633    case $archive_cmds_FC in
13634    *'~'*)
13635      # FIXME: we may have to deal with multi-command sequences.
13636      ;;
13637    '$CC '*)
13638      # Test whether the compiler implicitly links with -lc since on some
13639      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13640      # to ld, don't add -lc before -lgcc.
13641      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13642$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13643if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13644  $as_echo_n "(cached) " >&6
13645else
13646  $RM conftest*
13647	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13648
13649	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13650  (eval $ac_compile) 2>&5
13651  ac_status=$?
13652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13653  test $ac_status = 0; } 2>conftest.err; then
13654	  soname=conftest
13655	  lib=conftest
13656	  libobjs=conftest.$ac_objext
13657	  deplibs=
13658	  wl=$lt_prog_compiler_wl_FC
13659	  pic_flag=$lt_prog_compiler_pic_FC
13660	  compiler_flags=-v
13661	  linker_flags=-v
13662	  verstring=
13663	  output_objdir=.
13664	  libname=conftest
13665	  lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13666	  allow_undefined_flag_FC=
13667	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13668  (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13669  ac_status=$?
13670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13671  test $ac_status = 0; }
13672	  then
13673	    lt_cv_archive_cmds_need_lc_FC=no
13674	  else
13675	    lt_cv_archive_cmds_need_lc_FC=yes
13676	  fi
13677	  allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13678	else
13679	  cat conftest.err 1>&5
13680	fi
13681	$RM conftest*
13682
13683fi
13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13685$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13686      archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13687      ;;
13688    esac
13689  fi
13690  ;;
13691esac
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13757$as_echo_n "checking dynamic linker characteristics... " >&6; }
13758
13759library_names_spec=
13760libname_spec='lib$name'
13761soname_spec=
13762shrext_cmds=".so"
13763postinstall_cmds=
13764postuninstall_cmds=
13765finish_cmds=
13766finish_eval=
13767shlibpath_var=
13768shlibpath_overrides_runpath=unknown
13769version_type=none
13770dynamic_linker="$host_os ld.so"
13771sys_lib_dlsearch_path_spec="/lib /usr/lib"
13772need_lib_prefix=unknown
13773hardcode_into_libs=no
13774
13775# when you set need_version to no, make sure it does not cause -set_version
13776# flags to be left without arguments
13777need_version=unknown
13778
13779case $host_os in
13780aix3*)
13781  version_type=linux
13782  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13783  shlibpath_var=LIBPATH
13784
13785  # AIX 3 has no versioning support, so we append a major version to the name.
13786  soname_spec='${libname}${release}${shared_ext}$major'
13787  ;;
13788
13789aix[4-9]*)
13790  version_type=linux
13791  need_lib_prefix=no
13792  need_version=no
13793  hardcode_into_libs=yes
13794  if test "$host_cpu" = ia64; then
13795    # AIX 5 supports IA64
13796    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13797    shlibpath_var=LD_LIBRARY_PATH
13798  else
13799    # With GCC up to 2.95.x, collect2 would create an import file
13800    # for dependence libraries.  The import file would start with
13801    # the line `#! .'.  This would cause the generated library to
13802    # depend on `.', always an invalid library.  This was fixed in
13803    # development snapshots of GCC prior to 3.0.
13804    case $host_os in
13805      aix4 | aix4.[01] | aix4.[01].*)
13806      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13807	   echo ' yes '
13808	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13809	:
13810      else
13811	can_build_shared=no
13812      fi
13813      ;;
13814    esac
13815    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13816    # soname into executable. Probably we can add versioning support to
13817    # collect2, so additional links can be useful in future.
13818    if test "$aix_use_runtimelinking" = yes; then
13819      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13820      # instead of lib<name>.a to let people know that these are not
13821      # typical AIX shared libraries.
13822      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13823    else
13824      # We preserve .a as extension for shared libraries through AIX4.2
13825      # and later when we are not doing run time linking.
13826      library_names_spec='${libname}${release}.a $libname.a'
13827      soname_spec='${libname}${release}${shared_ext}$major'
13828    fi
13829    shlibpath_var=LIBPATH
13830  fi
13831  ;;
13832
13833amigaos*)
13834  case $host_cpu in
13835  powerpc)
13836    # Since July 2007 AmigaOS4 officially supports .so libraries.
13837    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13838    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13839    ;;
13840  m68k)
13841    library_names_spec='$libname.ixlibrary $libname.a'
13842    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13843    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'
13844    ;;
13845  esac
13846  ;;
13847
13848beos*)
13849  library_names_spec='${libname}${shared_ext}'
13850  dynamic_linker="$host_os ld.so"
13851  shlibpath_var=LIBRARY_PATH
13852  ;;
13853
13854bsdi[45]*)
13855  version_type=linux
13856  need_version=no
13857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13858  soname_spec='${libname}${release}${shared_ext}$major'
13859  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13860  shlibpath_var=LD_LIBRARY_PATH
13861  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13862  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13863  # the default ld.so.conf also contains /usr/contrib/lib and
13864  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13865  # libtool to hard-code these into programs
13866  ;;
13867
13868cygwin* | mingw* | pw32* | cegcc*)
13869  version_type=windows
13870  shrext_cmds=".dll"
13871  need_version=no
13872  need_lib_prefix=no
13873
13874  case $GCC,$host_os in
13875  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13876    library_names_spec='$libname.dll.a'
13877    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13878    postinstall_cmds='base_file=`basename \${file}`~
13879      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13880      dldir=$destdir/`dirname \$dlpath`~
13881      test -d \$dldir || mkdir -p \$dldir~
13882      $install_prog $dir/$dlname \$dldir/$dlname~
13883      chmod a+x \$dldir/$dlname~
13884      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13885        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13886      fi'
13887    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13888      dlpath=$dir/\$dldll~
13889       $RM \$dlpath'
13890    shlibpath_overrides_runpath=yes
13891
13892    case $host_os in
13893    cygwin*)
13894      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13895      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13896
13897      ;;
13898    mingw* | cegcc*)
13899      # MinGW DLLs use traditional 'lib' prefix
13900      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13901      ;;
13902    pw32*)
13903      # pw32 DLLs use 'pw' prefix rather than 'lib'
13904      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13905      ;;
13906    esac
13907    ;;
13908
13909  *)
13910    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13911    ;;
13912  esac
13913  dynamic_linker='Win32 ld.exe'
13914  # FIXME: first we should search . and the directory the executable is in
13915  shlibpath_var=PATH
13916  ;;
13917
13918darwin* | rhapsody*)
13919  dynamic_linker="$host_os dyld"
13920  version_type=darwin
13921  need_lib_prefix=no
13922  need_version=no
13923  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13924  soname_spec='${libname}${release}${major}$shared_ext'
13925  shlibpath_overrides_runpath=yes
13926  shlibpath_var=DYLD_LIBRARY_PATH
13927  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13928
13929  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13930  ;;
13931
13932dgux*)
13933  version_type=linux
13934  need_lib_prefix=no
13935  need_version=no
13936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13937  soname_spec='${libname}${release}${shared_ext}$major'
13938  shlibpath_var=LD_LIBRARY_PATH
13939  ;;
13940
13941freebsd* | dragonfly*)
13942  # DragonFly does not have aout.  When/if they implement a new
13943  # versioning mechanism, adjust this.
13944  if test -x /usr/bin/objformat; then
13945    objformat=`/usr/bin/objformat`
13946  else
13947    case $host_os in
13948    freebsd[23].*) objformat=aout ;;
13949    *) objformat=elf ;;
13950    esac
13951  fi
13952  version_type=freebsd-$objformat
13953  case $version_type in
13954    freebsd-elf*)
13955      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13956      need_version=no
13957      need_lib_prefix=no
13958      ;;
13959    freebsd-*)
13960      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13961      need_version=yes
13962      ;;
13963  esac
13964  shlibpath_var=LD_LIBRARY_PATH
13965  case $host_os in
13966  freebsd2.*)
13967    shlibpath_overrides_runpath=yes
13968    ;;
13969  freebsd3.[01]* | freebsdelf3.[01]*)
13970    shlibpath_overrides_runpath=yes
13971    hardcode_into_libs=yes
13972    ;;
13973  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13974  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13975    shlibpath_overrides_runpath=no
13976    hardcode_into_libs=yes
13977    ;;
13978  *) # from 4.6 on, and DragonFly
13979    shlibpath_overrides_runpath=yes
13980    hardcode_into_libs=yes
13981    ;;
13982  esac
13983  ;;
13984
13985gnu*)
13986  version_type=linux
13987  need_lib_prefix=no
13988  need_version=no
13989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13990  soname_spec='${libname}${release}${shared_ext}$major'
13991  shlibpath_var=LD_LIBRARY_PATH
13992  hardcode_into_libs=yes
13993  ;;
13994
13995haiku*)
13996  version_type=linux
13997  need_lib_prefix=no
13998  need_version=no
13999  dynamic_linker="$host_os runtime_loader"
14000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14001  soname_spec='${libname}${release}${shared_ext}$major'
14002  shlibpath_var=LIBRARY_PATH
14003  shlibpath_overrides_runpath=yes
14004  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14005  hardcode_into_libs=yes
14006  ;;
14007
14008hpux9* | hpux10* | hpux11*)
14009  # Give a soname corresponding to the major version so that dld.sl refuses to
14010  # link against other versions.
14011  version_type=sunos
14012  need_lib_prefix=no
14013  need_version=no
14014  case $host_cpu in
14015  ia64*)
14016    shrext_cmds='.so'
14017    hardcode_into_libs=yes
14018    dynamic_linker="$host_os dld.so"
14019    shlibpath_var=LD_LIBRARY_PATH
14020    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14021    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14022    soname_spec='${libname}${release}${shared_ext}$major'
14023    if test "X$HPUX_IA64_MODE" = X32; then
14024      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14025    else
14026      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14027    fi
14028    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14029    ;;
14030  hppa*64*)
14031    shrext_cmds='.sl'
14032    hardcode_into_libs=yes
14033    dynamic_linker="$host_os dld.sl"
14034    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14035    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14036    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14037    soname_spec='${libname}${release}${shared_ext}$major'
14038    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14039    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14040    ;;
14041  *)
14042    shrext_cmds='.sl'
14043    dynamic_linker="$host_os dld.sl"
14044    shlibpath_var=SHLIB_PATH
14045    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14046    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14047    soname_spec='${libname}${release}${shared_ext}$major'
14048    ;;
14049  esac
14050  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14051  postinstall_cmds='chmod 555 $lib'
14052  # or fails outright, so override atomically:
14053  install_override_mode=555
14054  ;;
14055
14056interix[3-9]*)
14057  version_type=linux
14058  need_lib_prefix=no
14059  need_version=no
14060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14061  soname_spec='${libname}${release}${shared_ext}$major'
14062  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14063  shlibpath_var=LD_LIBRARY_PATH
14064  shlibpath_overrides_runpath=no
14065  hardcode_into_libs=yes
14066  ;;
14067
14068irix5* | irix6* | nonstopux*)
14069  case $host_os in
14070    nonstopux*) version_type=nonstopux ;;
14071    *)
14072	if test "$lt_cv_prog_gnu_ld" = yes; then
14073		version_type=linux
14074	else
14075		version_type=irix
14076	fi ;;
14077  esac
14078  need_lib_prefix=no
14079  need_version=no
14080  soname_spec='${libname}${release}${shared_ext}$major'
14081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14082  case $host_os in
14083  irix5* | nonstopux*)
14084    libsuff= shlibsuff=
14085    ;;
14086  *)
14087    case $LD in # libtool.m4 will add one of these switches to LD
14088    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14089      libsuff= shlibsuff= libmagic=32-bit;;
14090    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14091      libsuff=32 shlibsuff=N32 libmagic=N32;;
14092    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14093      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14094    *) libsuff= shlibsuff= libmagic=never-match;;
14095    esac
14096    ;;
14097  esac
14098  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14099  shlibpath_overrides_runpath=no
14100  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14101  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14102  hardcode_into_libs=yes
14103  ;;
14104
14105# No shared lib support for Linux oldld, aout, or coff.
14106linux*oldld* | linux*aout* | linux*coff*)
14107  dynamic_linker=no
14108  ;;
14109
14110# This must be Linux ELF.
14111linux* | k*bsd*-gnu | kopensolaris*-gnu)
14112  version_type=linux
14113  need_lib_prefix=no
14114  need_version=no
14115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14116  soname_spec='${libname}${release}${shared_ext}$major'
14117  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14118  shlibpath_var=LD_LIBRARY_PATH
14119  shlibpath_overrides_runpath=no
14120
14121  # Some binutils ld are patched to set DT_RUNPATH
14122  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14123  $as_echo_n "(cached) " >&6
14124else
14125  lt_cv_shlibpath_overrides_runpath=no
14126    save_LDFLAGS=$LDFLAGS
14127    save_libdir=$libdir
14128    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14129	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14130    cat > conftest.$ac_ext <<_ACEOF
14131      program main
14132
14133      end
14134_ACEOF
14135if ac_fn_fc_try_link "$LINENO"; then :
14136  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14137  lt_cv_shlibpath_overrides_runpath=yes
14138fi
14139fi
14140rm -f core conftest.err conftest.$ac_objext \
14141    conftest$ac_exeext conftest.$ac_ext
14142    LDFLAGS=$save_LDFLAGS
14143    libdir=$save_libdir
14144
14145fi
14146
14147  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14148
14149  # This implies no fast_install, which is unacceptable.
14150  # Some rework will be needed to allow for fast_install
14151  # before this can be enabled.
14152  hardcode_into_libs=yes
14153
14154  # Append ld.so.conf contents to the search path
14155  if test -f /etc/ld.so.conf; then
14156    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' ' '`
14157    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14158  fi
14159
14160  # We used to test for /lib/ld.so.1 and disable shared libraries on
14161  # powerpc, because MkLinux only supported shared libraries with the
14162  # GNU dynamic linker.  Since this was broken with cross compilers,
14163  # most powerpc-linux boxes support dynamic linking these days and
14164  # people can always --disable-shared, the test was removed, and we
14165  # assume the GNU/Linux dynamic linker is in use.
14166  dynamic_linker='GNU/Linux ld.so'
14167  ;;
14168
14169netbsd*)
14170  version_type=sunos
14171  need_lib_prefix=no
14172  need_version=no
14173  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14174    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14175    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14176    dynamic_linker='NetBSD (a.out) ld.so'
14177  else
14178    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14179    soname_spec='${libname}${release}${shared_ext}$major'
14180    dynamic_linker='NetBSD ld.elf_so'
14181  fi
14182  shlibpath_var=LD_LIBRARY_PATH
14183  shlibpath_overrides_runpath=yes
14184  hardcode_into_libs=yes
14185  ;;
14186
14187newsos6)
14188  version_type=linux
14189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190  shlibpath_var=LD_LIBRARY_PATH
14191  shlibpath_overrides_runpath=yes
14192  ;;
14193
14194*nto* | *qnx*)
14195  version_type=qnx
14196  need_lib_prefix=no
14197  need_version=no
14198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14199  soname_spec='${libname}${release}${shared_ext}$major'
14200  shlibpath_var=LD_LIBRARY_PATH
14201  shlibpath_overrides_runpath=no
14202  hardcode_into_libs=yes
14203  dynamic_linker='ldqnx.so'
14204  ;;
14205
14206openbsd*)
14207  version_type=sunos
14208  sys_lib_dlsearch_path_spec="/usr/lib"
14209  need_lib_prefix=no
14210  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14211  case $host_os in
14212    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14213    *)				need_version=no  ;;
14214  esac
14215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14216  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14217  shlibpath_var=LD_LIBRARY_PATH
14218  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14219    case $host_os in
14220      openbsd2.[89] | openbsd2.[89].*)
14221	shlibpath_overrides_runpath=no
14222	;;
14223      *)
14224	shlibpath_overrides_runpath=yes
14225	;;
14226      esac
14227  else
14228    shlibpath_overrides_runpath=yes
14229  fi
14230  ;;
14231
14232os2*)
14233  libname_spec='$name'
14234  shrext_cmds=".dll"
14235  need_lib_prefix=no
14236  library_names_spec='$libname${shared_ext} $libname.a'
14237  dynamic_linker='OS/2 ld.exe'
14238  shlibpath_var=LIBPATH
14239  ;;
14240
14241osf3* | osf4* | osf5*)
14242  version_type=osf
14243  need_lib_prefix=no
14244  need_version=no
14245  soname_spec='${libname}${release}${shared_ext}$major'
14246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14247  shlibpath_var=LD_LIBRARY_PATH
14248  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14249  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14250  ;;
14251
14252rdos*)
14253  dynamic_linker=no
14254  ;;
14255
14256solaris*)
14257  version_type=linux
14258  need_lib_prefix=no
14259  need_version=no
14260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14261  soname_spec='${libname}${release}${shared_ext}$major'
14262  shlibpath_var=LD_LIBRARY_PATH
14263  shlibpath_overrides_runpath=yes
14264  hardcode_into_libs=yes
14265  # ldd complains unless libraries are executable
14266  postinstall_cmds='chmod +x $lib'
14267  ;;
14268
14269sunos4*)
14270  version_type=sunos
14271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14272  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14273  shlibpath_var=LD_LIBRARY_PATH
14274  shlibpath_overrides_runpath=yes
14275  if test "$with_gnu_ld" = yes; then
14276    need_lib_prefix=no
14277  fi
14278  need_version=yes
14279  ;;
14280
14281sysv4 | sysv4.3*)
14282  version_type=linux
14283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14284  soname_spec='${libname}${release}${shared_ext}$major'
14285  shlibpath_var=LD_LIBRARY_PATH
14286  case $host_vendor in
14287    sni)
14288      shlibpath_overrides_runpath=no
14289      need_lib_prefix=no
14290      runpath_var=LD_RUN_PATH
14291      ;;
14292    siemens)
14293      need_lib_prefix=no
14294      ;;
14295    motorola)
14296      need_lib_prefix=no
14297      need_version=no
14298      shlibpath_overrides_runpath=no
14299      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14300      ;;
14301  esac
14302  ;;
14303
14304sysv4*MP*)
14305  if test -d /usr/nec ;then
14306    version_type=linux
14307    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14308    soname_spec='$libname${shared_ext}.$major'
14309    shlibpath_var=LD_LIBRARY_PATH
14310  fi
14311  ;;
14312
14313sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14314  version_type=freebsd-elf
14315  need_lib_prefix=no
14316  need_version=no
14317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14318  soname_spec='${libname}${release}${shared_ext}$major'
14319  shlibpath_var=LD_LIBRARY_PATH
14320  shlibpath_overrides_runpath=yes
14321  hardcode_into_libs=yes
14322  if test "$with_gnu_ld" = yes; then
14323    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14324  else
14325    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14326    case $host_os in
14327      sco3.2v5*)
14328        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14329	;;
14330    esac
14331  fi
14332  sys_lib_dlsearch_path_spec='/usr/lib'
14333  ;;
14334
14335tpf*)
14336  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14337  version_type=linux
14338  need_lib_prefix=no
14339  need_version=no
14340  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341  shlibpath_var=LD_LIBRARY_PATH
14342  shlibpath_overrides_runpath=no
14343  hardcode_into_libs=yes
14344  ;;
14345
14346uts4*)
14347  version_type=linux
14348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14349  soname_spec='${libname}${release}${shared_ext}$major'
14350  shlibpath_var=LD_LIBRARY_PATH
14351  ;;
14352
14353*)
14354  dynamic_linker=no
14355  ;;
14356esac
14357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14358$as_echo "$dynamic_linker" >&6; }
14359test "$dynamic_linker" = no && can_build_shared=no
14360
14361variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14362if test "$GCC" = yes; then
14363  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14364fi
14365
14366if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14367  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14368fi
14369if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14370  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14371fi
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14411$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14412hardcode_action_FC=
14413if test -n "$hardcode_libdir_flag_spec_FC" ||
14414   test -n "$runpath_var_FC" ||
14415   test "X$hardcode_automatic_FC" = "Xyes" ; then
14416
14417  # We can hardcode non-existent directories.
14418  if test "$hardcode_direct_FC" != no &&
14419     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14420     # have to relink, otherwise we might link with an installed library
14421     # when we should be linking with a yet-to-be-installed one
14422     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14423     test "$hardcode_minus_L_FC" != no; then
14424    # Linking always hardcodes the temporary library directory.
14425    hardcode_action_FC=relink
14426  else
14427    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14428    hardcode_action_FC=immediate
14429  fi
14430else
14431  # We cannot hardcode anything, or else we can only hardcode existing
14432  # directories.
14433  hardcode_action_FC=unsupported
14434fi
14435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14436$as_echo "$hardcode_action_FC" >&6; }
14437
14438if test "$hardcode_action_FC" = relink ||
14439   test "$inherit_rpath_FC" = yes; then
14440  # Fast installation is not supported
14441  enable_fast_install=no
14442elif test "$shlibpath_overrides_runpath" = yes ||
14443     test "$enable_shared" = no; then
14444  # Fast installation is not necessary
14445  enable_fast_install=needless
14446fi
14447
14448
14449
14450
14451
14452
14453
14454  fi # test -n "$compiler"
14455
14456  GCC=$lt_save_GCC
14457  CC="$lt_save_CC"
14458fi # test "$_lt_disable_FC" != yes
14459
14460ac_ext=c
14461ac_cpp='$CPP $CPPFLAGS'
14462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14464ac_compiler_gnu=$ac_cv_c_compiler_gnu
14465
14466
14467FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14468
14469# For libtool versioning info, format is CURRENT:REVISION:AGE
14470libtool_VERSION=1:0:0
14471
14472
14473# Check header files.
14474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14475$as_echo_n "checking for ANSI C header files... " >&6; }
14476if test "${ac_cv_header_stdc+set}" = set; then :
14477  $as_echo_n "(cached) " >&6
14478else
14479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480/* end confdefs.h.  */
14481#include <stdlib.h>
14482#include <stdarg.h>
14483#include <string.h>
14484#include <float.h>
14485
14486int
14487main ()
14488{
14489
14490  ;
14491  return 0;
14492}
14493_ACEOF
14494if ac_fn_c_try_compile "$LINENO"; then :
14495  ac_cv_header_stdc=yes
14496else
14497  ac_cv_header_stdc=no
14498fi
14499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500
14501if test $ac_cv_header_stdc = yes; then
14502  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14504/* end confdefs.h.  */
14505#include <string.h>
14506
14507_ACEOF
14508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14509  $EGREP "memchr" >/dev/null 2>&1; then :
14510
14511else
14512  ac_cv_header_stdc=no
14513fi
14514rm -f conftest*
14515
14516fi
14517
14518if test $ac_cv_header_stdc = yes; then
14519  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521/* end confdefs.h.  */
14522#include <stdlib.h>
14523
14524_ACEOF
14525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14526  $EGREP "free" >/dev/null 2>&1; then :
14527
14528else
14529  ac_cv_header_stdc=no
14530fi
14531rm -f conftest*
14532
14533fi
14534
14535if test $ac_cv_header_stdc = yes; then
14536  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14537  if test "$cross_compiling" = yes; then :
14538  :
14539else
14540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541/* end confdefs.h.  */
14542#include <ctype.h>
14543#include <stdlib.h>
14544#if ((' ' & 0x0FF) == 0x020)
14545# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14546# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14547#else
14548# define ISLOWER(c) \
14549		   (('a' <= (c) && (c) <= 'i') \
14550		     || ('j' <= (c) && (c) <= 'r') \
14551		     || ('s' <= (c) && (c) <= 'z'))
14552# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14553#endif
14554
14555#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14556int
14557main ()
14558{
14559  int i;
14560  for (i = 0; i < 256; i++)
14561    if (XOR (islower (i), ISLOWER (i))
14562	|| toupper (i) != TOUPPER (i))
14563      return 2;
14564  return 0;
14565}
14566_ACEOF
14567if ac_fn_c_try_run "$LINENO"; then :
14568
14569else
14570  ac_cv_header_stdc=no
14571fi
14572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14573  conftest.$ac_objext conftest.beam conftest.$ac_ext
14574fi
14575
14576fi
14577fi
14578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14579$as_echo "$ac_cv_header_stdc" >&6; }
14580if test $ac_cv_header_stdc = yes; then
14581
14582$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14583
14584fi
14585
14586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14587$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14588if test "${ac_cv_header_time+set}" = set; then :
14589  $as_echo_n "(cached) " >&6
14590else
14591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592/* end confdefs.h.  */
14593#include <sys/types.h>
14594#include <sys/time.h>
14595#include <time.h>
14596
14597int
14598main ()
14599{
14600if ((struct tm *) 0)
14601return 0;
14602  ;
14603  return 0;
14604}
14605_ACEOF
14606if ac_fn_c_try_compile "$LINENO"; then :
14607  ac_cv_header_time=yes
14608else
14609  ac_cv_header_time=no
14610fi
14611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14612fi
14613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14614$as_echo "$ac_cv_header_time" >&6; }
14615if test $ac_cv_header_time = yes; then
14616
14617$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14618
14619fi
14620
14621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14622$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14623if test "${gcc_cv_header_string+set}" = set; then :
14624  $as_echo_n "(cached) " >&6
14625else
14626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627/* end confdefs.h.  */
14628#include <string.h>
14629#include <strings.h>
14630int
14631main ()
14632{
14633
14634  ;
14635  return 0;
14636}
14637_ACEOF
14638if ac_fn_c_try_compile "$LINENO"; then :
14639  gcc_cv_header_string=yes
14640else
14641  gcc_cv_header_string=no
14642fi
14643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14644fi
14645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14646$as_echo "$gcc_cv_header_string" >&6; }
14647if test $gcc_cv_header_string = yes; then
14648
14649$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14650
14651fi
14652
14653for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14654do :
14655  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14656ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14657eval as_val=\$$as_ac_Header
14658   if test "x$as_val" = x""yes; then :
14659  cat >>confdefs.h <<_ACEOF
14660#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14661_ACEOF
14662
14663fi
14664
14665done
14666
14667
14668
14669
14670inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
14671
14672acx_cv_header_stdint=stddef.h
14673acx_cv_header_stdint_kind="(already complete)"
14674for i in stdint.h $inttype_headers; do
14675  unset ac_cv_type_uintptr_t
14676  unset ac_cv_type_uintmax_t
14677  unset ac_cv_type_int_least32_t
14678  unset ac_cv_type_int_fast32_t
14679  unset ac_cv_type_uint64_t
14680  $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14681  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14682#include <$i>
14683"
14684if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14685  acx_cv_header_stdint=$i
14686else
14687  continue
14688fi
14689
14690  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14691#include <$i>
14692"
14693if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14694
14695else
14696  acx_cv_header_stdint_kind="(mostly complete)"
14697fi
14698
14699  ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14700#include <$i>
14701"
14702if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14703
14704else
14705  acx_cv_header_stdint_kind="(mostly complete)"
14706fi
14707
14708  ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14709#include <$i>
14710"
14711if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14712
14713else
14714  acx_cv_header_stdint_kind="(mostly complete)"
14715fi
14716
14717  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14718#include <$i>
14719"
14720if test "x$ac_cv_type_uint64_t" = x""yes; then :
14721
14722else
14723  acx_cv_header_stdint_kind="(lacks uint64_t)"
14724fi
14725
14726  break
14727done
14728if test "$acx_cv_header_stdint" = stddef.h; then
14729  acx_cv_header_stdint_kind="(lacks uintmax_t)"
14730  for i in stdint.h $inttype_headers; do
14731    unset ac_cv_type_uintptr_t
14732    unset ac_cv_type_uint32_t
14733    unset ac_cv_type_uint64_t
14734    $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14735    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14736#include <$i>
14737"
14738if test "x$ac_cv_type_uint32_t" = x""yes; then :
14739  acx_cv_header_stdint=$i
14740else
14741  continue
14742fi
14743
14744    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14745#include <$i>
14746"
14747if test "x$ac_cv_type_uint64_t" = x""yes; then :
14748
14749fi
14750
14751    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14752#include <$i>
14753"
14754if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14755
14756fi
14757
14758    break
14759  done
14760fi
14761if test "$acx_cv_header_stdint" = stddef.h; then
14762  acx_cv_header_stdint_kind="(u_intXX_t style)"
14763  for i in sys/types.h $inttype_headers; do
14764    unset ac_cv_type_u_int32_t
14765    unset ac_cv_type_u_int64_t
14766    $as_echo_n "looking for u_intXX_t types in $i, " >&6
14767    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14768#include <$i>
14769"
14770if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14771  acx_cv_header_stdint=$i
14772else
14773  continue
14774fi
14775
14776    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14777#include <$i>
14778"
14779if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14780
14781fi
14782
14783    break
14784  done
14785fi
14786if test "$acx_cv_header_stdint" = stddef.h; then
14787  acx_cv_header_stdint_kind="(using manual detection)"
14788fi
14789
14790test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14791test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14792test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14793test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14794test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14795
14796# ----------------- Summarize what we found so far
14797
14798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14799$as_echo_n "checking what to include in gstdint.h... " >&6; }
14800
14801case `$as_basename -- gstdint.h ||
14802$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14803	 Xgstdint.h : 'X\(//\)$' \| \
14804	 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14805$as_echo X/gstdint.h |
14806    sed '/^.*\/\([^/][^/]*\)\/*$/{
14807	    s//\1/
14808	    q
14809	  }
14810	  /^X\/\(\/\/\)$/{
14811	    s//\1/
14812	    q
14813	  }
14814	  /^X\/\(\/\).*/{
14815	    s//\1/
14816	    q
14817	  }
14818	  s/.*/./; q'` in
14819  stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14820$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14821  inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14822$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14823  *) ;;
14824esac
14825
14826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14827$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14828
14829# ----------------- done included file, check C basic types --------
14830
14831# Lacking an uintptr_t?  Test size of void *
14832case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14833  stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14834# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14835# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14836# This bug is HP SR number 8606223364.
14837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14838$as_echo_n "checking size of void *... " >&6; }
14839if test "${ac_cv_sizeof_void_p+set}" = set; then :
14840  $as_echo_n "(cached) " >&6
14841else
14842  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14843
14844else
14845  if test "$ac_cv_type_void_p" = yes; then
14846     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14848{ as_fn_set_status 77
14849as_fn_error "cannot compute sizeof (void *)
14850See \`config.log' for more details." "$LINENO" 5; }; }
14851   else
14852     ac_cv_sizeof_void_p=0
14853   fi
14854fi
14855
14856fi
14857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14858$as_echo "$ac_cv_sizeof_void_p" >&6; }
14859
14860
14861
14862cat >>confdefs.h <<_ACEOF
14863#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14864_ACEOF
14865
14866 ;;
14867esac
14868
14869# Lacking an uint64_t?  Test size of long
14870case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14871  stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14872# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14873# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14874# This bug is HP SR number 8606223364.
14875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14876$as_echo_n "checking size of long... " >&6; }
14877if test "${ac_cv_sizeof_long+set}" = set; then :
14878  $as_echo_n "(cached) " >&6
14879else
14880  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14881
14882else
14883  if test "$ac_cv_type_long" = yes; then
14884     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14886{ as_fn_set_status 77
14887as_fn_error "cannot compute sizeof (long)
14888See \`config.log' for more details." "$LINENO" 5; }; }
14889   else
14890     ac_cv_sizeof_long=0
14891   fi
14892fi
14893
14894fi
14895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14896$as_echo "$ac_cv_sizeof_long" >&6; }
14897
14898
14899
14900cat >>confdefs.h <<_ACEOF
14901#define SIZEOF_LONG $ac_cv_sizeof_long
14902_ACEOF
14903
14904 ;;
14905esac
14906
14907if test $acx_cv_header_stdint = stddef.h; then
14908  # Lacking a good header?  Test size of everything and deduce all types.
14909  # The cast to long int works around a bug in the HP C Compiler
14910# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14911# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14912# This bug is HP SR number 8606223364.
14913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14914$as_echo_n "checking size of int... " >&6; }
14915if test "${ac_cv_sizeof_int+set}" = set; then :
14916  $as_echo_n "(cached) " >&6
14917else
14918  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14919
14920else
14921  if test "$ac_cv_type_int" = yes; then
14922     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14924{ as_fn_set_status 77
14925as_fn_error "cannot compute sizeof (int)
14926See \`config.log' for more details." "$LINENO" 5; }; }
14927   else
14928     ac_cv_sizeof_int=0
14929   fi
14930fi
14931
14932fi
14933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14934$as_echo "$ac_cv_sizeof_int" >&6; }
14935
14936
14937
14938cat >>confdefs.h <<_ACEOF
14939#define SIZEOF_INT $ac_cv_sizeof_int
14940_ACEOF
14941
14942
14943  # The cast to long int works around a bug in the HP C Compiler
14944# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14945# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14946# This bug is HP SR number 8606223364.
14947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14948$as_echo_n "checking size of short... " >&6; }
14949if test "${ac_cv_sizeof_short+set}" = set; then :
14950  $as_echo_n "(cached) " >&6
14951else
14952  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
14953
14954else
14955  if test "$ac_cv_type_short" = yes; then
14956     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14958{ as_fn_set_status 77
14959as_fn_error "cannot compute sizeof (short)
14960See \`config.log' for more details." "$LINENO" 5; }; }
14961   else
14962     ac_cv_sizeof_short=0
14963   fi
14964fi
14965
14966fi
14967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14968$as_echo "$ac_cv_sizeof_short" >&6; }
14969
14970
14971
14972cat >>confdefs.h <<_ACEOF
14973#define SIZEOF_SHORT $ac_cv_sizeof_short
14974_ACEOF
14975
14976
14977  # The cast to long int works around a bug in the HP C Compiler
14978# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14979# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14980# This bug is HP SR number 8606223364.
14981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14982$as_echo_n "checking size of char... " >&6; }
14983if test "${ac_cv_sizeof_char+set}" = set; then :
14984  $as_echo_n "(cached) " >&6
14985else
14986  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
14987
14988else
14989  if test "$ac_cv_type_char" = yes; then
14990     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14992{ as_fn_set_status 77
14993as_fn_error "cannot compute sizeof (char)
14994See \`config.log' for more details." "$LINENO" 5; }; }
14995   else
14996     ac_cv_sizeof_char=0
14997   fi
14998fi
14999
15000fi
15001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15002$as_echo "$ac_cv_sizeof_char" >&6; }
15003
15004
15005
15006cat >>confdefs.h <<_ACEOF
15007#define SIZEOF_CHAR $ac_cv_sizeof_char
15008_ACEOF
15009
15010
15011
15012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15013$as_echo_n "checking for type equivalent to int8_t... " >&6; }
15014  case "$ac_cv_sizeof_char" in
15015    1) acx_cv_type_int8_t=char ;;
15016    *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15017  esac
15018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15019$as_echo "$acx_cv_type_int8_t" >&6; }
15020
15021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15022$as_echo_n "checking for type equivalent to int16_t... " >&6; }
15023  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15024    2:*) acx_cv_type_int16_t=int ;;
15025    *:2) acx_cv_type_int16_t=short ;;
15026    *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15027  esac
15028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15029$as_echo "$acx_cv_type_int16_t" >&6; }
15030
15031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15032$as_echo_n "checking for type equivalent to int32_t... " >&6; }
15033  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15034    4:*) acx_cv_type_int32_t=int ;;
15035    *:4) acx_cv_type_int32_t=long ;;
15036    *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15037  esac
15038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15039$as_echo "$acx_cv_type_int32_t" >&6; }
15040fi
15041
15042# These tests are here to make the output prettier
15043
15044if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15045  case "$ac_cv_sizeof_long" in
15046    8) acx_cv_type_int64_t=long ;;
15047  esac
15048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15049$as_echo_n "checking for type equivalent to int64_t... " >&6; }
15050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15051$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15052fi
15053
15054# Now we can use the above types
15055
15056if test "$ac_cv_type_uintptr_t" != yes; then
15057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15058$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15059  case $ac_cv_sizeof_void_p in
15060    2) acx_cv_type_intptr_t=int16_t ;;
15061    4) acx_cv_type_intptr_t=int32_t ;;
15062    8) acx_cv_type_intptr_t=int64_t ;;
15063    *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15064  esac
15065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15066$as_echo "$acx_cv_type_intptr_t" >&6; }
15067fi
15068
15069# ----------------- done all checks, emit header -------------
15070ac_config_commands="$ac_config_commands gstdint.h"
15071
15072
15073
15074
15075XPCFLAGS=""
15076case "$host" in
15077  *-*-rtems*)
15078    # RTEMS supports Pthreads, but the library is not available at GCC build time.
15079    ;;
15080  nvptx*-*-*)
15081    # NVPTX does not support Pthreads, has its own code replacement.
15082    libgomp_use_pthreads=no
15083    # NVPTX is an accelerator-only target
15084    libgomp_offloaded_only=yes
15085    ;;
15086  *)
15087    # Check to see if -pthread or -lpthread is needed.  Prefer the former.
15088    # In case the pthread.h system header is not found, this test will fail.
15089    CFLAGS="$CFLAGS -pthread"
15090    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091/* end confdefs.h.  */
15092#include <pthread.h>
15093       void *g(void *d) { return NULL; }
15094int
15095main ()
15096{
15097pthread_t t; pthread_create(&t,NULL,g,NULL);
15098  ;
15099  return 0;
15100}
15101_ACEOF
15102if ac_fn_c_try_link "$LINENO"; then :
15103  XPCFLAGS=" -Wc,-pthread"
15104else
15105  CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15106      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107/* end confdefs.h.  */
15108#include <pthread.h>
15109         void *g(void *d) { return NULL; }
15110int
15111main ()
15112{
15113pthread_t t; pthread_create(&t,NULL,g,NULL);
15114  ;
15115  return 0;
15116}
15117_ACEOF
15118if ac_fn_c_try_link "$LINENO"; then :
15119
15120else
15121  as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15122fi
15123rm -f core conftest.err conftest.$ac_objext \
15124    conftest$ac_exeext conftest.$ac_ext
15125fi
15126rm -f core conftest.err conftest.$ac_objext \
15127    conftest$ac_exeext conftest.$ac_ext
15128esac
15129
15130if test x$libgomp_use_pthreads != xno; then
15131
15132$as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15133
15134fi
15135
15136if test x$libgomp_offloaded_only = xyes; then
15137
15138$as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15139
15140fi
15141
15142# Plugins for offload execution, configure.ac fragment.  -*- mode: autoconf -*-
15143#
15144# Copyright (C) 2014-2018 Free Software Foundation, Inc.
15145#
15146# Contributed by Mentor Embedded.
15147#
15148# This file is part of the GNU Offloading and Multi Processing Library
15149# (libgomp).
15150#
15151# Libgomp is free software; you can redistribute it and/or modify it
15152# under the terms of the GNU General Public License as published by
15153# the Free Software Foundation; either version 3, or (at your option)
15154# any later version.
15155#
15156# Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15157# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15158# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
15159# more details.
15160#
15161# Under Section 7 of GPL version 3, you are granted additional
15162# permissions described in the GCC Runtime Library Exception, version
15163# 3.1, as published by the Free Software Foundation.
15164#
15165# You should have received a copy of the GNU General Public License and
15166# a copy of the GCC Runtime Library Exception along with this program;
15167# see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
15168# <http://www.gnu.org/licenses/>.
15169
15170offload_targets=
15171
15172plugin_support=yes
15173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15174$as_echo_n "checking for dlsym in -ldl... " >&6; }
15175if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15176  $as_echo_n "(cached) " >&6
15177else
15178  ac_check_lib_save_LIBS=$LIBS
15179LIBS="-ldl  $LIBS"
15180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181/* end confdefs.h.  */
15182
15183/* Override any GCC internal prototype to avoid an error.
15184   Use char because int might match the return type of a GCC
15185   builtin and then its argument prototype would still apply.  */
15186#ifdef __cplusplus
15187extern "C"
15188#endif
15189char dlsym ();
15190int
15191main ()
15192{
15193return dlsym ();
15194  ;
15195  return 0;
15196}
15197_ACEOF
15198if ac_fn_c_try_link "$LINENO"; then :
15199  ac_cv_lib_dl_dlsym=yes
15200else
15201  ac_cv_lib_dl_dlsym=no
15202fi
15203rm -f core conftest.err conftest.$ac_objext \
15204    conftest$ac_exeext conftest.$ac_ext
15205LIBS=$ac_check_lib_save_LIBS
15206fi
15207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15208$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15209if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15210  cat >>confdefs.h <<_ACEOF
15211#define HAVE_LIBDL 1
15212_ACEOF
15213
15214  LIBS="-ldl $LIBS"
15215
15216else
15217  plugin_support=no
15218fi
15219
15220if test x"$plugin_support" = xyes; then
15221
15222$as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15223
15224elif test "x${enable_offload_targets-no}" != xno; then
15225  as_fn_error "Can't support offloading without support for plugins" "$LINENO" 5
15226fi
15227
15228
15229
15230  for ac_header in $ac_header_list
15231do :
15232  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15233ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15234"
15235eval as_val=\$$as_ac_Header
15236   if test "x$as_val" = x""yes; then :
15237  cat >>confdefs.h <<_ACEOF
15238#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15239_ACEOF
15240
15241fi
15242
15243done
15244
15245
15246
15247
15248
15249
15250
15251  for ac_func in $ac_func_list
15252do :
15253  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15254ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15255eval as_val=\$$as_ac_var
15256   if test "x$as_val" = x""yes; then :
15257  cat >>confdefs.h <<_ACEOF
15258#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15259_ACEOF
15260
15261fi
15262done
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279# Look for the CUDA driver package.
15280CUDA_DRIVER_INCLUDE=
15281CUDA_DRIVER_LIB=
15282
15283
15284CUDA_DRIVER_CPPFLAGS=
15285CUDA_DRIVER_LDFLAGS=
15286
15287# Check whether --with-cuda-driver was given.
15288if test "${with_cuda_driver+set}" = set; then :
15289  withval=$with_cuda_driver;
15290fi
15291
15292
15293# Check whether --with-cuda-driver-include was given.
15294if test "${with_cuda_driver_include+set}" = set; then :
15295  withval=$with_cuda_driver_include;
15296fi
15297
15298
15299# Check whether --with-cuda-driver-lib was given.
15300if test "${with_cuda_driver_lib+set}" = set; then :
15301  withval=$with_cuda_driver_lib;
15302fi
15303
15304case "x$with_cuda_driver" in
15305  x | xno) ;;
15306  *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15307     CUDA_DRIVER_LIB=$with_cuda_driver/lib
15308     ;;
15309esac
15310if test "x$with_cuda_driver_include" != x; then
15311  CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15312fi
15313if test "x$with_cuda_driver_lib" != x; then
15314  CUDA_DRIVER_LIB=$with_cuda_driver_lib
15315fi
15316if test "x$CUDA_DRIVER_INCLUDE" != x; then
15317  CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15318fi
15319if test "x$CUDA_DRIVER_LIB" != x; then
15320  CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15321fi
15322
15323PLUGIN_NVPTX=0
15324PLUGIN_NVPTX_CPPFLAGS=
15325PLUGIN_NVPTX_LDFLAGS=
15326PLUGIN_NVPTX_LIBS=
15327PLUGIN_NVPTX_DYNAMIC=0
15328
15329
15330
15331
15332
15333# Look for HSA run-time, its includes and libraries
15334
15335HSA_RUNTIME_INCLUDE=
15336HSA_RUNTIME_LIB=
15337
15338
15339HSA_RUNTIME_CPPFLAGS=
15340HSA_RUNTIME_LDFLAGS=
15341
15342
15343# Check whether --with-hsa-runtime was given.
15344if test "${with_hsa_runtime+set}" = set; then :
15345  withval=$with_hsa_runtime;
15346fi
15347
15348
15349# Check whether --with-hsa-runtime-include was given.
15350if test "${with_hsa_runtime_include+set}" = set; then :
15351  withval=$with_hsa_runtime_include;
15352fi
15353
15354
15355# Check whether --with-hsa-runtime-lib was given.
15356if test "${with_hsa_runtime_lib+set}" = set; then :
15357  withval=$with_hsa_runtime_lib;
15358fi
15359
15360if test "x$with_hsa_runtime" != x; then
15361  HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15362  HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15363fi
15364if test "x$with_hsa_runtime_include" != x; then
15365  HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15366fi
15367if test "x$with_hsa_runtime_lib" != x; then
15368  HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15369fi
15370if test "x$HSA_RUNTIME_INCLUDE" != x; then
15371  HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15372fi
15373if test "x$HSA_RUNTIME_LIB" != x; then
15374  HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15375fi
15376
15377PLUGIN_HSA=0
15378PLUGIN_HSA_CPPFLAGS=
15379PLUGIN_HSA_LDFLAGS=
15380PLUGIN_HSA_LIBS=
15381
15382
15383
15384
15385
15386# Get offload targets and path to install tree of offloading compiler.
15387offload_additional_options=
15388offload_additional_lib_paths=
15389
15390
15391if test x"$enable_offload_targets" != x; then
15392  for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15393    tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15394    tgt=`echo $tgt | sed 's/=.*//'`
15395    tgt_name=
15396    case $tgt in
15397      *-intelmic-* | *-intelmicemul-*)
15398	tgt_name=intelmic
15399	;;
15400      nvptx*)
15401        tgt_name=nvptx
15402	PLUGIN_NVPTX=$tgt
15403	PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15404	PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15405	PLUGIN_NVPTX_LIBS='-lcuda'
15406
15407	PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15408	CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15409	PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15410	LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15411	PLUGIN_NVPTX_save_LIBS=$LIBS
15412	LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15413	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414/* end confdefs.h.  */
15415#include "cuda.h"
15416int
15417main ()
15418{
15419CUresult r = cuCtxPushCurrent (NULL);
15420  ;
15421  return 0;
15422}
15423_ACEOF
15424if ac_fn_c_try_link "$LINENO"; then :
15425  PLUGIN_NVPTX=1
15426fi
15427rm -f core conftest.err conftest.$ac_objext \
15428    conftest$ac_exeext conftest.$ac_ext
15429	CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15430	LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15431	LIBS=$PLUGIN_NVPTX_save_LIBS
15432	case $PLUGIN_NVPTX in
15433	  nvptx*)
15434	    if test "x$CUDA_DRIVER_INCLUDE" = x \
15435	       && test "x$CUDA_DRIVER_LIB" = x; then
15436	      PLUGIN_NVPTX=1
15437	      PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda'
15438	      PLUGIN_NVPTX_LIBS='-ldl'
15439	      PLUGIN_NVPTX_DYNAMIC=1
15440	    else
15441	      PLUGIN_NVPTX=0
15442	      as_fn_error "CUDA driver package required for nvptx support" "$LINENO" 5
15443	    fi
15444	  ;;
15445	esac
15446	;;
15447      hsa*)
15448	case "${target}" in
15449	  x86_64-*-*)
15450	    case " ${CC} ${CFLAGS} " in
15451	      *" -m32 "*)
15452	        PLUGIN_HSA=0
15453		;;
15454	      *)
15455	        tgt_name=hsa
15456	        PLUGIN_HSA=$tgt
15457	        PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15458	        PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15459	        PLUGIN_HSA_LIBS="-ldl"
15460
15461	        PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15462	        CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15463	        PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15464	        LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15465	        PLUGIN_HSA_save_LIBS=$LIBS
15466	        LIBS="$PLUGIN_HSA_LIBS $LIBS"
15467
15468	        PLUGIN_HSA=1
15469	        CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15470	        LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15471	        LIBS=$PLUGIN_HSA_save_LIBS
15472	        case $PLUGIN_HSA in
15473	          hsa*)
15474	            HSA_PLUGIN=0
15475	            as_fn_error "HSA run-time package required for HSA support" "$LINENO" 5
15476	            ;;
15477	        esac
15478		;;
15479	      esac
15480    	    ;;
15481	  *-*-*)
15482	    PLUGIN_HSA=0
15483            ;;
15484        esac
15485        ;;
15486      *)
15487	as_fn_error "unknown offload target specified" "$LINENO" 5
15488	;;
15489    esac
15490    if test x"$tgt_name" = x; then
15491      # Don't configure libgomp for this offloading target if we don't build
15492      # the corresponding plugin.
15493      continue
15494    elif test x"$offload_targets" = x; then
15495      offload_targets=$tgt_name
15496    else
15497      offload_targets=$offload_targets,$tgt_name
15498    fi
15499    if test "$tgt_name" = hsa; then
15500      # Offloading compilation is all handled by the target compiler.
15501      :
15502    elif test x"$tgt_dir" != x; then
15503      offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15504      offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15505    else
15506      offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15507      offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15508    fi
15509  done
15510fi
15511
15512cat >>confdefs.h <<_ACEOF
15513#define OFFLOAD_TARGETS "$offload_targets"
15514_ACEOF
15515
15516 if test $PLUGIN_NVPTX = 1; then
15517  PLUGIN_NVPTX_TRUE=
15518  PLUGIN_NVPTX_FALSE='#'
15519else
15520  PLUGIN_NVPTX_TRUE='#'
15521  PLUGIN_NVPTX_FALSE=
15522fi
15523
15524
15525cat >>confdefs.h <<_ACEOF
15526#define PLUGIN_NVPTX $PLUGIN_NVPTX
15527_ACEOF
15528
15529
15530cat >>confdefs.h <<_ACEOF
15531#define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15532_ACEOF
15533
15534 if test $PLUGIN_HSA = 1; then
15535  PLUGIN_HSA_TRUE=
15536  PLUGIN_HSA_FALSE='#'
15537else
15538  PLUGIN_HSA_TRUE='#'
15539  PLUGIN_HSA_FALSE=
15540fi
15541
15542
15543cat >>confdefs.h <<_ACEOF
15544#define PLUGIN_HSA $PLUGIN_HSA
15545_ACEOF
15546
15547
15548if test "$HSA_RUNTIME_LIB" != ""; then
15549  HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/"
15550fi
15551
15552
15553cat >>confdefs.h <<_ACEOF
15554#define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15555_ACEOF
15556
15557
15558
15559# Check for functions needed.
15560for ac_func in getloadavg clock_gettime strtoull
15561do :
15562  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15563ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15564eval as_val=\$$as_ac_var
15565   if test "x$as_val" = x""yes; then :
15566  cat >>confdefs.h <<_ACEOF
15567#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15568_ACEOF
15569
15570fi
15571done
15572
15573
15574# Check for broken semaphore implementation on darwin.
15575# sem_init returns: sem_init error: Function not implemented.
15576case "$host" in
15577  *-darwin*)
15578
15579$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15580
15581    ;;
15582esac
15583
15584# RTEMS specific checks
15585case "$host" in
15586  *-*-rtems*)
15587    ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15588"
15589if test "x$ac_cv_type_struct__Mutex_Control" = x""yes; then :
15590
15591cat >>confdefs.h <<_ACEOF
15592#define HAVE_STRUCT__MUTEX_CONTROL 1
15593_ACEOF
15594
15595
15596fi
15597
15598    ;;
15599esac
15600
15601 # Check whether --enable-linux-futex was given.
15602if test "${enable_linux_futex+set}" = set; then :
15603  enableval=$enable_linux_futex;
15604      case "$enableval" in
15605       yes|no|default) ;;
15606       *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15607                          esac
15608
15609else
15610  enable_linux_futex=default
15611fi
15612
15613
15614case "$target" in
15615  *-linux*)
15616    case "$enable_linux_futex" in
15617      default)
15618	# If headers don't have gettid/futex syscalls definition, then
15619	# default to no, otherwise there will be compile time failures.
15620	# Otherwise, default to yes.  If we don't detect we are
15621	# compiled/linked against NPTL and not cross-compiling, check
15622	# if programs are run by default against NPTL and if not, issue
15623	# a warning.
15624	enable_linux_futex=no
15625	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626/* end confdefs.h.  */
15627#include <sys/syscall.h>
15628	   int lk;
15629int
15630main ()
15631{
15632syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15633  ;
15634  return 0;
15635}
15636_ACEOF
15637if ac_fn_c_try_link "$LINENO"; then :
15638  save_LIBS="$LIBS"
15639	   LIBS="-lpthread $LIBS"
15640	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15641/* end confdefs.h.  */
15642#ifndef _GNU_SOURCE
15643	     #define _GNU_SOURCE 1
15644	     #endif
15645	     #include <pthread.h>
15646	     pthread_t th; void *status;
15647int
15648main ()
15649{
15650pthread_tryjoin_np (th, &status);
15651  ;
15652  return 0;
15653}
15654_ACEOF
15655if ac_fn_c_try_link "$LINENO"; then :
15656  enable_linux_futex=yes
15657else
15658  if test x$cross_compiling = xno; then
15659	       if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15660		  | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15661		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15662If so, please configure with --disable-linux-futex" >&5
15663$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15664If so, please configure with --disable-linux-futex" >&2;}
15665	       fi
15666	     fi
15667	     enable_linux_futex=yes
15668fi
15669rm -f core conftest.err conftest.$ac_objext \
15670    conftest$ac_exeext conftest.$ac_ext
15671	   LIBS="$save_LIBS"
15672fi
15673rm -f core conftest.err conftest.$ac_objext \
15674    conftest$ac_exeext conftest.$ac_ext
15675	;;
15676      yes)
15677	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678/* end confdefs.h.  */
15679#include <sys/syscall.h>
15680	   int lk;
15681int
15682main ()
15683{
15684syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15685  ;
15686  return 0;
15687}
15688_ACEOF
15689if ac_fn_c_try_link "$LINENO"; then :
15690
15691else
15692  as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15693fi
15694rm -f core conftest.err conftest.$ac_objext \
15695    conftest$ac_exeext conftest.$ac_ext
15696	;;
15697    esac
15698    ;;
15699  *)
15700    enable_linux_futex=no
15701    ;;
15702esac
15703if test x$enable_linux_futex = xyes; then
15704  :
15705fi
15706
15707
15708# Check for pthread_{,attr_}[sg]etaffinity_np.
15709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710/* end confdefs.h.  */
15711#define _GNU_SOURCE
15712   #include <pthread.h>
15713int
15714main ()
15715{
15716cpu_set_t cpuset;
15717   pthread_attr_t attr;
15718   pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15719   if (CPU_ISSET (0, &cpuset))
15720     CPU_SET (1, &cpuset);
15721   else
15722     CPU_ZERO (&cpuset);
15723   pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15724   pthread_attr_init (&attr);
15725   pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15726   pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15727  ;
15728  return 0;
15729}
15730_ACEOF
15731if ac_fn_c_try_link "$LINENO"; then :
15732
15733$as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15734
15735fi
15736rm -f core conftest.err conftest.$ac_objext \
15737    conftest$ac_exeext conftest.$ac_ext
15738
15739# At least for glibc, clock_gettime is in librt.  But don't pull that
15740# in if it still doesn't give us the function we want.
15741if test $ac_cv_func_clock_gettime = no; then
15742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15743$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15744if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15745  $as_echo_n "(cached) " >&6
15746else
15747  ac_check_lib_save_LIBS=$LIBS
15748LIBS="-lrt  $LIBS"
15749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15750/* end confdefs.h.  */
15751
15752/* Override any GCC internal prototype to avoid an error.
15753   Use char because int might match the return type of a GCC
15754   builtin and then its argument prototype would still apply.  */
15755#ifdef __cplusplus
15756extern "C"
15757#endif
15758char clock_gettime ();
15759int
15760main ()
15761{
15762return clock_gettime ();
15763  ;
15764  return 0;
15765}
15766_ACEOF
15767if ac_fn_c_try_link "$LINENO"; then :
15768  ac_cv_lib_rt_clock_gettime=yes
15769else
15770  ac_cv_lib_rt_clock_gettime=no
15771fi
15772rm -f core conftest.err conftest.$ac_objext \
15773    conftest$ac_exeext conftest.$ac_ext
15774LIBS=$ac_check_lib_save_LIBS
15775fi
15776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15777$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15778if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15779  LIBS="-lrt $LIBS"
15780
15781$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15782
15783fi
15784
15785fi
15786
15787# See if we support thread-local storage.
15788
15789
15790   # Check whether --enable-tls was given.
15791if test "${enable_tls+set}" = set; then :
15792  enableval=$enable_tls;
15793      case "$enableval" in
15794       yes|no) ;;
15795       *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15796      esac
15797
15798else
15799  enable_tls=yes
15800fi
15801
15802
15803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15804$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15805if test "${gcc_cv_have_tls+set}" = set; then :
15806  $as_echo_n "(cached) " >&6
15807else
15808
15809    if test "$cross_compiling" = yes; then :
15810                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15811/* end confdefs.h.  */
15812__thread int a; int b; int main() { return a = b; }
15813_ACEOF
15814if ac_fn_c_try_link "$LINENO"; then :
15815  chktls_save_LDFLAGS="$LDFLAGS"
15816	  	  	  case $host in
15817	    *-*-linux*)
15818	      LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15819	      ;;
15820	  esac
15821	  chktls_save_CFLAGS="$CFLAGS"
15822	  CFLAGS="-fPIC $CFLAGS"
15823	  	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824/* end confdefs.h.  */
15825int f() { return 0; }
15826_ACEOF
15827if ac_fn_c_try_link "$LINENO"; then :
15828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829/* end confdefs.h.  */
15830__thread int a; int b; int f() { return a = b; }
15831_ACEOF
15832if ac_fn_c_try_link "$LINENO"; then :
15833  gcc_cv_have_tls=yes
15834else
15835  gcc_cv_have_tls=no
15836fi
15837rm -f core conftest.err conftest.$ac_objext \
15838    conftest$ac_exeext conftest.$ac_ext
15839else
15840  gcc_cv_have_tls=yes
15841fi
15842rm -f core conftest.err conftest.$ac_objext \
15843    conftest$ac_exeext conftest.$ac_ext
15844	  CFLAGS="$chktls_save_CFLAGS"
15845	  LDFLAGS="$chktls_save_LDFLAGS"
15846else
15847  gcc_cv_have_tls=no
15848fi
15849rm -f core conftest.err conftest.$ac_objext \
15850    conftest$ac_exeext conftest.$ac_ext
15851
15852
15853else
15854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855/* end confdefs.h.  */
15856__thread int a; int b; int main() { return a = b; }
15857_ACEOF
15858if ac_fn_c_try_run "$LINENO"; then :
15859                      chktls_save_LDFLAGS="$LDFLAGS"
15860      LDFLAGS="-static $LDFLAGS"
15861      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15862/* end confdefs.h.  */
15863int main() { return 0; }
15864_ACEOF
15865if ac_fn_c_try_link "$LINENO"; then :
15866  if test "$cross_compiling" = yes; then :
15867  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15869as_fn_error "cannot run test program while cross compiling
15870See \`config.log' for more details." "$LINENO" 5; }
15871else
15872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873/* end confdefs.h.  */
15874__thread int a; int b; int main() { return a = b; }
15875_ACEOF
15876if ac_fn_c_try_run "$LINENO"; then :
15877  gcc_cv_have_tls=yes
15878else
15879  gcc_cv_have_tls=no
15880fi
15881rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15882  conftest.$ac_objext conftest.beam conftest.$ac_ext
15883fi
15884
15885else
15886  gcc_cv_have_tls=yes
15887fi
15888rm -f core conftest.err conftest.$ac_objext \
15889    conftest$ac_exeext conftest.$ac_ext
15890      LDFLAGS="$chktls_save_LDFLAGS"
15891      if test $gcc_cv_have_tls = yes; then
15892						chktls_save_CFLAGS="$CFLAGS"
15893	thread_CFLAGS=failed
15894	for flag in '' '-pthread' '-lpthread'; do
15895	  CFLAGS="$flag $chktls_save_CFLAGS"
15896	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897/* end confdefs.h.  */
15898#include <pthread.h>
15899		void *g(void *d) { return NULL; }
15900int
15901main ()
15902{
15903pthread_t t; pthread_create(&t,NULL,g,NULL);
15904  ;
15905  return 0;
15906}
15907_ACEOF
15908if ac_fn_c_try_link "$LINENO"; then :
15909  thread_CFLAGS="$flag"
15910fi
15911rm -f core conftest.err conftest.$ac_objext \
15912    conftest$ac_exeext conftest.$ac_ext
15913	  if test "X$thread_CFLAGS" != Xfailed; then
15914	    break
15915	  fi
15916	done
15917	CFLAGS="$chktls_save_CFLAGS"
15918	if test "X$thread_CFLAGS" != Xfailed; then
15919	  CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15920 	  	  	  	  	  	  if test "$cross_compiling" = yes; then :
15921  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15923as_fn_error "cannot run test program while cross compiling
15924See \`config.log' for more details." "$LINENO" 5; }
15925else
15926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927/* end confdefs.h.  */
15928#include <pthread.h>
15929		__thread int a;
15930		static int *volatile a_in_other_thread;
15931		static void *
15932		thread_func (void *arg)
15933		{
15934		  a_in_other_thread = &a;
15935		  return (void *)0;
15936		}
15937int
15938main ()
15939{
15940pthread_t thread;
15941		void *thread_retval;
15942		int *volatile a_in_main_thread;
15943		a_in_main_thread = &a;
15944		if (pthread_create (&thread, (pthread_attr_t *)0,
15945				    thread_func, (void *)0))
15946		  return 0;
15947		if (pthread_join (thread, &thread_retval))
15948		  return 0;
15949		return (a_in_other_thread == a_in_main_thread);
15950  ;
15951  return 0;
15952}
15953_ACEOF
15954if ac_fn_c_try_run "$LINENO"; then :
15955  gcc_cv_have_tls=yes
15956else
15957  gcc_cv_have_tls=no
15958fi
15959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15960  conftest.$ac_objext conftest.beam conftest.$ac_ext
15961fi
15962
15963	  CFLAGS="$chktls_save_CFLAGS"
15964	fi
15965      fi
15966else
15967  gcc_cv_have_tls=no
15968fi
15969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15970  conftest.$ac_objext conftest.beam conftest.$ac_ext
15971fi
15972
15973fi
15974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15975$as_echo "$gcc_cv_have_tls" >&6; }
15976  if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15977
15978$as_echo "#define HAVE_TLS 1" >>confdefs.h
15979
15980  fi
15981
15982# See if we have emulated thread-local storage.
15983
15984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15985$as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15986if test "${gcc_cv_use_emutls+set}" = set; then :
15987  $as_echo_n "(cached) " >&6
15988else
15989
15990    gcc_cv_use_emutls=no
15991    echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15992    if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15993  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15994  (eval $ac_try) 2>&5
15995  ac_status=$?
15996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15997  test $ac_status = 0; }; }; then
15998      if grep __emutls_get_address conftest.s > /dev/null; then
15999	gcc_cv_use_emutls=yes
16000      fi
16001    fi
16002    rm -f conftest.*
16003
16004fi
16005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
16006$as_echo "$gcc_cv_use_emutls" >&6; }
16007  if test "$gcc_cv_use_emutls" = "yes" ; then
16008
16009$as_echo "#define USE_EMUTLS 1" >>confdefs.h
16010
16011  fi
16012
16013# See what sort of export controls are available.
16014
16015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16016$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16017if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
16018  $as_echo_n "(cached) " >&6
16019else
16020
16021  save_CFLAGS="$CFLAGS"
16022  CFLAGS="$CFLAGS -Werror"
16023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024/* end confdefs.h.  */
16025void __attribute__((visibility("hidden"))) foo(void) { }
16026int
16027main ()
16028{
16029
16030  ;
16031  return 0;
16032}
16033_ACEOF
16034if ac_fn_c_try_compile "$LINENO"; then :
16035  libgomp_cv_have_attribute_visibility=yes
16036else
16037  libgomp_cv_have_attribute_visibility=no
16038fi
16039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16040  CFLAGS="$save_CFLAGS"
16041fi
16042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16043$as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16044  if test $libgomp_cv_have_attribute_visibility = yes; then
16045
16046$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16047
16048  fi
16049
16050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16051$as_echo_n "checking whether the target supports dllexport... " >&6; }
16052if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
16053  $as_echo_n "(cached) " >&6
16054else
16055
16056  save_CFLAGS="$CFLAGS"
16057  CFLAGS="$CFLAGS -Werror"
16058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059/* end confdefs.h.  */
16060void __attribute__((dllexport)) foo(void) { }
16061int
16062main ()
16063{
16064
16065  ;
16066  return 0;
16067}
16068_ACEOF
16069if ac_fn_c_try_compile "$LINENO"; then :
16070  libgomp_cv_have_attribute_dllexport=yes
16071else
16072  libgomp_cv_have_attribute_dllexport=no
16073fi
16074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16075  CFLAGS="$save_CFLAGS"
16076fi
16077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16078$as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16079  if test $libgomp_cv_have_attribute_dllexport = yes; then
16080
16081$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16082
16083  fi
16084
16085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16086$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16087if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
16088  $as_echo_n "(cached) " >&6
16089else
16090
16091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092/* end confdefs.h.  */
16093
16094void foo(void) { }
16095extern void bar(void) __attribute__((alias("foo")));
16096int
16097main ()
16098{
16099bar();
16100  ;
16101  return 0;
16102}
16103_ACEOF
16104if ac_fn_c_try_link "$LINENO"; then :
16105  libgomp_cv_have_attribute_alias=yes
16106else
16107  libgomp_cv_have_attribute_alias=no
16108fi
16109rm -f core conftest.err conftest.$ac_objext \
16110    conftest$ac_exeext conftest.$ac_ext
16111fi
16112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16113$as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16114  if test $libgomp_cv_have_attribute_alias = yes; then
16115
16116$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16117
16118  fi
16119
16120
16121# Check whether --with-gnu-ld was given.
16122if test "${with_gnu_ld+set}" = set; then :
16123  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16124else
16125  with_gnu_ld=no
16126fi
16127
16128ac_prog=ld
16129if test "$GCC" = yes; then
16130  # Check if gcc -print-prog-name=ld gives a path.
16131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16132$as_echo_n "checking for ld used by $CC... " >&6; }
16133  case $host in
16134  *-*-mingw*)
16135    # gcc leaves a trailing carriage return which upsets mingw
16136    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16137  *)
16138    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16139  esac
16140  case $ac_prog in
16141    # Accept absolute paths.
16142    [\\/]* | ?:[\\/]*)
16143      re_direlt='/[^/][^/]*/\.\./'
16144      # Canonicalize the pathname of ld
16145      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16146      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16147	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16148      done
16149      test -z "$LD" && LD="$ac_prog"
16150      ;;
16151  "")
16152    # If it fails, then pretend we aren't using GCC.
16153    ac_prog=ld
16154    ;;
16155  *)
16156    # If it is relative, then search for the first ld in PATH.
16157    with_gnu_ld=unknown
16158    ;;
16159  esac
16160elif test "$with_gnu_ld" = yes; then
16161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16162$as_echo_n "checking for GNU ld... " >&6; }
16163else
16164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16165$as_echo_n "checking for non-GNU ld... " >&6; }
16166fi
16167if test "${lt_cv_path_LD+set}" = set; then :
16168  $as_echo_n "(cached) " >&6
16169else
16170  if test -z "$LD"; then
16171  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16172  for ac_dir in $PATH; do
16173    IFS="$lt_save_ifs"
16174    test -z "$ac_dir" && ac_dir=.
16175    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16176      lt_cv_path_LD="$ac_dir/$ac_prog"
16177      # Check to see if the program is GNU ld.  I'd rather use --version,
16178      # but apparently some variants of GNU ld only accept -v.
16179      # Break only if it was the GNU/non-GNU ld that we prefer.
16180      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16181      *GNU* | *'with BFD'*)
16182	test "$with_gnu_ld" != no && break
16183	;;
16184      *)
16185	test "$with_gnu_ld" != yes && break
16186	;;
16187      esac
16188    fi
16189  done
16190  IFS="$lt_save_ifs"
16191else
16192  lt_cv_path_LD="$LD" # Let the user override the test with a path.
16193fi
16194fi
16195
16196LD="$lt_cv_path_LD"
16197if test -n "$LD"; then
16198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16199$as_echo "$LD" >&6; }
16200else
16201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16202$as_echo "no" >&6; }
16203fi
16204test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16206$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16207if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16208  $as_echo_n "(cached) " >&6
16209else
16210  # I'd rather use --version here, but apparently some GNU lds only accept -v.
16211case `$LD -v 2>&1 </dev/null` in
16212*GNU* | *'with BFD'*)
16213  lt_cv_prog_gnu_ld=yes
16214  ;;
16215*)
16216  lt_cv_prog_gnu_ld=no
16217  ;;
16218esac
16219fi
16220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16221$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16222with_gnu_ld=$lt_cv_prog_gnu_ld
16223
16224
16225
16226
16227
16228
16229
16230  # If we're not using GNU ld, then there's no point in even trying these
16231  # tests.  Check for that first.  We should have already tested for gld
16232  # by now (in libtool), but require it now just to be safe...
16233  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16234  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16235
16236
16237
16238  # The name set by libtool depends on the version of libtool.  Shame on us
16239  # for depending on an impl detail, but c'est la vie.  Older versions used
16240  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16241  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16242  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
16243  # set (hence we're using an older libtool), then set it.
16244  if test x${with_gnu_ld+set} != xset; then
16245    if test x${ac_cv_prog_gnu_ld+set} != xset; then
16246      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
16247      with_gnu_ld=no
16248    else
16249      with_gnu_ld=$ac_cv_prog_gnu_ld
16250    fi
16251  fi
16252
16253  # Start by getting the version number.  I think the libtool test already
16254  # does some of this, but throws away the result.
16255  libgomp_ld_is_gold=no
16256  if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16257    libgomp_ld_is_gold=yes
16258  fi
16259
16260  ldver=`$LD --version 2>/dev/null |
16261         sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16262
16263  libgomp_gnu_ld_version=`echo $ldver | \
16264         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16265
16266  # Set --gc-sections.
16267  if test "$with_gnu_ld" = "notbroken"; then
16268    # GNU ld it is!  Joy and bunny rabbits!
16269
16270    # All these tests are for C++; save the language and the compiler flags.
16271    # Need to do this so that g++ won't try to link in libstdc++
16272    ac_test_CFLAGS="${CFLAGS+set}"
16273    ac_save_CFLAGS="$CFLAGS"
16274    CFLAGS='-x c++  -Wl,--gc-sections'
16275
16276    # Check for -Wl,--gc-sections
16277    # XXX This test is broken at the moment, as symbols required for linking
16278    # are now in libsupc++ (not built yet).  In addition, this test has
16279    # cored on solaris in the past.  In addition, --gc-sections doesn't
16280    # really work at the moment (keeps on discarding used sections, first
16281    # .eh_frame and now some of the glibc sections for iconv).
16282    # Bzzzzt.  Thanks for playing, maybe next time.
16283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16284$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16285    if test "$cross_compiling" = yes; then :
16286  ac_sectionLDflags=yes
16287else
16288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16289/* end confdefs.h.  */
16290
16291     int main(void)
16292     {
16293       try { throw 1; }
16294       catch (...) { };
16295       return 0;
16296     }
16297
16298_ACEOF
16299if ac_fn_c_try_run "$LINENO"; then :
16300  ac_sectionLDflags=yes
16301else
16302  ac_sectionLDflags=no
16303fi
16304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16305  conftest.$ac_objext conftest.beam conftest.$ac_ext
16306fi
16307
16308    if test "$ac_test_CFLAGS" = set; then
16309      CFLAGS="$ac_save_CFLAGS"
16310    else
16311      # this is the suspicious part
16312      CFLAGS=''
16313    fi
16314    if test "$ac_sectionLDflags" = "yes"; then
16315      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16316    fi
16317    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16318$as_echo "$ac_sectionLDflags" >&6; }
16319  fi
16320
16321  # Set linker optimization flags.
16322  if test x"$with_gnu_ld" = x"yes"; then
16323    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16324  fi
16325
16326
16327
16328
16329
16330
16331 # Check whether --enable-symvers was given.
16332if test "${enable_symvers+set}" = set; then :
16333  enableval=$enable_symvers;
16334      case "$enableval" in
16335       yes|no|gnu*|sun) ;;
16336       *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16337                          esac
16338
16339else
16340  enable_symvers=yes
16341fi
16342
16343
16344
16345# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16346# don't know enough about $LD to do tricks...
16347
16348
16349# Turn a 'yes' into a suitable default.
16350if test x$enable_symvers = xyes ; then
16351  # FIXME  The following test is too strict, in theory.
16352  if test $enable_shared = no || test "x$LD" = x; then
16353    enable_symvers=no
16354  else
16355    if test $with_gnu_ld = yes ; then
16356      enable_symvers=gnu
16357    else
16358      case ${target_os} in
16359        # Sun symbol versioning exists since Solaris 2.5.
16360        solaris2.[5-9]* | solaris2.1[0-9]*)
16361          enable_symvers=sun ;;
16362        *)
16363          enable_symvers=no ;;
16364      esac
16365    fi
16366  fi
16367fi
16368
16369# Check if 'sun' was requested on non-Solaris 2 platforms.
16370if test x$enable_symvers = xsun ; then
16371  case ${target_os} in
16372    solaris2*)
16373      # All fine.
16374      ;;
16375    *)
16376      # Unlikely to work.
16377      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16378$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16379      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16380$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16381      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16382$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16383      enable_symvers=no
16384      ;;
16385  esac
16386fi
16387
16388# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16389if test $enable_symvers != no; then
16390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16391$as_echo_n "checking for shared libgcc... " >&6; }
16392  ac_save_CFLAGS="$CFLAGS"
16393  CFLAGS=' -lgcc_s'
16394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16395/* end confdefs.h.  */
16396
16397int
16398main ()
16399{
16400return 0;
16401  ;
16402  return 0;
16403}
16404_ACEOF
16405if ac_fn_c_try_link "$LINENO"; then :
16406  libgomp_shared_libgcc=yes
16407else
16408  libgomp_shared_libgcc=no
16409fi
16410rm -f core conftest.err conftest.$ac_objext \
16411    conftest$ac_exeext conftest.$ac_ext
16412  CFLAGS="$ac_save_CFLAGS"
16413  if test $libgomp_shared_libgcc = no; then
16414    cat > conftest.c <<EOF
16415int main (void) { return 0; }
16416EOF
16417    libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16418			     -shared -shared-libgcc -o conftest.so \
16419			     conftest.c -v 2>&1 >/dev/null \
16420			     | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16421    rm -f conftest.c conftest.so
16422    if test x${libgomp_libgcc_s_suffix+set} = xset; then
16423      CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16424      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425/* end confdefs.h.  */
16426
16427int
16428main ()
16429{
16430return 0;
16431  ;
16432  return 0;
16433}
16434_ACEOF
16435if ac_fn_c_try_link "$LINENO"; then :
16436  libgomp_shared_libgcc=yes
16437fi
16438rm -f core conftest.err conftest.$ac_objext \
16439    conftest$ac_exeext conftest.$ac_ext
16440      CFLAGS="$ac_save_CFLAGS"
16441    fi
16442  fi
16443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16444$as_echo "$libgomp_shared_libgcc" >&6; }
16445fi
16446
16447# For GNU ld, we need at least this version.  The format is described in
16448# LIBGOMP_CHECK_LINKER_FEATURES above.
16449libgomp_min_gnu_ld_version=21400
16450# XXXXXXXXXXX libgomp_gnu_ld_version=21390
16451
16452# Check to see if unspecified "yes" value can win, given results above.
16453# Change "yes" into either "no" or a style name.
16454if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16455  if test $with_gnu_ld = yes; then
16456    if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16457      enable_symvers=gnu
16458    elif test $libgomp_ld_is_gold = yes ; then
16459      enable_symvers=gnu
16460    else
16461      # The right tools, the right setup, but too old.  Fallbacks?
16462      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16463$as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16464      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16465$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16466      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16467$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16468      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16469$as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16470      if test $libgomp_gnu_ld_version -ge 21200 ; then
16471        # Globbing fix is present, proper block support is not.
16472                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16473$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16474        enable_symvers=no
16475      else
16476        # 2.11 or older.
16477        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16478$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16479        enable_symvers=no
16480      fi
16481    fi
16482  elif test $enable_symvers = sun; then
16483    : All interesting versions of Sun ld support sun style symbol versioning.
16484  else
16485    # just fail for now
16486    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16487$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16488    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16489$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16490    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16491$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16492    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16493$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16494    enable_symvers=no
16495  fi
16496fi
16497
16498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16499$as_echo_n "checking whether the target supports .symver directive... " >&6; }
16500if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16501  $as_echo_n "(cached) " >&6
16502else
16503
16504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505/* end confdefs.h.  */
16506void foo (void); __asm (".symver foo, bar@SYMVER");
16507int
16508main ()
16509{
16510
16511  ;
16512  return 0;
16513}
16514_ACEOF
16515if ac_fn_c_try_compile "$LINENO"; then :
16516  libgomp_cv_have_as_symver_directive=yes
16517else
16518  libgomp_cv_have_as_symver_directive=no
16519fi
16520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16521fi
16522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16523$as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16524if test $libgomp_cv_have_as_symver_directive = yes; then
16525
16526$as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16527
16528fi
16529
16530 if test $enable_symvers != no; then
16531  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16532  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16533else
16534  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16535  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16536fi
16537
16538 if test $enable_symvers = gnu; then
16539  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16540  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16541else
16542  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16543  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16544fi
16545
16546 if test $enable_symvers = sun; then
16547  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16548  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16549else
16550  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16551  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16552fi
16553
16554{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16555$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16556
16557if test $enable_symvers != no ; then
16558   case ${target_os} in
16559     # The Solaris 2 runtime linker doesn't support the GNU extension of
16560     # binding the same symbol to different versions
16561     solaris2*)
16562       ;;
16563     # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16564     *)
16565
16566$as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16567
16568       ;;
16569    esac
16570fi
16571
16572
16573if test $enable_symvers = gnu; then
16574
16575$as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16576
16577fi
16578
16579# Get target configury.
16580. ${srcdir}/configure.tgt
16581CFLAGS="$save_CFLAGS $XCFLAGS"
16582
16583# Check for __sync_val_compare_and_swap, but only after the target has
16584# had a chance to set XCFLAGS.
16585
16586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16587$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16588if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16589  $as_echo_n "(cached) " >&6
16590else
16591
16592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593/* end confdefs.h.  */
16594
16595int
16596main ()
16597{
16598int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16599  ;
16600  return 0;
16601}
16602_ACEOF
16603if ac_fn_c_try_link "$LINENO"; then :
16604  libgomp_cv_have_sync_builtins=yes
16605else
16606  libgomp_cv_have_sync_builtins=no
16607fi
16608rm -f core conftest.err conftest.$ac_objext \
16609    conftest$ac_exeext conftest.$ac_ext
16610fi
16611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16612$as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16613  if test $libgomp_cv_have_sync_builtins = yes; then
16614
16615$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16616
16617  fi
16618
16619XCFLAGS="$XCFLAGS$XPCFLAGS"
16620
16621# Add CET specific flags if CET is enabled
16622 # Check whether --enable-cet was given.
16623if test "${enable_cet+set}" = set; then :
16624  enableval=$enable_cet;
16625      case "$enableval" in
16626       yes|no|auto) ;;
16627       *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16628                          esac
16629
16630else
16631  enable_cet=no
16632fi
16633
16634
16635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16636$as_echo_n "checking for CET support... " >&6; }
16637
16638case "$host" in
16639  i[34567]86-*-linux* | x86_64-*-linux*)
16640    case "$enable_cet" in
16641      auto)
16642	# Check if target supports multi-byte NOPs
16643	# and if assembler supports CET insn.
16644	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645/* end confdefs.h.  */
16646
16647int
16648main ()
16649{
16650
16651#if !defined(__SSE2__)
16652#error target does not support multi-byte NOPs
16653#else
16654asm ("setssbsy");
16655#endif
16656
16657  ;
16658  return 0;
16659}
16660_ACEOF
16661if ac_fn_c_try_compile "$LINENO"; then :
16662  enable_cet=yes
16663else
16664  enable_cet=no
16665fi
16666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16667	;;
16668      yes)
16669	# Check if assembler supports CET.
16670	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671/* end confdefs.h.  */
16672
16673int
16674main ()
16675{
16676asm ("setssbsy");
16677  ;
16678  return 0;
16679}
16680_ACEOF
16681if ac_fn_c_try_compile "$LINENO"; then :
16682
16683else
16684  as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
16685fi
16686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16687	;;
16688    esac
16689    ;;
16690  *)
16691    enable_cet=no
16692    ;;
16693esac
16694if test x$enable_cet = xyes; then
16695  CET_FLAGS="-fcf-protection -mshstk"
16696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16697$as_echo "yes" >&6; }
16698else
16699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16700$as_echo "no" >&6; }
16701fi
16702
16703XCFLAGS="$XCFLAGS $CET_FLAGS"
16704FCFLAGS="$FCFLAGS $CET_FLAGS"
16705
16706
16707
16708
16709
16710# Cleanup and exit.
16711CFLAGS="$save_CFLAGS"
16712cat >confcache <<\_ACEOF
16713# This file is a shell script that caches the results of configure
16714# tests run on this system so they can be shared between configure
16715# scripts and configure runs, see configure's option --config-cache.
16716# It is not useful on other systems.  If it contains results you don't
16717# want to keep, you may remove or edit it.
16718#
16719# config.status only pays attention to the cache file if you give it
16720# the --recheck option to rerun configure.
16721#
16722# `ac_cv_env_foo' variables (set or unset) will be overridden when
16723# loading this file, other *unset* `ac_cv_foo' will be assigned the
16724# following values.
16725
16726_ACEOF
16727
16728# The following way of writing the cache mishandles newlines in values,
16729# but we know of no workaround that is simple, portable, and efficient.
16730# So, we kill variables containing newlines.
16731# Ultrix sh set writes to stderr and can't be redirected directly,
16732# and sets the high bit in the cache file unless we assign to the vars.
16733(
16734  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16735    eval ac_val=\$$ac_var
16736    case $ac_val in #(
16737    *${as_nl}*)
16738      case $ac_var in #(
16739      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16740$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16741      esac
16742      case $ac_var in #(
16743      _ | IFS | as_nl) ;; #(
16744      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16745      *) { eval $ac_var=; unset $ac_var;} ;;
16746      esac ;;
16747    esac
16748  done
16749
16750  (set) 2>&1 |
16751    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16752    *${as_nl}ac_space=\ *)
16753      # `set' does not quote correctly, so add quotes: double-quote
16754      # substitution turns \\\\ into \\, and sed turns \\ into \.
16755      sed -n \
16756	"s/'/'\\\\''/g;
16757	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16758      ;; #(
16759    *)
16760      # `set' quotes correctly as required by POSIX, so do not add quotes.
16761      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16762      ;;
16763    esac |
16764    sort
16765) |
16766  sed '
16767     /^ac_cv_env_/b end
16768     t clear
16769     :clear
16770     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16771     t end
16772     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16773     :end' >>confcache
16774if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16775  if test -w "$cache_file"; then
16776    test "x$cache_file" != "x/dev/null" &&
16777      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16778$as_echo "$as_me: updating cache $cache_file" >&6;}
16779    cat confcache >$cache_file
16780  else
16781    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16782$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16783  fi
16784fi
16785rm -f confcache
16786
16787if test ${multilib} = yes; then
16788  multilib_arg="--enable-multilib"
16789else
16790  multilib_arg=
16791fi
16792
16793# Set up the set of libraries that we need to link against for libgomp.
16794# Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16795# which will force linkage against -lpthread (or equivalent for the system).
16796# That's not 100% ideal, but about the best we can do easily.
16797if test $enable_shared = yes; then
16798  link_gomp="-lgomp %{static: $LIBS}"
16799else
16800  link_gomp="-lgomp $LIBS"
16801fi
16802
16803
16804 if test "$ac_cv_fc_compiler_gnu" = yes; then
16805  USE_FORTRAN_TRUE=
16806  USE_FORTRAN_FALSE='#'
16807else
16808  USE_FORTRAN_TRUE='#'
16809  USE_FORTRAN_FALSE=
16810fi
16811
16812
16813# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16814# and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
16815# the underscore here and update the PREREQ.  If it doesn't, then we'll
16816# need to copy this macro to our acinclude.m4.
16817save_CFLAGS="$CFLAGS"
16818for i in $config_path; do
16819  if test -f $srcdir/config/$i/omp-lock.h; then
16820    CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16821    break
16822  fi
16823done
16824
16825if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE"        ""; then :
16826
16827else
16828  as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16829fi
16830
16831
16832if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN"        ""; then :
16833
16834fi
16835
16836
16837if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE"        ""; then :
16838
16839fi
16840
16841
16842if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN"        ""; then :
16843
16844fi
16845
16846
16847if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE"        ""; then :
16848
16849else
16850  as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16851fi
16852
16853
16854if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN"        ""; then :
16855
16856fi
16857
16858
16859if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE"        ""; then :
16860
16861fi
16862
16863
16864if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN"        ""; then :
16865
16866fi
16867
16868
16869
16870# If the lock fits in an integer, then arrange for Fortran to use that
16871# integer.  If it doesn't, then arrange for Fortran to use a pointer.
16872# Except that we don't have a way at present to multi-lib the installed
16873# Fortran modules, so we assume 8 bytes for pointers, regardless of the
16874# actual target.
16875OMP_LOCK_KIND=$OMP_LOCK_SIZE
16876OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16877if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16878  OMP_LOCK_KIND=8
16879fi
16880if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16881  OMP_NEST_LOCK_KIND=8
16882fi
16883OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16884OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16885if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16886  OMP_LOCK_25_KIND=8
16887fi
16888if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16889  OMP_NEST_LOCK_25_KIND=8
16890fi
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904CFLAGS="$save_CFLAGS"
16905
16906# Determine what GCC version number to use in filesystem paths.
16907
16908  get_gcc_base_ver="cat"
16909
16910# Check whether --with-gcc-major-version-only was given.
16911if test "${with_gcc_major_version_only+set}" = set; then :
16912  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16913        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16914      fi
16915
16916fi
16917
16918
16919
16920
16921ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16922
16923ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16924
16925ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16926
16927cat >confcache <<\_ACEOF
16928# This file is a shell script that caches the results of configure
16929# tests run on this system so they can be shared between configure
16930# scripts and configure runs, see configure's option --config-cache.
16931# It is not useful on other systems.  If it contains results you don't
16932# want to keep, you may remove or edit it.
16933#
16934# config.status only pays attention to the cache file if you give it
16935# the --recheck option to rerun configure.
16936#
16937# `ac_cv_env_foo' variables (set or unset) will be overridden when
16938# loading this file, other *unset* `ac_cv_foo' will be assigned the
16939# following values.
16940
16941_ACEOF
16942
16943# The following way of writing the cache mishandles newlines in values,
16944# but we know of no workaround that is simple, portable, and efficient.
16945# So, we kill variables containing newlines.
16946# Ultrix sh set writes to stderr and can't be redirected directly,
16947# and sets the high bit in the cache file unless we assign to the vars.
16948(
16949  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16950    eval ac_val=\$$ac_var
16951    case $ac_val in #(
16952    *${as_nl}*)
16953      case $ac_var in #(
16954      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16955$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16956      esac
16957      case $ac_var in #(
16958      _ | IFS | as_nl) ;; #(
16959      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16960      *) { eval $ac_var=; unset $ac_var;} ;;
16961      esac ;;
16962    esac
16963  done
16964
16965  (set) 2>&1 |
16966    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16967    *${as_nl}ac_space=\ *)
16968      # `set' does not quote correctly, so add quotes: double-quote
16969      # substitution turns \\\\ into \\, and sed turns \\ into \.
16970      sed -n \
16971	"s/'/'\\\\''/g;
16972	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16973      ;; #(
16974    *)
16975      # `set' quotes correctly as required by POSIX, so do not add quotes.
16976      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16977      ;;
16978    esac |
16979    sort
16980) |
16981  sed '
16982     /^ac_cv_env_/b end
16983     t clear
16984     :clear
16985     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16986     t end
16987     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16988     :end' >>confcache
16989if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16990  if test -w "$cache_file"; then
16991    test "x$cache_file" != "x/dev/null" &&
16992      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16993$as_echo "$as_me: updating cache $cache_file" >&6;}
16994    cat confcache >$cache_file
16995  else
16996    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16997$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16998  fi
16999fi
17000rm -f confcache
17001
17002test "x$prefix" = xNONE && prefix=$ac_default_prefix
17003# Let make expand exec_prefix.
17004test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17005
17006DEFS=-DHAVE_CONFIG_H
17007
17008ac_libobjs=
17009ac_ltlibobjs=
17010for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17011  # 1. Remove the extension, and $U if already installed.
17012  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17013  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17014  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17015  #    will be set to the directory where LIBOBJS objects are built.
17016  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17017  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17018done
17019LIBOBJS=$ac_libobjs
17020
17021LTLIBOBJS=$ac_ltlibobjs
17022
17023
17024if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17025  as_fn_error "conditional \"GENINSRC\" was never defined.
17026Usually this means the macro was only invoked conditionally." "$LINENO" 5
17027fi
17028 if test -n "$EXEEXT"; then
17029  am__EXEEXT_TRUE=
17030  am__EXEEXT_FALSE='#'
17031else
17032  am__EXEEXT_TRUE='#'
17033  am__EXEEXT_FALSE=
17034fi
17035
17036if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17037  as_fn_error "conditional \"AMDEP\" was never defined.
17038Usually this means the macro was only invoked conditionally." "$LINENO" 5
17039fi
17040if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17041  as_fn_error "conditional \"am__fastdepCC\" was never defined.
17042Usually this means the macro was only invoked conditionally." "$LINENO" 5
17043fi
17044if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17045  as_fn_error "conditional \"BUILD_INFO\" was never defined.
17046Usually this means the macro was only invoked conditionally." "$LINENO" 5
17047fi
17048if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17049  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17050Usually this means the macro was only invoked conditionally." "$LINENO" 5
17051fi
17052if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17053  as_fn_error "conditional \"PLUGIN_NVPTX\" was never defined.
17054Usually this means the macro was only invoked conditionally." "$LINENO" 5
17055fi
17056if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
17057  as_fn_error "conditional \"PLUGIN_HSA\" was never defined.
17058Usually this means the macro was only invoked conditionally." "$LINENO" 5
17059fi
17060if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17061  as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17062Usually this means the macro was only invoked conditionally." "$LINENO" 5
17063fi
17064if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17065  as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17066Usually this means the macro was only invoked conditionally." "$LINENO" 5
17067fi
17068if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17069  as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17070Usually this means the macro was only invoked conditionally." "$LINENO" 5
17071fi
17072if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17073  as_fn_error "conditional \"USE_FORTRAN\" was never defined.
17074Usually this means the macro was only invoked conditionally." "$LINENO" 5
17075fi
17076
17077: ${CONFIG_STATUS=./config.status}
17078ac_write_fail=0
17079ac_clean_files_save=$ac_clean_files
17080ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17081{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17082$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17083as_write_fail=0
17084cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17085#! $SHELL
17086# Generated by $as_me.
17087# Run this file to recreate the current configuration.
17088# Compiler output produced by configure, useful for debugging
17089# configure, is in config.log if it exists.
17090
17091debug=false
17092ac_cs_recheck=false
17093ac_cs_silent=false
17094
17095SHELL=\${CONFIG_SHELL-$SHELL}
17096export SHELL
17097_ASEOF
17098cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17099## -------------------- ##
17100## M4sh Initialization. ##
17101## -------------------- ##
17102
17103# Be more Bourne compatible
17104DUALCASE=1; export DUALCASE # for MKS sh
17105if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17106  emulate sh
17107  NULLCMD=:
17108  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17109  # is contrary to our usage.  Disable this feature.
17110  alias -g '${1+"$@"}'='"$@"'
17111  setopt NO_GLOB_SUBST
17112else
17113  case `(set -o) 2>/dev/null` in #(
17114  *posix*) :
17115    set -o posix ;; #(
17116  *) :
17117     ;;
17118esac
17119fi
17120
17121
17122as_nl='
17123'
17124export as_nl
17125# Printing a long string crashes Solaris 7 /usr/bin/printf.
17126as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17127as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17128as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17129# Prefer a ksh shell builtin over an external printf program on Solaris,
17130# but without wasting forks for bash or zsh.
17131if test -z "$BASH_VERSION$ZSH_VERSION" \
17132    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17133  as_echo='print -r --'
17134  as_echo_n='print -rn --'
17135elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17136  as_echo='printf %s\n'
17137  as_echo_n='printf %s'
17138else
17139  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17140    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17141    as_echo_n='/usr/ucb/echo -n'
17142  else
17143    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17144    as_echo_n_body='eval
17145      arg=$1;
17146      case $arg in #(
17147      *"$as_nl"*)
17148	expr "X$arg" : "X\\(.*\\)$as_nl";
17149	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17150      esac;
17151      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17152    '
17153    export as_echo_n_body
17154    as_echo_n='sh -c $as_echo_n_body as_echo'
17155  fi
17156  export as_echo_body
17157  as_echo='sh -c $as_echo_body as_echo'
17158fi
17159
17160# The user is always right.
17161if test "${PATH_SEPARATOR+set}" != set; then
17162  PATH_SEPARATOR=:
17163  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17164    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17165      PATH_SEPARATOR=';'
17166  }
17167fi
17168
17169
17170# IFS
17171# We need space, tab and new line, in precisely that order.  Quoting is
17172# there to prevent editors from complaining about space-tab.
17173# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17174# splitting by setting IFS to empty value.)
17175IFS=" ""	$as_nl"
17176
17177# Find who we are.  Look in the path if we contain no directory separator.
17178case $0 in #((
17179  *[\\/]* ) as_myself=$0 ;;
17180  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17181for as_dir in $PATH
17182do
17183  IFS=$as_save_IFS
17184  test -z "$as_dir" && as_dir=.
17185    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17186  done
17187IFS=$as_save_IFS
17188
17189     ;;
17190esac
17191# We did not find ourselves, most probably we were run as `sh COMMAND'
17192# in which case we are not to be found in the path.
17193if test "x$as_myself" = x; then
17194  as_myself=$0
17195fi
17196if test ! -f "$as_myself"; then
17197  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17198  exit 1
17199fi
17200
17201# Unset variables that we do not need and which cause bugs (e.g. in
17202# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17203# suppresses any "Segmentation fault" message there.  '((' could
17204# trigger a bug in pdksh 5.2.14.
17205for as_var in BASH_ENV ENV MAIL MAILPATH
17206do eval test x\${$as_var+set} = xset \
17207  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17208done
17209PS1='$ '
17210PS2='> '
17211PS4='+ '
17212
17213# NLS nuisances.
17214LC_ALL=C
17215export LC_ALL
17216LANGUAGE=C
17217export LANGUAGE
17218
17219# CDPATH.
17220(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17221
17222
17223# as_fn_error ERROR [LINENO LOG_FD]
17224# ---------------------------------
17225# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17226# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17227# script with status $?, using 1 if that was 0.
17228as_fn_error ()
17229{
17230  as_status=$?; test $as_status -eq 0 && as_status=1
17231  if test "$3"; then
17232    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17233    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17234  fi
17235  $as_echo "$as_me: error: $1" >&2
17236  as_fn_exit $as_status
17237} # as_fn_error
17238
17239
17240# as_fn_set_status STATUS
17241# -----------------------
17242# Set $? to STATUS, without forking.
17243as_fn_set_status ()
17244{
17245  return $1
17246} # as_fn_set_status
17247
17248# as_fn_exit STATUS
17249# -----------------
17250# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17251as_fn_exit ()
17252{
17253  set +e
17254  as_fn_set_status $1
17255  exit $1
17256} # as_fn_exit
17257
17258# as_fn_unset VAR
17259# ---------------
17260# Portably unset VAR.
17261as_fn_unset ()
17262{
17263  { eval $1=; unset $1;}
17264}
17265as_unset=as_fn_unset
17266# as_fn_append VAR VALUE
17267# ----------------------
17268# Append the text in VALUE to the end of the definition contained in VAR. Take
17269# advantage of any shell optimizations that allow amortized linear growth over
17270# repeated appends, instead of the typical quadratic growth present in naive
17271# implementations.
17272if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17273  eval 'as_fn_append ()
17274  {
17275    eval $1+=\$2
17276  }'
17277else
17278  as_fn_append ()
17279  {
17280    eval $1=\$$1\$2
17281  }
17282fi # as_fn_append
17283
17284# as_fn_arith ARG...
17285# ------------------
17286# Perform arithmetic evaluation on the ARGs, and store the result in the
17287# global $as_val. Take advantage of shells that can avoid forks. The arguments
17288# must be portable across $(()) and expr.
17289if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17290  eval 'as_fn_arith ()
17291  {
17292    as_val=$(( $* ))
17293  }'
17294else
17295  as_fn_arith ()
17296  {
17297    as_val=`expr "$@" || test $? -eq 1`
17298  }
17299fi # as_fn_arith
17300
17301
17302if expr a : '\(a\)' >/dev/null 2>&1 &&
17303   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17304  as_expr=expr
17305else
17306  as_expr=false
17307fi
17308
17309if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17310  as_basename=basename
17311else
17312  as_basename=false
17313fi
17314
17315if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17316  as_dirname=dirname
17317else
17318  as_dirname=false
17319fi
17320
17321as_me=`$as_basename -- "$0" ||
17322$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17323	 X"$0" : 'X\(//\)$' \| \
17324	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17325$as_echo X/"$0" |
17326    sed '/^.*\/\([^/][^/]*\)\/*$/{
17327	    s//\1/
17328	    q
17329	  }
17330	  /^X\/\(\/\/\)$/{
17331	    s//\1/
17332	    q
17333	  }
17334	  /^X\/\(\/\).*/{
17335	    s//\1/
17336	    q
17337	  }
17338	  s/.*/./; q'`
17339
17340# Avoid depending upon Character Ranges.
17341as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17342as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17343as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17344as_cr_digits='0123456789'
17345as_cr_alnum=$as_cr_Letters$as_cr_digits
17346
17347ECHO_C= ECHO_N= ECHO_T=
17348case `echo -n x` in #(((((
17349-n*)
17350  case `echo 'xy\c'` in
17351  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17352  xy)  ECHO_C='\c';;
17353  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17354       ECHO_T='	';;
17355  esac;;
17356*)
17357  ECHO_N='-n';;
17358esac
17359
17360rm -f conf$$ conf$$.exe conf$$.file
17361if test -d conf$$.dir; then
17362  rm -f conf$$.dir/conf$$.file
17363else
17364  rm -f conf$$.dir
17365  mkdir conf$$.dir 2>/dev/null
17366fi
17367if (echo >conf$$.file) 2>/dev/null; then
17368  if ln -s conf$$.file conf$$ 2>/dev/null; then
17369    as_ln_s='ln -s'
17370    # ... but there are two gotchas:
17371    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17372    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17373    # In both cases, we have to default to `cp -p'.
17374    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17375      as_ln_s='cp -p'
17376  elif ln conf$$.file conf$$ 2>/dev/null; then
17377    as_ln_s=ln
17378  else
17379    as_ln_s='cp -p'
17380  fi
17381else
17382  as_ln_s='cp -p'
17383fi
17384rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17385rmdir conf$$.dir 2>/dev/null
17386
17387
17388# as_fn_mkdir_p
17389# -------------
17390# Create "$as_dir" as a directory, including parents if necessary.
17391as_fn_mkdir_p ()
17392{
17393
17394  case $as_dir in #(
17395  -*) as_dir=./$as_dir;;
17396  esac
17397  test -d "$as_dir" || eval $as_mkdir_p || {
17398    as_dirs=
17399    while :; do
17400      case $as_dir in #(
17401      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17402      *) as_qdir=$as_dir;;
17403      esac
17404      as_dirs="'$as_qdir' $as_dirs"
17405      as_dir=`$as_dirname -- "$as_dir" ||
17406$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17407	 X"$as_dir" : 'X\(//\)[^/]' \| \
17408	 X"$as_dir" : 'X\(//\)$' \| \
17409	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17410$as_echo X"$as_dir" |
17411    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17412	    s//\1/
17413	    q
17414	  }
17415	  /^X\(\/\/\)[^/].*/{
17416	    s//\1/
17417	    q
17418	  }
17419	  /^X\(\/\/\)$/{
17420	    s//\1/
17421	    q
17422	  }
17423	  /^X\(\/\).*/{
17424	    s//\1/
17425	    q
17426	  }
17427	  s/.*/./; q'`
17428      test -d "$as_dir" && break
17429    done
17430    test -z "$as_dirs" || eval "mkdir $as_dirs"
17431  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17432
17433
17434} # as_fn_mkdir_p
17435if mkdir -p . 2>/dev/null; then
17436  as_mkdir_p='mkdir -p "$as_dir"'
17437else
17438  test -d ./-p && rmdir ./-p
17439  as_mkdir_p=false
17440fi
17441
17442if test -x / >/dev/null 2>&1; then
17443  as_test_x='test -x'
17444else
17445  if ls -dL / >/dev/null 2>&1; then
17446    as_ls_L_option=L
17447  else
17448    as_ls_L_option=
17449  fi
17450  as_test_x='
17451    eval sh -c '\''
17452      if test -d "$1"; then
17453	test -d "$1/.";
17454      else
17455	case $1 in #(
17456	-*)set "./$1";;
17457	esac;
17458	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17459	???[sx]*):;;*)false;;esac;fi
17460    '\'' sh
17461  '
17462fi
17463as_executable_p=$as_test_x
17464
17465# Sed expression to map a string onto a valid CPP name.
17466as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17467
17468# Sed expression to map a string onto a valid variable name.
17469as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17470
17471
17472exec 6>&1
17473## ----------------------------------- ##
17474## Main body of $CONFIG_STATUS script. ##
17475## ----------------------------------- ##
17476_ASEOF
17477test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17478
17479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17480# Save the log message, to keep $0 and so on meaningful, and to
17481# report actual input values of CONFIG_FILES etc. instead of their
17482# values after options handling.
17483ac_log="
17484This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17485generated by GNU Autoconf 2.64.  Invocation command line was
17486
17487  CONFIG_FILES    = $CONFIG_FILES
17488  CONFIG_HEADERS  = $CONFIG_HEADERS
17489  CONFIG_LINKS    = $CONFIG_LINKS
17490  CONFIG_COMMANDS = $CONFIG_COMMANDS
17491  $ $0 $@
17492
17493on `(hostname || uname -n) 2>/dev/null | sed 1q`
17494"
17495
17496_ACEOF
17497
17498case $ac_config_files in *"
17499"*) set x $ac_config_files; shift; ac_config_files=$*;;
17500esac
17501
17502case $ac_config_headers in *"
17503"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17504esac
17505
17506
17507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17508# Files that config.status was made for.
17509config_files="$ac_config_files"
17510config_headers="$ac_config_headers"
17511config_commands="$ac_config_commands"
17512
17513_ACEOF
17514
17515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17516ac_cs_usage="\
17517\`$as_me' instantiates files and other configuration actions
17518from templates according to the current configuration.  Unless the files
17519and actions are specified as TAGs, all are instantiated by default.
17520
17521Usage: $0 [OPTION]... [TAG]...
17522
17523  -h, --help       print this help, then exit
17524  -V, --version    print version number and configuration settings, then exit
17525  -q, --quiet, --silent
17526                   do not print progress messages
17527  -d, --debug      don't remove temporary files
17528      --recheck    update $as_me by reconfiguring in the same conditions
17529      --file=FILE[:TEMPLATE]
17530                   instantiate the configuration file FILE
17531      --header=FILE[:TEMPLATE]
17532                   instantiate the configuration header FILE
17533
17534Configuration files:
17535$config_files
17536
17537Configuration headers:
17538$config_headers
17539
17540Configuration commands:
17541$config_commands
17542
17543Report bugs to the package provider.
17544GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17545General help using GNU software: <http://www.gnu.org/gethelp/>."
17546
17547_ACEOF
17548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17549ac_cs_version="\\
17550GNU Offloading and Multi Processing Runtime Library config.status 1.0
17551configured by $0, generated by GNU Autoconf 2.64,
17552  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17553
17554Copyright (C) 2009 Free Software Foundation, Inc.
17555This config.status script is free software; the Free Software Foundation
17556gives unlimited permission to copy, distribute and modify it."
17557
17558ac_pwd='$ac_pwd'
17559srcdir='$srcdir'
17560INSTALL='$INSTALL'
17561MKDIR_P='$MKDIR_P'
17562AWK='$AWK'
17563test -n "\$AWK" || AWK=awk
17564_ACEOF
17565
17566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17567# The default lists apply if the user does not specify any file.
17568ac_need_defaults=:
17569while test $# != 0
17570do
17571  case $1 in
17572  --*=*)
17573    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17574    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17575    ac_shift=:
17576    ;;
17577  *)
17578    ac_option=$1
17579    ac_optarg=$2
17580    ac_shift=shift
17581    ;;
17582  esac
17583
17584  case $ac_option in
17585  # Handling of the options.
17586  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17587    ac_cs_recheck=: ;;
17588  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17589    $as_echo "$ac_cs_version"; exit ;;
17590  --debug | --debu | --deb | --de | --d | -d )
17591    debug=: ;;
17592  --file | --fil | --fi | --f )
17593    $ac_shift
17594    case $ac_optarg in
17595    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17596    esac
17597    as_fn_append CONFIG_FILES " '$ac_optarg'"
17598    ac_need_defaults=false;;
17599  --header | --heade | --head | --hea )
17600    $ac_shift
17601    case $ac_optarg in
17602    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17603    esac
17604    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17605    ac_need_defaults=false;;
17606  --he | --h)
17607    # Conflict between --help and --header
17608    as_fn_error "ambiguous option: \`$1'
17609Try \`$0 --help' for more information.";;
17610  --help | --hel | -h )
17611    $as_echo "$ac_cs_usage"; exit ;;
17612  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17613  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17614    ac_cs_silent=: ;;
17615
17616  # This is an error.
17617  -*) as_fn_error "unrecognized option: \`$1'
17618Try \`$0 --help' for more information." ;;
17619
17620  *) as_fn_append ac_config_targets " $1"
17621     ac_need_defaults=false ;;
17622
17623  esac
17624  shift
17625done
17626
17627ac_configure_extra_args=
17628
17629if $ac_cs_silent; then
17630  exec 6>/dev/null
17631  ac_configure_extra_args="$ac_configure_extra_args --silent"
17632fi
17633
17634_ACEOF
17635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17636if \$ac_cs_recheck; then
17637  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17638  shift
17639  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17640  CONFIG_SHELL='$SHELL'
17641  export CONFIG_SHELL
17642  exec "\$@"
17643fi
17644
17645_ACEOF
17646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17647exec 5>>config.log
17648{
17649  echo
17650  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17651## Running $as_me. ##
17652_ASBOX
17653  $as_echo "$ac_log"
17654} >&5
17655
17656_ACEOF
17657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17658#
17659# INIT-COMMANDS
17660#
17661
17662srcdir="$srcdir"
17663host="$host"
17664target="$target"
17665with_multisubdir="$with_multisubdir"
17666with_multisrctop="$with_multisrctop"
17667with_target_subdir="$with_target_subdir"
17668ac_configure_args="${multilib_arg} ${ac_configure_args}"
17669multi_basedir="$multi_basedir"
17670CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17671CC="$CC"
17672CXX="$CXX"
17673GFORTRAN="$GFORTRAN"
17674AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17675
17676
17677# The HP-UX ksh and POSIX shell print the target directory to stdout
17678# if CDPATH is set.
17679(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17680
17681sed_quote_subst='$sed_quote_subst'
17682double_quote_subst='$double_quote_subst'
17683delay_variable_subst='$delay_variable_subst'
17684macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17685macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17686enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17687enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17688pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17689enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17690SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17691ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17692host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17693host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17694host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17695build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17696build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17697build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17698SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17699Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17700GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17701EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17702FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17703LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17704NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17705LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17706max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17707ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17708exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17709lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17710lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17711lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17712reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17713reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17714OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17715deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17716file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17717AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17718AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17719STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17720RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17721old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17722old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17723old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17724lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17725CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17726CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17727compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17728GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17729lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17730lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17731lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17732lt_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"`'
17733objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17734MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17735lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17736lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17737lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17738lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17739lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17740need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17741DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17742NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17743LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17744OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17745OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17746libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17747shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17748extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17749archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17750enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17751export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17752whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17753compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17754old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17755old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17756archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17757archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17758module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17759module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17760with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17761allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17762no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17763hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17764hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17765hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17766hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17767hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17768hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17769hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17770hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17771inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17772link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17773fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17774always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17775export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17776exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17777include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17778prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17779file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17780variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17781need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17782need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17783version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17784runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17785shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17786shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17787libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17788library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17789soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17790install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17791postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17792postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17793finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17794finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17795hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17796sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17797sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17798hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17799enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17800enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17801enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17802old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17803striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17804compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17805predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17806postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17807predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17808postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17809compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17810LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17811reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17812reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17813old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17814compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17815GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17816lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17817lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17818lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17819lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17820lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17821archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17822enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17823export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17824whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17825compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17826old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17827old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17828archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17829archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17830module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17831module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17832with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17833allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17834no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17835hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17836hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17837hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17838hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17839hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17840hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17841hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17842hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17843inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17844link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17845fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17846always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17847export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17848exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17849include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17850prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17851file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17852hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17853compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17854predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17855postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17856predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17857postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17858compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17859
17860LTCC='$LTCC'
17861LTCFLAGS='$LTCFLAGS'
17862compiler='$compiler_DEFAULT'
17863
17864# A function that is used when there is no print builtin or printf.
17865func_fallback_echo ()
17866{
17867  eval 'cat <<_LTECHO_EOF
17868\$1
17869_LTECHO_EOF'
17870}
17871
17872# Quote evaled strings.
17873for var in SHELL \
17874ECHO \
17875SED \
17876GREP \
17877EGREP \
17878FGREP \
17879LD \
17880NM \
17881LN_S \
17882lt_SP2NL \
17883lt_NL2SP \
17884reload_flag \
17885OBJDUMP \
17886deplibs_check_method \
17887file_magic_cmd \
17888AR \
17889AR_FLAGS \
17890STRIP \
17891RANLIB \
17892CC \
17893CFLAGS \
17894compiler \
17895lt_cv_sys_global_symbol_pipe \
17896lt_cv_sys_global_symbol_to_cdecl \
17897lt_cv_sys_global_symbol_to_c_name_address \
17898lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17899lt_prog_compiler_no_builtin_flag \
17900lt_prog_compiler_wl \
17901lt_prog_compiler_pic \
17902lt_prog_compiler_static \
17903lt_cv_prog_compiler_c_o \
17904need_locks \
17905DSYMUTIL \
17906NMEDIT \
17907LIPO \
17908OTOOL \
17909OTOOL64 \
17910shrext_cmds \
17911export_dynamic_flag_spec \
17912whole_archive_flag_spec \
17913compiler_needs_object \
17914with_gnu_ld \
17915allow_undefined_flag \
17916no_undefined_flag \
17917hardcode_libdir_flag_spec \
17918hardcode_libdir_flag_spec_ld \
17919hardcode_libdir_separator \
17920fix_srcfile_path \
17921exclude_expsyms \
17922include_expsyms \
17923file_list_spec \
17924variables_saved_for_relink \
17925libname_spec \
17926library_names_spec \
17927soname_spec \
17928install_override_mode \
17929finish_eval \
17930old_striplib \
17931striplib \
17932compiler_lib_search_dirs \
17933predep_objects \
17934postdep_objects \
17935predeps \
17936postdeps \
17937compiler_lib_search_path \
17938LD_FC \
17939reload_flag_FC \
17940compiler_FC \
17941lt_prog_compiler_no_builtin_flag_FC \
17942lt_prog_compiler_wl_FC \
17943lt_prog_compiler_pic_FC \
17944lt_prog_compiler_static_FC \
17945lt_cv_prog_compiler_c_o_FC \
17946export_dynamic_flag_spec_FC \
17947whole_archive_flag_spec_FC \
17948compiler_needs_object_FC \
17949with_gnu_ld_FC \
17950allow_undefined_flag_FC \
17951no_undefined_flag_FC \
17952hardcode_libdir_flag_spec_FC \
17953hardcode_libdir_flag_spec_ld_FC \
17954hardcode_libdir_separator_FC \
17955fix_srcfile_path_FC \
17956exclude_expsyms_FC \
17957include_expsyms_FC \
17958file_list_spec_FC \
17959compiler_lib_search_dirs_FC \
17960predep_objects_FC \
17961postdep_objects_FC \
17962predeps_FC \
17963postdeps_FC \
17964compiler_lib_search_path_FC; do
17965    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17966    *[\\\\\\\`\\"\\\$]*)
17967      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17968      ;;
17969    *)
17970      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17971      ;;
17972    esac
17973done
17974
17975# Double-quote double-evaled strings.
17976for var in reload_cmds \
17977old_postinstall_cmds \
17978old_postuninstall_cmds \
17979old_archive_cmds \
17980extract_expsyms_cmds \
17981old_archive_from_new_cmds \
17982old_archive_from_expsyms_cmds \
17983archive_cmds \
17984archive_expsym_cmds \
17985module_cmds \
17986module_expsym_cmds \
17987export_symbols_cmds \
17988prelink_cmds \
17989postinstall_cmds \
17990postuninstall_cmds \
17991finish_cmds \
17992sys_lib_search_path_spec \
17993sys_lib_dlsearch_path_spec \
17994reload_cmds_FC \
17995old_archive_cmds_FC \
17996old_archive_from_new_cmds_FC \
17997old_archive_from_expsyms_cmds_FC \
17998archive_cmds_FC \
17999archive_expsym_cmds_FC \
18000module_cmds_FC \
18001module_expsym_cmds_FC \
18002export_symbols_cmds_FC \
18003prelink_cmds_FC; do
18004    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18005    *[\\\\\\\`\\"\\\$]*)
18006      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18007      ;;
18008    *)
18009      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18010      ;;
18011    esac
18012done
18013
18014ac_aux_dir='$ac_aux_dir'
18015xsi_shell='$xsi_shell'
18016lt_shell_append='$lt_shell_append'
18017
18018# See if we are running on zsh, and set the options which allow our
18019# commands through without removal of \ escapes INIT.
18020if test -n "\${ZSH_VERSION+set}" ; then
18021   setopt NO_GLOB_SUBST
18022fi
18023
18024
18025    PACKAGE='$PACKAGE'
18026    VERSION='$VERSION'
18027    TIMESTAMP='$TIMESTAMP'
18028    RM='$RM'
18029    ofile='$ofile'
18030
18031
18032
18033
18034
18035
18036GCC="$GCC"
18037CC="$CC"
18038acx_cv_header_stdint="$acx_cv_header_stdint"
18039acx_cv_type_int8_t="$acx_cv_type_int8_t"
18040acx_cv_type_int16_t="$acx_cv_type_int16_t"
18041acx_cv_type_int32_t="$acx_cv_type_int32_t"
18042acx_cv_type_int64_t="$acx_cv_type_int64_t"
18043acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18044ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18045ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18046ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18047ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18048ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18049ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18050ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18051ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18052
18053
18054_ACEOF
18055
18056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18057
18058# Handling of arguments.
18059for ac_config_target in $ac_config_targets
18060do
18061  case $ac_config_target in
18062    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18063    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18064    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18065    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18066    "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18067    "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18068    "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18069    "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18070    "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18071    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18072    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18073    "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18074    "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18075
18076  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18077  esac
18078done
18079
18080
18081# If the user did not use the arguments to specify the items to instantiate,
18082# then the envvar interface is used.  Set only those that are not.
18083# We use the long form for the default assignment because of an extremely
18084# bizarre bug on SunOS 4.1.3.
18085if $ac_need_defaults; then
18086  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18087  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18088  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18089fi
18090
18091# Have a temporary directory for convenience.  Make it in the build tree
18092# simply because there is no reason against having it here, and in addition,
18093# creating and moving files from /tmp can sometimes cause problems.
18094# Hook for its removal unless debugging.
18095# Note that there is a small window in which the directory will not be cleaned:
18096# after its creation but before its name has been assigned to `$tmp'.
18097$debug ||
18098{
18099  tmp=
18100  trap 'exit_status=$?
18101  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18102' 0
18103  trap 'as_fn_exit 1' 1 2 13 15
18104}
18105# Create a (secure) tmp directory for tmp files.
18106
18107{
18108  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18109  test -n "$tmp" && test -d "$tmp"
18110}  ||
18111{
18112  tmp=./conf$$-$RANDOM
18113  (umask 077 && mkdir "$tmp")
18114} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18115
18116# Set up the scripts for CONFIG_FILES section.
18117# No need to generate them if there are no CONFIG_FILES.
18118# This happens for instance with `./config.status config.h'.
18119if test -n "$CONFIG_FILES"; then
18120
18121
18122ac_cr=`echo X | tr X '\015'`
18123# On cygwin, bash can eat \r inside `` if the user requested igncr.
18124# But we know of no other shell where ac_cr would be empty at this
18125# point, so we can use a bashism as a fallback.
18126if test "x$ac_cr" = x; then
18127  eval ac_cr=\$\'\\r\'
18128fi
18129ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18130if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18131  ac_cs_awk_cr='\r'
18132else
18133  ac_cs_awk_cr=$ac_cr
18134fi
18135
18136echo 'BEGIN {' >"$tmp/subs1.awk" &&
18137_ACEOF
18138
18139
18140{
18141  echo "cat >conf$$subs.awk <<_ACEOF" &&
18142  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18143  echo "_ACEOF"
18144} >conf$$subs.sh ||
18145  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18146ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18147ac_delim='%!_!# '
18148for ac_last_try in false false false false false :; do
18149  . ./conf$$subs.sh ||
18150    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18151
18152  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18153  if test $ac_delim_n = $ac_delim_num; then
18154    break
18155  elif $ac_last_try; then
18156    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18157  else
18158    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18159  fi
18160done
18161rm -f conf$$subs.sh
18162
18163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18164cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18165_ACEOF
18166sed -n '
18167h
18168s/^/S["/; s/!.*/"]=/
18169p
18170g
18171s/^[^!]*!//
18172:repl
18173t repl
18174s/'"$ac_delim"'$//
18175t delim
18176:nl
18177h
18178s/\(.\{148\}\).*/\1/
18179t more1
18180s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18181p
18182n
18183b repl
18184:more1
18185s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18186p
18187g
18188s/.\{148\}//
18189t nl
18190:delim
18191h
18192s/\(.\{148\}\).*/\1/
18193t more2
18194s/["\\]/\\&/g; s/^/"/; s/$/"/
18195p
18196b
18197:more2
18198s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18199p
18200g
18201s/.\{148\}//
18202t delim
18203' <conf$$subs.awk | sed '
18204/^[^""]/{
18205  N
18206  s/\n//
18207}
18208' >>$CONFIG_STATUS || ac_write_fail=1
18209rm -f conf$$subs.awk
18210cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18211_ACAWK
18212cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18213  for (key in S) S_is_set[key] = 1
18214  FS = ""
18215
18216}
18217{
18218  line = $ 0
18219  nfields = split(line, field, "@")
18220  substed = 0
18221  len = length(field[1])
18222  for (i = 2; i < nfields; i++) {
18223    key = field[i]
18224    keylen = length(key)
18225    if (S_is_set[key]) {
18226      value = S[key]
18227      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18228      len += length(value) + length(field[++i])
18229      substed = 1
18230    } else
18231      len += 1 + keylen
18232  }
18233
18234  print line
18235}
18236
18237_ACAWK
18238_ACEOF
18239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18240if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18241  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18242else
18243  cat
18244fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18245  || as_fn_error "could not setup config files machinery" "$LINENO" 5
18246_ACEOF
18247
18248# VPATH may cause trouble with some makes, so we remove $(srcdir),
18249# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18250# trailing colons and then remove the whole line if VPATH becomes empty
18251# (actually we leave an empty line to preserve line numbers).
18252if test "x$srcdir" = x.; then
18253  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
18254s/:*\$(srcdir):*/:/
18255s/:*\${srcdir}:*/:/
18256s/:*@srcdir@:*/:/
18257s/^\([^=]*=[	 ]*\):*/\1/
18258s/:*$//
18259s/^[^=]*=[	 ]*$//
18260}'
18261fi
18262
18263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18264fi # test -n "$CONFIG_FILES"
18265
18266# Set up the scripts for CONFIG_HEADERS section.
18267# No need to generate them if there are no CONFIG_HEADERS.
18268# This happens for instance with `./config.status Makefile'.
18269if test -n "$CONFIG_HEADERS"; then
18270cat >"$tmp/defines.awk" <<\_ACAWK ||
18271BEGIN {
18272_ACEOF
18273
18274# Transform confdefs.h into an awk script `defines.awk', embedded as
18275# here-document in config.status, that substitutes the proper values into
18276# config.h.in to produce config.h.
18277
18278# Create a delimiter string that does not exist in confdefs.h, to ease
18279# handling of long lines.
18280ac_delim='%!_!# '
18281for ac_last_try in false false :; do
18282  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18283  if test -z "$ac_t"; then
18284    break
18285  elif $ac_last_try; then
18286    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18287  else
18288    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18289  fi
18290done
18291
18292# For the awk script, D is an array of macro values keyed by name,
18293# likewise P contains macro parameters if any.  Preserve backslash
18294# newline sequences.
18295
18296ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18297sed -n '
18298s/.\{148\}/&'"$ac_delim"'/g
18299t rset
18300:rset
18301s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18302t def
18303d
18304:def
18305s/\\$//
18306t bsnl
18307s/["\\]/\\&/g
18308s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18309D["\1"]=" \3"/p
18310s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18311d
18312:bsnl
18313s/["\\]/\\&/g
18314s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18315D["\1"]=" \3\\\\\\n"\\/p
18316t cont
18317s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18318t cont
18319d
18320:cont
18321n
18322s/.\{148\}/&'"$ac_delim"'/g
18323t clear
18324:clear
18325s/\\$//
18326t bsnlc
18327s/["\\]/\\&/g; s/^/"/; s/$/"/p
18328d
18329:bsnlc
18330s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18331b cont
18332' <confdefs.h | sed '
18333s/'"$ac_delim"'/"\\\
18334"/g' >>$CONFIG_STATUS || ac_write_fail=1
18335
18336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18337  for (key in D) D_is_set[key] = 1
18338  FS = ""
18339}
18340/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18341  line = \$ 0
18342  split(line, arg, " ")
18343  if (arg[1] == "#") {
18344    defundef = arg[2]
18345    mac1 = arg[3]
18346  } else {
18347    defundef = substr(arg[1], 2)
18348    mac1 = arg[2]
18349  }
18350  split(mac1, mac2, "(") #)
18351  macro = mac2[1]
18352  prefix = substr(line, 1, index(line, defundef) - 1)
18353  if (D_is_set[macro]) {
18354    # Preserve the white space surrounding the "#".
18355    print prefix "define", macro P[macro] D[macro]
18356    next
18357  } else {
18358    # Replace #undef with comments.  This is necessary, for example,
18359    # in the case of _POSIX_SOURCE, which is predefined and required
18360    # on some systems where configure will not decide to define it.
18361    if (defundef == "undef") {
18362      print "/*", prefix defundef, macro, "*/"
18363      next
18364    }
18365  }
18366}
18367{ print }
18368_ACAWK
18369_ACEOF
18370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18371  as_fn_error "could not setup config headers machinery" "$LINENO" 5
18372fi # test -n "$CONFIG_HEADERS"
18373
18374
18375eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18376shift
18377for ac_tag
18378do
18379  case $ac_tag in
18380  :[FHLC]) ac_mode=$ac_tag; continue;;
18381  esac
18382  case $ac_mode$ac_tag in
18383  :[FHL]*:*);;
18384  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18385  :[FH]-) ac_tag=-:-;;
18386  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18387  esac
18388  ac_save_IFS=$IFS
18389  IFS=:
18390  set x $ac_tag
18391  IFS=$ac_save_IFS
18392  shift
18393  ac_file=$1
18394  shift
18395
18396  case $ac_mode in
18397  :L) ac_source=$1;;
18398  :[FH])
18399    ac_file_inputs=
18400    for ac_f
18401    do
18402      case $ac_f in
18403      -) ac_f="$tmp/stdin";;
18404      *) # Look for the file first in the build tree, then in the source tree
18405	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18406	 # because $ac_f cannot contain `:'.
18407	 test -f "$ac_f" ||
18408	   case $ac_f in
18409	   [\\/$]*) false;;
18410	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18411	   esac ||
18412	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18413      esac
18414      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18415      as_fn_append ac_file_inputs " '$ac_f'"
18416    done
18417
18418    # Let's still pretend it is `configure' which instantiates (i.e., don't
18419    # use $as_me), people would be surprised to read:
18420    #    /* config.h.  Generated by config.status.  */
18421    configure_input='Generated from '`
18422	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18423	`' by configure.'
18424    if test x"$ac_file" != x-; then
18425      configure_input="$ac_file.  $configure_input"
18426      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18427$as_echo "$as_me: creating $ac_file" >&6;}
18428    fi
18429    # Neutralize special characters interpreted by sed in replacement strings.
18430    case $configure_input in #(
18431    *\&* | *\|* | *\\* )
18432       ac_sed_conf_input=`$as_echo "$configure_input" |
18433       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18434    *) ac_sed_conf_input=$configure_input;;
18435    esac
18436
18437    case $ac_tag in
18438    *:-:* | *:-) cat >"$tmp/stdin" \
18439      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18440    esac
18441    ;;
18442  esac
18443
18444  ac_dir=`$as_dirname -- "$ac_file" ||
18445$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18446	 X"$ac_file" : 'X\(//\)[^/]' \| \
18447	 X"$ac_file" : 'X\(//\)$' \| \
18448	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18449$as_echo X"$ac_file" |
18450    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18451	    s//\1/
18452	    q
18453	  }
18454	  /^X\(\/\/\)[^/].*/{
18455	    s//\1/
18456	    q
18457	  }
18458	  /^X\(\/\/\)$/{
18459	    s//\1/
18460	    q
18461	  }
18462	  /^X\(\/\).*/{
18463	    s//\1/
18464	    q
18465	  }
18466	  s/.*/./; q'`
18467  as_dir="$ac_dir"; as_fn_mkdir_p
18468  ac_builddir=.
18469
18470case "$ac_dir" in
18471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18472*)
18473  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18474  # A ".." for each directory in $ac_dir_suffix.
18475  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18476  case $ac_top_builddir_sub in
18477  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18478  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18479  esac ;;
18480esac
18481ac_abs_top_builddir=$ac_pwd
18482ac_abs_builddir=$ac_pwd$ac_dir_suffix
18483# for backward compatibility:
18484ac_top_builddir=$ac_top_build_prefix
18485
18486case $srcdir in
18487  .)  # We are building in place.
18488    ac_srcdir=.
18489    ac_top_srcdir=$ac_top_builddir_sub
18490    ac_abs_top_srcdir=$ac_pwd ;;
18491  [\\/]* | ?:[\\/]* )  # Absolute name.
18492    ac_srcdir=$srcdir$ac_dir_suffix;
18493    ac_top_srcdir=$srcdir
18494    ac_abs_top_srcdir=$srcdir ;;
18495  *) # Relative name.
18496    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18497    ac_top_srcdir=$ac_top_build_prefix$srcdir
18498    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18499esac
18500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18501
18502
18503  case $ac_mode in
18504  :F)
18505  #
18506  # CONFIG_FILE
18507  #
18508
18509  case $INSTALL in
18510  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18511  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18512  esac
18513  ac_MKDIR_P=$MKDIR_P
18514  case $MKDIR_P in
18515  [\\/$]* | ?:[\\/]* ) ;;
18516  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18517  esac
18518_ACEOF
18519
18520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18521# If the template does not know about datarootdir, expand it.
18522# FIXME: This hack should be removed a few years after 2.60.
18523ac_datarootdir_hack=; ac_datarootdir_seen=
18524ac_sed_dataroot='
18525/datarootdir/ {
18526  p
18527  q
18528}
18529/@datadir@/p
18530/@docdir@/p
18531/@infodir@/p
18532/@localedir@/p
18533/@mandir@/p'
18534case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18535*datarootdir*) ac_datarootdir_seen=yes;;
18536*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18537  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18538$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18539_ACEOF
18540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18541  ac_datarootdir_hack='
18542  s&@datadir@&$datadir&g
18543  s&@docdir@&$docdir&g
18544  s&@infodir@&$infodir&g
18545  s&@localedir@&$localedir&g
18546  s&@mandir@&$mandir&g
18547  s&\\\${datarootdir}&$datarootdir&g' ;;
18548esac
18549_ACEOF
18550
18551# Neutralize VPATH when `$srcdir' = `.'.
18552# Shell code in configure.ac might set extrasub.
18553# FIXME: do we really want to maintain this feature?
18554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18555ac_sed_extra="$ac_vpsub
18556$extrasub
18557_ACEOF
18558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18559:t
18560/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18561s|@configure_input@|$ac_sed_conf_input|;t t
18562s&@top_builddir@&$ac_top_builddir_sub&;t t
18563s&@top_build_prefix@&$ac_top_build_prefix&;t t
18564s&@srcdir@&$ac_srcdir&;t t
18565s&@abs_srcdir@&$ac_abs_srcdir&;t t
18566s&@top_srcdir@&$ac_top_srcdir&;t t
18567s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18568s&@builddir@&$ac_builddir&;t t
18569s&@abs_builddir@&$ac_abs_builddir&;t t
18570s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18571s&@INSTALL@&$ac_INSTALL&;t t
18572s&@MKDIR_P@&$ac_MKDIR_P&;t t
18573$ac_datarootdir_hack
18574"
18575eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18576  || as_fn_error "could not create $ac_file" "$LINENO" 5
18577
18578test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18579  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18580  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18581  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18582which seems to be undefined.  Please make sure it is defined." >&5
18583$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18584which seems to be undefined.  Please make sure it is defined." >&2;}
18585
18586  rm -f "$tmp/stdin"
18587  case $ac_file in
18588  -) cat "$tmp/out" && rm -f "$tmp/out";;
18589  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18590  esac \
18591  || as_fn_error "could not create $ac_file" "$LINENO" 5
18592 ;;
18593  :H)
18594  #
18595  # CONFIG_HEADER
18596  #
18597  if test x"$ac_file" != x-; then
18598    {
18599      $as_echo "/* $configure_input  */" \
18600      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18601    } >"$tmp/config.h" \
18602      || as_fn_error "could not create $ac_file" "$LINENO" 5
18603    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18604      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18605$as_echo "$as_me: $ac_file is unchanged" >&6;}
18606    else
18607      rm -f "$ac_file"
18608      mv "$tmp/config.h" "$ac_file" \
18609	|| as_fn_error "could not create $ac_file" "$LINENO" 5
18610    fi
18611  else
18612    $as_echo "/* $configure_input  */" \
18613      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18614      || as_fn_error "could not create -" "$LINENO" 5
18615  fi
18616# Compute "$ac_file"'s index in $config_headers.
18617_am_arg="$ac_file"
18618_am_stamp_count=1
18619for _am_header in $config_headers :; do
18620  case $_am_header in
18621    $_am_arg | $_am_arg:* )
18622      break ;;
18623    * )
18624      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18625  esac
18626done
18627echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18628$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18629	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18630	 X"$_am_arg" : 'X\(//\)$' \| \
18631	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18632$as_echo X"$_am_arg" |
18633    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18634	    s//\1/
18635	    q
18636	  }
18637	  /^X\(\/\/\)[^/].*/{
18638	    s//\1/
18639	    q
18640	  }
18641	  /^X\(\/\/\)$/{
18642	    s//\1/
18643	    q
18644	  }
18645	  /^X\(\/\).*/{
18646	    s//\1/
18647	    q
18648	  }
18649	  s/.*/./; q'`/stamp-h$_am_stamp_count
18650 ;;
18651
18652  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18653$as_echo "$as_me: executing $ac_file commands" >&6;}
18654 ;;
18655  esac
18656
18657
18658  case $ac_file$ac_mode in
18659    "default-1":C)
18660# Only add multilib support code if we just rebuilt the top-level
18661# Makefile.
18662case " $CONFIG_FILES " in
18663 *" Makefile "*)
18664   ac_file=Makefile . ${multi_basedir}/config-ml.in
18665   ;;
18666esac ;;
18667    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18668  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18669  # are listed without --file.  Let's play safe and only enable the eval
18670  # if we detect the quoting.
18671  case $CONFIG_FILES in
18672  *\'*) eval set x "$CONFIG_FILES" ;;
18673  *)   set x $CONFIG_FILES ;;
18674  esac
18675  shift
18676  for mf
18677  do
18678    # Strip MF so we end up with the name of the file.
18679    mf=`echo "$mf" | sed -e 's/:.*$//'`
18680    # Check whether this is an Automake generated Makefile or not.
18681    # We used to match only the files named `Makefile.in', but
18682    # some people rename them; so instead we look at the file content.
18683    # Grep'ing the first line is not enough: some people post-process
18684    # each Makefile.in and add a new line on top of each file to say so.
18685    # Grep'ing the whole file is not good either: AIX grep has a line
18686    # limit of 2048, but all sed's we know have understand at least 4000.
18687    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18688      dirpart=`$as_dirname -- "$mf" ||
18689$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18690	 X"$mf" : 'X\(//\)[^/]' \| \
18691	 X"$mf" : 'X\(//\)$' \| \
18692	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18693$as_echo X"$mf" |
18694    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18695	    s//\1/
18696	    q
18697	  }
18698	  /^X\(\/\/\)[^/].*/{
18699	    s//\1/
18700	    q
18701	  }
18702	  /^X\(\/\/\)$/{
18703	    s//\1/
18704	    q
18705	  }
18706	  /^X\(\/\).*/{
18707	    s//\1/
18708	    q
18709	  }
18710	  s/.*/./; q'`
18711    else
18712      continue
18713    fi
18714    # Extract the definition of DEPDIR, am__include, and am__quote
18715    # from the Makefile without running `make'.
18716    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18717    test -z "$DEPDIR" && continue
18718    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18719    test -z "am__include" && continue
18720    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18721    # When using ansi2knr, U may be empty or an underscore; expand it
18722    U=`sed -n 's/^U = //p' < "$mf"`
18723    # Find all dependency output files, they are included files with
18724    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18725    # simplest approach to changing $(DEPDIR) to its actual value in the
18726    # expansion.
18727    for file in `sed -n "
18728      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18729	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18730      # Make sure the directory exists.
18731      test -f "$dirpart/$file" && continue
18732      fdir=`$as_dirname -- "$file" ||
18733$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18734	 X"$file" : 'X\(//\)[^/]' \| \
18735	 X"$file" : 'X\(//\)$' \| \
18736	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18737$as_echo X"$file" |
18738    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18739	    s//\1/
18740	    q
18741	  }
18742	  /^X\(\/\/\)[^/].*/{
18743	    s//\1/
18744	    q
18745	  }
18746	  /^X\(\/\/\)$/{
18747	    s//\1/
18748	    q
18749	  }
18750	  /^X\(\/\).*/{
18751	    s//\1/
18752	    q
18753	  }
18754	  s/.*/./; q'`
18755      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18756      # echo "creating $dirpart/$file"
18757      echo '# dummy' > "$dirpart/$file"
18758    done
18759  done
18760}
18761 ;;
18762    "libtool":C)
18763
18764    # See if we are running on zsh, and set the options which allow our
18765    # commands through without removal of \ escapes.
18766    if test -n "${ZSH_VERSION+set}" ; then
18767      setopt NO_GLOB_SUBST
18768    fi
18769
18770    cfgfile="${ofile}T"
18771    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18772    $RM "$cfgfile"
18773
18774    cat <<_LT_EOF >> "$cfgfile"
18775#! $SHELL
18776
18777# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18778# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18779# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18780# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18781#
18782#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18783#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18784#   Written by Gordon Matzigkeit, 1996
18785#
18786#   This file is part of GNU Libtool.
18787#
18788# GNU Libtool is free software; you can redistribute it and/or
18789# modify it under the terms of the GNU General Public License as
18790# published by the Free Software Foundation; either version 2 of
18791# the License, or (at your option) any later version.
18792#
18793# As a special exception to the GNU General Public License,
18794# if you distribute this file as part of a program or library that
18795# is built using GNU Libtool, you may include this file under the
18796# same distribution terms that you use for the rest of that program.
18797#
18798# GNU Libtool is distributed in the hope that it will be useful,
18799# but WITHOUT ANY WARRANTY; without even the implied warranty of
18800# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18801# GNU General Public License for more details.
18802#
18803# You should have received a copy of the GNU General Public License
18804# along with GNU Libtool; see the file COPYING.  If not, a copy
18805# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18806# obtained by writing to the Free Software Foundation, Inc.,
18807# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18808
18809
18810# The names of the tagged configurations supported by this script.
18811available_tags="FC "
18812
18813# ### BEGIN LIBTOOL CONFIG
18814
18815# Which release of libtool.m4 was used?
18816macro_version=$macro_version
18817macro_revision=$macro_revision
18818
18819# Whether or not to build shared libraries.
18820build_libtool_libs=$enable_shared
18821
18822# Whether or not to build static libraries.
18823build_old_libs=$enable_static
18824
18825# What type of objects to build.
18826pic_mode=$pic_mode
18827
18828# Whether or not to optimize for fast installation.
18829fast_install=$enable_fast_install
18830
18831# Shell to use when invoking shell scripts.
18832SHELL=$lt_SHELL
18833
18834# An echo program that protects backslashes.
18835ECHO=$lt_ECHO
18836
18837# The host system.
18838host_alias=$host_alias
18839host=$host
18840host_os=$host_os
18841
18842# The build system.
18843build_alias=$build_alias
18844build=$build
18845build_os=$build_os
18846
18847# A sed program that does not truncate output.
18848SED=$lt_SED
18849
18850# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18851Xsed="\$SED -e 1s/^X//"
18852
18853# A grep program that handles long lines.
18854GREP=$lt_GREP
18855
18856# An ERE matcher.
18857EGREP=$lt_EGREP
18858
18859# A literal string matcher.
18860FGREP=$lt_FGREP
18861
18862# A BSD- or MS-compatible name lister.
18863NM=$lt_NM
18864
18865# Whether we need soft or hard links.
18866LN_S=$lt_LN_S
18867
18868# What is the maximum length of a command?
18869max_cmd_len=$max_cmd_len
18870
18871# Object file suffix (normally "o").
18872objext=$ac_objext
18873
18874# Executable file suffix (normally "").
18875exeext=$exeext
18876
18877# whether the shell understands "unset".
18878lt_unset=$lt_unset
18879
18880# turn spaces into newlines.
18881SP2NL=$lt_lt_SP2NL
18882
18883# turn newlines into spaces.
18884NL2SP=$lt_lt_NL2SP
18885
18886# An object symbol dumper.
18887OBJDUMP=$lt_OBJDUMP
18888
18889# Method to check whether dependent libraries are shared objects.
18890deplibs_check_method=$lt_deplibs_check_method
18891
18892# Command to use when deplibs_check_method == "file_magic".
18893file_magic_cmd=$lt_file_magic_cmd
18894
18895# The archiver.
18896AR=$lt_AR
18897AR_FLAGS=$lt_AR_FLAGS
18898
18899# A symbol stripping program.
18900STRIP=$lt_STRIP
18901
18902# Commands used to install an old-style archive.
18903RANLIB=$lt_RANLIB
18904old_postinstall_cmds=$lt_old_postinstall_cmds
18905old_postuninstall_cmds=$lt_old_postuninstall_cmds
18906
18907# Whether to use a lock for old archive extraction.
18908lock_old_archive_extraction=$lock_old_archive_extraction
18909
18910# A C compiler.
18911LTCC=$lt_CC
18912
18913# LTCC compiler flags.
18914LTCFLAGS=$lt_CFLAGS
18915
18916# Take the output of nm and produce a listing of raw symbols and C names.
18917global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18918
18919# Transform the output of nm in a proper C declaration.
18920global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18921
18922# Transform the output of nm in a C name address pair.
18923global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18924
18925# Transform the output of nm in a C name address pair when lib prefix is needed.
18926global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18927
18928# The name of the directory that contains temporary libtool files.
18929objdir=$objdir
18930
18931# Used to examine libraries when file_magic_cmd begins with "file".
18932MAGIC_CMD=$MAGIC_CMD
18933
18934# Must we lock files when doing compilation?
18935need_locks=$lt_need_locks
18936
18937# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18938DSYMUTIL=$lt_DSYMUTIL
18939
18940# Tool to change global to local symbols on Mac OS X.
18941NMEDIT=$lt_NMEDIT
18942
18943# Tool to manipulate fat objects and archives on Mac OS X.
18944LIPO=$lt_LIPO
18945
18946# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18947OTOOL=$lt_OTOOL
18948
18949# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18950OTOOL64=$lt_OTOOL64
18951
18952# Old archive suffix (normally "a").
18953libext=$libext
18954
18955# Shared library suffix (normally ".so").
18956shrext_cmds=$lt_shrext_cmds
18957
18958# The commands to extract the exported symbol list from a shared archive.
18959extract_expsyms_cmds=$lt_extract_expsyms_cmds
18960
18961# Variables whose values should be saved in libtool wrapper scripts and
18962# restored at link time.
18963variables_saved_for_relink=$lt_variables_saved_for_relink
18964
18965# Do we need the "lib" prefix for modules?
18966need_lib_prefix=$need_lib_prefix
18967
18968# Do we need a version for libraries?
18969need_version=$need_version
18970
18971# Library versioning type.
18972version_type=$version_type
18973
18974# Shared library runtime path variable.
18975runpath_var=$runpath_var
18976
18977# Shared library path variable.
18978shlibpath_var=$shlibpath_var
18979
18980# Is shlibpath searched before the hard-coded library search path?
18981shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18982
18983# Format of library name prefix.
18984libname_spec=$lt_libname_spec
18985
18986# List of archive names.  First name is the real one, the rest are links.
18987# The last name is the one that the linker finds with -lNAME
18988library_names_spec=$lt_library_names_spec
18989
18990# The coded name of the library, if different from the real name.
18991soname_spec=$lt_soname_spec
18992
18993# Permission mode override for installation of shared libraries.
18994install_override_mode=$lt_install_override_mode
18995
18996# Command to use after installation of a shared archive.
18997postinstall_cmds=$lt_postinstall_cmds
18998
18999# Command to use after uninstallation of a shared archive.
19000postuninstall_cmds=$lt_postuninstall_cmds
19001
19002# Commands used to finish a libtool library installation in a directory.
19003finish_cmds=$lt_finish_cmds
19004
19005# As "finish_cmds", except a single script fragment to be evaled but
19006# not shown.
19007finish_eval=$lt_finish_eval
19008
19009# Whether we should hardcode library paths into libraries.
19010hardcode_into_libs=$hardcode_into_libs
19011
19012# Compile-time system search path for libraries.
19013sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19014
19015# Run-time system search path for libraries.
19016sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19017
19018# Whether dlopen is supported.
19019dlopen_support=$enable_dlopen
19020
19021# Whether dlopen of programs is supported.
19022dlopen_self=$enable_dlopen_self
19023
19024# Whether dlopen of statically linked programs is supported.
19025dlopen_self_static=$enable_dlopen_self_static
19026
19027# Commands to strip libraries.
19028old_striplib=$lt_old_striplib
19029striplib=$lt_striplib
19030
19031
19032# The linker used to build libraries.
19033LD=$lt_LD
19034
19035# How to create reloadable object files.
19036reload_flag=$lt_reload_flag
19037reload_cmds=$lt_reload_cmds
19038
19039# Commands used to build an old-style archive.
19040old_archive_cmds=$lt_old_archive_cmds
19041
19042# A language specific compiler.
19043CC=$lt_compiler
19044
19045# Is the compiler the GNU compiler?
19046with_gcc=$GCC
19047
19048# Compiler flag to turn off builtin functions.
19049no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19050
19051# How to pass a linker flag through the compiler.
19052wl=$lt_lt_prog_compiler_wl
19053
19054# Additional compiler flags for building library objects.
19055pic_flag=$lt_lt_prog_compiler_pic
19056
19057# Compiler flag to prevent dynamic linking.
19058link_static_flag=$lt_lt_prog_compiler_static
19059
19060# Does compiler simultaneously support -c and -o options?
19061compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19062
19063# Whether or not to add -lc for building shared libraries.
19064build_libtool_need_lc=$archive_cmds_need_lc
19065
19066# Whether or not to disallow shared libs when runtime libs are static.
19067allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19068
19069# Compiler flag to allow reflexive dlopens.
19070export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19071
19072# Compiler flag to generate shared objects directly from archives.
19073whole_archive_flag_spec=$lt_whole_archive_flag_spec
19074
19075# Whether the compiler copes with passing no objects directly.
19076compiler_needs_object=$lt_compiler_needs_object
19077
19078# Create an old-style archive from a shared archive.
19079old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19080
19081# Create a temporary old-style archive to link instead of a shared archive.
19082old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19083
19084# Commands used to build a shared archive.
19085archive_cmds=$lt_archive_cmds
19086archive_expsym_cmds=$lt_archive_expsym_cmds
19087
19088# Commands used to build a loadable module if different from building
19089# a shared archive.
19090module_cmds=$lt_module_cmds
19091module_expsym_cmds=$lt_module_expsym_cmds
19092
19093# Whether we are building with GNU ld or not.
19094with_gnu_ld=$lt_with_gnu_ld
19095
19096# Flag that allows shared libraries with undefined symbols to be built.
19097allow_undefined_flag=$lt_allow_undefined_flag
19098
19099# Flag that enforces no undefined symbols.
19100no_undefined_flag=$lt_no_undefined_flag
19101
19102# Flag to hardcode \$libdir into a binary during linking.
19103# This must work even if \$libdir does not exist
19104hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19105
19106# If ld is used when linking, flag to hardcode \$libdir into a binary
19107# during linking.  This must work even if \$libdir does not exist.
19108hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19109
19110# Whether we need a single "-rpath" flag with a separated argument.
19111hardcode_libdir_separator=$lt_hardcode_libdir_separator
19112
19113# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19114# DIR into the resulting binary.
19115hardcode_direct=$hardcode_direct
19116
19117# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19118# DIR into the resulting binary and the resulting library dependency is
19119# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19120# library is relocated.
19121hardcode_direct_absolute=$hardcode_direct_absolute
19122
19123# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19124# into the resulting binary.
19125hardcode_minus_L=$hardcode_minus_L
19126
19127# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19128# into the resulting binary.
19129hardcode_shlibpath_var=$hardcode_shlibpath_var
19130
19131# Set to "yes" if building a shared library automatically hardcodes DIR
19132# into the library and all subsequent libraries and executables linked
19133# against it.
19134hardcode_automatic=$hardcode_automatic
19135
19136# Set to yes if linker adds runtime paths of dependent libraries
19137# to runtime path list.
19138inherit_rpath=$inherit_rpath
19139
19140# Whether libtool must link a program against all its dependency libraries.
19141link_all_deplibs=$link_all_deplibs
19142
19143# Fix the shell variable \$srcfile for the compiler.
19144fix_srcfile_path=$lt_fix_srcfile_path
19145
19146# Set to "yes" if exported symbols are required.
19147always_export_symbols=$always_export_symbols
19148
19149# The commands to list exported symbols.
19150export_symbols_cmds=$lt_export_symbols_cmds
19151
19152# Symbols that should not be listed in the preloaded symbols.
19153exclude_expsyms=$lt_exclude_expsyms
19154
19155# Symbols that must always be exported.
19156include_expsyms=$lt_include_expsyms
19157
19158# Commands necessary for linking programs (against libraries) with templates.
19159prelink_cmds=$lt_prelink_cmds
19160
19161# Specify filename containing input files.
19162file_list_spec=$lt_file_list_spec
19163
19164# How to hardcode a shared library path into an executable.
19165hardcode_action=$hardcode_action
19166
19167# The directories searched by this compiler when creating a shared library.
19168compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19169
19170# Dependencies to place before and after the objects being linked to
19171# create a shared library.
19172predep_objects=$lt_predep_objects
19173postdep_objects=$lt_postdep_objects
19174predeps=$lt_predeps
19175postdeps=$lt_postdeps
19176
19177# The library search path used internally by the compiler when linking
19178# a shared library.
19179compiler_lib_search_path=$lt_compiler_lib_search_path
19180
19181# ### END LIBTOOL CONFIG
19182
19183_LT_EOF
19184
19185  case $host_os in
19186  aix3*)
19187    cat <<\_LT_EOF >> "$cfgfile"
19188# AIX sometimes has problems with the GCC collect2 program.  For some
19189# reason, if we set the COLLECT_NAMES environment variable, the problems
19190# vanish in a puff of smoke.
19191if test "X${COLLECT_NAMES+set}" != Xset; then
19192  COLLECT_NAMES=
19193  export COLLECT_NAMES
19194fi
19195_LT_EOF
19196    ;;
19197  esac
19198
19199
19200ltmain="$ac_aux_dir/ltmain.sh"
19201
19202
19203  # We use sed instead of cat because bash on DJGPP gets confused if
19204  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19205  # text mode, it properly converts lines to CR/LF.  This bash problem
19206  # is reportedly fixed, but why not run on old versions too?
19207  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19208    || (rm -f "$cfgfile"; exit 1)
19209
19210  case $xsi_shell in
19211  yes)
19212    cat << \_LT_EOF >> "$cfgfile"
19213
19214# func_dirname file append nondir_replacement
19215# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19216# otherwise set result to NONDIR_REPLACEMENT.
19217func_dirname ()
19218{
19219  case ${1} in
19220    */*) func_dirname_result="${1%/*}${2}" ;;
19221    *  ) func_dirname_result="${3}" ;;
19222  esac
19223}
19224
19225# func_basename file
19226func_basename ()
19227{
19228  func_basename_result="${1##*/}"
19229}
19230
19231# func_dirname_and_basename file append nondir_replacement
19232# perform func_basename and func_dirname in a single function
19233# call:
19234#   dirname:  Compute the dirname of FILE.  If nonempty,
19235#             add APPEND to the result, otherwise set result
19236#             to NONDIR_REPLACEMENT.
19237#             value returned in "$func_dirname_result"
19238#   basename: Compute filename of FILE.
19239#             value retuned in "$func_basename_result"
19240# Implementation must be kept synchronized with func_dirname
19241# and func_basename. For efficiency, we do not delegate to
19242# those functions but instead duplicate the functionality here.
19243func_dirname_and_basename ()
19244{
19245  case ${1} in
19246    */*) func_dirname_result="${1%/*}${2}" ;;
19247    *  ) func_dirname_result="${3}" ;;
19248  esac
19249  func_basename_result="${1##*/}"
19250}
19251
19252# func_stripname prefix suffix name
19253# strip PREFIX and SUFFIX off of NAME.
19254# PREFIX and SUFFIX must not contain globbing or regex special
19255# characters, hashes, percent signs, but SUFFIX may contain a leading
19256# dot (in which case that matches only a dot).
19257func_stripname ()
19258{
19259  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19260  # positional parameters, so assign one to ordinary parameter first.
19261  func_stripname_result=${3}
19262  func_stripname_result=${func_stripname_result#"${1}"}
19263  func_stripname_result=${func_stripname_result%"${2}"}
19264}
19265
19266# func_opt_split
19267func_opt_split ()
19268{
19269  func_opt_split_opt=${1%%=*}
19270  func_opt_split_arg=${1#*=}
19271}
19272
19273# func_lo2o object
19274func_lo2o ()
19275{
19276  case ${1} in
19277    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19278    *)    func_lo2o_result=${1} ;;
19279  esac
19280}
19281
19282# func_xform libobj-or-source
19283func_xform ()
19284{
19285  func_xform_result=${1%.*}.lo
19286}
19287
19288# func_arith arithmetic-term...
19289func_arith ()
19290{
19291  func_arith_result=$(( $* ))
19292}
19293
19294# func_len string
19295# STRING may not start with a hyphen.
19296func_len ()
19297{
19298  func_len_result=${#1}
19299}
19300
19301_LT_EOF
19302    ;;
19303  *) # Bourne compatible functions.
19304    cat << \_LT_EOF >> "$cfgfile"
19305
19306# func_dirname file append nondir_replacement
19307# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19308# otherwise set result to NONDIR_REPLACEMENT.
19309func_dirname ()
19310{
19311  # Extract subdirectory from the argument.
19312  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19313  if test "X$func_dirname_result" = "X${1}"; then
19314    func_dirname_result="${3}"
19315  else
19316    func_dirname_result="$func_dirname_result${2}"
19317  fi
19318}
19319
19320# func_basename file
19321func_basename ()
19322{
19323  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19324}
19325
19326
19327# func_stripname prefix suffix name
19328# strip PREFIX and SUFFIX off of NAME.
19329# PREFIX and SUFFIX must not contain globbing or regex special
19330# characters, hashes, percent signs, but SUFFIX may contain a leading
19331# dot (in which case that matches only a dot).
19332# func_strip_suffix prefix name
19333func_stripname ()
19334{
19335  case ${2} in
19336    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19337    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19338  esac
19339}
19340
19341# sed scripts:
19342my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19343my_sed_long_arg='1s/^-[^=]*=//'
19344
19345# func_opt_split
19346func_opt_split ()
19347{
19348  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19349  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19350}
19351
19352# func_lo2o object
19353func_lo2o ()
19354{
19355  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19356}
19357
19358# func_xform libobj-or-source
19359func_xform ()
19360{
19361  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19362}
19363
19364# func_arith arithmetic-term...
19365func_arith ()
19366{
19367  func_arith_result=`expr "$@"`
19368}
19369
19370# func_len string
19371# STRING may not start with a hyphen.
19372func_len ()
19373{
19374  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19375}
19376
19377_LT_EOF
19378esac
19379
19380case $lt_shell_append in
19381  yes)
19382    cat << \_LT_EOF >> "$cfgfile"
19383
19384# func_append var value
19385# Append VALUE to the end of shell variable VAR.
19386func_append ()
19387{
19388  eval "$1+=\$2"
19389}
19390_LT_EOF
19391    ;;
19392  *)
19393    cat << \_LT_EOF >> "$cfgfile"
19394
19395# func_append var value
19396# Append VALUE to the end of shell variable VAR.
19397func_append ()
19398{
19399  eval "$1=\$$1\$2"
19400}
19401
19402_LT_EOF
19403    ;;
19404  esac
19405
19406
19407  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19408    || (rm -f "$cfgfile"; exit 1)
19409
19410  mv -f "$cfgfile" "$ofile" ||
19411    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19412  chmod +x "$ofile"
19413
19414
19415    cat <<_LT_EOF >> "$ofile"
19416
19417# ### BEGIN LIBTOOL TAG CONFIG: FC
19418
19419# The linker used to build libraries.
19420LD=$lt_LD_FC
19421
19422# How to create reloadable object files.
19423reload_flag=$lt_reload_flag_FC
19424reload_cmds=$lt_reload_cmds_FC
19425
19426# Commands used to build an old-style archive.
19427old_archive_cmds=$lt_old_archive_cmds_FC
19428
19429# A language specific compiler.
19430CC=$lt_compiler_FC
19431
19432# Is the compiler the GNU compiler?
19433with_gcc=$GCC_FC
19434
19435# Compiler flag to turn off builtin functions.
19436no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19437
19438# How to pass a linker flag through the compiler.
19439wl=$lt_lt_prog_compiler_wl_FC
19440
19441# Additional compiler flags for building library objects.
19442pic_flag=$lt_lt_prog_compiler_pic_FC
19443
19444# Compiler flag to prevent dynamic linking.
19445link_static_flag=$lt_lt_prog_compiler_static_FC
19446
19447# Does compiler simultaneously support -c and -o options?
19448compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19449
19450# Whether or not to add -lc for building shared libraries.
19451build_libtool_need_lc=$archive_cmds_need_lc_FC
19452
19453# Whether or not to disallow shared libs when runtime libs are static.
19454allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19455
19456# Compiler flag to allow reflexive dlopens.
19457export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19458
19459# Compiler flag to generate shared objects directly from archives.
19460whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19461
19462# Whether the compiler copes with passing no objects directly.
19463compiler_needs_object=$lt_compiler_needs_object_FC
19464
19465# Create an old-style archive from a shared archive.
19466old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19467
19468# Create a temporary old-style archive to link instead of a shared archive.
19469old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19470
19471# Commands used to build a shared archive.
19472archive_cmds=$lt_archive_cmds_FC
19473archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19474
19475# Commands used to build a loadable module if different from building
19476# a shared archive.
19477module_cmds=$lt_module_cmds_FC
19478module_expsym_cmds=$lt_module_expsym_cmds_FC
19479
19480# Whether we are building with GNU ld or not.
19481with_gnu_ld=$lt_with_gnu_ld_FC
19482
19483# Flag that allows shared libraries with undefined symbols to be built.
19484allow_undefined_flag=$lt_allow_undefined_flag_FC
19485
19486# Flag that enforces no undefined symbols.
19487no_undefined_flag=$lt_no_undefined_flag_FC
19488
19489# Flag to hardcode \$libdir into a binary during linking.
19490# This must work even if \$libdir does not exist
19491hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19492
19493# If ld is used when linking, flag to hardcode \$libdir into a binary
19494# during linking.  This must work even if \$libdir does not exist.
19495hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19496
19497# Whether we need a single "-rpath" flag with a separated argument.
19498hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19499
19500# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19501# DIR into the resulting binary.
19502hardcode_direct=$hardcode_direct_FC
19503
19504# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19505# DIR into the resulting binary and the resulting library dependency is
19506# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19507# library is relocated.
19508hardcode_direct_absolute=$hardcode_direct_absolute_FC
19509
19510# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19511# into the resulting binary.
19512hardcode_minus_L=$hardcode_minus_L_FC
19513
19514# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19515# into the resulting binary.
19516hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19517
19518# Set to "yes" if building a shared library automatically hardcodes DIR
19519# into the library and all subsequent libraries and executables linked
19520# against it.
19521hardcode_automatic=$hardcode_automatic_FC
19522
19523# Set to yes if linker adds runtime paths of dependent libraries
19524# to runtime path list.
19525inherit_rpath=$inherit_rpath_FC
19526
19527# Whether libtool must link a program against all its dependency libraries.
19528link_all_deplibs=$link_all_deplibs_FC
19529
19530# Fix the shell variable \$srcfile for the compiler.
19531fix_srcfile_path=$lt_fix_srcfile_path_FC
19532
19533# Set to "yes" if exported symbols are required.
19534always_export_symbols=$always_export_symbols_FC
19535
19536# The commands to list exported symbols.
19537export_symbols_cmds=$lt_export_symbols_cmds_FC
19538
19539# Symbols that should not be listed in the preloaded symbols.
19540exclude_expsyms=$lt_exclude_expsyms_FC
19541
19542# Symbols that must always be exported.
19543include_expsyms=$lt_include_expsyms_FC
19544
19545# Commands necessary for linking programs (against libraries) with templates.
19546prelink_cmds=$lt_prelink_cmds_FC
19547
19548# Specify filename containing input files.
19549file_list_spec=$lt_file_list_spec_FC
19550
19551# How to hardcode a shared library path into an executable.
19552hardcode_action=$hardcode_action_FC
19553
19554# The directories searched by this compiler when creating a shared library.
19555compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19556
19557# Dependencies to place before and after the objects being linked to
19558# create a shared library.
19559predep_objects=$lt_predep_objects_FC
19560postdep_objects=$lt_postdep_objects_FC
19561predeps=$lt_predeps_FC
19562postdeps=$lt_postdeps_FC
19563
19564# The library search path used internally by the compiler when linking
19565# a shared library.
19566compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19567
19568# ### END LIBTOOL TAG CONFIG: FC
19569_LT_EOF
19570
19571 ;;
19572    "gstdint.h":C)
19573if test "$GCC" = yes; then
19574  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19575else
19576  echo "/* generated for $CC */" > tmp-stdint.h
19577fi
19578
19579sed 's/^ *//' >> tmp-stdint.h <<EOF
19580
19581  #ifndef GCC_GENERATED_STDINT_H
19582  #define GCC_GENERATED_STDINT_H 1
19583
19584  #include <sys/types.h>
19585EOF
19586
19587if test "$acx_cv_header_stdint" != stdint.h; then
19588  echo "#include <stddef.h>" >> tmp-stdint.h
19589fi
19590if test "$acx_cv_header_stdint" != stddef.h; then
19591  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19592fi
19593
19594sed 's/^ *//' >> tmp-stdint.h <<EOF
19595  /* glibc uses these symbols as guards to prevent redefinitions.  */
19596  #ifdef __int8_t_defined
19597  #define _INT8_T
19598  #define _INT16_T
19599  #define _INT32_T
19600  #endif
19601  #ifdef __uint32_t_defined
19602  #define _UINT32_T
19603  #endif
19604
19605EOF
19606
19607# ----------------- done header, emit basic int types -------------
19608if test "$acx_cv_header_stdint" = stddef.h; then
19609  sed 's/^ *//' >> tmp-stdint.h <<EOF
19610
19611    #ifndef _UINT8_T
19612    #define _UINT8_T
19613    #ifndef __uint8_t_defined
19614    #define __uint8_t_defined
19615    #ifndef uint8_t
19616    typedef unsigned $acx_cv_type_int8_t uint8_t;
19617    #endif
19618    #endif
19619    #endif
19620
19621    #ifndef _UINT16_T
19622    #define _UINT16_T
19623    #ifndef __uint16_t_defined
19624    #define __uint16_t_defined
19625    #ifndef uint16_t
19626    typedef unsigned $acx_cv_type_int16_t uint16_t;
19627    #endif
19628    #endif
19629    #endif
19630
19631    #ifndef _UINT32_T
19632    #define _UINT32_T
19633    #ifndef __uint32_t_defined
19634    #define __uint32_t_defined
19635    #ifndef uint32_t
19636    typedef unsigned $acx_cv_type_int32_t uint32_t;
19637    #endif
19638    #endif
19639    #endif
19640
19641    #ifndef _INT8_T
19642    #define _INT8_T
19643    #ifndef __int8_t_defined
19644    #define __int8_t_defined
19645    #ifndef int8_t
19646    typedef $acx_cv_type_int8_t int8_t;
19647    #endif
19648    #endif
19649    #endif
19650
19651    #ifndef _INT16_T
19652    #define _INT16_T
19653    #ifndef __int16_t_defined
19654    #define __int16_t_defined
19655    #ifndef int16_t
19656    typedef $acx_cv_type_int16_t int16_t;
19657    #endif
19658    #endif
19659    #endif
19660
19661    #ifndef _INT32_T
19662    #define _INT32_T
19663    #ifndef __int32_t_defined
19664    #define __int32_t_defined
19665    #ifndef int32_t
19666    typedef $acx_cv_type_int32_t int32_t;
19667    #endif
19668    #endif
19669    #endif
19670EOF
19671elif test "$ac_cv_type_u_int32_t" = yes; then
19672  sed 's/^ *//' >> tmp-stdint.h <<EOF
19673
19674    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19675    #ifndef _INT8_T
19676    #define _INT8_T
19677    #endif
19678    #ifndef _INT16_T
19679    #define _INT16_T
19680    #endif
19681    #ifndef _INT32_T
19682    #define _INT32_T
19683    #endif
19684
19685    #ifndef _UINT8_T
19686    #define _UINT8_T
19687    #ifndef __uint8_t_defined
19688    #define __uint8_t_defined
19689    #ifndef uint8_t
19690    typedef u_int8_t uint8_t;
19691    #endif
19692    #endif
19693    #endif
19694
19695    #ifndef _UINT16_T
19696    #define _UINT16_T
19697    #ifndef __uint16_t_defined
19698    #define __uint16_t_defined
19699    #ifndef uint16_t
19700    typedef u_int16_t uint16_t;
19701    #endif
19702    #endif
19703    #endif
19704
19705    #ifndef _UINT32_T
19706    #define _UINT32_T
19707    #ifndef __uint32_t_defined
19708    #define __uint32_t_defined
19709    #ifndef uint32_t
19710    typedef u_int32_t uint32_t;
19711    #endif
19712    #endif
19713    #endif
19714EOF
19715else
19716  sed 's/^ *//' >> tmp-stdint.h <<EOF
19717
19718    /* Some systems have guard macros to prevent redefinitions, define them.  */
19719    #ifndef _INT8_T
19720    #define _INT8_T
19721    #endif
19722    #ifndef _INT16_T
19723    #define _INT16_T
19724    #endif
19725    #ifndef _INT32_T
19726    #define _INT32_T
19727    #endif
19728    #ifndef _UINT8_T
19729    #define _UINT8_T
19730    #endif
19731    #ifndef _UINT16_T
19732    #define _UINT16_T
19733    #endif
19734    #ifndef _UINT32_T
19735    #define _UINT32_T
19736    #endif
19737EOF
19738fi
19739
19740# ------------- done basic int types, emit int64_t types ------------
19741if test "$ac_cv_type_uint64_t" = yes; then
19742  sed 's/^ *//' >> tmp-stdint.h <<EOF
19743
19744    /* system headers have good uint64_t and int64_t */
19745    #ifndef _INT64_T
19746    #define _INT64_T
19747    #endif
19748    #ifndef _UINT64_T
19749    #define _UINT64_T
19750    #endif
19751EOF
19752elif test "$ac_cv_type_u_int64_t" = yes; then
19753  sed 's/^ *//' >> tmp-stdint.h <<EOF
19754
19755    /* system headers have an u_int64_t (and int64_t) */
19756    #ifndef _INT64_T
19757    #define _INT64_T
19758    #endif
19759    #ifndef _UINT64_T
19760    #define _UINT64_T
19761    #ifndef __uint64_t_defined
19762    #define __uint64_t_defined
19763    #ifndef uint64_t
19764    typedef u_int64_t uint64_t;
19765    #endif
19766    #endif
19767    #endif
19768EOF
19769elif test -n "$acx_cv_type_int64_t"; then
19770  sed 's/^ *//' >> tmp-stdint.h <<EOF
19771
19772    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19773    #ifndef _INT64_T
19774    #define _INT64_T
19775    #ifndef int64_t
19776    typedef $acx_cv_type_int64_t int64_t;
19777    #endif
19778    #endif
19779    #ifndef _UINT64_T
19780    #define _UINT64_T
19781    #ifndef __uint64_t_defined
19782    #define __uint64_t_defined
19783    #ifndef uint64_t
19784    typedef unsigned $acx_cv_type_int64_t uint64_t;
19785    #endif
19786    #endif
19787    #endif
19788EOF
19789else
19790  sed 's/^ *//' >> tmp-stdint.h <<EOF
19791
19792    /* some common heuristics for int64_t, using compiler-specific tests */
19793    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19794    #ifndef _INT64_T
19795    #define _INT64_T
19796    #ifndef __int64_t_defined
19797    #ifndef int64_t
19798    typedef long long int64_t;
19799    #endif
19800    #endif
19801    #endif
19802    #ifndef _UINT64_T
19803    #define _UINT64_T
19804    #ifndef uint64_t
19805    typedef unsigned long long uint64_t;
19806    #endif
19807    #endif
19808
19809    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19810    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19811       does not implement __extension__.  But that compiler doesn't define
19812       __GNUC_MINOR__.  */
19813    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19814    # define __extension__
19815    # endif
19816
19817    # ifndef _INT64_T
19818    # define _INT64_T
19819    # ifndef int64_t
19820    __extension__ typedef long long int64_t;
19821    # endif
19822    # endif
19823    # ifndef _UINT64_T
19824    # define _UINT64_T
19825    # ifndef uint64_t
19826    __extension__ typedef unsigned long long uint64_t;
19827    # endif
19828    # endif
19829
19830    #elif !defined __STRICT_ANSI__
19831    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19832
19833    #  ifndef _INT64_T
19834    #  define _INT64_T
19835    #  ifndef int64_t
19836    typedef __int64 int64_t;
19837    #  endif
19838    #  endif
19839    #  ifndef _UINT64_T
19840    #  define _UINT64_T
19841    #  ifndef uint64_t
19842    typedef unsigned __int64 uint64_t;
19843    #  endif
19844    #  endif
19845    # endif /* compiler */
19846
19847    #endif /* ANSI version */
19848EOF
19849fi
19850
19851# ------------- done int64_t types, emit intptr types ------------
19852if test "$ac_cv_type_uintptr_t" != yes; then
19853  sed 's/^ *//' >> tmp-stdint.h <<EOF
19854
19855    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19856    #ifndef __uintptr_t_defined
19857    #ifndef uintptr_t
19858    typedef u$acx_cv_type_intptr_t uintptr_t;
19859    #endif
19860    #endif
19861    #ifndef __intptr_t_defined
19862    #ifndef intptr_t
19863    typedef $acx_cv_type_intptr_t  intptr_t;
19864    #endif
19865    #endif
19866EOF
19867fi
19868
19869# ------------- done intptr types, emit int_least types ------------
19870if test "$ac_cv_type_int_least32_t" != yes; then
19871  sed 's/^ *//' >> tmp-stdint.h <<EOF
19872
19873    /* Define int_least types */
19874    typedef int8_t     int_least8_t;
19875    typedef int16_t    int_least16_t;
19876    typedef int32_t    int_least32_t;
19877    #ifdef _INT64_T
19878    typedef int64_t    int_least64_t;
19879    #endif
19880
19881    typedef uint8_t    uint_least8_t;
19882    typedef uint16_t   uint_least16_t;
19883    typedef uint32_t   uint_least32_t;
19884    #ifdef _UINT64_T
19885    typedef uint64_t   uint_least64_t;
19886    #endif
19887EOF
19888fi
19889
19890# ------------- done intptr types, emit int_fast types ------------
19891if test "$ac_cv_type_int_fast32_t" != yes; then
19892      sed 's/^ *//' >> tmp-stdint.h <<EOF
19893
19894    /* Define int_fast types.  short is often slow */
19895    typedef int8_t       int_fast8_t;
19896    typedef int          int_fast16_t;
19897    typedef int32_t      int_fast32_t;
19898    #ifdef _INT64_T
19899    typedef int64_t      int_fast64_t;
19900    #endif
19901
19902    typedef uint8_t      uint_fast8_t;
19903    typedef unsigned int uint_fast16_t;
19904    typedef uint32_t     uint_fast32_t;
19905    #ifdef _UINT64_T
19906    typedef uint64_t     uint_fast64_t;
19907    #endif
19908EOF
19909fi
19910
19911if test "$ac_cv_type_uintmax_t" != yes; then
19912  sed 's/^ *//' >> tmp-stdint.h <<EOF
19913
19914    /* Define intmax based on what we found */
19915    #ifndef intmax_t
19916    #ifdef _INT64_T
19917    typedef int64_t       intmax_t;
19918    #else
19919    typedef long          intmax_t;
19920    #endif
19921    #endif
19922    #ifndef uintmax_t
19923    #ifdef _UINT64_T
19924    typedef uint64_t      uintmax_t;
19925    #else
19926    typedef unsigned long uintmax_t;
19927    #endif
19928    #endif
19929EOF
19930fi
19931
19932sed 's/^ *//' >> tmp-stdint.h <<EOF
19933
19934  #endif /* GCC_GENERATED_STDINT_H */
19935EOF
19936
19937if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19938  rm -f tmp-stdint.h
19939else
19940  mv -f tmp-stdint.h gstdint.h
19941fi
19942
19943 ;;
19944
19945  esac
19946done # for ac_tag
19947
19948
19949as_fn_exit 0
19950_ACEOF
19951ac_clean_files=$ac_clean_files_save
19952
19953test $ac_write_fail = 0 ||
19954  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19955
19956
19957# configure is writing to config.log, and then calls config.status.
19958# config.status does its own redirection, appending to config.log.
19959# Unfortunately, on DOS this fails, as config.log is still kept open
19960# by configure, so config.status won't be able to write to it; its
19961# output is simply discarded.  So we exec the FD to /dev/null,
19962# effectively closing config.log, so it can be properly (re)opened and
19963# appended to by config.status.  When coming back to configure, we
19964# need to make the FD available again.
19965if test "$no_create" != yes; then
19966  ac_cs_success=:
19967  ac_config_status_args=
19968  test "$silent" = yes &&
19969    ac_config_status_args="$ac_config_status_args --quiet"
19970  exec 5>/dev/null
19971  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19972  exec 5>>config.log
19973  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19974  # would make configure fail if this is the last instruction.
19975  $ac_cs_success || as_fn_exit $?
19976fi
19977if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19978  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19979$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19980fi
19981
19982