1#! /bin/sh
2# From configure.ac Autotools support for AtomPAW.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for AtomPAW 4.1.1.0.
5#
6# Report bugs to <natalie@wfu.edu, marc.torrent@cea.fr>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63	expr "X$arg" : "X\\(.*\\)$as_nl";
64	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""	$as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138# Use a proper internal environment variable to ensure we don't fall
139  # into an infinite loop, continuously re-executing ourselves.
140  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141    _as_can_reexec=no; export _as_can_reexec;
142    # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150  *v*x* | *x*v* ) as_opts=-vx ;;
151  *v* ) as_opts=-v ;;
152  *x* ) as_opts=-x ;;
153  * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160  fi
161  # We don't want this to propagate to other subprocesses.
162          { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165  emulate sh
166  NULLCMD=:
167  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168  # is contrary to our usage.  Disable this feature.
169  alias -g '\${1+\"\$@\"}'='\"\$@\"'
170  setopt NO_GLOB_SUBST
171else
172  case \`(set -o) 2>/dev/null\` in #(
173  *posix*) :
174    set -o posix ;; #(
175  *) :
176     ;;
177esac
178fi
179"
180  as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194  exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202test \$(( 1 + 1 )) = 2 || exit 1
203
204  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208    PATH=/empty FPATH=/empty; export PATH FPATH
209    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211  if (eval "$as_required") 2>/dev/null; then :
212  as_have_required=yes
213else
214  as_have_required=no
215fi
216  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218else
219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220as_found=false
221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222do
223  IFS=$as_save_IFS
224  test -z "$as_dir" && as_dir=.
225  as_found=:
226  case $as_dir in #(
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     # Try only shells that exist, to save several forks.
230	     as_shell=$as_dir/$as_base
231	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233  CONFIG_SHELL=$as_shell as_have_required=yes
234		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235  break 2
236fi
237fi
238	   done;;
239       esac
240  as_found=false
241done
242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi; }
246IFS=$as_save_IFS
247
248
249      if test "x$CONFIG_SHELL" != x; then :
250  export CONFIG_SHELL
251             # We cannot yet assume a decent shell, so we have to provide a
252# neutralization value for shells without unset; and this also
253# works around shells that cannot unset nonexistent variables.
254# Preserve -v and -x to the replacement shell.
255BASH_ENV=/dev/null
256ENV=/dev/null
257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258case $- in # ((((
259  *v*x* | *x*v* ) as_opts=-vx ;;
260  *v* ) as_opts=-v ;;
261  *x* ) as_opts=-x ;;
262  * ) as_opts= ;;
263esac
264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265# Admittedly, this is quite paranoid, since all the known shells bail
266# out after a failed `exec'.
267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268exit 255
269fi
270
271    if test x$as_have_required = xno; then :
272  $as_echo "$0: This script requires a shell more modern than all"
273  $as_echo "$0: the shells that I found on your system."
274  if test x${ZSH_VERSION+set} = xset ; then
275    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    $as_echo "$0: Please tell bug-autoconf@gnu.org and natalie@wfu.edu,
279$0: marc.torrent@cea.fr about your system, including any
280$0: error possibly output before this message. Then install
281$0: a modern shell, or manually run the script under such a
282$0: shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='AtomPAW'
593PACKAGE_TARNAME='atompaw'
594PACKAGE_VERSION='4.1.1.0'
595PACKAGE_STRING='AtomPAW 4.1.1.0'
596PACKAGE_BUGREPORT='natalie@wfu.edu, marc.torrent@cea.fr'
597PACKAGE_URL=''
598
599ac_unique_file="src/atompaw_prog.F90"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640LTOBJEXT
641CPP
642OTOOL64
643OTOOL
644LIPO
645NMEDIT
646DSYMUTIL
647MANIFEST_TOOL
648RANLIB
649ac_ct_AR
650AR
651DLLTOOL
652OBJDUMP
653NM
654ac_ct_DUMPBIN
655DUMPBIN
656LD
657FGREP
658am__fastdepCC_FALSE
659am__fastdepCC_TRUE
660CCDEPMODE
661am__nodep
662AMDEPBACKSLASH
663AMDEP_FALSE
664AMDEP_TRUE
665am__quote
666am__include
667DEPDIR
668ac_ct_CC
669CPPFLAGS
670CFLAGS
671CC
672LIBTOOL
673ATP_LIBS
674ATP_LDOPTS
675ATP_FCOPTS
676FCFLAGS_F90
677MODEXT
678atp_fc_wrap
679atp_fc_version
680atp_fc_vendor
681OBJEXT
682EXEEXT
683ac_ct_FC
684LDFLAGS
685FCFLAGS
686FC
687atp_fc_path
688PERL
689PDFLATEX
690LATEX
691DVIPDF
692EGREP
693GREP
694SED
695LN_S
696LIBXC_PREFIX
697LINALG_PREFIX
698AM_BACKSLASH
699AM_DEFAULT_VERBOSITY
700AM_DEFAULT_V
701AM_V
702am__untar
703am__tar
704AMTAR
705am__leading_dot
706SET_MAKE
707AWK
708mkdir_p
709MKDIR_P
710INSTALL_STRIP_PROGRAM
711STRIP
712install_sh
713MAKEINFO
714AUTOHEADER
715AUTOMAKE
716AUTOCONF
717ACLOCAL
718VERSION
719PACKAGE
720CYGPATH_W
721am__isrc
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725target_os
726target_vendor
727target_cpu
728target
729host_os
730host_vendor
731host_cpu
732host
733build_os
734build_vendor
735build_cpu
736build
737target_alias
738host_alias
739build_alias
740LIBS
741ECHO_T
742ECHO_N
743ECHO_C
744DEFS
745mandir
746localedir
747libdir
748psdir
749pdfdir
750dvidir
751htmldir
752infodir
753docdir
754oldincludedir
755includedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL'
775ac_subst_files=''
776ac_user_opts='
777enable_option_checking
778enable_silent_rules
779enable_libxc
780with_fc_vendor
781with_fc_version
782with_libxc_incs
783with_libxc_libs
784with_libxc_prefix
785with_linalg_libs
786with_linalg_prefix
787enable_shared
788enable_static
789with_pic
790enable_fast_install
791enable_dependency_tracking
792with_gnu_ld
793with_sysroot
794enable_libtool_lock
795'
796      ac_precious_vars='build_alias
797host_alias
798target_alias
799LINALG_PREFIX
800LIBXC_PREFIX
801FC
802FCFLAGS
803LDFLAGS
804LIBS
805CC
806CFLAGS
807CPPFLAGS
808CPP'
809
810
811# Initialize some variables set by options.
812ac_init_help=
813ac_init_version=false
814ac_unrecognized_opts=
815ac_unrecognized_sep=
816# The variables have the same names as the options, with
817# dashes changed to underlines.
818cache_file=/dev/null
819exec_prefix=NONE
820no_create=
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
829verbose=
830x_includes=NONE
831x_libraries=NONE
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
838# (The list follows the same order as the GNU Coding Standards.)
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
847includedir='${prefix}/include'
848oldincludedir='/usr/include'
849docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850infodir='${datarootdir}/info'
851htmldir='${docdir}'
852dvidir='${docdir}'
853pdfdir='${docdir}'
854psdir='${docdir}'
855libdir='${exec_prefix}/lib'
856localedir='${datarootdir}/locale'
857mandir='${datarootdir}/man'
858
859ac_prev=
860ac_dashdash=
861for ac_option
862do
863  # If the previous option needs an argument, assign it.
864  if test -n "$ac_prev"; then
865    eval $ac_prev=\$ac_option
866    ac_prev=
867    continue
868  fi
869
870  case $ac_option in
871  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872  *=)   ac_optarg= ;;
873  *)    ac_optarg=yes ;;
874  esac
875
876  # Accept the important Cygnus configure options, so we can diagnose typos.
877
878  case $ac_dashdash$ac_option in
879  --)
880    ac_dashdash=yes ;;
881
882  -bindir | --bindir | --bindi | --bind | --bin | --bi)
883    ac_prev=bindir ;;
884  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885    bindir=$ac_optarg ;;
886
887  -build | --build | --buil | --bui | --bu)
888    ac_prev=build_alias ;;
889  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890    build_alias=$ac_optarg ;;
891
892  -cache-file | --cache-file | --cache-fil | --cache-fi \
893  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894    ac_prev=cache_file ;;
895  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897    cache_file=$ac_optarg ;;
898
899  --config-cache | -C)
900    cache_file=config.cache ;;
901
902  -datadir | --datadir | --datadi | --datad)
903    ac_prev=datadir ;;
904  -datadir=* | --datadir=* | --datadi=* | --datad=*)
905    datadir=$ac_optarg ;;
906
907  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908  | --dataroo | --dataro | --datar)
909    ac_prev=datarootdir ;;
910  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912    datarootdir=$ac_optarg ;;
913
914  -disable-* | --disable-*)
915    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916    # Reject names that are not valid shell variable names.
917    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918      as_fn_error $? "invalid feature name: $ac_useropt"
919    ac_useropt_orig=$ac_useropt
920    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921    case $ac_user_opts in
922      *"
923"enable_$ac_useropt"
924"*) ;;
925      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926	 ac_unrecognized_sep=', ';;
927    esac
928    eval enable_$ac_useropt=no ;;
929
930  -docdir | --docdir | --docdi | --doc | --do)
931    ac_prev=docdir ;;
932  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933    docdir=$ac_optarg ;;
934
935  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936    ac_prev=dvidir ;;
937  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938    dvidir=$ac_optarg ;;
939
940  -enable-* | --enable-*)
941    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942    # Reject names that are not valid shell variable names.
943    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944      as_fn_error $? "invalid feature name: $ac_useropt"
945    ac_useropt_orig=$ac_useropt
946    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947    case $ac_user_opts in
948      *"
949"enable_$ac_useropt"
950"*) ;;
951      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952	 ac_unrecognized_sep=', ';;
953    esac
954    eval enable_$ac_useropt=\$ac_optarg ;;
955
956  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958  | --exec | --exe | --ex)
959    ac_prev=exec_prefix ;;
960  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962  | --exec=* | --exe=* | --ex=*)
963    exec_prefix=$ac_optarg ;;
964
965  -gas | --gas | --ga | --g)
966    # Obsolete; use --with-gas.
967    with_gas=yes ;;
968
969  -help | --help | --hel | --he | -h)
970    ac_init_help=long ;;
971  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972    ac_init_help=recursive ;;
973  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974    ac_init_help=short ;;
975
976  -host | --host | --hos | --ho)
977    ac_prev=host_alias ;;
978  -host=* | --host=* | --hos=* | --ho=*)
979    host_alias=$ac_optarg ;;
980
981  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982    ac_prev=htmldir ;;
983  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984  | --ht=*)
985    htmldir=$ac_optarg ;;
986
987  -includedir | --includedir | --includedi | --included | --include \
988  | --includ | --inclu | --incl | --inc)
989    ac_prev=includedir ;;
990  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991  | --includ=* | --inclu=* | --incl=* | --inc=*)
992    includedir=$ac_optarg ;;
993
994  -infodir | --infodir | --infodi | --infod | --info | --inf)
995    ac_prev=infodir ;;
996  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997    infodir=$ac_optarg ;;
998
999  -libdir | --libdir | --libdi | --libd)
1000    ac_prev=libdir ;;
1001  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002    libdir=$ac_optarg ;;
1003
1004  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005  | --libexe | --libex | --libe)
1006    ac_prev=libexecdir ;;
1007  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008  | --libexe=* | --libex=* | --libe=*)
1009    libexecdir=$ac_optarg ;;
1010
1011  -localedir | --localedir | --localedi | --localed | --locale)
1012    ac_prev=localedir ;;
1013  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014    localedir=$ac_optarg ;;
1015
1016  -localstatedir | --localstatedir | --localstatedi | --localstated \
1017  | --localstate | --localstat | --localsta | --localst | --locals)
1018    ac_prev=localstatedir ;;
1019  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021    localstatedir=$ac_optarg ;;
1022
1023  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024    ac_prev=mandir ;;
1025  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026    mandir=$ac_optarg ;;
1027
1028  -nfp | --nfp | --nf)
1029    # Obsolete; use --without-fp.
1030    with_fp=no ;;
1031
1032  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033  | --no-cr | --no-c | -n)
1034    no_create=yes ;;
1035
1036  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038    no_recursion=yes ;;
1039
1040  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042  | --oldin | --oldi | --old | --ol | --o)
1043    ac_prev=oldincludedir ;;
1044  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047    oldincludedir=$ac_optarg ;;
1048
1049  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050    ac_prev=prefix ;;
1051  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052    prefix=$ac_optarg ;;
1053
1054  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055  | --program-pre | --program-pr | --program-p)
1056    ac_prev=program_prefix ;;
1057  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059    program_prefix=$ac_optarg ;;
1060
1061  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062  | --program-suf | --program-su | --program-s)
1063    ac_prev=program_suffix ;;
1064  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066    program_suffix=$ac_optarg ;;
1067
1068  -program-transform-name | --program-transform-name \
1069  | --program-transform-nam | --program-transform-na \
1070  | --program-transform-n | --program-transform- \
1071  | --program-transform | --program-transfor \
1072  | --program-transfo | --program-transf \
1073  | --program-trans | --program-tran \
1074  | --progr-tra | --program-tr | --program-t)
1075    ac_prev=program_transform_name ;;
1076  -program-transform-name=* | --program-transform-name=* \
1077  | --program-transform-nam=* | --program-transform-na=* \
1078  | --program-transform-n=* | --program-transform-=* \
1079  | --program-transform=* | --program-transfor=* \
1080  | --program-transfo=* | --program-transf=* \
1081  | --program-trans=* | --program-tran=* \
1082  | --progr-tra=* | --program-tr=* | --program-t=*)
1083    program_transform_name=$ac_optarg ;;
1084
1085  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086    ac_prev=pdfdir ;;
1087  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088    pdfdir=$ac_optarg ;;
1089
1090  -psdir | --psdir | --psdi | --psd | --ps)
1091    ac_prev=psdir ;;
1092  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093    psdir=$ac_optarg ;;
1094
1095  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096  | -silent | --silent | --silen | --sile | --sil)
1097    silent=yes ;;
1098
1099  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100    ac_prev=sbindir ;;
1101  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102  | --sbi=* | --sb=*)
1103    sbindir=$ac_optarg ;;
1104
1105  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107  | --sharedst | --shareds | --shared | --share | --shar \
1108  | --sha | --sh)
1109    ac_prev=sharedstatedir ;;
1110  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113  | --sha=* | --sh=*)
1114    sharedstatedir=$ac_optarg ;;
1115
1116  -site | --site | --sit)
1117    ac_prev=site ;;
1118  -site=* | --site=* | --sit=*)
1119    site=$ac_optarg ;;
1120
1121  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122    ac_prev=srcdir ;;
1123  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124    srcdir=$ac_optarg ;;
1125
1126  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127  | --syscon | --sysco | --sysc | --sys | --sy)
1128    ac_prev=sysconfdir ;;
1129  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131    sysconfdir=$ac_optarg ;;
1132
1133  -target | --target | --targe | --targ | --tar | --ta | --t)
1134    ac_prev=target_alias ;;
1135  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136    target_alias=$ac_optarg ;;
1137
1138  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139    verbose=yes ;;
1140
1141  -version | --version | --versio | --versi | --vers | -V)
1142    ac_init_version=: ;;
1143
1144  -with-* | --with-*)
1145    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146    # Reject names that are not valid shell variable names.
1147    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148      as_fn_error $? "invalid package name: $ac_useropt"
1149    ac_useropt_orig=$ac_useropt
1150    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151    case $ac_user_opts in
1152      *"
1153"with_$ac_useropt"
1154"*) ;;
1155      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156	 ac_unrecognized_sep=', ';;
1157    esac
1158    eval with_$ac_useropt=\$ac_optarg ;;
1159
1160  -without-* | --without-*)
1161    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162    # Reject names that are not valid shell variable names.
1163    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164      as_fn_error $? "invalid package name: $ac_useropt"
1165    ac_useropt_orig=$ac_useropt
1166    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167    case $ac_user_opts in
1168      *"
1169"with_$ac_useropt"
1170"*) ;;
1171      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172	 ac_unrecognized_sep=', ';;
1173    esac
1174    eval with_$ac_useropt=no ;;
1175
1176  --x)
1177    # Obsolete; use --with-x.
1178    with_x=yes ;;
1179
1180  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181  | --x-incl | --x-inc | --x-in | --x-i)
1182    ac_prev=x_includes ;;
1183  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185    x_includes=$ac_optarg ;;
1186
1187  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189    ac_prev=x_libraries ;;
1190  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192    x_libraries=$ac_optarg ;;
1193
1194  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1195Try \`$0 --help' for more information"
1196    ;;
1197
1198  *=*)
1199    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200    # Reject names that are not valid shell variable names.
1201    case $ac_envvar in #(
1202      '' | [0-9]* | *[!_$as_cr_alnum]* )
1203      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1204    esac
1205    eval $ac_envvar=\$ac_optarg
1206    export $ac_envvar ;;
1207
1208  *)
1209    # FIXME: should be removed in autoconf 3.0.
1210    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214    ;;
1215
1216  esac
1217done
1218
1219if test -n "$ac_prev"; then
1220  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221  as_fn_error $? "missing argument to $ac_option"
1222fi
1223
1224if test -n "$ac_unrecognized_opts"; then
1225  case $enable_option_checking in
1226    no) ;;
1227    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1228    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229  esac
1230fi
1231
1232# Check all directory arguments for consistency.
1233for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234		datadir sysconfdir sharedstatedir localstatedir includedir \
1235		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236		libdir localedir mandir
1237do
1238  eval ac_val=\$$ac_var
1239  # Remove trailing slashes.
1240  case $ac_val in
1241    */ )
1242      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243      eval $ac_var=\$ac_val;;
1244  esac
1245  # Be sure to have absolute directory names.
1246  case $ac_val in
1247    [\\/$]* | ?:[\\/]* )  continue;;
1248    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249  esac
1250  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1251done
1252
1253# There might be people who depend on the old broken behavior: `$host'
1254# used to hold the argument of --host etc.
1255# FIXME: To remove some day.
1256build=$build_alias
1257host=$host_alias
1258target=$target_alias
1259
1260# FIXME: To remove some day.
1261if test "x$host_alias" != x; then
1262  if test "x$build_alias" = x; then
1263    cross_compiling=maybe
1264  elif test "x$build_alias" != "x$host_alias"; then
1265    cross_compiling=yes
1266  fi
1267fi
1268
1269ac_tool_prefix=
1270test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272test "$silent" = yes && exec 6>/dev/null
1273
1274
1275ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276ac_ls_di=`ls -di .` &&
1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278  as_fn_error $? "working directory cannot be determined"
1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280  as_fn_error $? "pwd does not report name of working directory"
1281
1282
1283# Find the source files, if location was not specified.
1284if test -z "$srcdir"; then
1285  ac_srcdir_defaulted=yes
1286  # Try the directory containing this script, then the parent directory.
1287  ac_confdir=`$as_dirname -- "$as_myself" ||
1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289	 X"$as_myself" : 'X\(//\)[^/]' \| \
1290	 X"$as_myself" : 'X\(//\)$' \| \
1291	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292$as_echo X"$as_myself" |
1293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)[^/].*/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\/\)$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\).*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  s/.*/./; q'`
1310  srcdir=$ac_confdir
1311  if test ! -r "$srcdir/$ac_unique_file"; then
1312    srcdir=..
1313  fi
1314else
1315  ac_srcdir_defaulted=no
1316fi
1317if test ! -r "$srcdir/$ac_unique_file"; then
1318  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320fi
1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322ac_abs_confdir=`(
1323	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324	pwd)`
1325# When building in place, set srcdir=.
1326if test "$ac_abs_confdir" = "$ac_pwd"; then
1327  srcdir=.
1328fi
1329# Remove unnecessary trailing slashes from srcdir.
1330# Double slashes in file names in object file debugging info
1331# mess up M-x gdb in Emacs.
1332case $srcdir in
1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334esac
1335for ac_var in $ac_precious_vars; do
1336  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337  eval ac_env_${ac_var}_value=\$${ac_var}
1338  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340done
1341
1342#
1343# Report the --help message.
1344#
1345if test "$ac_init_help" = "long"; then
1346  # Omit some internal or obsolete options to make the list less imposing.
1347  # This message is too long to be a string in the A/UX 3.1 sh.
1348  cat <<_ACEOF
1349\`configure' configures AtomPAW 4.1.1.0 to adapt to many kinds of systems.
1350
1351Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354VAR=VALUE.  See below for descriptions of some of the useful variables.
1355
1356Defaults for the options are specified in brackets.
1357
1358Configuration:
1359  -h, --help              display this help and exit
1360      --help=short        display options specific to this package
1361      --help=recursive    display the short help of all the included packages
1362  -V, --version           display version information and exit
1363  -q, --quiet, --silent   do not print \`checking ...' messages
1364      --cache-file=FILE   cache test results in FILE [disabled]
1365  -C, --config-cache      alias for \`--cache-file=config.cache'
1366  -n, --no-create         do not create output files
1367      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1368
1369Installation directories:
1370  --prefix=PREFIX         install architecture-independent files in PREFIX
1371                          [$ac_default_prefix]
1372  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1373                          [PREFIX]
1374
1375By default, \`make install' will install all the files in
1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1377an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378for instance \`--prefix=\$HOME'.
1379
1380For better control, use the options below.
1381
1382Fine tuning of the installation directories:
1383  --bindir=DIR            user executables [EPREFIX/bin]
1384  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1385  --libexecdir=DIR        program executables [EPREFIX/libexec]
1386  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1387  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1388  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1389  --libdir=DIR            object code libraries [EPREFIX/lib]
1390  --includedir=DIR        C header files [PREFIX/include]
1391  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1392  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1393  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1394  --infodir=DIR           info documentation [DATAROOTDIR/info]
1395  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1396  --mandir=DIR            man documentation [DATAROOTDIR/man]
1397  --docdir=DIR            documentation root [DATAROOTDIR/doc/atompaw]
1398  --htmldir=DIR           html documentation [DOCDIR]
1399  --dvidir=DIR            dvi documentation [DOCDIR]
1400  --pdfdir=DIR            pdf documentation [DOCDIR]
1401  --psdir=DIR             ps documentation [DOCDIR]
1402_ACEOF
1403
1404  cat <<\_ACEOF
1405
1406Program names:
1407  --program-prefix=PREFIX            prepend PREFIX to installed program names
1408  --program-suffix=SUFFIX            append SUFFIX to installed program names
1409  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1410
1411System types:
1412  --build=BUILD     configure for building on BUILD [guessed]
1413  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1414  --target=TARGET   configure for building compilers for TARGET [HOST]
1415_ACEOF
1416fi
1417
1418if test -n "$ac_init_help"; then
1419  case $ac_init_help in
1420     short | recursive ) echo "Configuration of AtomPAW 4.1.1.0:";;
1421   esac
1422  cat <<\_ACEOF
1423
1424Optional Features:
1425  --disable-option-checking  ignore unrecognized --enable/--with options
1426  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1427  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1428  --enable-silent-rules   less verbose build output (undo: "make V=1")
1429  --disable-silent-rules  verbose build output (undo: "make V=0")
1430
1431    --enable-libxc          Enable the use of LibXC for exchange-correlation
1432  --enable-shared[=PKGS]  build shared libraries [default=no]
1433  --enable-static[=PKGS]  build static libraries [default=yes]
1434  --enable-fast-install[=PKGS]
1435                          optimize for fast installation [default=yes]
1436  --enable-dependency-tracking
1437                          do not reject slow dependency extractors
1438  --disable-dependency-tracking
1439                          speeds up one-time build
1440  --disable-libtool-lock  avoid locking (might break parallel builds)
1441
1442Optional Packages:
1443  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1444  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1445
1446    --with-fc-vendor        Select a particular Fortran compiler vendor
1447
1448    --with-fc-version       Select a particular Fortran compiler version
1449
1450    --with-libxc-incs       LibXC includes flags for headers (e.g. -I...)
1451
1452    --with-libxc-libs       LibXC library flags to link with (e.g. -L... -lxc)
1453
1454    --with-libxc-prefix     LibXC installation root directory (e.g. /usr/local,
1455                          ...)
1456
1457    --with-linalg-libs      Linear algebra libraries flags to link with (e.g.
1458                          -L... -lblas -llapack)
1459
1460    --with-linalg-prefix    Linear Algebra libraries installation root directory
1461                          (e.g. /usr/local, ...)
1462  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1463                          both]
1464  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1465  --with-sysroot=DIR Search for dependent libraries within DIR
1466                        (or the compiler's sysroot if not specified).
1467
1468Some influential environment variables:
1469  LINALG_PREFIX
1470              Directory where to search for linear algebra libraries
1471  LIBXC_PREFIX
1472              Directory where to search for libXC library
1473  FC          Fortran compiler command
1474  FCFLAGS     Fortran compiler flags
1475  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1476              nonstandard directory <lib dir>
1477  LIBS        libraries to pass to the linker, e.g. -l<library>
1478  CC          C compiler command
1479  CFLAGS      C compiler flags
1480  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1481              you have headers in a nonstandard directory <include dir>
1482  CPP         C preprocessor
1483
1484Use these variables to override the choices made by `configure' or to help
1485it to find libraries and programs with nonstandard names/locations.
1486
1487Report bugs to <natalie@wfu.edu, marc.torrent@cea.fr>.
1488_ACEOF
1489ac_status=$?
1490fi
1491
1492if test "$ac_init_help" = "recursive"; then
1493  # If there are subdirs, report their specific --help.
1494  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495    test -d "$ac_dir" ||
1496      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497      continue
1498    ac_builddir=.
1499
1500case "$ac_dir" in
1501.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502*)
1503  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504  # A ".." for each directory in $ac_dir_suffix.
1505  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506  case $ac_top_builddir_sub in
1507  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509  esac ;;
1510esac
1511ac_abs_top_builddir=$ac_pwd
1512ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513# for backward compatibility:
1514ac_top_builddir=$ac_top_build_prefix
1515
1516case $srcdir in
1517  .)  # We are building in place.
1518    ac_srcdir=.
1519    ac_top_srcdir=$ac_top_builddir_sub
1520    ac_abs_top_srcdir=$ac_pwd ;;
1521  [\\/]* | ?:[\\/]* )  # Absolute name.
1522    ac_srcdir=$srcdir$ac_dir_suffix;
1523    ac_top_srcdir=$srcdir
1524    ac_abs_top_srcdir=$srcdir ;;
1525  *) # Relative name.
1526    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527    ac_top_srcdir=$ac_top_build_prefix$srcdir
1528    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529esac
1530ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
1532    cd "$ac_dir" || { ac_status=$?; continue; }
1533    # Check for guested configure.
1534    if test -f "$ac_srcdir/configure.gnu"; then
1535      echo &&
1536      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537    elif test -f "$ac_srcdir/configure"; then
1538      echo &&
1539      $SHELL "$ac_srcdir/configure" --help=recursive
1540    else
1541      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542    fi || ac_status=$?
1543    cd "$ac_pwd" || { ac_status=$?; break; }
1544  done
1545fi
1546
1547test -n "$ac_init_help" && exit $ac_status
1548if $ac_init_version; then
1549  cat <<\_ACEOF
1550AtomPAW configure 4.1.1.0
1551generated by GNU Autoconf 2.69
1552
1553Copyright (C) 2012 Free Software Foundation, Inc.
1554This configure script is free software; the Free Software Foundation
1555gives unlimited permission to copy, distribute and modify it.
1556_ACEOF
1557  exit
1558fi
1559
1560## ------------------------ ##
1561## Autoconf initialization. ##
1562## ------------------------ ##
1563
1564# ac_fn_fc_try_compile LINENO
1565# ---------------------------
1566# Try to compile conftest.$ac_ext, and return whether this succeeded.
1567ac_fn_fc_try_compile ()
1568{
1569  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570  rm -f conftest.$ac_objext
1571  if { { ac_try="$ac_compile"
1572case "(($ac_try" in
1573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574  *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
1578  (eval "$ac_compile") 2>conftest.err
1579  ac_status=$?
1580  if test -s conftest.err; then
1581    grep -v '^ *+' conftest.err >conftest.er1
1582    cat conftest.er1 >&5
1583    mv -f conftest.er1 conftest.err
1584  fi
1585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586  test $ac_status = 0; } && {
1587	 test -z "$ac_fc_werror_flag" ||
1588	 test ! -s conftest.err
1589       } && test -s conftest.$ac_objext; then :
1590  ac_retval=0
1591else
1592  $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
1594
1595	ac_retval=1
1596fi
1597  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598  as_fn_set_status $ac_retval
1599
1600} # ac_fn_fc_try_compile
1601
1602# ac_fn_fc_try_link LINENO
1603# ------------------------
1604# Try to link conftest.$ac_ext, and return whether this succeeded.
1605ac_fn_fc_try_link ()
1606{
1607  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608  rm -f conftest.$ac_objext conftest$ac_exeext
1609  if { { ac_try="$ac_link"
1610case "(($ac_try" in
1611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612  *) ac_try_echo=$ac_try;;
1613esac
1614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615$as_echo "$ac_try_echo"; } >&5
1616  (eval "$ac_link") 2>conftest.err
1617  ac_status=$?
1618  if test -s conftest.err; then
1619    grep -v '^ *+' conftest.err >conftest.er1
1620    cat conftest.er1 >&5
1621    mv -f conftest.er1 conftest.err
1622  fi
1623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624  test $ac_status = 0; } && {
1625	 test -z "$ac_fc_werror_flag" ||
1626	 test ! -s conftest.err
1627       } && test -s conftest$ac_exeext && {
1628	 test "$cross_compiling" = yes ||
1629	 test -x conftest$ac_exeext
1630       }; then :
1631  ac_retval=0
1632else
1633  $as_echo "$as_me: failed program was:" >&5
1634sed 's/^/| /' conftest.$ac_ext >&5
1635
1636	ac_retval=1
1637fi
1638  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1639  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1640  # interfere with the next link command; also delete a directory that is
1641  # left behind by Apple's compiler.  We do this before executing the actions.
1642  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644  as_fn_set_status $ac_retval
1645
1646} # ac_fn_fc_try_link
1647
1648# ac_fn_c_try_compile LINENO
1649# --------------------------
1650# Try to compile conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_c_try_compile ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  rm -f conftest.$ac_objext
1655  if { { ac_try="$ac_compile"
1656case "(($ac_try" in
1657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658  *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662  (eval "$ac_compile") 2>conftest.err
1663  ac_status=$?
1664  if test -s conftest.err; then
1665    grep -v '^ *+' conftest.err >conftest.er1
1666    cat conftest.er1 >&5
1667    mv -f conftest.er1 conftest.err
1668  fi
1669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670  test $ac_status = 0; } && {
1671	 test -z "$ac_c_werror_flag" ||
1672	 test ! -s conftest.err
1673       } && test -s conftest.$ac_objext; then :
1674  ac_retval=0
1675else
1676  $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679	ac_retval=1
1680fi
1681  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682  as_fn_set_status $ac_retval
1683
1684} # ac_fn_c_try_compile
1685
1686# ac_fn_c_try_link LINENO
1687# -----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_link ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  rm -f conftest.$ac_objext conftest$ac_exeext
1693  if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_link") 2>conftest.err
1701  ac_status=$?
1702  if test -s conftest.err; then
1703    grep -v '^ *+' conftest.err >conftest.er1
1704    cat conftest.er1 >&5
1705    mv -f conftest.er1 conftest.err
1706  fi
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } && {
1709	 test -z "$ac_c_werror_flag" ||
1710	 test ! -s conftest.err
1711       } && test -s conftest$ac_exeext && {
1712	 test "$cross_compiling" = yes ||
1713	 test -x conftest$ac_exeext
1714       }; then :
1715  ac_retval=0
1716else
1717  $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720	ac_retval=1
1721fi
1722  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724  # interfere with the next link command; also delete a directory that is
1725  # left behind by Apple's compiler.  We do this before executing the actions.
1726  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728  as_fn_set_status $ac_retval
1729
1730} # ac_fn_c_try_link
1731
1732# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1733# -------------------------------------------------------
1734# Tests whether HEADER exists and can be compiled using the include files in
1735# INCLUDES, setting the cache variable VAR accordingly.
1736ac_fn_c_check_header_compile ()
1737{
1738  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740$as_echo_n "checking for $2... " >&6; }
1741if eval \${$3+:} false; then :
1742  $as_echo_n "(cached) " >&6
1743else
1744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745/* end confdefs.h.  */
1746$4
1747#include <$2>
1748_ACEOF
1749if ac_fn_c_try_compile "$LINENO"; then :
1750  eval "$3=yes"
1751else
1752  eval "$3=no"
1753fi
1754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755fi
1756eval ac_res=\$$3
1757	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758$as_echo "$ac_res" >&6; }
1759  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
1761} # ac_fn_c_check_header_compile
1762
1763# ac_fn_c_try_cpp LINENO
1764# ----------------------
1765# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_cpp ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  if { { ac_try="$ac_cpp conftest.$ac_ext"
1770case "(($ac_try" in
1771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772  *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777  ac_status=$?
1778  if test -s conftest.err; then
1779    grep -v '^ *+' conftest.err >conftest.er1
1780    cat conftest.er1 >&5
1781    mv -f conftest.er1 conftest.err
1782  fi
1783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784  test $ac_status = 0; } > conftest.i && {
1785	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786	 test ! -s conftest.err
1787       }; then :
1788  ac_retval=0
1789else
1790  $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793    ac_retval=1
1794fi
1795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796  as_fn_set_status $ac_retval
1797
1798} # ac_fn_c_try_cpp
1799
1800# ac_fn_c_try_run LINENO
1801# ----------------------
1802# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1803# that executables *can* be run.
1804ac_fn_c_try_run ()
1805{
1806  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807  if { { ac_try="$ac_link"
1808case "(($ac_try" in
1809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810  *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814  (eval "$ac_link") 2>&5
1815  ac_status=$?
1816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1818  { { case "(($ac_try" in
1819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820  *) ac_try_echo=$ac_try;;
1821esac
1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823$as_echo "$ac_try_echo"; } >&5
1824  (eval "$ac_try") 2>&5
1825  ac_status=$?
1826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827  test $ac_status = 0; }; }; then :
1828  ac_retval=0
1829else
1830  $as_echo "$as_me: program exited with status $ac_status" >&5
1831       $as_echo "$as_me: failed program was:" >&5
1832sed 's/^/| /' conftest.$ac_ext >&5
1833
1834       ac_retval=$ac_status
1835fi
1836  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838  as_fn_set_status $ac_retval
1839
1840} # ac_fn_c_try_run
1841
1842# ac_fn_c_check_func LINENO FUNC VAR
1843# ----------------------------------
1844# Tests whether FUNC exists, setting the cache variable VAR accordingly
1845ac_fn_c_check_func ()
1846{
1847  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849$as_echo_n "checking for $2... " >&6; }
1850if eval \${$3+:} false; then :
1851  $as_echo_n "(cached) " >&6
1852else
1853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854/* end confdefs.h.  */
1855/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1856   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1857#define $2 innocuous_$2
1858
1859/* System header to define __stub macros and hopefully few prototypes,
1860    which can conflict with char $2 (); below.
1861    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1862    <limits.h> exists even on freestanding compilers.  */
1863
1864#ifdef __STDC__
1865# include <limits.h>
1866#else
1867# include <assert.h>
1868#endif
1869
1870#undef $2
1871
1872/* Override any GCC internal prototype to avoid an error.
1873   Use char because int might match the return type of a GCC
1874   builtin and then its argument prototype would still apply.  */
1875#ifdef __cplusplus
1876extern "C"
1877#endif
1878char $2 ();
1879/* The GNU C library defines this for functions which it implements
1880    to always fail with ENOSYS.  Some functions are actually named
1881    something starting with __ and the normal name is an alias.  */
1882#if defined __stub_$2 || defined __stub___$2
1883choke me
1884#endif
1885
1886int
1887main ()
1888{
1889return $2 ();
1890  ;
1891  return 0;
1892}
1893_ACEOF
1894if ac_fn_c_try_link "$LINENO"; then :
1895  eval "$3=yes"
1896else
1897  eval "$3=no"
1898fi
1899rm -f core conftest.err conftest.$ac_objext \
1900    conftest$ac_exeext conftest.$ac_ext
1901fi
1902eval ac_res=\$$3
1903	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904$as_echo "$ac_res" >&6; }
1905  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906
1907} # ac_fn_c_check_func
1908
1909# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1910# -------------------------------------------------------
1911# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1912# the include files in INCLUDES and setting the cache variable VAR
1913# accordingly.
1914ac_fn_c_check_header_mongrel ()
1915{
1916  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917  if eval \${$3+:} false; then :
1918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if eval \${$3+:} false; then :
1921  $as_echo_n "(cached) " >&6
1922fi
1923eval ac_res=\$$3
1924	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925$as_echo "$ac_res" >&6; }
1926else
1927  # Is the header compilable?
1928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1929$as_echo_n "checking $2 usability... " >&6; }
1930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931/* end confdefs.h.  */
1932$4
1933#include <$2>
1934_ACEOF
1935if ac_fn_c_try_compile "$LINENO"; then :
1936  ac_header_compiler=yes
1937else
1938  ac_header_compiler=no
1939fi
1940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1942$as_echo "$ac_header_compiler" >&6; }
1943
1944# Is the header present?
1945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1946$as_echo_n "checking $2 presence... " >&6; }
1947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948/* end confdefs.h.  */
1949#include <$2>
1950_ACEOF
1951if ac_fn_c_try_cpp "$LINENO"; then :
1952  ac_header_preproc=yes
1953else
1954  ac_header_preproc=no
1955fi
1956rm -f conftest.err conftest.i conftest.$ac_ext
1957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1958$as_echo "$ac_header_preproc" >&6; }
1959
1960# So?  What about this header?
1961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1962  yes:no: )
1963    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1964$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1965    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1966$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967    ;;
1968  no:yes:* )
1969    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1970$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1971    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1972$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1973    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1974$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1975    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1976$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1977    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1978$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979( $as_echo "## mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm ##
1980## Report this to natalie@wfu.edu ##
1981## mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm ##"
1982     ) | sed "s/^/$as_me: WARNING:     /" >&2
1983    ;;
1984esac
1985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986$as_echo_n "checking for $2... " >&6; }
1987if eval \${$3+:} false; then :
1988  $as_echo_n "(cached) " >&6
1989else
1990  eval "$3=\$ac_header_compiler"
1991fi
1992eval ac_res=\$$3
1993	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994$as_echo "$ac_res" >&6; }
1995fi
1996  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997
1998} # ac_fn_c_check_header_mongrel
1999cat >config.log <<_ACEOF
2000This file contains any messages produced by compilers while
2001running configure, to aid debugging if configure makes a mistake.
2002
2003It was created by AtomPAW $as_me 4.1.1.0, which was
2004generated by GNU Autoconf 2.69.  Invocation command line was
2005
2006  $ $0 $@
2007
2008_ACEOF
2009exec 5>>config.log
2010{
2011cat <<_ASUNAME
2012## --------- ##
2013## Platform. ##
2014## --------- ##
2015
2016hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2017uname -m = `(uname -m) 2>/dev/null || echo unknown`
2018uname -r = `(uname -r) 2>/dev/null || echo unknown`
2019uname -s = `(uname -s) 2>/dev/null || echo unknown`
2020uname -v = `(uname -v) 2>/dev/null || echo unknown`
2021
2022/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2023/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2024
2025/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2026/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2027/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2028/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2029/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2030/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2031/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2032
2033_ASUNAME
2034
2035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH
2037do
2038  IFS=$as_save_IFS
2039  test -z "$as_dir" && as_dir=.
2040    $as_echo "PATH: $as_dir"
2041  done
2042IFS=$as_save_IFS
2043
2044} >&5
2045
2046cat >&5 <<_ACEOF
2047
2048
2049## ----------- ##
2050## Core tests. ##
2051## ----------- ##
2052
2053_ACEOF
2054
2055
2056# Keep a trace of the command line.
2057# Strip out --no-create and --no-recursion so they do not pile up.
2058# Strip out --silent because we don't want to record it for future runs.
2059# Also quote any args containing shell meta-characters.
2060# Make two passes to allow for proper duplicate-argument suppression.
2061ac_configure_args=
2062ac_configure_args0=
2063ac_configure_args1=
2064ac_must_keep_next=false
2065for ac_pass in 1 2
2066do
2067  for ac_arg
2068  do
2069    case $ac_arg in
2070    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2071    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2072    | -silent | --silent | --silen | --sile | --sil)
2073      continue ;;
2074    *\'*)
2075      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2076    esac
2077    case $ac_pass in
2078    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2079    2)
2080      as_fn_append ac_configure_args1 " '$ac_arg'"
2081      if test $ac_must_keep_next = true; then
2082	ac_must_keep_next=false # Got value, back to normal.
2083      else
2084	case $ac_arg in
2085	  *=* | --config-cache | -C | -disable-* | --disable-* \
2086	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2087	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2088	  | -with-* | --with-* | -without-* | --without-* | --x)
2089	    case "$ac_configure_args0 " in
2090	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2091	    esac
2092	    ;;
2093	  -* ) ac_must_keep_next=true ;;
2094	esac
2095      fi
2096      as_fn_append ac_configure_args " '$ac_arg'"
2097      ;;
2098    esac
2099  done
2100done
2101{ ac_configure_args0=; unset ac_configure_args0;}
2102{ ac_configure_args1=; unset ac_configure_args1;}
2103
2104# When interrupted or exit'd, cleanup temporary files, and complete
2105# config.log.  We remove comments because anyway the quotes in there
2106# would cause problems or look ugly.
2107# WARNING: Use '\'' to represent an apostrophe within the trap.
2108# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2109trap 'exit_status=$?
2110  # Save into config.log some information that might help in debugging.
2111  {
2112    echo
2113
2114    $as_echo "## ---------------- ##
2115## Cache variables. ##
2116## ---------------- ##"
2117    echo
2118    # The following way of writing the cache mishandles newlines in values,
2119(
2120  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2121    eval ac_val=\$$ac_var
2122    case $ac_val in #(
2123    *${as_nl}*)
2124      case $ac_var in #(
2125      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2126$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2127      esac
2128      case $ac_var in #(
2129      _ | IFS | as_nl) ;; #(
2130      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2131      *) { eval $ac_var=; unset $ac_var;} ;;
2132      esac ;;
2133    esac
2134  done
2135  (set) 2>&1 |
2136    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2137    *${as_nl}ac_space=\ *)
2138      sed -n \
2139	"s/'\''/'\''\\\\'\'''\''/g;
2140	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2141      ;; #(
2142    *)
2143      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2144      ;;
2145    esac |
2146    sort
2147)
2148    echo
2149
2150    $as_echo "## ----------------- ##
2151## Output variables. ##
2152## ----------------- ##"
2153    echo
2154    for ac_var in $ac_subst_vars
2155    do
2156      eval ac_val=\$$ac_var
2157      case $ac_val in
2158      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159      esac
2160      $as_echo "$ac_var='\''$ac_val'\''"
2161    done | sort
2162    echo
2163
2164    if test -n "$ac_subst_files"; then
2165      $as_echo "## ------------------- ##
2166## File substitutions. ##
2167## ------------------- ##"
2168      echo
2169      for ac_var in $ac_subst_files
2170      do
2171	eval ac_val=\$$ac_var
2172	case $ac_val in
2173	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174	esac
2175	$as_echo "$ac_var='\''$ac_val'\''"
2176      done | sort
2177      echo
2178    fi
2179
2180    if test -s confdefs.h; then
2181      $as_echo "## ----------- ##
2182## confdefs.h. ##
2183## ----------- ##"
2184      echo
2185      cat confdefs.h
2186      echo
2187    fi
2188    test "$ac_signal" != 0 &&
2189      $as_echo "$as_me: caught signal $ac_signal"
2190    $as_echo "$as_me: exit $exit_status"
2191  } >&5
2192  rm -f core *.core core.conftest.* &&
2193    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2194    exit $exit_status
2195' 0
2196for ac_signal in 1 2 13 15; do
2197  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2198done
2199ac_signal=0
2200
2201# confdefs.h avoids OS command line length limits that DEFS can exceed.
2202rm -f -r conftest* confdefs.h
2203
2204$as_echo "/* confdefs.h */" > confdefs.h
2205
2206# Predefined preprocessor variables.
2207
2208cat >>confdefs.h <<_ACEOF
2209#define PACKAGE_NAME "$PACKAGE_NAME"
2210_ACEOF
2211
2212cat >>confdefs.h <<_ACEOF
2213#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2214_ACEOF
2215
2216cat >>confdefs.h <<_ACEOF
2217#define PACKAGE_VERSION "$PACKAGE_VERSION"
2218_ACEOF
2219
2220cat >>confdefs.h <<_ACEOF
2221#define PACKAGE_STRING "$PACKAGE_STRING"
2222_ACEOF
2223
2224cat >>confdefs.h <<_ACEOF
2225#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2226_ACEOF
2227
2228cat >>confdefs.h <<_ACEOF
2229#define PACKAGE_URL "$PACKAGE_URL"
2230_ACEOF
2231
2232
2233# Let the site file select an alternate cache file if it wants to.
2234# Prefer an explicitly selected file to automatically selected ones.
2235ac_site_file1=NONE
2236ac_site_file2=NONE
2237if test -n "$CONFIG_SITE"; then
2238  # We do not want a PATH search for config.site.
2239  case $CONFIG_SITE in #((
2240    -*)  ac_site_file1=./$CONFIG_SITE;;
2241    */*) ac_site_file1=$CONFIG_SITE;;
2242    *)   ac_site_file1=./$CONFIG_SITE;;
2243  esac
2244elif test "x$prefix" != xNONE; then
2245  ac_site_file1=$prefix/share/config.site
2246  ac_site_file2=$prefix/etc/config.site
2247else
2248  ac_site_file1=$ac_default_prefix/share/config.site
2249  ac_site_file2=$ac_default_prefix/etc/config.site
2250fi
2251for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2252do
2253  test "x$ac_site_file" = xNONE && continue
2254  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2255    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2256$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2257    sed 's/^/| /' "$ac_site_file" >&5
2258    . "$ac_site_file" \
2259      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261as_fn_error $? "failed to load site script $ac_site_file
2262See \`config.log' for more details" "$LINENO" 5; }
2263  fi
2264done
2265
2266if test -r "$cache_file"; then
2267  # Some versions of bash will fail to source /dev/null (special files
2268  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2269  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2270    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2271$as_echo "$as_me: loading cache $cache_file" >&6;}
2272    case $cache_file in
2273      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2274      *)                      . "./$cache_file";;
2275    esac
2276  fi
2277else
2278  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2279$as_echo "$as_me: creating cache $cache_file" >&6;}
2280  >$cache_file
2281fi
2282
2283# Check that the precious variables saved in the cache have kept the same
2284# value.
2285ac_cache_corrupted=false
2286for ac_var in $ac_precious_vars; do
2287  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2288  eval ac_new_set=\$ac_env_${ac_var}_set
2289  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2290  eval ac_new_val=\$ac_env_${ac_var}_value
2291  case $ac_old_set,$ac_new_set in
2292    set,)
2293      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2294$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2295      ac_cache_corrupted=: ;;
2296    ,set)
2297      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2298$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2299      ac_cache_corrupted=: ;;
2300    ,);;
2301    *)
2302      if test "x$ac_old_val" != "x$ac_new_val"; then
2303	# differences in whitespace do not lead to failure.
2304	ac_old_val_w=`echo x $ac_old_val`
2305	ac_new_val_w=`echo x $ac_new_val`
2306	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2307	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2308$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2309	  ac_cache_corrupted=:
2310	else
2311	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2312$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2313	  eval $ac_var=\$ac_old_val
2314	fi
2315	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2316$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2317	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2318$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2319      fi;;
2320  esac
2321  # Pass precious variables to config.status.
2322  if test "$ac_new_set" = set; then
2323    case $ac_new_val in
2324    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2325    *) ac_arg=$ac_var=$ac_new_val ;;
2326    esac
2327    case " $ac_configure_args " in
2328      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2329      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2330    esac
2331  fi
2332done
2333if $ac_cache_corrupted; then
2334  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2337$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2338  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2339fi
2340## -------------------- ##
2341## Main body of script. ##
2342## -------------------- ##
2343
2344ac_ext=c
2345ac_cpp='$CPP $CPPFLAGS'
2346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349
2350
2351
2352ac_aux_dir=
2353for ac_dir in config/gnu "$srcdir"/config/gnu; do
2354  if test -f "$ac_dir/install-sh"; then
2355    ac_aux_dir=$ac_dir
2356    ac_install_sh="$ac_aux_dir/install-sh -c"
2357    break
2358  elif test -f "$ac_dir/install.sh"; then
2359    ac_aux_dir=$ac_dir
2360    ac_install_sh="$ac_aux_dir/install.sh -c"
2361    break
2362  elif test -f "$ac_dir/shtool"; then
2363    ac_aux_dir=$ac_dir
2364    ac_install_sh="$ac_aux_dir/shtool install -c"
2365    break
2366  fi
2367done
2368if test -z "$ac_aux_dir"; then
2369  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config/gnu \"$srcdir\"/config/gnu" "$LINENO" 5
2370fi
2371
2372# These three variables are undocumented and unsupported,
2373# and are intended to be withdrawn in a future Autoconf release.
2374# They can cause serious problems if a builder's source tree is in a directory
2375# whose full name contains unusual characters.
2376ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2377ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2378ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2379
2380
2381
2382
2383
2384# Regenerate the VERSION file
2385# Note: remember that some editors break long lines
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: regenerating the VERSION file" >&5
2387$as_echo "$as_me: regenerating the VERSION file" >&6;}
2388ac_builddir=.
2389
2390case "." in
2391.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2392*)
2393  ac_dir_suffix=/`$as_echo "." | sed 's|^\.[\\/]||'`
2394  # A ".." for each directory in $ac_dir_suffix.
2395  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2396  case $ac_top_builddir_sub in
2397  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2398  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2399  esac ;;
2400esac
2401ac_abs_top_builddir=$ac_pwd
2402ac_abs_builddir=$ac_pwd$ac_dir_suffix
2403# for backward compatibility:
2404ac_top_builddir=$ac_top_build_prefix
2405
2406case $srcdir in
2407  .)  # We are building in place.
2408    ac_srcdir=.
2409    ac_top_srcdir=$ac_top_builddir_sub
2410    ac_abs_top_srcdir=$ac_pwd ;;
2411  [\\/]* | ?:[\\/]* )  # Absolute name.
2412    ac_srcdir=$srcdir$ac_dir_suffix;
2413    ac_top_srcdir=$srcdir
2414    ac_abs_top_srcdir=$srcdir ;;
2415  *) # Relative name.
2416    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2417    ac_top_srcdir=$ac_top_build_prefix$srcdir
2418    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2419esac
2420ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2421
2422cat >"${ac_abs_top_srcdir}/VERSION" <<EOF
2423!- Version ${PACKAGE_VERSION} - 11/2020 - MT,FJ added LDA-1/2 potential
2424EOF
2425#!--- Version ${PACKAGE_VERSION} - 11/2020 - MT introduce std I/O variables
2426#!--- Version ${PACKAGE_VERSION} - 11/2020 - MT change input reading design
2427#!--- Version ${PACKAGE_VERSION} - 06/2019 - MT,FJ,NH overlap>0, core kinetic
2428#!--- Version ${PACKAGE_VERSION} - 12/2018 - MT modified abinitinterface pbesol
2429#!--- Version ${PACKAGE_VERSION} - 09/2018 - NH check for positive xc argument
2430#!--- Version ${PACKAGE_VERSION} - 07/2018 - MT fixed some libxc issues
2431#!--- Version ${PACKAGE_VERSION} - 05/2018 - mod. abinitinterface, other updates
2432#!--- Version ${PACKAGE_VERSION} - 03/2018 - MT enabled libxc4
2433#!--- Version ${PACKAGE_VERSION} - 01/2018 - Dirac solver available for graphatom
2434#!--- Version ${PACKAGE_VERSION} - 09/2017 - LibXC C API now used + libXC detection improved
2435#!--- Version ${PACKAGE_VERSION} - 12/2016 - Finite-Nucleus fixed for DFT
2436#!--- Version ${PACKAGE_VERSION} - 02/2016 - XML output improved; --version command line option
2437#!--- Version ${PACKAGE_VERSION} - 03/2015 - PBESOL ; SOCCORO output
2438#!--- Version ${PACKAGE_VERSION} - 08/2014 - portability corrections; rename f90 in F90
2439#!--- Version ${PACKAGE_VERSION} - 08/2014 - added exchange core-valence terms
2440#!--- Version ${PACKAGE_VERSION} - 01/2014 - solver, coretail, xml corr.
2441#!--- Version ${PACKAGE_VERSION} - 11/2013 - solver fixed; 1/2014 coretail
2442
2443# Initialize Automake
2444# Make sure we can run config.sub.
2445$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2446  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2447
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2449$as_echo_n "checking build system type... " >&6; }
2450if ${ac_cv_build+:} false; then :
2451  $as_echo_n "(cached) " >&6
2452else
2453  ac_build_alias=$build_alias
2454test "x$ac_build_alias" = x &&
2455  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2456test "x$ac_build_alias" = x &&
2457  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2458ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2459  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2460
2461fi
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2463$as_echo "$ac_cv_build" >&6; }
2464case $ac_cv_build in
2465*-*-*) ;;
2466*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2467esac
2468build=$ac_cv_build
2469ac_save_IFS=$IFS; IFS='-'
2470set x $ac_cv_build
2471shift
2472build_cpu=$1
2473build_vendor=$2
2474shift; shift
2475# Remember, the first character of IFS is used to create $*,
2476# except with old shells:
2477build_os=$*
2478IFS=$ac_save_IFS
2479case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2480
2481
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2483$as_echo_n "checking host system type... " >&6; }
2484if ${ac_cv_host+:} false; then :
2485  $as_echo_n "(cached) " >&6
2486else
2487  if test "x$host_alias" = x; then
2488  ac_cv_host=$ac_cv_build
2489else
2490  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2491    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2492fi
2493
2494fi
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2496$as_echo "$ac_cv_host" >&6; }
2497case $ac_cv_host in
2498*-*-*) ;;
2499*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2500esac
2501host=$ac_cv_host
2502ac_save_IFS=$IFS; IFS='-'
2503set x $ac_cv_host
2504shift
2505host_cpu=$1
2506host_vendor=$2
2507shift; shift
2508# Remember, the first character of IFS is used to create $*,
2509# except with old shells:
2510host_os=$*
2511IFS=$ac_save_IFS
2512case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2513
2514
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2516$as_echo_n "checking target system type... " >&6; }
2517if ${ac_cv_target+:} false; then :
2518  $as_echo_n "(cached) " >&6
2519else
2520  if test "x$target_alias" = x; then
2521  ac_cv_target=$ac_cv_host
2522else
2523  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2524    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2525fi
2526
2527fi
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2529$as_echo "$ac_cv_target" >&6; }
2530case $ac_cv_target in
2531*-*-*) ;;
2532*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2533esac
2534target=$ac_cv_target
2535ac_save_IFS=$IFS; IFS='-'
2536set x $ac_cv_target
2537shift
2538target_cpu=$1
2539target_vendor=$2
2540shift; shift
2541# Remember, the first character of IFS is used to create $*,
2542# except with old shells:
2543target_os=$*
2544IFS=$ac_save_IFS
2545case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2546
2547
2548# The aliases save the names the user supplied, while $host etc.
2549# will get canonicalized.
2550test -n "$target_alias" &&
2551  test "$program_prefix$program_suffix$program_transform_name" = \
2552    NONENONEs,x,x, &&
2553  program_prefix=${target_alias}-
2554am__api_version='1.13'
2555
2556# Find a good install program.  We prefer a C program (faster),
2557# so one script is as good as another.  But avoid the broken or
2558# incompatible versions:
2559# SysV /etc/install, /usr/sbin/install
2560# SunOS /usr/etc/install
2561# IRIX /sbin/install
2562# AIX /bin/install
2563# AmigaOS /C/install, which installs bootblocks on floppy discs
2564# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2565# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2566# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2567# OS/2's system install, which has a completely different semantic
2568# ./install, which can be erroneously created by make from ./install.sh.
2569# Reject install programs that cannot install multiple files.
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2571$as_echo_n "checking for a BSD-compatible install... " >&6; }
2572if test -z "$INSTALL"; then
2573if ${ac_cv_path_install+:} false; then :
2574  $as_echo_n "(cached) " >&6
2575else
2576  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579  IFS=$as_save_IFS
2580  test -z "$as_dir" && as_dir=.
2581    # Account for people who put trailing slashes in PATH elements.
2582case $as_dir/ in #((
2583  ./ | .// | /[cC]/* | \
2584  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2585  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2586  /usr/ucb/* ) ;;
2587  *)
2588    # OSF1 and SCO ODT 3.0 have their own names for install.
2589    # Don't use installbsd from OSF since it installs stuff as root
2590    # by default.
2591    for ac_prog in ginstall scoinst install; do
2592      for ac_exec_ext in '' $ac_executable_extensions; do
2593	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2594	  if test $ac_prog = install &&
2595	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2596	    # AIX install.  It has an incompatible calling convention.
2597	    :
2598	  elif test $ac_prog = install &&
2599	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2600	    # program-specific install script used by HP pwplus--don't use.
2601	    :
2602	  else
2603	    rm -rf conftest.one conftest.two conftest.dir
2604	    echo one > conftest.one
2605	    echo two > conftest.two
2606	    mkdir conftest.dir
2607	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2608	      test -s conftest.one && test -s conftest.two &&
2609	      test -s conftest.dir/conftest.one &&
2610	      test -s conftest.dir/conftest.two
2611	    then
2612	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2613	      break 3
2614	    fi
2615	  fi
2616	fi
2617      done
2618    done
2619    ;;
2620esac
2621
2622  done
2623IFS=$as_save_IFS
2624
2625rm -rf conftest.one conftest.two conftest.dir
2626
2627fi
2628  if test "${ac_cv_path_install+set}" = set; then
2629    INSTALL=$ac_cv_path_install
2630  else
2631    # As a last resort, use the slow shell script.  Don't cache a
2632    # value for INSTALL within a source directory, because that will
2633    # break other packages using the cache if that directory is
2634    # removed, or if the value is a relative name.
2635    INSTALL=$ac_install_sh
2636  fi
2637fi
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2639$as_echo "$INSTALL" >&6; }
2640
2641# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2642# It thinks the first close brace ends the variable substitution.
2643test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2644
2645test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2646
2647test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2648
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2650$as_echo_n "checking whether build environment is sane... " >&6; }
2651# Reject unsafe characters in $srcdir or the absolute working directory
2652# name.  Accept space and tab only in the latter.
2653am_lf='
2654'
2655case `pwd` in
2656  *[\\\"\#\$\&\'\`$am_lf]*)
2657    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2658esac
2659case $srcdir in
2660  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2661    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2662esac
2663
2664# Do 'set' in a subshell so we don't clobber the current shell's
2665# arguments.  Must try -L first in case configure is actually a
2666# symlink; some systems play weird games with the mod time of symlinks
2667# (eg FreeBSD returns the mod time of the symlink's containing
2668# directory).
2669if (
2670   am_has_slept=no
2671   for am_try in 1 2; do
2672     echo "timestamp, slept: $am_has_slept" > conftest.file
2673     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2674     if test "$*" = "X"; then
2675	# -L didn't work.
2676	set X `ls -t "$srcdir/configure" conftest.file`
2677     fi
2678     if test "$*" != "X $srcdir/configure conftest.file" \
2679	&& test "$*" != "X conftest.file $srcdir/configure"; then
2680
2681	# If neither matched, then we have a broken ls.  This can happen
2682	# if, for instance, CONFIG_SHELL is bash and it inherits a
2683	# broken ls alias from the environment.  This has actually
2684	# happened.  Such a system could not be considered "sane".
2685	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2686  alias in your environment" "$LINENO" 5
2687     fi
2688     if test "$2" = conftest.file || test $am_try -eq 2; then
2689       break
2690     fi
2691     # Just in case.
2692     sleep 1
2693     am_has_slept=yes
2694   done
2695   test "$2" = conftest.file
2696   )
2697then
2698   # Ok.
2699   :
2700else
2701   as_fn_error $? "newly created file is older than distributed files!
2702Check your system clock" "$LINENO" 5
2703fi
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2705$as_echo "yes" >&6; }
2706# If we didn't sleep, we still need to ensure time stamps of config.status and
2707# generated files are strictly newer.
2708am_sleep_pid=
2709if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2710  ( sleep 1 ) &
2711  am_sleep_pid=$!
2712fi
2713
2714rm -f conftest.file
2715
2716test "$program_prefix" != NONE &&
2717  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2718# Use a double $ so make ignores it.
2719test "$program_suffix" != NONE &&
2720  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2721# Double any \ or $.
2722# By default was `s,x,x', remove it if useless.
2723ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2724program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2725
2726# expand $ac_aux_dir to an absolute path
2727am_aux_dir=`cd $ac_aux_dir && pwd`
2728
2729if test x"${MISSING+set}" != xset; then
2730  case $am_aux_dir in
2731  *\ * | *\	*)
2732    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2733  *)
2734    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2735  esac
2736fi
2737# Use eval to expand $SHELL
2738if eval "$MISSING --is-lightweight"; then
2739  am_missing_run="$MISSING "
2740else
2741  am_missing_run=
2742  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2743$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2744fi
2745
2746if test x"${install_sh}" != xset; then
2747  case $am_aux_dir in
2748  *\ * | *\	*)
2749    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2750  *)
2751    install_sh="\${SHELL} $am_aux_dir/install-sh"
2752  esac
2753fi
2754
2755# Installed binaries are usually stripped using 'strip' when the user
2756# run "make install-strip".  However 'strip' might not be the right
2757# tool to use in cross-compilation environments, therefore Automake
2758# will honor the 'STRIP' environment variable to overrule this program.
2759if test "$cross_compiling" != no; then
2760  if test -n "$ac_tool_prefix"; then
2761  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2762set dummy ${ac_tool_prefix}strip; ac_word=$2
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764$as_echo_n "checking for $ac_word... " >&6; }
2765if ${ac_cv_prog_STRIP+:} false; then :
2766  $as_echo_n "(cached) " >&6
2767else
2768  if test -n "$STRIP"; then
2769  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2770else
2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
2773do
2774  IFS=$as_save_IFS
2775  test -z "$as_dir" && as_dir=.
2776    for ac_exec_ext in '' $ac_executable_extensions; do
2777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780    break 2
2781  fi
2782done
2783  done
2784IFS=$as_save_IFS
2785
2786fi
2787fi
2788STRIP=$ac_cv_prog_STRIP
2789if test -n "$STRIP"; then
2790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2791$as_echo "$STRIP" >&6; }
2792else
2793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794$as_echo "no" >&6; }
2795fi
2796
2797
2798fi
2799if test -z "$ac_cv_prog_STRIP"; then
2800  ac_ct_STRIP=$STRIP
2801  # Extract the first word of "strip", so it can be a program name with args.
2802set dummy strip; ac_word=$2
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804$as_echo_n "checking for $ac_word... " >&6; }
2805if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2806  $as_echo_n "(cached) " >&6
2807else
2808  if test -n "$ac_ct_STRIP"; then
2809  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2810else
2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH
2813do
2814  IFS=$as_save_IFS
2815  test -z "$as_dir" && as_dir=.
2816    for ac_exec_ext in '' $ac_executable_extensions; do
2817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818    ac_cv_prog_ac_ct_STRIP="strip"
2819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820    break 2
2821  fi
2822done
2823  done
2824IFS=$as_save_IFS
2825
2826fi
2827fi
2828ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2829if test -n "$ac_ct_STRIP"; then
2830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2831$as_echo "$ac_ct_STRIP" >&6; }
2832else
2833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834$as_echo "no" >&6; }
2835fi
2836
2837  if test "x$ac_ct_STRIP" = x; then
2838    STRIP=":"
2839  else
2840    case $cross_compiling:$ac_tool_warned in
2841yes:)
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2844ac_tool_warned=yes ;;
2845esac
2846    STRIP=$ac_ct_STRIP
2847  fi
2848else
2849  STRIP="$ac_cv_prog_STRIP"
2850fi
2851
2852fi
2853INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2854
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2856$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2857if test -z "$MKDIR_P"; then
2858  if ${ac_cv_path_mkdir+:} false; then :
2859  $as_echo_n "(cached) " >&6
2860else
2861  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2863do
2864  IFS=$as_save_IFS
2865  test -z "$as_dir" && as_dir=.
2866    for ac_prog in mkdir gmkdir; do
2867	 for ac_exec_ext in '' $ac_executable_extensions; do
2868	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2869	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2870	     'mkdir (GNU coreutils) '* | \
2871	     'mkdir (coreutils) '* | \
2872	     'mkdir (fileutils) '4.1*)
2873	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2874	       break 3;;
2875	   esac
2876	 done
2877       done
2878  done
2879IFS=$as_save_IFS
2880
2881fi
2882
2883  test -d ./--version && rmdir ./--version
2884  if test "${ac_cv_path_mkdir+set}" = set; then
2885    MKDIR_P="$ac_cv_path_mkdir -p"
2886  else
2887    # As a last resort, use the slow shell script.  Don't cache a
2888    # value for MKDIR_P within a source directory, because that will
2889    # break other packages using the cache if that directory is
2890    # removed, or if the value is a relative name.
2891    MKDIR_P="$ac_install_sh -d"
2892  fi
2893fi
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2895$as_echo "$MKDIR_P" >&6; }
2896
2897for ac_prog in gawk mawk nawk awk
2898do
2899  # Extract the first word of "$ac_prog", so it can be a program name with args.
2900set dummy $ac_prog; ac_word=$2
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902$as_echo_n "checking for $ac_word... " >&6; }
2903if ${ac_cv_prog_AWK+:} false; then :
2904  $as_echo_n "(cached) " >&6
2905else
2906  if test -n "$AWK"; then
2907  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2908else
2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912  IFS=$as_save_IFS
2913  test -z "$as_dir" && as_dir=.
2914    for ac_exec_ext in '' $ac_executable_extensions; do
2915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2916    ac_cv_prog_AWK="$ac_prog"
2917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918    break 2
2919  fi
2920done
2921  done
2922IFS=$as_save_IFS
2923
2924fi
2925fi
2926AWK=$ac_cv_prog_AWK
2927if test -n "$AWK"; then
2928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2929$as_echo "$AWK" >&6; }
2930else
2931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932$as_echo "no" >&6; }
2933fi
2934
2935
2936  test -n "$AWK" && break
2937done
2938
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2940$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2941set x ${MAKE-make}
2942ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2943if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2944  $as_echo_n "(cached) " >&6
2945else
2946  cat >conftest.make <<\_ACEOF
2947SHELL = /bin/sh
2948all:
2949	@echo '@@@%%%=$(MAKE)=@@@%%%'
2950_ACEOF
2951# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2952case `${MAKE-make} -f conftest.make 2>/dev/null` in
2953  *@@@%%%=?*=@@@%%%*)
2954    eval ac_cv_prog_make_${ac_make}_set=yes;;
2955  *)
2956    eval ac_cv_prog_make_${ac_make}_set=no;;
2957esac
2958rm -f conftest.make
2959fi
2960if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2962$as_echo "yes" >&6; }
2963  SET_MAKE=
2964else
2965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966$as_echo "no" >&6; }
2967  SET_MAKE="MAKE=${MAKE-make}"
2968fi
2969
2970rm -rf .tst 2>/dev/null
2971mkdir .tst 2>/dev/null
2972if test -d .tst; then
2973  am__leading_dot=.
2974else
2975  am__leading_dot=_
2976fi
2977rmdir .tst 2>/dev/null
2978
2979# Check whether --enable-silent-rules was given.
2980if test "${enable_silent_rules+set}" = set; then :
2981  enableval=$enable_silent_rules;
2982fi
2983
2984case $enable_silent_rules in # (((
2985  yes) AM_DEFAULT_VERBOSITY=0;;
2986   no) AM_DEFAULT_VERBOSITY=1;;
2987    *) AM_DEFAULT_VERBOSITY=1;;
2988esac
2989am_make=${MAKE-make}
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2991$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2992if ${am_cv_make_support_nested_variables+:} false; then :
2993  $as_echo_n "(cached) " >&6
2994else
2995  if $as_echo 'TRUE=$(BAR$(V))
2996BAR0=false
2997BAR1=true
2998V=1
2999am__doit:
3000	@$(TRUE)
3001.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3002  am_cv_make_support_nested_variables=yes
3003else
3004  am_cv_make_support_nested_variables=no
3005fi
3006fi
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3008$as_echo "$am_cv_make_support_nested_variables" >&6; }
3009if test $am_cv_make_support_nested_variables = yes; then
3010    AM_V='$(V)'
3011  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3012else
3013  AM_V=$AM_DEFAULT_VERBOSITY
3014  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3015fi
3016AM_BACKSLASH='\'
3017
3018if test "`cd $srcdir && pwd`" != "`pwd`"; then
3019  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3020  # is not polluted with repeated "-I."
3021  am__isrc=' -I$(srcdir)'
3022  # test to see if srcdir already configured
3023  if test -f $srcdir/config.status; then
3024    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3025  fi
3026fi
3027
3028# test whether we have cygpath
3029if test -z "$CYGPATH_W"; then
3030  if (cygpath --version) >/dev/null 2>/dev/null; then
3031    CYGPATH_W='cygpath -w'
3032  else
3033    CYGPATH_W=echo
3034  fi
3035fi
3036
3037
3038# Define the identity of the package.
3039 PACKAGE='atompaw'
3040 VERSION='4.1.1.0'
3041
3042
3043cat >>confdefs.h <<_ACEOF
3044#define PACKAGE "$PACKAGE"
3045_ACEOF
3046
3047
3048cat >>confdefs.h <<_ACEOF
3049#define VERSION "$VERSION"
3050_ACEOF
3051
3052# Some tools Automake needs.
3053
3054ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3055
3056
3057AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3058
3059
3060AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3061
3062
3063AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3064
3065
3066MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3067
3068# For better backward compatibility.  To be removed once Automake 1.9.x
3069# dies out for good.  For more background, see:
3070# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3071# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3072mkdir_p='$(MKDIR_P)'
3073
3074# We need awk for the "check" target.  The system "awk" is bad on
3075# some platforms.
3076# Always define AMTAR for backward compatibility.  Yes, it's still used
3077# in the wild :-(  We should find a proper way to deprecate it ...
3078AMTAR='$${TAR-tar}'
3079
3080
3081# We'll loop over all known methods to create a tar archive until one works.
3082_am_tools='gnutar  pax cpio none'
3083
3084am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3085
3086
3087
3088
3089
3090
3091ac_config_headers="$ac_config_headers config.h"
3092
3093
3094                    # ------------------------------------ #
3095
3096#
3097# Command-line arguments
3098#
3099
3100# Declare arguments
3101# Check whether --enable-libxc was given.
3102if test "${enable_libxc+set}" = set; then :
3103  enableval=$enable_libxc;
3104fi
3105
3106
3107
3108# Check whether --with-fc-vendor was given.
3109if test "${with_fc_vendor+set}" = set; then :
3110  withval=$with_fc_vendor;
3111fi
3112
3113
3114
3115# Check whether --with-fc-version was given.
3116if test "${with_fc_version+set}" = set; then :
3117  withval=$with_fc_version;
3118fi
3119
3120
3121
3122# Check whether --with-libxc-incs was given.
3123if test "${with_libxc_incs+set}" = set; then :
3124  withval=$with_libxc_incs;
3125fi
3126
3127
3128
3129# Check whether --with-libxc-libs was given.
3130if test "${with_libxc_libs+set}" = set; then :
3131  withval=$with_libxc_libs;
3132fi
3133
3134
3135
3136# Check whether --with-libxc-prefix was given.
3137if test "${with_libxc_prefix+set}" = set; then :
3138  withval=$with_libxc_prefix;
3139fi
3140
3141
3142
3143# Check whether --with-linalg-libs was given.
3144if test "${with_linalg_libs+set}" = set; then :
3145  withval=$with_linalg_libs;
3146fi
3147
3148
3149
3150# Check whether --with-linalg-prefix was given.
3151if test "${with_linalg_prefix+set}" = set; then :
3152  withval=$with_linalg_prefix;
3153fi
3154
3155
3156# Declare environment variables
3157
3158
3159# Declare environment variables
3160
3161
3162                    # ------------------------------------ #
3163
3164#
3165# Basic checking
3166#
3167
3168# Check for common programs
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3170$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3171set x ${MAKE-make}
3172ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3173if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3174  $as_echo_n "(cached) " >&6
3175else
3176  cat >conftest.make <<\_ACEOF
3177SHELL = /bin/sh
3178all:
3179	@echo '@@@%%%=$(MAKE)=@@@%%%'
3180_ACEOF
3181# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3182case `${MAKE-make} -f conftest.make 2>/dev/null` in
3183  *@@@%%%=?*=@@@%%%*)
3184    eval ac_cv_prog_make_${ac_make}_set=yes;;
3185  *)
3186    eval ac_cv_prog_make_${ac_make}_set=no;;
3187esac
3188rm -f conftest.make
3189fi
3190if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3192$as_echo "yes" >&6; }
3193  SET_MAKE=
3194else
3195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196$as_echo "no" >&6; }
3197  SET_MAKE="MAKE=${MAKE-make}"
3198fi
3199
3200
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3202$as_echo_n "checking whether ln -s works... " >&6; }
3203LN_S=$as_ln_s
3204if test "$LN_S" = "ln -s"; then
3205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3206$as_echo "yes" >&6; }
3207else
3208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3209$as_echo "no, using $LN_S" >&6; }
3210fi
3211
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3213$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3214if ${ac_cv_path_SED+:} false; then :
3215  $as_echo_n "(cached) " >&6
3216else
3217            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3218     for ac_i in 1 2 3 4 5 6 7; do
3219       ac_script="$ac_script$as_nl$ac_script"
3220     done
3221     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3222     { ac_script=; unset ac_script;}
3223     if test -z "$SED"; then
3224  ac_path_SED_found=false
3225  # Loop through the user's path and test for each of PROGNAME-LIST
3226  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227for as_dir in $PATH
3228do
3229  IFS=$as_save_IFS
3230  test -z "$as_dir" && as_dir=.
3231    for ac_prog in sed gsed; do
3232    for ac_exec_ext in '' $ac_executable_extensions; do
3233      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3234      as_fn_executable_p "$ac_path_SED" || continue
3235# Check for GNU ac_path_SED and select it if it is found.
3236  # Check for GNU $ac_path_SED
3237case `"$ac_path_SED" --version 2>&1` in
3238*GNU*)
3239  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3240*)
3241  ac_count=0
3242  $as_echo_n 0123456789 >"conftest.in"
3243  while :
3244  do
3245    cat "conftest.in" "conftest.in" >"conftest.tmp"
3246    mv "conftest.tmp" "conftest.in"
3247    cp "conftest.in" "conftest.nl"
3248    $as_echo '' >> "conftest.nl"
3249    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3250    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3251    as_fn_arith $ac_count + 1 && ac_count=$as_val
3252    if test $ac_count -gt ${ac_path_SED_max-0}; then
3253      # Best one so far, save it but keep looking for a better one
3254      ac_cv_path_SED="$ac_path_SED"
3255      ac_path_SED_max=$ac_count
3256    fi
3257    # 10*(2^10) chars as input seems more than enough
3258    test $ac_count -gt 10 && break
3259  done
3260  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3261esac
3262
3263      $ac_path_SED_found && break 3
3264    done
3265  done
3266  done
3267IFS=$as_save_IFS
3268  if test -z "$ac_cv_path_SED"; then
3269    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3270  fi
3271else
3272  ac_cv_path_SED=$SED
3273fi
3274
3275fi
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3277$as_echo "$ac_cv_path_SED" >&6; }
3278 SED="$ac_cv_path_SED"
3279  rm -f conftest.sed
3280
3281for ac_prog in gawk mawk nawk awk
3282do
3283  # Extract the first word of "$ac_prog", so it can be a program name with args.
3284set dummy $ac_prog; ac_word=$2
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286$as_echo_n "checking for $ac_word... " >&6; }
3287if ${ac_cv_prog_AWK+:} false; then :
3288  $as_echo_n "(cached) " >&6
3289else
3290  if test -n "$AWK"; then
3291  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3292else
3293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294for as_dir in $PATH
3295do
3296  IFS=$as_save_IFS
3297  test -z "$as_dir" && as_dir=.
3298    for ac_exec_ext in '' $ac_executable_extensions; do
3299  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3300    ac_cv_prog_AWK="$ac_prog"
3301    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302    break 2
3303  fi
3304done
3305  done
3306IFS=$as_save_IFS
3307
3308fi
3309fi
3310AWK=$ac_cv_prog_AWK
3311if test -n "$AWK"; then
3312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3313$as_echo "$AWK" >&6; }
3314else
3315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316$as_echo "no" >&6; }
3317fi
3318
3319
3320  test -n "$AWK" && break
3321done
3322
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3324$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3325if ${ac_cv_path_GREP+:} false; then :
3326  $as_echo_n "(cached) " >&6
3327else
3328  if test -z "$GREP"; then
3329  ac_path_GREP_found=false
3330  # Loop through the user's path and test for each of PROGNAME-LIST
3331  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3333do
3334  IFS=$as_save_IFS
3335  test -z "$as_dir" && as_dir=.
3336    for ac_prog in grep ggrep; do
3337    for ac_exec_ext in '' $ac_executable_extensions; do
3338      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3339      as_fn_executable_p "$ac_path_GREP" || continue
3340# Check for GNU ac_path_GREP and select it if it is found.
3341  # Check for GNU $ac_path_GREP
3342case `"$ac_path_GREP" --version 2>&1` in
3343*GNU*)
3344  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3345*)
3346  ac_count=0
3347  $as_echo_n 0123456789 >"conftest.in"
3348  while :
3349  do
3350    cat "conftest.in" "conftest.in" >"conftest.tmp"
3351    mv "conftest.tmp" "conftest.in"
3352    cp "conftest.in" "conftest.nl"
3353    $as_echo 'GREP' >> "conftest.nl"
3354    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3355    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3356    as_fn_arith $ac_count + 1 && ac_count=$as_val
3357    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3358      # Best one so far, save it but keep looking for a better one
3359      ac_cv_path_GREP="$ac_path_GREP"
3360      ac_path_GREP_max=$ac_count
3361    fi
3362    # 10*(2^10) chars as input seems more than enough
3363    test $ac_count -gt 10 && break
3364  done
3365  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3366esac
3367
3368      $ac_path_GREP_found && break 3
3369    done
3370  done
3371  done
3372IFS=$as_save_IFS
3373  if test -z "$ac_cv_path_GREP"; then
3374    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3375  fi
3376else
3377  ac_cv_path_GREP=$GREP
3378fi
3379
3380fi
3381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3382$as_echo "$ac_cv_path_GREP" >&6; }
3383 GREP="$ac_cv_path_GREP"
3384
3385
3386
3387# Workaround for the "grep -e" issue on Solaris systems
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3389$as_echo_n "checking for egrep... " >&6; }
3390if ${ac_cv_path_EGREP+:} false; then :
3391  $as_echo_n "(cached) " >&6
3392else
3393  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3394   then ac_cv_path_EGREP="$GREP -E"
3395   else
3396     if test -z "$EGREP"; then
3397  ac_path_EGREP_found=false
3398  # Loop through the user's path and test for each of PROGNAME-LIST
3399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3401do
3402  IFS=$as_save_IFS
3403  test -z "$as_dir" && as_dir=.
3404    for ac_prog in egrep; do
3405    for ac_exec_ext in '' $ac_executable_extensions; do
3406      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3407      as_fn_executable_p "$ac_path_EGREP" || continue
3408# Check for GNU ac_path_EGREP and select it if it is found.
3409  # Check for GNU $ac_path_EGREP
3410case `"$ac_path_EGREP" --version 2>&1` in
3411*GNU*)
3412  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3413*)
3414  ac_count=0
3415  $as_echo_n 0123456789 >"conftest.in"
3416  while :
3417  do
3418    cat "conftest.in" "conftest.in" >"conftest.tmp"
3419    mv "conftest.tmp" "conftest.in"
3420    cp "conftest.in" "conftest.nl"
3421    $as_echo 'EGREP' >> "conftest.nl"
3422    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3423    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3424    as_fn_arith $ac_count + 1 && ac_count=$as_val
3425    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3426      # Best one so far, save it but keep looking for a better one
3427      ac_cv_path_EGREP="$ac_path_EGREP"
3428      ac_path_EGREP_max=$ac_count
3429    fi
3430    # 10*(2^10) chars as input seems more than enough
3431    test $ac_count -gt 10 && break
3432  done
3433  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3434esac
3435
3436      $ac_path_EGREP_found && break 3
3437    done
3438  done
3439  done
3440IFS=$as_save_IFS
3441  if test -z "$ac_cv_path_EGREP"; then
3442    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3443  fi
3444else
3445  ac_cv_path_EGREP=$EGREP
3446fi
3447
3448   fi
3449fi
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3451$as_echo "$ac_cv_path_EGREP" >&6; }
3452 EGREP="$ac_cv_path_EGREP"
3453
3454
3455
3456# Workaround for the wrong path to install-sh on Mac systems
3457
3458  ac_builddir=.
3459
3460case . in
3461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3462*)
3463  ac_dir_suffix=/`$as_echo . | sed 's|^\.[\\/]||'`
3464  # A ".." for each directory in $ac_dir_suffix.
3465  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3466  case $ac_top_builddir_sub in
3467  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3468  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3469  esac ;;
3470esac
3471ac_abs_top_builddir=$ac_pwd
3472ac_abs_builddir=$ac_pwd$ac_dir_suffix
3473# for backward compatibility:
3474ac_top_builddir=$ac_top_build_prefix
3475
3476case $srcdir in
3477  .)  # We are building in place.
3478    ac_srcdir=.
3479    ac_top_srcdir=$ac_top_builddir_sub
3480    ac_abs_top_srcdir=$ac_pwd ;;
3481  [\\/]* | ?:[\\/]* )  # Absolute name.
3482    ac_srcdir=$srcdir$ac_dir_suffix;
3483    ac_top_srcdir=$srcdir
3484    ac_abs_top_srcdir=$srcdir ;;
3485  *) # Relative name.
3486    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3487    ac_top_srcdir=$ac_top_build_prefix$srcdir
3488    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3489esac
3490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3491
3492
3493  atp_tmp_mkdir_p=`echo "${MKDIR_P}" | awk '{print $1}'`
3494  if test "${atp_tmp_mkdir_p}" = "config/gnu/install-sh"; then
3495    { $as_echo "$as_me:${as_lineno-$LINENO}: fixing wrong path to mkdir replacement" >&5
3496$as_echo "$as_me: fixing wrong path to mkdir replacement" >&6;}
3497    MKDIR_P="${ac_abs_top_srcdir}/${MKDIR_P}"
3498  fi
3499  unset atp_tmp_mkdir_p
3500
3501
3502# Check for other useful programs
3503for ac_prog in dvipdf
3504do
3505  # Extract the first word of "$ac_prog", so it can be a program name with args.
3506set dummy $ac_prog; ac_word=$2
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508$as_echo_n "checking for $ac_word... " >&6; }
3509if ${ac_cv_prog_DVIPDF+:} false; then :
3510  $as_echo_n "(cached) " >&6
3511else
3512  if test -n "$DVIPDF"; then
3513  ac_cv_prog_DVIPDF="$DVIPDF" # Let the user override the test.
3514else
3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516for as_dir in $PATH
3517do
3518  IFS=$as_save_IFS
3519  test -z "$as_dir" && as_dir=.
3520    for ac_exec_ext in '' $ac_executable_extensions; do
3521  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522    ac_cv_prog_DVIPDF="$ac_prog"
3523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524    break 2
3525  fi
3526done
3527  done
3528IFS=$as_save_IFS
3529
3530fi
3531fi
3532DVIPDF=$ac_cv_prog_DVIPDF
3533if test -n "$DVIPDF"; then
3534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPDF" >&5
3535$as_echo "$DVIPDF" >&6; }
3536else
3537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538$as_echo "no" >&6; }
3539fi
3540
3541
3542  test -n "$DVIPDF" && break
3543done
3544
3545for ac_prog in latex
3546do
3547  # Extract the first word of "$ac_prog", so it can be a program name with args.
3548set dummy $ac_prog; ac_word=$2
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550$as_echo_n "checking for $ac_word... " >&6; }
3551if ${ac_cv_prog_LATEX+:} false; then :
3552  $as_echo_n "(cached) " >&6
3553else
3554  if test -n "$LATEX"; then
3555  ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
3556else
3557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558for as_dir in $PATH
3559do
3560  IFS=$as_save_IFS
3561  test -z "$as_dir" && as_dir=.
3562    for ac_exec_ext in '' $ac_executable_extensions; do
3563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564    ac_cv_prog_LATEX="$ac_prog"
3565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566    break 2
3567  fi
3568done
3569  done
3570IFS=$as_save_IFS
3571
3572fi
3573fi
3574LATEX=$ac_cv_prog_LATEX
3575if test -n "$LATEX"; then
3576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
3577$as_echo "$LATEX" >&6; }
3578else
3579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580$as_echo "no" >&6; }
3581fi
3582
3583
3584  test -n "$LATEX" && break
3585done
3586
3587for ac_prog in pdflatex
3588do
3589  # Extract the first word of "$ac_prog", so it can be a program name with args.
3590set dummy $ac_prog; ac_word=$2
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592$as_echo_n "checking for $ac_word... " >&6; }
3593if ${ac_cv_prog_PDFLATEX+:} false; then :
3594  $as_echo_n "(cached) " >&6
3595else
3596  if test -n "$PDFLATEX"; then
3597  ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
3598else
3599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600for as_dir in $PATH
3601do
3602  IFS=$as_save_IFS
3603  test -z "$as_dir" && as_dir=.
3604    for ac_exec_ext in '' $ac_executable_extensions; do
3605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606    ac_cv_prog_PDFLATEX="$ac_prog"
3607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608    break 2
3609  fi
3610done
3611  done
3612IFS=$as_save_IFS
3613
3614fi
3615fi
3616PDFLATEX=$ac_cv_prog_PDFLATEX
3617if test -n "$PDFLATEX"; then
3618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
3619$as_echo "$PDFLATEX" >&6; }
3620else
3621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622$as_echo "no" >&6; }
3623fi
3624
3625
3626  test -n "$PDFLATEX" && break
3627done
3628
3629for ac_prog in perl
3630do
3631  # Extract the first word of "$ac_prog", so it can be a program name with args.
3632set dummy $ac_prog; ac_word=$2
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634$as_echo_n "checking for $ac_word... " >&6; }
3635if ${ac_cv_prog_PERL+:} false; then :
3636  $as_echo_n "(cached) " >&6
3637else
3638  if test -n "$PERL"; then
3639  ac_cv_prog_PERL="$PERL" # Let the user override the test.
3640else
3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642for as_dir in $PATH
3643do
3644  IFS=$as_save_IFS
3645  test -z "$as_dir" && as_dir=.
3646    for ac_exec_ext in '' $ac_executable_extensions; do
3647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648    ac_cv_prog_PERL="$ac_prog"
3649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650    break 2
3651  fi
3652done
3653  done
3654IFS=$as_save_IFS
3655
3656fi
3657fi
3658PERL=$ac_cv_prog_PERL
3659if test -n "$PERL"; then
3660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
3661$as_echo "$PERL" >&6; }
3662else
3663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664$as_echo "no" >&6; }
3665fi
3666
3667
3668  test -n "$PERL" && break
3669done
3670
3671
3672                    # ------------------------------------ #
3673
3674#
3675# Fortran support
3676#
3677
3678# Look for the Fortran compiler
3679if test "${FC}" != "" -a ! -x "${FC}"; then
3680  atp_fc_probe=`echo "${FC}" | sed -e 's/ .*//'`
3681  if test ! -x "${atp_fc_probe}"; then
3682    # Extract the first word of "${atp_fc_probe}", so it can be a program name with args.
3683set dummy ${atp_fc_probe}; ac_word=$2
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685$as_echo_n "checking for $ac_word... " >&6; }
3686if ${ac_cv_path_atp_fc_path+:} false; then :
3687  $as_echo_n "(cached) " >&6
3688else
3689  case $atp_fc_path in
3690  [\\/]* | ?:[\\/]*)
3691  ac_cv_path_atp_fc_path="$atp_fc_path" # Let the user override the test with a path.
3692  ;;
3693  *)
3694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697  IFS=$as_save_IFS
3698  test -z "$as_dir" && as_dir=.
3699    for ac_exec_ext in '' $ac_executable_extensions; do
3700  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701    ac_cv_path_atp_fc_path="$as_dir/$ac_word$ac_exec_ext"
3702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703    break 2
3704  fi
3705done
3706  done
3707IFS=$as_save_IFS
3708
3709  ;;
3710esac
3711fi
3712atp_fc_path=$ac_cv_path_atp_fc_path
3713if test -n "$atp_fc_path"; then
3714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $atp_fc_path" >&5
3715$as_echo "$atp_fc_path" >&6; }
3716else
3717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718$as_echo "no" >&6; }
3719fi
3720
3721
3722    if test "${atp_fc_path}" = ""; then
3723      as_fn_error $? "could not run Fortran compiler \"${FC}\"" "$LINENO" 5
3724    fi
3725  fi
3726fi
3727ac_ext=${ac_fc_srcext-f}
3728ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3729ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3730ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3731if test -n "$ac_tool_prefix"; then
3732  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
3733  do
3734    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3735set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737$as_echo_n "checking for $ac_word... " >&6; }
3738if ${ac_cv_prog_FC+:} false; then :
3739  $as_echo_n "(cached) " >&6
3740else
3741  if test -n "$FC"; then
3742  ac_cv_prog_FC="$FC" # Let the user override the test.
3743else
3744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745for as_dir in $PATH
3746do
3747  IFS=$as_save_IFS
3748  test -z "$as_dir" && as_dir=.
3749    for ac_exec_ext in '' $ac_executable_extensions; do
3750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
3752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753    break 2
3754  fi
3755done
3756  done
3757IFS=$as_save_IFS
3758
3759fi
3760fi
3761FC=$ac_cv_prog_FC
3762if test -n "$FC"; then
3763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
3764$as_echo "$FC" >&6; }
3765else
3766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767$as_echo "no" >&6; }
3768fi
3769
3770
3771    test -n "$FC" && break
3772  done
3773fi
3774if test -z "$FC"; then
3775  ac_ct_FC=$FC
3776  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
3777do
3778  # Extract the first word of "$ac_prog", so it can be a program name with args.
3779set dummy $ac_prog; ac_word=$2
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781$as_echo_n "checking for $ac_word... " >&6; }
3782if ${ac_cv_prog_ac_ct_FC+:} false; then :
3783  $as_echo_n "(cached) " >&6
3784else
3785  if test -n "$ac_ct_FC"; then
3786  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
3787else
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791  IFS=$as_save_IFS
3792  test -z "$as_dir" && as_dir=.
3793    for ac_exec_ext in '' $ac_executable_extensions; do
3794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795    ac_cv_prog_ac_ct_FC="$ac_prog"
3796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797    break 2
3798  fi
3799done
3800  done
3801IFS=$as_save_IFS
3802
3803fi
3804fi
3805ac_ct_FC=$ac_cv_prog_ac_ct_FC
3806if test -n "$ac_ct_FC"; then
3807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
3808$as_echo "$ac_ct_FC" >&6; }
3809else
3810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811$as_echo "no" >&6; }
3812fi
3813
3814
3815  test -n "$ac_ct_FC" && break
3816done
3817
3818  if test "x$ac_ct_FC" = x; then
3819    FC=""
3820  else
3821    case $cross_compiling:$ac_tool_warned in
3822yes:)
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825ac_tool_warned=yes ;;
3826esac
3827    FC=$ac_ct_FC
3828  fi
3829fi
3830
3831
3832# Provide some information about the compiler.
3833$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
3834set X $ac_compile
3835ac_compiler=$2
3836for ac_option in --version -v -V -qversion; do
3837  { { ac_try="$ac_compiler $ac_option >&5"
3838case "(($ac_try" in
3839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840  *) ac_try_echo=$ac_try;;
3841esac
3842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843$as_echo "$ac_try_echo"; } >&5
3844  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3845  ac_status=$?
3846  if test -s conftest.err; then
3847    sed '10a\
3848... rest of stderr output deleted ...
3849         10q' conftest.err >conftest.er1
3850    cat conftest.er1 >&5
3851  fi
3852  rm -f conftest.er1 conftest.err
3853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854  test $ac_status = 0; }
3855done
3856rm -f a.out
3857
3858cat > conftest.$ac_ext <<_ACEOF
3859      program main
3860
3861      end
3862_ACEOF
3863ac_clean_files_save=$ac_clean_files
3864ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3865# Try to create an executable without -o first, disregard a.out.
3866# It will help us diagnose broken compilers, and finding out an intuition
3867# of exeext.
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler works" >&5
3869$as_echo_n "checking whether the Fortran compiler works... " >&6; }
3870ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3871
3872# The possible output files:
3873ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3874
3875ac_rmfiles=
3876for ac_file in $ac_files
3877do
3878  case $ac_file in
3879    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3880    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3881  esac
3882done
3883rm -f $ac_rmfiles
3884
3885if { { ac_try="$ac_link_default"
3886case "(($ac_try" in
3887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888  *) ac_try_echo=$ac_try;;
3889esac
3890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891$as_echo "$ac_try_echo"; } >&5
3892  (eval "$ac_link_default") 2>&5
3893  ac_status=$?
3894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895  test $ac_status = 0; }; then :
3896  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3897# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3898# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3899# so that the user can short-circuit this test for compilers unknown to
3900# Autoconf.
3901for ac_file in $ac_files ''
3902do
3903  test -f "$ac_file" || continue
3904  case $ac_file in
3905    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3906	;;
3907    [ab].out )
3908	# We found the default executable, but exeext='' is most
3909	# certainly right.
3910	break;;
3911    *.* )
3912	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3913	then :; else
3914	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3915	fi
3916	# We set ac_cv_exeext here because the later test for it is not
3917	# safe: cross compilers may not add the suffix if given an `-o'
3918	# argument, so we may need to know it at that point already.
3919	# Even if this section looks crufty: it has the advantage of
3920	# actually working.
3921	break;;
3922    * )
3923	break;;
3924  esac
3925done
3926test "$ac_cv_exeext" = no && ac_cv_exeext=
3927
3928else
3929  ac_file=''
3930fi
3931if test -z "$ac_file"; then :
3932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933$as_echo "no" >&6; }
3934$as_echo "$as_me: failed program was:" >&5
3935sed 's/^/| /' conftest.$ac_ext >&5
3936
3937{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939as_fn_error 77 "Fortran compiler cannot create executables
3940See \`config.log' for more details" "$LINENO" 5; }
3941else
3942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3943$as_echo "yes" >&6; }
3944fi
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler default output file name" >&5
3946$as_echo_n "checking for Fortran compiler default output file name... " >&6; }
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3948$as_echo "$ac_file" >&6; }
3949ac_exeext=$ac_cv_exeext
3950
3951rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3952ac_clean_files=$ac_clean_files_save
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3954$as_echo_n "checking for suffix of executables... " >&6; }
3955if { { ac_try="$ac_link"
3956case "(($ac_try" in
3957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958  *) ac_try_echo=$ac_try;;
3959esac
3960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961$as_echo "$ac_try_echo"; } >&5
3962  (eval "$ac_link") 2>&5
3963  ac_status=$?
3964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965  test $ac_status = 0; }; then :
3966  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3967# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3968# work properly (i.e., refer to `conftest.exe'), while it won't with
3969# `rm'.
3970for ac_file in conftest.exe conftest conftest.*; do
3971  test -f "$ac_file" || continue
3972  case $ac_file in
3973    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3974    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3975	  break;;
3976    * ) break;;
3977  esac
3978done
3979else
3980  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3983See \`config.log' for more details" "$LINENO" 5; }
3984fi
3985rm -f conftest conftest$ac_cv_exeext
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3987$as_echo "$ac_cv_exeext" >&6; }
3988
3989rm -f conftest.$ac_ext
3990EXEEXT=$ac_cv_exeext
3991ac_exeext=$EXEEXT
3992cat > conftest.$ac_ext <<_ACEOF
3993      program main
3994      open(unit=9,file='conftest.out')
3995      close(unit=9)
3996
3997      end
3998_ACEOF
3999ac_clean_files="$ac_clean_files conftest.out"
4000# Check that the compiler produces executables we can run.  If not, either
4001# the compiler is broken, or we cross compile.
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4003$as_echo_n "checking whether we are cross compiling... " >&6; }
4004if test "$cross_compiling" != yes; then
4005  { { ac_try="$ac_link"
4006case "(($ac_try" in
4007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008  *) ac_try_echo=$ac_try;;
4009esac
4010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011$as_echo "$ac_try_echo"; } >&5
4012  (eval "$ac_link") 2>&5
4013  ac_status=$?
4014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015  test $ac_status = 0; }
4016  if { ac_try='./conftest$ac_cv_exeext'
4017  { { case "(($ac_try" in
4018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019  *) ac_try_echo=$ac_try;;
4020esac
4021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022$as_echo "$ac_try_echo"; } >&5
4023  (eval "$ac_try") 2>&5
4024  ac_status=$?
4025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026  test $ac_status = 0; }; }; then
4027    cross_compiling=no
4028  else
4029    if test "$cross_compiling" = maybe; then
4030	cross_compiling=yes
4031    else
4032	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034as_fn_error $? "cannot run Fortran compiled programs.
4035If you meant to cross compile, use \`--host'.
4036See \`config.log' for more details" "$LINENO" 5; }
4037    fi
4038  fi
4039fi
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4041$as_echo "$cross_compiling" >&6; }
4042
4043rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4044ac_clean_files=$ac_clean_files_save
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4046$as_echo_n "checking for suffix of object files... " >&6; }
4047if ${ac_cv_objext+:} false; then :
4048  $as_echo_n "(cached) " >&6
4049else
4050  cat > conftest.$ac_ext <<_ACEOF
4051      program main
4052
4053      end
4054_ACEOF
4055rm -f conftest.o conftest.obj
4056if { { ac_try="$ac_compile"
4057case "(($ac_try" in
4058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059  *) ac_try_echo=$ac_try;;
4060esac
4061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062$as_echo "$ac_try_echo"; } >&5
4063  (eval "$ac_compile") 2>&5
4064  ac_status=$?
4065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066  test $ac_status = 0; }; then :
4067  for ac_file in conftest.o conftest.obj conftest.*; do
4068  test -f "$ac_file" || continue;
4069  case $ac_file in
4070    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4071    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4072       break;;
4073  esac
4074done
4075else
4076  $as_echo "$as_me: failed program was:" >&5
4077sed 's/^/| /' conftest.$ac_ext >&5
4078
4079{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4081as_fn_error $? "cannot compute suffix of object files: cannot compile
4082See \`config.log' for more details" "$LINENO" 5; }
4083fi
4084rm -f conftest.$ac_cv_objext conftest.$ac_ext
4085fi
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4087$as_echo "$ac_cv_objext" >&6; }
4088OBJEXT=$ac_cv_objext
4089ac_objext=$OBJEXT
4090# If we don't use `.F' as extension, the preprocessor is not run on the
4091# input file.  (Note that this only needs to work for GNU compilers.)
4092ac_save_ext=$ac_ext
4093ac_ext=F
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4095$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4096if ${ac_cv_fc_compiler_gnu+:} false; then :
4097  $as_echo_n "(cached) " >&6
4098else
4099  cat > conftest.$ac_ext <<_ACEOF
4100      program main
4101#ifndef __GNUC__
4102       choke me
4103#endif
4104
4105      end
4106_ACEOF
4107if ac_fn_fc_try_compile "$LINENO"; then :
4108  ac_compiler_gnu=yes
4109else
4110  ac_compiler_gnu=no
4111fi
4112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4114
4115fi
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4117$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4118ac_ext=$ac_save_ext
4119ac_test_FCFLAGS=${FCFLAGS+set}
4120ac_save_FCFLAGS=$FCFLAGS
4121FCFLAGS=
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4123$as_echo_n "checking whether $FC accepts -g... " >&6; }
4124if ${ac_cv_prog_fc_g+:} false; then :
4125  $as_echo_n "(cached) " >&6
4126else
4127  FCFLAGS=-g
4128cat > conftest.$ac_ext <<_ACEOF
4129      program main
4130
4131      end
4132_ACEOF
4133if ac_fn_fc_try_compile "$LINENO"; then :
4134  ac_cv_prog_fc_g=yes
4135else
4136  ac_cv_prog_fc_g=no
4137fi
4138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139
4140fi
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4142$as_echo "$ac_cv_prog_fc_g" >&6; }
4143if test "$ac_test_FCFLAGS" = set; then
4144  FCFLAGS=$ac_save_FCFLAGS
4145elif test $ac_cv_prog_fc_g = yes; then
4146  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4147    FCFLAGS="-g -O2"
4148  else
4149    FCFLAGS="-g"
4150  fi
4151else
4152  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4153    FCFLAGS="-O2"
4154  else
4155    FCFLAGS=
4156  fi
4157fi
4158
4159if test $ac_compiler_gnu = yes; then
4160  GFC=yes
4161else
4162  GFC=
4163fi
4164ac_ext=c
4165ac_cpp='$CPP $CPPFLAGS'
4166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169
4170
4171# Fail if no Fortran compiler is available
4172if test "${FC}" = ""; then
4173  as_fn_error $? "no Fortran compiler available" "$LINENO" 5
4174fi
4175
4176# Set AtomPAW Fortran parameters
4177atp_fc_vendor="${with_fc_vendor}"
4178atp_fc_version="${with_fc_version}"
4179
4180    atp_fc_vendor="${with_fc_vendor}"
4181  atp_fc_version="${with_fc_version}"
4182
4183  if test "${atp_fc_vendor}" = ""; then
4184    atp_fc_vendor="unknown"
4185  fi
4186  if test "${atp_fc_version}" = ""; then
4187    atp_fc_version="unknown"
4188  fi
4189  atp_fc_wrap="no"
4190
4191    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of Fortran compiler we have" >&5
4192$as_echo_n "checking which type of Fortran compiler we have... " >&6; }
4193
4194    if test "${atp_fc_vendor}" = "unknown"; then
4195
4196
4197    fc_info_string=`${FC} -qversion 2>&1 | head -n 1`
4198  fc_garbage=`${FC} -qversion 2>&1 | wc -l | sed -e 's/ //g'`
4199  atp_result=`echo "${fc_info_string}" | grep 'IBM XL Fortran'`
4200  if test "${atp_result}" = ""; then
4201    atp_result=`echo "${fc_info_string}" | grep 'IBM(R) XL Fortran'`
4202  fi
4203  if test "${atp_result}" = ""; then
4204    atp_result="no"
4205    fc_info_string=""
4206    atp_fc_vendor="unknown"
4207    atp_fc_version="unknown"
4208    if test "${fc_garbage}" -gt 50; then
4209
4210$as_echo "#define FC_IBM 1" >>confdefs.h
4211
4212      atp_fc_vendor="ibm"
4213      atp_fc_version="unknown"
4214      atp_result="yes"
4215    fi
4216  else
4217
4218$as_echo "#define FC_IBM 1" >>confdefs.h
4219
4220    atp_fc_vendor="ibm"
4221    atp_fc_version=`echo "${atp_result}" | sed -e 's/.* V//; s/ .*//'`
4222    if test "${atp_fc_version}" = "${atp_result}"; then
4223      atp_fc_version="unknown"
4224    fi
4225    atp_result="yes"
4226  fi
4227
4228  fi
4229
4230    if test "${atp_fc_vendor}" = "unknown"; then
4231
4232
4233    fc_info_string=`${FC} -v -V 2>&1 | sed -e '/^ifc: warning/d'`
4234  atp_result=`echo "${fc_info_string}" | grep '^Intel(R) Fortran'`
4235  if test "${atp_result}" = ""; then
4236    atp_result="no"
4237    fc_info_string=""
4238    atp_fc_vendor="unknown"
4239    atp_fc_version="unknown"
4240  else
4241
4242$as_echo "#define FC_INTEL 1" >>confdefs.h
4243
4244    atp_fc_vendor="intel"
4245    atp_fc_version=`echo "${fc_info_string}" | grep '^Version' | sed -e 's/Version //;s/ .*//;s/ //g' | head -n 1`
4246    if test "${atp_fc_version}" = ""; then
4247      atp_fc_version="unknown"
4248    fi
4249    atp_result="yes"
4250  fi
4251
4252  fi
4253
4254  if test "${atp_fc_vendor}" = "unknown"; then
4255
4256
4257    fc_info_string=`${FC} --version 2>&1`
4258  atp_result=`echo "${fc_info_string}" | grep '^G95'`
4259  if test "${atp_result}" = ""; then
4260    atp_result="no"
4261    fc_info_string=""
4262    atp_fc_vendor="unknown"
4263    atp_fc_version="unknown"
4264  else
4265
4266$as_echo "#define FC_G95 1" >>confdefs.h
4267
4268    atp_fc_vendor="g95"
4269    atp_fc_version=`echo ${atp_result} | sed -e 's/.*GCC //; s/ .*//'`
4270    if test "${atp_fc_version}" = "${atp_result}"; then
4271      atp_fc_version="unknown"
4272    fi
4273    atp_result="yes"
4274  fi
4275
4276  fi
4277  if test "${atp_fc_vendor}" = "unknown"; then
4278
4279
4280    fc_info_string=`${FC} --version 2>&1`
4281  atp_result=`echo "${fc_info_string}" | grep '^GNU Fortran'`
4282  if test "${atp_result}" = ""; then
4283    atp_result="no"
4284    fc_info_string=""
4285    atp_fc_vendor="unknown"
4286    atp_fc_version="unknown"
4287  else
4288
4289$as_echo "#define FC_GNU 1" >>confdefs.h
4290
4291
4292$as_echo "#define HAVE_FORTRAN2003 1" >>confdefs.h
4293
4294    atp_fc_vendor="gnu"
4295    atp_fc_version=`echo ${atp_result} | sed -e 's/^[^(]*([^)]*) //; s/ .*//'`
4296    atp_result="yes"
4297  fi
4298
4299  fi
4300  if test "${atp_fc_vendor}" = "unknown"; then
4301
4302
4303    fc_info_string=`${FC} -version 2>&1`
4304  atp_result=`echo "${fc_info_string}" | grep '^PathScale'`
4305  if test "${atp_result}" = ""; then
4306    atp_result="no"
4307    fc_info_string=""
4308    atp_fc_vendor="unknown"
4309    atp_fc_version="unknown"
4310  else
4311
4312$as_echo "#define FC_PATHSCALE 1" >>confdefs.h
4313
4314    atp_fc_vendor="pathscale"
4315    atp_fc_version=`echo "${atp_result}" | sed -e 's/.* Version //; s/ .*//'`
4316    if test "${atp_fc_version}" = "${atp_result}"; then
4317      atp_fc_version="unknown"
4318    fi
4319    atp_result="yes"
4320  fi
4321
4322  fi
4323  if test "${atp_fc_vendor}" = "unknown"; then
4324
4325
4326    fc_info_string=`${FC} -version 2>&1 | sed -e 's/^	//' | grep '^Compaq Fortran Compiler'`
4327  atp_result="${fc_info_string}"
4328  if test "${atp_result}" = ""; then
4329    fc_info_string=`${FC} -version 2>&1 | sed -e 's/^	//' | grep '^HP Fortran Compiler'`
4330    atp_result="${fc_info_string}"
4331  fi
4332  if test "${atp_result}" = ""; then
4333    atp_result="no"
4334    fc_info_string=""
4335    atp_fc_vendor="unknown"
4336    atp_fc_version="unknown"
4337  else
4338
4339$as_echo "#define FC_COMPAQ 1" >>confdefs.h
4340
4341    atp_fc_vendor="compaq"
4342    atp_fc_version=`echo "${atp_result}" | sed -e 's/.* V//;s/-.*//'`
4343    if test "${atp_fc_version}" = "${atp_result}"; then
4344      atp_fc_version="unknown"
4345    fi
4346    atp_result="yes"
4347  fi
4348
4349  fi
4350  if test "${atp_fc_vendor}" = "unknown"; then
4351
4352
4353    fc_info_string=`${FC} -V 2> /dev/null`
4354  atp_result=`echo "${fc_info_string}" | grep '^Pro Fortran'`
4355  if test "${atp_result}" = ""; then
4356    atp_result="no"
4357    fc_info_string=""
4358    atp_fc_vendor="unknown"
4359    atp_fc_version="unknown"
4360  else
4361
4362$as_echo "#define FC_ABSOFT 1" >>confdefs.h
4363
4364    atp_fc_vendor="absoft"
4365    atp_fc_version=`echo "${atp_result}" | sed -e 's/Pro Fortran //'`
4366    if test "${atp_fc_version}" = "${atp_result}"; then
4367      atp_fc_version="unknown"
4368    fi
4369    atp_result="yes"
4370  fi
4371
4372  fi
4373  if test "${atp_fc_vendor}" = "unknown"; then
4374
4375
4376    fc_info_string=`${FC} -version 2>&1 | sed -e '/^$/d'`
4377  atp_result=`echo "${fc_info_string}" | grep '^MIPSpro'`
4378  if test "${atp_result}" = ""; then
4379    atp_result="no"
4380    fc_info_string=""
4381    atp_fc_vendor="unknown"
4382    atp_fc_version="unknown"
4383  else
4384
4385$as_echo "#define FC_MIPSPRO 1" >>confdefs.h
4386
4387    atp_fc_vendor="mipspro"
4388    atp_fc_version=`echo "${atp_result}" | sed -e 's/.*Version //'`
4389    if test "${atp_fc_version}" = "${atp_result}"; then
4390      atp_fc_version="unknown"
4391    fi
4392    atp_result="yes"
4393  fi
4394
4395  fi
4396  if test "${atp_fc_vendor}" = "unknown"; then
4397
4398
4399    fc_info_string=`${FC} --version 2>&1`
4400  atp_result=`echo "${fc_info_string}" | grep '^Open64'`
4401  if test "${atp_result}" = ""; then
4402    atp_result="no"
4403    fc_info_string=""
4404    atp_fc_vendor="unknown"
4405    atp_fc_version="unknown"
4406  else
4407
4408$as_echo "#define FC_OPEN64 1" >>confdefs.h
4409
4410    atp_fc_vendor="open64"
4411    atp_fc_version=`echo "${atp_result}" | sed -e 's/.* Version //; s/ .*//'`
4412    if test "${atp_fc_version}" = "${atp_result}"; then
4413      atp_fc_version="unknown"
4414    fi
4415    atp_result="yes"
4416  fi
4417
4418  fi
4419  if test "${atp_fc_vendor}" = "unknown"; then
4420
4421
4422    fc_info_string=`${FC} -V 2> /dev/null`
4423  atp_result=`echo "${fc_info_string}" | grep '^Fujitsu Fortran'`
4424  if test "${atp_result}" = ""; then
4425    atp_result="no"
4426    fc_info_string=""
4427    atp_fc_vendor="unknown"
4428    atp_fc_version="unknown"
4429  else
4430
4431$as_echo "#define FC_FUJITSU 1" >>confdefs.h
4432
4433    atp_fc_vendor="fujitsu"
4434    atp_fc_version=`echo "${atp_result}" | sed -e 's/.*Driver //;s/ .*//'`
4435    if test "${atp_fc_version}" = "${atp_result}"; then
4436      atp_fc_version="unknown"
4437    fi
4438    atp_result="yes"
4439  fi
4440
4441  fi
4442  if test "${atp_fc_vendor}" = "unknown"; then
4443
4444
4445    fc_info_string=`${FC} -V 2>&1 | head -n 1`
4446  atp_result=`echo "${fc_info_string}" | grep 'Sun' | grep 'Fortran 95'`
4447  if test "${atp_result}" = ""; then
4448    atp_result="no"
4449    fc_info_string=""
4450    atp_fc_vendor="unknown"
4451    atp_fc_version="unknown"
4452  else
4453
4454$as_echo "#define FC_SUN 1" >>confdefs.h
4455
4456    atp_fc_vendor="sun"
4457    atp_fc_version=`echo "${atp_result}" | sed -e 's/.* Fortran 95 //;s/ .*//'`
4458    if test "${atp_fc_version}" = "${atp_result}" -o "${atp_fc_version}" = ""; then
4459      atp_fc_version="unknown"
4460    fi
4461    atp_result="yes"
4462  fi
4463
4464  fi
4465  if test "${atp_fc_vendor}" = "unknown"; then
4466
4467
4468    fc_info_string=`${FC} -V 2> /dev/null`
4469  atp_result=`echo "${fc_info_string}" | grep '^Hitachi Fortran'`
4470  if test "${atp_result}" = ""; then
4471    atp_result="no"
4472    fc_info_string=""
4473    atp_fc_vendor="unknown"
4474    atp_fc_version="unknown"
4475  else
4476
4477$as_echo "#define FC_HITACHI 1" >>confdefs.h
4478
4479    atp_fc_vendor="hitachi"
4480    atp_fc_version=`echo "${atp_result}" | sed -e 's/.*Driver //;s/ .*//'`
4481    if test "${atp_fc_version}" = "${atp_result}"; then
4482      atp_fc_version="unknown"
4483    fi
4484    atp_result="yes"
4485  fi
4486
4487  fi
4488  if test "${atp_fc_vendor}" = "unknown"; then
4489
4490
4491    fc_info_string=`${FC} -v -V 2>&1`
4492  atp_result=`echo "${fc_info_string}" | grep '^NAG'`
4493  if test "${atp_result}" = ""; then
4494    atp_result="no"
4495    fc_info_string=""
4496    atp_fc_vendor="unknown"
4497    atp_fc_version="unknown"
4498  else
4499
4500$as_echo "#define FC_NAG 1" >>confdefs.h
4501
4502    atp_fc_vendor="nag"
4503    atp_fc_version=`echo "${fc_info_string}" | sed -e 's/.*Release //;s/[( ].*//'`
4504    if test "${atp_fc_version}" = ""; then
4505      atp_fc_version="unknown"
4506    fi
4507    atp_result="yes"
4508  fi
4509
4510  fi
4511  if test "${atp_fc_vendor}" = "unknown"; then
4512
4513
4514    fc_info_string=`${FC} -V 2>&1 | sed -e '/^$/d'`
4515  atp_result=`echo "${fc_info_string}" | grep '^pgf9[05]' | grep -v 'No files to process'`
4516  if test "${atp_result}" = ""; then
4517    atp_result="no"
4518    fc_info_string=""
4519    atp_fc_vendor="unknown"
4520    atp_fc_version="unknown"
4521  else
4522
4523$as_echo "#define FC_PGI 1" >>confdefs.h
4524
4525    atp_fc_vendor="pgi"
4526    atp_fc_version=`echo "${atp_result}" | sed -e 's/^pgf9[05] //' | sed -e 's/-.*//'`
4527    if test "${atp_fc_version}" = "${atp_result}"; then
4528      atp_fc_version="unknown"
4529    else
4530      if test "${atp_fc_version}" = "6.0"; then
4531
4532$as_echo "#define FC_PGI6 1" >>confdefs.h
4533
4534      fi
4535    fi
4536    atp_result="yes"
4537  fi
4538
4539  fi
4540
4541    if test "${atp_fc_vendor}" = "unknown"; then
4542    atp_fc_vendor="generic"
4543  fi
4544
4545    if test "${atp_fc_version}" = "unknown"; then
4546    atp_fc_version="0.0"
4547  else
4548    atp_fc_version=`echo ${atp_fc_version} | cut -d. -f1-2`
4549  fi
4550
4551    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${atp_fc_vendor} ${atp_fc_version}" >&5
4552$as_echo "${atp_fc_vendor} ${atp_fc_version}" >&6; }
4553
4554
4555
4556
4557
4558
4559# Set default file extensions
4560
4561
4562
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules extension" >&5
4564$as_echo_n "checking fortran 90 modules extension... " >&6; }
4565if ${ax_cv_f90_modext+:} false; then :
4566  $as_echo_n "(cached) " >&6
4567else
4568  ac_ext=${ac_fc_srcext-f}
4569ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4570ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4571ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4572
4573i=0
4574while test \( -f tmpdir_$i \) -o \( -d tmpdir_$i \) ; do
4575    i=`expr $i + 1`
4576done
4577mkdir tmpdir_$i
4578cd tmpdir_$i
4579cat > conftest.$ac_ext <<_ACEOF
4580
4581!234567
4582            module conftest_module
4583            contains
4584            subroutine conftest_routine
4585            write(*,'(a)') 'gotcha!'
4586            end subroutine conftest_routine
4587            end module conftest_module
4588
4589_ACEOF
4590if ac_fn_fc_try_compile "$LINENO"; then :
4591  ax_cv_f90_modext=`ls | sed -n 's,conftest_module\.,,p'`
4592      if test x$ax_cv_f90_modext = x ; then
4593          ax_cv_f90_modext=`ls | sed -n 's,CONFTEST_MODULE\.,,p'`
4594          if test x$ax_cv_f90_modext = x ; then
4595              ax_cv_f90_modext=""
4596          fi
4597      fi
4598
4599else
4600  ax_cv_f90_modext=""
4601fi
4602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603cd ..
4604rm -fr tmpdir_$i
4605ac_ext=c
4606ac_cpp='$CPP $CPPFLAGS'
4607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609ac_compiler_gnu=$ac_cv_c_compiler_gnu
4610
4611
4612fi
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_modext" >&5
4614$as_echo "$ax_cv_f90_modext" >&6; }
4615  if test "${ax_cv_f90_modext}" != ""; then
4616    MODEXT="${ax_cv_f90_modext}"
4617  else
4618    MODEXT="mod"
4619    { $as_echo "$as_me:${as_lineno-$LINENO}: setting Fortran module extension to \".${MODEXT}\"" >&5
4620$as_echo "$as_me: setting Fortran module extension to \".${MODEXT}\"" >&6;}
4621  fi
4622
4623
4624    ac_ext=${ac_fc_srcext-f}
4625ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4626ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4627ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5
4629$as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; }
4630if ${ac_cv_fc_srcext_F90+:} false; then :
4631  $as_echo_n "(cached) " >&6
4632else
4633  ac_ext=F90
4634ac_fcflags_srcext_save=$ac_fcflags_srcext
4635ac_fcflags_srcext=
4636ac_cv_fc_srcext_F90=unknown
4637case $ac_ext in #(
4638  [fF]77) ac_try=f77;; #(
4639  *) ac_try=f95;;
4640esac
4641for ac_flag in none -qsuffix=f=F90 -Tf "-x $ac_try"; do
4642  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
4643  cat > conftest.$ac_ext <<_ACEOF
4644      program main
4645
4646      end
4647_ACEOF
4648if ac_fn_fc_try_compile "$LINENO"; then :
4649  ac_cv_fc_srcext_F90=$ac_flag; break
4650fi
4651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652done
4653rm -f conftest.$ac_objext conftest.F90
4654ac_fcflags_srcext=$ac_fcflags_srcext_save
4655
4656fi
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5
4658$as_echo "$ac_cv_fc_srcext_F90" >&6; }
4659if test "x$ac_cv_fc_srcext_F90" = xunknown; then
4660  atp_fc_src_ok="no"
4661else
4662  ac_fc_srcext=F90
4663  if test "x$ac_cv_fc_srcext_F90" = xnone; then
4664    ac_fcflags_srcext=""
4665    FCFLAGS_F90=""
4666  else
4667    ac_fcflags_srcext=$ac_cv_fc_srcext_F90
4668    FCFLAGS_F90=$ac_cv_fc_srcext_F90
4669  fi
4670
4671  atp_fc_src_ok="yes"
4672fi
4673ac_ext=c
4674ac_cpp='$CPP $CPPFLAGS'
4675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4677ac_compiler_gnu=$ac_cv_c_compiler_gnu
4678
4679  if test "${atp_fc_src_ok}" != "yes"; then
4680    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran file extension could not be changed" >&5
4681$as_echo "$as_me: WARNING: Fortran file extension could not be changed" >&2;}
4682    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some advanced Fortran tests may fail" >&5
4683$as_echo "$as_me: WARNING: some advanced Fortran tests may fail" >&2;}
4684  fi
4685
4686
4687# Get module file case
4688
4689
4690
4691    fc_mod_lowercase="yes"
4692  fc_mod_uppercase="no"
4693  { $as_echo "$as_me:${as_lineno-$LINENO}: determining Fortran module case" >&5
4694$as_echo "$as_me: determining Fortran module case" >&6;}
4695
4696    ac_ext=${ac_fc_srcext-f}
4697ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4698ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4699ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4700
4701  cat > conftest.$ac_ext <<_ACEOF
4702
4703    module conftest
4704    end module conftest
4705
4706_ACEOF
4707if ac_fn_fc_try_compile "$LINENO"; then :
4708
4709else
4710  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712as_fn_error $? "unable to compile a simple Fortran module
4713See \`config.log' for more details" "$LINENO" 5; }
4714fi
4715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716  ac_ext=c
4717ac_cpp='$CPP $CPPFLAGS'
4718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721
4722
4723    if test -f "CONFTEST.${MODEXT}"; then
4724    fc_mod_lowercase="no"
4725    fc_mod_uppercase="yes"
4726  elif test ! -f "conftest.${MODEXT}"; then
4727    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: conftest.${MODEXT} Fortran module could not be found" >&5
4728$as_echo "$as_me: WARNING: conftest.${MODEXT} Fortran module could not be found" >&2;}
4729  fi
4730
4731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran modules are upper-case" >&5
4732$as_echo_n "checking whether Fortran modules are upper-case... " >&6; }
4733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_mod_uppercase}" >&5
4734$as_echo "${fc_mod_uppercase}" >&6; }
4735
4736
4737# Set default optimizations
4738
4739  ATP_FCOPTS=""
4740  ATP_LDOPTS=""
4741  ATP_LIBS=""
4742
4743  case "${atp_fc_vendor}" in
4744
4745    compaq)
4746      ATP_FCOPTS="-fast"
4747      ATP_LDOPTS="-fast"
4748      ATP_LIBS="-lcxml"
4749      ;;
4750
4751    g95)
4752      ATP_FCOPTS="-O2"
4753      ATP_LDOPTS="-O2"
4754      case "${with_linalg_flavor}" in
4755        atlas)
4756          ATP_LIBS="-llapack -lf77blas -lcblas -latlas"
4757          ;;
4758        netlib)
4759          ATP_LIBS="-llapack -lblas"
4760          ;;
4761      esac
4762      ;;
4763
4764    gnu)
4765      ATP_FCOPTS="-O2"
4766      ATP_LDOPTS="-O2"
4767      case "${with_linalg_flavor}" in
4768        atlas)
4769          ATP_LIBS="-llapack -lf77blas -lcblas -latlas"
4770          ;;
4771        netlib)
4772          ATP_LIBS="-llapack -lblas"
4773          ;;
4774      esac
4775      ;;
4776
4777    intel)
4778      ATP_FCOPTS="-O2"
4779      ATP_LDOPTS="-O2 -Vaxlib"
4780      case "${with_linalg_flavor}" in
4781        atlas)
4782          ATP_LIBS="-llapack -lf77blas -lcblas -latlas"
4783          ;;
4784        mkl)
4785          ATP_LIBS="-lmkl_lapack -lmkl_ia32 -lguide -lpthread"
4786          ;;
4787      esac
4788      ;;
4789
4790    nag)
4791      ATP_FCOPTS="-DNAG"
4792      ATP_LDOPTS=""
4793      case "${with_linalg_flavor}" in
4794        atlas)
4795          ATP_LIBS="-llapack -lf77blas -lcblas -latlas"
4796          ;;
4797        netlib)
4798          ATP_LIBS="-llapack -lblas"
4799          ;;
4800      esac
4801      ;;
4802
4803    pathscale)
4804      ATP_FCOPTS="-O3"
4805      ATP_LDOPTS=""
4806      ATP_LIBS="-lacml"
4807      ;;
4808
4809    pgi)
4810      ATP_FCOPTS="-fast"
4811      ATP_LDOPTS=""
4812      ATP_LIBS="-llapack -lblas"
4813      ;;
4814
4815    sun)
4816      ATP_FCOPTS="-fast -xO3 -xlic_lib=sunperf"
4817      ATP_LDOPTS="-fast -xO3 -xlic_lib=sunperf"
4818      ATP_LIBS=""
4819      ;;
4820
4821    ibm)
4822      ATP_FCOPTS="-qfree=f90 -qsuffix=f=f90:cpp=F90 -qarch=auto -O3"
4823      ATP_LDOPTS="-qfree=f90 -qsuffix=f=f90:cpp=F90 -qarch=auto"
4824      ATP_LIBS="-llapack -lessl"
4825      ;;
4826
4827    *)
4828      ATP_FCOPTS="-O2"
4829      ATP_LDOPTS=""
4830      ATP_LIBS=""
4831      ;;
4832
4833  esac
4834
4835
4836
4837
4838
4839
4840# Check for specific Fortran features
4841
4842  fc_has_iso_c_binding="no"
4843
4844  ac_ext=${ac_fc_srcext-f}
4845ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4846ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4847ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4848
4849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler provides the iso_c_binding module" >&5
4850$as_echo_n "checking whether the Fortran compiler provides the iso_c_binding module... " >&6; }
4851
4852    ac_ext=${ac_fc_srcext-f}
4853ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4854ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4855ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4856
4857  cat > conftest.$ac_ext <<_ACEOF
4858      program main
4859use iso_c_binding
4860      implicit none
4861      integer(c_int) :: ii
4862      logical :: lbool
4863      type(c_ptr) :: ptr
4864      ptr = c_null_ptr
4865      lbool = c_associated(ptr)
4866
4867      end
4868_ACEOF
4869if ac_fn_fc_try_link "$LINENO"; then :
4870  fc_has_iso_c_binding="yes"
4871fi
4872rm -f core conftest.err conftest.$ac_objext \
4873    conftest$ac_exeext conftest.$ac_ext
4874  ac_ext=${ac_fc_srcext-f}
4875ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4876ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4877ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4878
4879
4880  if test "${fc_has_iso_c_binding}" = "yes"; then
4881
4882$as_echo "#define HAVE_FC_ISO_C_BINDING 1" >>confdefs.h
4883
4884  else
4885    as_fn_error $? "Fortran compiler does not provide iso_c_binding module. Use a more recent version or a different compiler." "$LINENO" 5
4886  fi
4887
4888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_has_iso_c_binding}" >&5
4889$as_echo "${fc_has_iso_c_binding}" >&6; }
4890  ac_ext=c
4891ac_cpp='$CPP $CPPFLAGS'
4892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895
4896
4897
4898
4899
4900    fc_has_flush="no"
4901
4902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler accepts flush()" >&5
4903$as_echo_n "checking whether the Fortran compiler accepts flush()... " >&6; }
4904
4905    ac_ext=${ac_fc_srcext-f}
4906ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4907ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4908ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4909
4910  cat > conftest.$ac_ext <<_ACEOF
4911      program main
4912
4913            call flush(1)
4914
4915      end
4916_ACEOF
4917if ac_fn_fc_try_link "$LINENO"; then :
4918  fc_has_flush="yes"
4919fi
4920rm -f core conftest.err conftest.$ac_objext \
4921    conftest$ac_exeext conftest.$ac_ext
4922  ac_ext=c
4923ac_cpp='$CPP $CPPFLAGS'
4924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927
4928
4929  if test "${fc_has_flush}" = "yes"; then
4930
4931$as_echo "#define HAVE_FC_FLUSH 1" >>confdefs.h
4932
4933  fi
4934
4935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_has_flush}" >&5
4936$as_echo "${fc_has_flush}" >&6; }
4937
4938
4939    fc_has_flush_="no"
4940
4941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler accepts flush_()" >&5
4942$as_echo_n "checking whether the Fortran compiler accepts flush_()... " >&6; }
4943
4944    ac_ext=${ac_fc_srcext-f}
4945ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4946ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4947ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4948
4949  cat > conftest.$ac_ext <<_ACEOF
4950      program main
4951
4952            call flush_(1)
4953
4954      end
4955_ACEOF
4956if ac_fn_fc_try_link "$LINENO"; then :
4957  fc_has_flush_="yes"
4958fi
4959rm -f core conftest.err conftest.$ac_objext \
4960    conftest$ac_exeext conftest.$ac_ext
4961  ac_ext=c
4962ac_cpp='$CPP $CPPFLAGS'
4963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966
4967
4968  if test "${fc_has_flush_}" = "yes"; then
4969
4970$as_echo "#define HAVE_FC_FLUSH_ 1" >>confdefs.h
4971
4972  fi
4973
4974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_has_flush_}" >&5
4975$as_echo "${fc_has_flush_}" >&6; }
4976
4977
4978    fc_has_isatty="no"
4979
4980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler accepts isatty()" >&5
4981$as_echo_n "checking whether the Fortran compiler accepts isatty()... " >&6; }
4982
4983    ac_ext=${ac_fc_srcext-f}
4984ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4985ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4986ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4987
4988  cat > conftest.$ac_ext <<_ACEOF
4989      program main
4990
4991            logical :: success
4992            success=isatty(1)
4993
4994      end
4995_ACEOF
4996if ac_fn_fc_try_link "$LINENO"; then :
4997  fc_has_isatty="yes"
4998fi
4999rm -f core conftest.err conftest.$ac_objext \
5000    conftest$ac_exeext conftest.$ac_ext
5001  ac_ext=c
5002ac_cpp='$CPP $CPPFLAGS'
5003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006
5007
5008  if test "${fc_has_isatty}" = "yes"; then
5009
5010$as_echo "#define HAVE_FC_ISATTY 1" >>confdefs.h
5011
5012  fi
5013
5014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_has_isatty}" >&5
5015$as_echo "${fc_has_isatty}" >&6; }
5016
5017
5018
5019                    # ------------------------------------ #
5020
5021#
5022# Libtool configuration
5023#
5024
5025# Initialize Libtool
5026#   Disable this shared-library feature because it is not convenient
5027#   to have a script and not an executable for atompaw
5028case `pwd` in
5029  *\ * | *\	*)
5030    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5031$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5032esac
5033
5034
5035
5036macro_version='2.4.2'
5037macro_revision='1.3337'
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051ltmain="$ac_aux_dir/ltmain.sh"
5052
5053# Backslashify metacharacters that are still active within
5054# double-quoted strings.
5055sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5056
5057# Same as above, but do not quote variable references.
5058double_quote_subst='s/\(["`\\]\)/\\\1/g'
5059
5060# Sed substitution to delay expansion of an escaped shell variable in a
5061# double_quote_subst'ed string.
5062delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5063
5064# Sed substitution to delay expansion of an escaped single quote.
5065delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5066
5067# Sed substitution to avoid accidental globbing in evaled expressions
5068no_glob_subst='s/\*/\\\*/g'
5069
5070ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5071ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5072ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5073
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5075$as_echo_n "checking how to print strings... " >&6; }
5076# Test print first, because it will be a builtin if present.
5077if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5078   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5079  ECHO='print -r --'
5080elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5081  ECHO='printf %s\n'
5082else
5083  # Use this function as a fallback that always works.
5084  func_fallback_echo ()
5085  {
5086    eval 'cat <<_LTECHO_EOF
5087$1
5088_LTECHO_EOF'
5089  }
5090  ECHO='func_fallback_echo'
5091fi
5092
5093# func_echo_all arg...
5094# Invoke $ECHO with all args, space-separated.
5095func_echo_all ()
5096{
5097    $ECHO ""
5098}
5099
5100case "$ECHO" in
5101  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5102$as_echo "printf" >&6; } ;;
5103  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5104$as_echo "print -r" >&6; } ;;
5105  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5106$as_echo "cat" >&6; } ;;
5107esac
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122DEPDIR="${am__leading_dot}deps"
5123
5124ac_config_commands="$ac_config_commands depfiles"
5125
5126
5127am_make=${MAKE-make}
5128cat > confinc << 'END'
5129am__doit:
5130	@echo this is the am__doit target
5131.PHONY: am__doit
5132END
5133# If we don't find an include directive, just comment out the code.
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5135$as_echo_n "checking for style of include used by $am_make... " >&6; }
5136am__include="#"
5137am__quote=
5138_am_result=none
5139# First try GNU make style include.
5140echo "include confinc" > confmf
5141# Ignore all kinds of additional output from 'make'.
5142case `$am_make -s -f confmf 2> /dev/null` in #(
5143*the\ am__doit\ target*)
5144  am__include=include
5145  am__quote=
5146  _am_result=GNU
5147  ;;
5148esac
5149# Now try BSD make style include.
5150if test "$am__include" = "#"; then
5151   echo '.include "confinc"' > confmf
5152   case `$am_make -s -f confmf 2> /dev/null` in #(
5153   *the\ am__doit\ target*)
5154     am__include=.include
5155     am__quote="\""
5156     _am_result=BSD
5157     ;;
5158   esac
5159fi
5160
5161
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5163$as_echo "$_am_result" >&6; }
5164rm -f confinc confmf
5165
5166# Check whether --enable-dependency-tracking was given.
5167if test "${enable_dependency_tracking+set}" = set; then :
5168  enableval=$enable_dependency_tracking;
5169fi
5170
5171if test "x$enable_dependency_tracking" != xno; then
5172  am_depcomp="$ac_aux_dir/depcomp"
5173  AMDEPBACKSLASH='\'
5174  am__nodep='_no'
5175fi
5176 if test "x$enable_dependency_tracking" != xno; then
5177  AMDEP_TRUE=
5178  AMDEP_FALSE='#'
5179else
5180  AMDEP_TRUE='#'
5181  AMDEP_FALSE=
5182fi
5183
5184
5185ac_ext=c
5186ac_cpp='$CPP $CPPFLAGS'
5187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189ac_compiler_gnu=$ac_cv_c_compiler_gnu
5190if test -n "$ac_tool_prefix"; then
5191  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5192set dummy ${ac_tool_prefix}gcc; ac_word=$2
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194$as_echo_n "checking for $ac_word... " >&6; }
5195if ${ac_cv_prog_CC+:} false; then :
5196  $as_echo_n "(cached) " >&6
5197else
5198  if test -n "$CC"; then
5199  ac_cv_prog_CC="$CC" # Let the user override the test.
5200else
5201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202for as_dir in $PATH
5203do
5204  IFS=$as_save_IFS
5205  test -z "$as_dir" && as_dir=.
5206    for ac_exec_ext in '' $ac_executable_extensions; do
5207  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210    break 2
5211  fi
5212done
5213  done
5214IFS=$as_save_IFS
5215
5216fi
5217fi
5218CC=$ac_cv_prog_CC
5219if test -n "$CC"; then
5220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5221$as_echo "$CC" >&6; }
5222else
5223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224$as_echo "no" >&6; }
5225fi
5226
5227
5228fi
5229if test -z "$ac_cv_prog_CC"; then
5230  ac_ct_CC=$CC
5231  # Extract the first word of "gcc", so it can be a program name with args.
5232set dummy gcc; ac_word=$2
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234$as_echo_n "checking for $ac_word... " >&6; }
5235if ${ac_cv_prog_ac_ct_CC+:} false; then :
5236  $as_echo_n "(cached) " >&6
5237else
5238  if test -n "$ac_ct_CC"; then
5239  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5240else
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244  IFS=$as_save_IFS
5245  test -z "$as_dir" && as_dir=.
5246    for ac_exec_ext in '' $ac_executable_extensions; do
5247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248    ac_cv_prog_ac_ct_CC="gcc"
5249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250    break 2
5251  fi
5252done
5253  done
5254IFS=$as_save_IFS
5255
5256fi
5257fi
5258ac_ct_CC=$ac_cv_prog_ac_ct_CC
5259if test -n "$ac_ct_CC"; then
5260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5261$as_echo "$ac_ct_CC" >&6; }
5262else
5263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264$as_echo "no" >&6; }
5265fi
5266
5267  if test "x$ac_ct_CC" = x; then
5268    CC=""
5269  else
5270    case $cross_compiling:$ac_tool_warned in
5271yes:)
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5274ac_tool_warned=yes ;;
5275esac
5276    CC=$ac_ct_CC
5277  fi
5278else
5279  CC="$ac_cv_prog_CC"
5280fi
5281
5282if test -z "$CC"; then
5283          if test -n "$ac_tool_prefix"; then
5284    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5285set dummy ${ac_tool_prefix}cc; ac_word=$2
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287$as_echo_n "checking for $ac_word... " >&6; }
5288if ${ac_cv_prog_CC+:} false; then :
5289  $as_echo_n "(cached) " >&6
5290else
5291  if test -n "$CC"; then
5292  ac_cv_prog_CC="$CC" # Let the user override the test.
5293else
5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295for as_dir in $PATH
5296do
5297  IFS=$as_save_IFS
5298  test -z "$as_dir" && as_dir=.
5299    for ac_exec_ext in '' $ac_executable_extensions; do
5300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301    ac_cv_prog_CC="${ac_tool_prefix}cc"
5302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303    break 2
5304  fi
5305done
5306  done
5307IFS=$as_save_IFS
5308
5309fi
5310fi
5311CC=$ac_cv_prog_CC
5312if test -n "$CC"; then
5313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5314$as_echo "$CC" >&6; }
5315else
5316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317$as_echo "no" >&6; }
5318fi
5319
5320
5321  fi
5322fi
5323if test -z "$CC"; then
5324  # Extract the first word of "cc", so it can be a program name with args.
5325set dummy cc; ac_word=$2
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327$as_echo_n "checking for $ac_word... " >&6; }
5328if ${ac_cv_prog_CC+:} false; then :
5329  $as_echo_n "(cached) " >&6
5330else
5331  if test -n "$CC"; then
5332  ac_cv_prog_CC="$CC" # Let the user override the test.
5333else
5334  ac_prog_rejected=no
5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
5337do
5338  IFS=$as_save_IFS
5339  test -z "$as_dir" && as_dir=.
5340    for ac_exec_ext in '' $ac_executable_extensions; do
5341  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5343       ac_prog_rejected=yes
5344       continue
5345     fi
5346    ac_cv_prog_CC="cc"
5347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348    break 2
5349  fi
5350done
5351  done
5352IFS=$as_save_IFS
5353
5354if test $ac_prog_rejected = yes; then
5355  # We found a bogon in the path, so make sure we never use it.
5356  set dummy $ac_cv_prog_CC
5357  shift
5358  if test $# != 0; then
5359    # We chose a different compiler from the bogus one.
5360    # However, it has the same basename, so the bogon will be chosen
5361    # first if we set CC to just the basename; use the full file name.
5362    shift
5363    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5364  fi
5365fi
5366fi
5367fi
5368CC=$ac_cv_prog_CC
5369if test -n "$CC"; then
5370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5371$as_echo "$CC" >&6; }
5372else
5373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374$as_echo "no" >&6; }
5375fi
5376
5377
5378fi
5379if test -z "$CC"; then
5380  if test -n "$ac_tool_prefix"; then
5381  for ac_prog in cl.exe
5382  do
5383    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5384set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386$as_echo_n "checking for $ac_word... " >&6; }
5387if ${ac_cv_prog_CC+:} false; then :
5388  $as_echo_n "(cached) " >&6
5389else
5390  if test -n "$CC"; then
5391  ac_cv_prog_CC="$CC" # Let the user override the test.
5392else
5393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394for as_dir in $PATH
5395do
5396  IFS=$as_save_IFS
5397  test -z "$as_dir" && as_dir=.
5398    for ac_exec_ext in '' $ac_executable_extensions; do
5399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402    break 2
5403  fi
5404done
5405  done
5406IFS=$as_save_IFS
5407
5408fi
5409fi
5410CC=$ac_cv_prog_CC
5411if test -n "$CC"; then
5412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5413$as_echo "$CC" >&6; }
5414else
5415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416$as_echo "no" >&6; }
5417fi
5418
5419
5420    test -n "$CC" && break
5421  done
5422fi
5423if test -z "$CC"; then
5424  ac_ct_CC=$CC
5425  for ac_prog in cl.exe
5426do
5427  # Extract the first word of "$ac_prog", so it can be a program name with args.
5428set dummy $ac_prog; ac_word=$2
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430$as_echo_n "checking for $ac_word... " >&6; }
5431if ${ac_cv_prog_ac_ct_CC+:} false; then :
5432  $as_echo_n "(cached) " >&6
5433else
5434  if test -n "$ac_ct_CC"; then
5435  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5436else
5437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438for as_dir in $PATH
5439do
5440  IFS=$as_save_IFS
5441  test -z "$as_dir" && as_dir=.
5442    for ac_exec_ext in '' $ac_executable_extensions; do
5443  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444    ac_cv_prog_ac_ct_CC="$ac_prog"
5445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446    break 2
5447  fi
5448done
5449  done
5450IFS=$as_save_IFS
5451
5452fi
5453fi
5454ac_ct_CC=$ac_cv_prog_ac_ct_CC
5455if test -n "$ac_ct_CC"; then
5456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5457$as_echo "$ac_ct_CC" >&6; }
5458else
5459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460$as_echo "no" >&6; }
5461fi
5462
5463
5464  test -n "$ac_ct_CC" && break
5465done
5466
5467  if test "x$ac_ct_CC" = x; then
5468    CC=""
5469  else
5470    case $cross_compiling:$ac_tool_warned in
5471yes:)
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5474ac_tool_warned=yes ;;
5475esac
5476    CC=$ac_ct_CC
5477  fi
5478fi
5479
5480fi
5481
5482
5483test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5485as_fn_error $? "no acceptable C compiler found in \$PATH
5486See \`config.log' for more details" "$LINENO" 5; }
5487
5488# Provide some information about the compiler.
5489$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5490set X $ac_compile
5491ac_compiler=$2
5492for ac_option in --version -v -V -qversion; do
5493  { { ac_try="$ac_compiler $ac_option >&5"
5494case "(($ac_try" in
5495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496  *) ac_try_echo=$ac_try;;
5497esac
5498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5499$as_echo "$ac_try_echo"; } >&5
5500  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5501  ac_status=$?
5502  if test -s conftest.err; then
5503    sed '10a\
5504... rest of stderr output deleted ...
5505         10q' conftest.err >conftest.er1
5506    cat conftest.er1 >&5
5507  fi
5508  rm -f conftest.er1 conftest.err
5509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5510  test $ac_status = 0; }
5511done
5512
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5514$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5515if ${ac_cv_c_compiler_gnu+:} false; then :
5516  $as_echo_n "(cached) " >&6
5517else
5518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519/* end confdefs.h.  */
5520
5521int
5522main ()
5523{
5524#ifndef __GNUC__
5525       choke me
5526#endif
5527
5528  ;
5529  return 0;
5530}
5531_ACEOF
5532if ac_fn_c_try_compile "$LINENO"; then :
5533  ac_compiler_gnu=yes
5534else
5535  ac_compiler_gnu=no
5536fi
5537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538ac_cv_c_compiler_gnu=$ac_compiler_gnu
5539
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5542$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5543if test $ac_compiler_gnu = yes; then
5544  GCC=yes
5545else
5546  GCC=
5547fi
5548ac_test_CFLAGS=${CFLAGS+set}
5549ac_save_CFLAGS=$CFLAGS
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5551$as_echo_n "checking whether $CC accepts -g... " >&6; }
5552if ${ac_cv_prog_cc_g+:} false; then :
5553  $as_echo_n "(cached) " >&6
5554else
5555  ac_save_c_werror_flag=$ac_c_werror_flag
5556   ac_c_werror_flag=yes
5557   ac_cv_prog_cc_g=no
5558   CFLAGS="-g"
5559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560/* end confdefs.h.  */
5561
5562int
5563main ()
5564{
5565
5566  ;
5567  return 0;
5568}
5569_ACEOF
5570if ac_fn_c_try_compile "$LINENO"; then :
5571  ac_cv_prog_cc_g=yes
5572else
5573  CFLAGS=""
5574      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575/* end confdefs.h.  */
5576
5577int
5578main ()
5579{
5580
5581  ;
5582  return 0;
5583}
5584_ACEOF
5585if ac_fn_c_try_compile "$LINENO"; then :
5586
5587else
5588  ac_c_werror_flag=$ac_save_c_werror_flag
5589	 CFLAGS="-g"
5590	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591/* end confdefs.h.  */
5592
5593int
5594main ()
5595{
5596
5597  ;
5598  return 0;
5599}
5600_ACEOF
5601if ac_fn_c_try_compile "$LINENO"; then :
5602  ac_cv_prog_cc_g=yes
5603fi
5604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605fi
5606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607fi
5608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609   ac_c_werror_flag=$ac_save_c_werror_flag
5610fi
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5612$as_echo "$ac_cv_prog_cc_g" >&6; }
5613if test "$ac_test_CFLAGS" = set; then
5614  CFLAGS=$ac_save_CFLAGS
5615elif test $ac_cv_prog_cc_g = yes; then
5616  if test "$GCC" = yes; then
5617    CFLAGS="-g -O2"
5618  else
5619    CFLAGS="-g"
5620  fi
5621else
5622  if test "$GCC" = yes; then
5623    CFLAGS="-O2"
5624  else
5625    CFLAGS=
5626  fi
5627fi
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5629$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5630if ${ac_cv_prog_cc_c89+:} false; then :
5631  $as_echo_n "(cached) " >&6
5632else
5633  ac_cv_prog_cc_c89=no
5634ac_save_CC=$CC
5635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h.  */
5637#include <stdarg.h>
5638#include <stdio.h>
5639struct stat;
5640/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5641struct buf { int x; };
5642FILE * (*rcsopen) (struct buf *, struct stat *, int);
5643static char *e (p, i)
5644     char **p;
5645     int i;
5646{
5647  return p[i];
5648}
5649static char *f (char * (*g) (char **, int), char **p, ...)
5650{
5651  char *s;
5652  va_list v;
5653  va_start (v,p);
5654  s = g (p, va_arg (v,int));
5655  va_end (v);
5656  return s;
5657}
5658
5659/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5660   function prototypes and stuff, but not '\xHH' hex character constants.
5661   These don't provoke an error unfortunately, instead are silently treated
5662   as 'x'.  The following induces an error, until -std is added to get
5663   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5664   array size at least.  It's necessary to write '\x00'==0 to get something
5665   that's true only with -std.  */
5666int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5667
5668/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5669   inside strings and character constants.  */
5670#define FOO(x) 'x'
5671int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5672
5673int test (int i, double x);
5674struct s1 {int (*f) (int a);};
5675struct s2 {int (*f) (double a);};
5676int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5677int argc;
5678char **argv;
5679int
5680main ()
5681{
5682return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5683  ;
5684  return 0;
5685}
5686_ACEOF
5687for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5688	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5689do
5690  CC="$ac_save_CC $ac_arg"
5691  if ac_fn_c_try_compile "$LINENO"; then :
5692  ac_cv_prog_cc_c89=$ac_arg
5693fi
5694rm -f core conftest.err conftest.$ac_objext
5695  test "x$ac_cv_prog_cc_c89" != "xno" && break
5696done
5697rm -f conftest.$ac_ext
5698CC=$ac_save_CC
5699
5700fi
5701# AC_CACHE_VAL
5702case "x$ac_cv_prog_cc_c89" in
5703  x)
5704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5705$as_echo "none needed" >&6; } ;;
5706  xno)
5707    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5708$as_echo "unsupported" >&6; } ;;
5709  *)
5710    CC="$CC $ac_cv_prog_cc_c89"
5711    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5712$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5713esac
5714if test "x$ac_cv_prog_cc_c89" != xno; then :
5715
5716fi
5717
5718ac_ext=c
5719ac_cpp='$CPP $CPPFLAGS'
5720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5722ac_compiler_gnu=$ac_cv_c_compiler_gnu
5723
5724depcc="$CC"   am_compiler_list=
5725
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5727$as_echo_n "checking dependency style of $depcc... " >&6; }
5728if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5729  $as_echo_n "(cached) " >&6
5730else
5731  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5732  # We make a subdir and do the tests there.  Otherwise we can end up
5733  # making bogus files that we don't know about and never remove.  For
5734  # instance it was reported that on HP-UX the gcc test will end up
5735  # making a dummy file named 'D' -- because '-MD' means "put the output
5736  # in D".
5737  rm -rf conftest.dir
5738  mkdir conftest.dir
5739  # Copy depcomp to subdir because otherwise we won't find it if we're
5740  # using a relative directory.
5741  cp "$am_depcomp" conftest.dir
5742  cd conftest.dir
5743  # We will build objects and dependencies in a subdirectory because
5744  # it helps to detect inapplicable dependency modes.  For instance
5745  # both Tru64's cc and ICC support -MD to output dependencies as a
5746  # side effect of compilation, but ICC will put the dependencies in
5747  # the current directory while Tru64 will put them in the object
5748  # directory.
5749  mkdir sub
5750
5751  am_cv_CC_dependencies_compiler_type=none
5752  if test "$am_compiler_list" = ""; then
5753     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5754  fi
5755  am__universal=false
5756  case " $depcc " in #(
5757     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5758     esac
5759
5760  for depmode in $am_compiler_list; do
5761    # Setup a source with many dependencies, because some compilers
5762    # like to wrap large dependency lists on column 80 (with \), and
5763    # we should not choose a depcomp mode which is confused by this.
5764    #
5765    # We need to recreate these files for each test, as the compiler may
5766    # overwrite some of them when testing with obscure command lines.
5767    # This happens at least with the AIX C compiler.
5768    : > sub/conftest.c
5769    for i in 1 2 3 4 5 6; do
5770      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5771      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5772      # Solaris 10 /bin/sh.
5773      echo '/* dummy */' > sub/conftst$i.h
5774    done
5775    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5776
5777    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5778    # mode.  It turns out that the SunPro C++ compiler does not properly
5779    # handle '-M -o', and we need to detect this.  Also, some Intel
5780    # versions had trouble with output in subdirs.
5781    am__obj=sub/conftest.${OBJEXT-o}
5782    am__minus_obj="-o $am__obj"
5783    case $depmode in
5784    gcc)
5785      # This depmode causes a compiler race in universal mode.
5786      test "$am__universal" = false || continue
5787      ;;
5788    nosideeffect)
5789      # After this tag, mechanisms are not by side-effect, so they'll
5790      # only be used when explicitly requested.
5791      if test "x$enable_dependency_tracking" = xyes; then
5792	continue
5793      else
5794	break
5795      fi
5796      ;;
5797    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5798      # This compiler won't grok '-c -o', but also, the minuso test has
5799      # not run yet.  These depmodes are late enough in the game, and
5800      # so weak that their functioning should not be impacted.
5801      am__obj=conftest.${OBJEXT-o}
5802      am__minus_obj=
5803      ;;
5804    none) break ;;
5805    esac
5806    if depmode=$depmode \
5807       source=sub/conftest.c object=$am__obj \
5808       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5809       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5810         >/dev/null 2>conftest.err &&
5811       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5812       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5813       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5814       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5815      # icc doesn't choke on unknown options, it will just issue warnings
5816      # or remarks (even with -Werror).  So we grep stderr for any message
5817      # that says an option was ignored or not supported.
5818      # When given -MP, icc 7.0 and 7.1 complain thusly:
5819      #   icc: Command line warning: ignoring option '-M'; no argument required
5820      # The diagnosis changed in icc 8.0:
5821      #   icc: Command line remark: option '-MP' not supported
5822      if (grep 'ignoring option' conftest.err ||
5823          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5824        am_cv_CC_dependencies_compiler_type=$depmode
5825        break
5826      fi
5827    fi
5828  done
5829
5830  cd ..
5831  rm -rf conftest.dir
5832else
5833  am_cv_CC_dependencies_compiler_type=none
5834fi
5835
5836fi
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5838$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5839CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5840
5841 if
5842  test "x$enable_dependency_tracking" != xno \
5843  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5844  am__fastdepCC_TRUE=
5845  am__fastdepCC_FALSE='#'
5846else
5847  am__fastdepCC_TRUE='#'
5848  am__fastdepCC_FALSE=
5849fi
5850
5851
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5853$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5854if ${ac_cv_path_SED+:} false; then :
5855  $as_echo_n "(cached) " >&6
5856else
5857            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5858     for ac_i in 1 2 3 4 5 6 7; do
5859       ac_script="$ac_script$as_nl$ac_script"
5860     done
5861     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5862     { ac_script=; unset ac_script;}
5863     if test -z "$SED"; then
5864  ac_path_SED_found=false
5865  # Loop through the user's path and test for each of PROGNAME-LIST
5866  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867for as_dir in $PATH
5868do
5869  IFS=$as_save_IFS
5870  test -z "$as_dir" && as_dir=.
5871    for ac_prog in sed gsed; do
5872    for ac_exec_ext in '' $ac_executable_extensions; do
5873      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5874      as_fn_executable_p "$ac_path_SED" || continue
5875# Check for GNU ac_path_SED and select it if it is found.
5876  # Check for GNU $ac_path_SED
5877case `"$ac_path_SED" --version 2>&1` in
5878*GNU*)
5879  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5880*)
5881  ac_count=0
5882  $as_echo_n 0123456789 >"conftest.in"
5883  while :
5884  do
5885    cat "conftest.in" "conftest.in" >"conftest.tmp"
5886    mv "conftest.tmp" "conftest.in"
5887    cp "conftest.in" "conftest.nl"
5888    $as_echo '' >> "conftest.nl"
5889    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5890    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5891    as_fn_arith $ac_count + 1 && ac_count=$as_val
5892    if test $ac_count -gt ${ac_path_SED_max-0}; then
5893      # Best one so far, save it but keep looking for a better one
5894      ac_cv_path_SED="$ac_path_SED"
5895      ac_path_SED_max=$ac_count
5896    fi
5897    # 10*(2^10) chars as input seems more than enough
5898    test $ac_count -gt 10 && break
5899  done
5900  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5901esac
5902
5903      $ac_path_SED_found && break 3
5904    done
5905  done
5906  done
5907IFS=$as_save_IFS
5908  if test -z "$ac_cv_path_SED"; then
5909    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5910  fi
5911else
5912  ac_cv_path_SED=$SED
5913fi
5914
5915fi
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5917$as_echo "$ac_cv_path_SED" >&6; }
5918 SED="$ac_cv_path_SED"
5919  rm -f conftest.sed
5920
5921test -z "$SED" && SED=sed
5922Xsed="$SED -e 1s/^X//"
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5935$as_echo_n "checking for fgrep... " >&6; }
5936if ${ac_cv_path_FGREP+:} false; then :
5937  $as_echo_n "(cached) " >&6
5938else
5939  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5940   then ac_cv_path_FGREP="$GREP -F"
5941   else
5942     if test -z "$FGREP"; then
5943  ac_path_FGREP_found=false
5944  # Loop through the user's path and test for each of PROGNAME-LIST
5945  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5947do
5948  IFS=$as_save_IFS
5949  test -z "$as_dir" && as_dir=.
5950    for ac_prog in fgrep; do
5951    for ac_exec_ext in '' $ac_executable_extensions; do
5952      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5953      as_fn_executable_p "$ac_path_FGREP" || continue
5954# Check for GNU ac_path_FGREP and select it if it is found.
5955  # Check for GNU $ac_path_FGREP
5956case `"$ac_path_FGREP" --version 2>&1` in
5957*GNU*)
5958  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5959*)
5960  ac_count=0
5961  $as_echo_n 0123456789 >"conftest.in"
5962  while :
5963  do
5964    cat "conftest.in" "conftest.in" >"conftest.tmp"
5965    mv "conftest.tmp" "conftest.in"
5966    cp "conftest.in" "conftest.nl"
5967    $as_echo 'FGREP' >> "conftest.nl"
5968    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5969    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5970    as_fn_arith $ac_count + 1 && ac_count=$as_val
5971    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5972      # Best one so far, save it but keep looking for a better one
5973      ac_cv_path_FGREP="$ac_path_FGREP"
5974      ac_path_FGREP_max=$ac_count
5975    fi
5976    # 10*(2^10) chars as input seems more than enough
5977    test $ac_count -gt 10 && break
5978  done
5979  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5980esac
5981
5982      $ac_path_FGREP_found && break 3
5983    done
5984  done
5985  done
5986IFS=$as_save_IFS
5987  if test -z "$ac_cv_path_FGREP"; then
5988    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5989  fi
5990else
5991  ac_cv_path_FGREP=$FGREP
5992fi
5993
5994   fi
5995fi
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5997$as_echo "$ac_cv_path_FGREP" >&6; }
5998 FGREP="$ac_cv_path_FGREP"
5999
6000
6001test -z "$GREP" && GREP=grep
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021# Check whether --with-gnu-ld was given.
6022if test "${with_gnu_ld+set}" = set; then :
6023  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6024else
6025  with_gnu_ld=no
6026fi
6027
6028ac_prog=ld
6029if test "$GCC" = yes; then
6030  # Check if gcc -print-prog-name=ld gives a path.
6031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6032$as_echo_n "checking for ld used by $CC... " >&6; }
6033  case $host in
6034  *-*-mingw*)
6035    # gcc leaves a trailing carriage return which upsets mingw
6036    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6037  *)
6038    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6039  esac
6040  case $ac_prog in
6041    # Accept absolute paths.
6042    [\\/]* | ?:[\\/]*)
6043      re_direlt='/[^/][^/]*/\.\./'
6044      # Canonicalize the pathname of ld
6045      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6046      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6047	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6048      done
6049      test -z "$LD" && LD="$ac_prog"
6050      ;;
6051  "")
6052    # If it fails, then pretend we aren't using GCC.
6053    ac_prog=ld
6054    ;;
6055  *)
6056    # If it is relative, then search for the first ld in PATH.
6057    with_gnu_ld=unknown
6058    ;;
6059  esac
6060elif test "$with_gnu_ld" = yes; then
6061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6062$as_echo_n "checking for GNU ld... " >&6; }
6063else
6064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6065$as_echo_n "checking for non-GNU ld... " >&6; }
6066fi
6067if ${lt_cv_path_LD+:} false; then :
6068  $as_echo_n "(cached) " >&6
6069else
6070  if test -z "$LD"; then
6071  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6072  for ac_dir in $PATH; do
6073    IFS="$lt_save_ifs"
6074    test -z "$ac_dir" && ac_dir=.
6075    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6076      lt_cv_path_LD="$ac_dir/$ac_prog"
6077      # Check to see if the program is GNU ld.  I'd rather use --version,
6078      # but apparently some variants of GNU ld only accept -v.
6079      # Break only if it was the GNU/non-GNU ld that we prefer.
6080      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6081      *GNU* | *'with BFD'*)
6082	test "$with_gnu_ld" != no && break
6083	;;
6084      *)
6085	test "$with_gnu_ld" != yes && break
6086	;;
6087      esac
6088    fi
6089  done
6090  IFS="$lt_save_ifs"
6091else
6092  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6093fi
6094fi
6095
6096LD="$lt_cv_path_LD"
6097if test -n "$LD"; then
6098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6099$as_echo "$LD" >&6; }
6100else
6101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102$as_echo "no" >&6; }
6103fi
6104test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6106$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6107if ${lt_cv_prog_gnu_ld+:} false; then :
6108  $as_echo_n "(cached) " >&6
6109else
6110  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6111case `$LD -v 2>&1 </dev/null` in
6112*GNU* | *'with BFD'*)
6113  lt_cv_prog_gnu_ld=yes
6114  ;;
6115*)
6116  lt_cv_prog_gnu_ld=no
6117  ;;
6118esac
6119fi
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6121$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6122with_gnu_ld=$lt_cv_prog_gnu_ld
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6133$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6134if ${lt_cv_path_NM+:} false; then :
6135  $as_echo_n "(cached) " >&6
6136else
6137  if test -n "$NM"; then
6138  # Let the user override the test.
6139  lt_cv_path_NM="$NM"
6140else
6141  lt_nm_to_check="${ac_tool_prefix}nm"
6142  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6143    lt_nm_to_check="$lt_nm_to_check nm"
6144  fi
6145  for lt_tmp_nm in $lt_nm_to_check; do
6146    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6147    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6148      IFS="$lt_save_ifs"
6149      test -z "$ac_dir" && ac_dir=.
6150      tmp_nm="$ac_dir/$lt_tmp_nm"
6151      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6152	# Check to see if the nm accepts a BSD-compat flag.
6153	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6154	#   nm: unknown option "B" ignored
6155	# Tru64's nm complains that /dev/null is an invalid object file
6156	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6157	*/dev/null* | *'Invalid file or object type'*)
6158	  lt_cv_path_NM="$tmp_nm -B"
6159	  break
6160	  ;;
6161	*)
6162	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6163	  */dev/null*)
6164	    lt_cv_path_NM="$tmp_nm -p"
6165	    break
6166	    ;;
6167	  *)
6168	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6169	    continue # so that we can try to find one that supports BSD flags
6170	    ;;
6171	  esac
6172	  ;;
6173	esac
6174      fi
6175    done
6176    IFS="$lt_save_ifs"
6177  done
6178  : ${lt_cv_path_NM=no}
6179fi
6180fi
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6182$as_echo "$lt_cv_path_NM" >&6; }
6183if test "$lt_cv_path_NM" != "no"; then
6184  NM="$lt_cv_path_NM"
6185else
6186  # Didn't find any BSD compatible name lister, look for dumpbin.
6187  if test -n "$DUMPBIN"; then :
6188    # Let the user override the test.
6189  else
6190    if test -n "$ac_tool_prefix"; then
6191  for ac_prog in dumpbin "link -dump"
6192  do
6193    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6194set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196$as_echo_n "checking for $ac_word... " >&6; }
6197if ${ac_cv_prog_DUMPBIN+:} false; then :
6198  $as_echo_n "(cached) " >&6
6199else
6200  if test -n "$DUMPBIN"; then
6201  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6202else
6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204for as_dir in $PATH
6205do
6206  IFS=$as_save_IFS
6207  test -z "$as_dir" && as_dir=.
6208    for ac_exec_ext in '' $ac_executable_extensions; do
6209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212    break 2
6213  fi
6214done
6215  done
6216IFS=$as_save_IFS
6217
6218fi
6219fi
6220DUMPBIN=$ac_cv_prog_DUMPBIN
6221if test -n "$DUMPBIN"; then
6222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6223$as_echo "$DUMPBIN" >&6; }
6224else
6225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226$as_echo "no" >&6; }
6227fi
6228
6229
6230    test -n "$DUMPBIN" && break
6231  done
6232fi
6233if test -z "$DUMPBIN"; then
6234  ac_ct_DUMPBIN=$DUMPBIN
6235  for ac_prog in dumpbin "link -dump"
6236do
6237  # Extract the first word of "$ac_prog", so it can be a program name with args.
6238set dummy $ac_prog; ac_word=$2
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240$as_echo_n "checking for $ac_word... " >&6; }
6241if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6242  $as_echo_n "(cached) " >&6
6243else
6244  if test -n "$ac_ct_DUMPBIN"; then
6245  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6246else
6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
6249do
6250  IFS=$as_save_IFS
6251  test -z "$as_dir" && as_dir=.
6252    for ac_exec_ext in '' $ac_executable_extensions; do
6253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256    break 2
6257  fi
6258done
6259  done
6260IFS=$as_save_IFS
6261
6262fi
6263fi
6264ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6265if test -n "$ac_ct_DUMPBIN"; then
6266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6267$as_echo "$ac_ct_DUMPBIN" >&6; }
6268else
6269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270$as_echo "no" >&6; }
6271fi
6272
6273
6274  test -n "$ac_ct_DUMPBIN" && break
6275done
6276
6277  if test "x$ac_ct_DUMPBIN" = x; then
6278    DUMPBIN=":"
6279  else
6280    case $cross_compiling:$ac_tool_warned in
6281yes:)
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6284ac_tool_warned=yes ;;
6285esac
6286    DUMPBIN=$ac_ct_DUMPBIN
6287  fi
6288fi
6289
6290    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6291    *COFF*)
6292      DUMPBIN="$DUMPBIN -symbols"
6293      ;;
6294    *)
6295      DUMPBIN=:
6296      ;;
6297    esac
6298  fi
6299
6300  if test "$DUMPBIN" != ":"; then
6301    NM="$DUMPBIN"
6302  fi
6303fi
6304test -z "$NM" && NM=nm
6305
6306
6307
6308
6309
6310
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6312$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6313if ${lt_cv_nm_interface+:} false; then :
6314  $as_echo_n "(cached) " >&6
6315else
6316  lt_cv_nm_interface="BSD nm"
6317  echo "int some_variable = 0;" > conftest.$ac_ext
6318  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6319  (eval "$ac_compile" 2>conftest.err)
6320  cat conftest.err >&5
6321  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6322  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6323  cat conftest.err >&5
6324  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6325  cat conftest.out >&5
6326  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6327    lt_cv_nm_interface="MS dumpbin"
6328  fi
6329  rm -f conftest*
6330fi
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6332$as_echo "$lt_cv_nm_interface" >&6; }
6333
6334# find the maximum length of command line arguments
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6336$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6337if ${lt_cv_sys_max_cmd_len+:} false; then :
6338  $as_echo_n "(cached) " >&6
6339else
6340    i=0
6341  teststring="ABCD"
6342
6343  case $build_os in
6344  msdosdjgpp*)
6345    # On DJGPP, this test can blow up pretty badly due to problems in libc
6346    # (any single argument exceeding 2000 bytes causes a buffer overrun
6347    # during glob expansion).  Even if it were fixed, the result of this
6348    # check would be larger than it should be.
6349    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6350    ;;
6351
6352  gnu*)
6353    # Under GNU Hurd, this test is not required because there is
6354    # no limit to the length of command line arguments.
6355    # Libtool will interpret -1 as no limit whatsoever
6356    lt_cv_sys_max_cmd_len=-1;
6357    ;;
6358
6359  cygwin* | mingw* | cegcc*)
6360    # On Win9x/ME, this test blows up -- it succeeds, but takes
6361    # about 5 minutes as the teststring grows exponentially.
6362    # Worse, since 9x/ME are not pre-emptively multitasking,
6363    # you end up with a "frozen" computer, even though with patience
6364    # the test eventually succeeds (with a max line length of 256k).
6365    # Instead, let's just punt: use the minimum linelength reported by
6366    # all of the supported platforms: 8192 (on NT/2K/XP).
6367    lt_cv_sys_max_cmd_len=8192;
6368    ;;
6369
6370  mint*)
6371    # On MiNT this can take a long time and run out of memory.
6372    lt_cv_sys_max_cmd_len=8192;
6373    ;;
6374
6375  amigaos*)
6376    # On AmigaOS with pdksh, this test takes hours, literally.
6377    # So we just punt and use a minimum line length of 8192.
6378    lt_cv_sys_max_cmd_len=8192;
6379    ;;
6380
6381  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6382    # This has been around since 386BSD, at least.  Likely further.
6383    if test -x /sbin/sysctl; then
6384      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6385    elif test -x /usr/sbin/sysctl; then
6386      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6387    else
6388      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6389    fi
6390    # And add a safety zone
6391    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6392    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6393    ;;
6394
6395  interix*)
6396    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6397    lt_cv_sys_max_cmd_len=196608
6398    ;;
6399
6400  os2*)
6401    # The test takes a long time on OS/2.
6402    lt_cv_sys_max_cmd_len=8192
6403    ;;
6404
6405  osf*)
6406    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6407    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6408    # nice to cause kernel panics so lets avoid the loop below.
6409    # First set a reasonable default.
6410    lt_cv_sys_max_cmd_len=16384
6411    #
6412    if test -x /sbin/sysconfig; then
6413      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6414        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6415      esac
6416    fi
6417    ;;
6418  sco3.2v5*)
6419    lt_cv_sys_max_cmd_len=102400
6420    ;;
6421  sysv5* | sco5v6* | sysv4.2uw2*)
6422    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6423    if test -n "$kargmax"; then
6424      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6425    else
6426      lt_cv_sys_max_cmd_len=32768
6427    fi
6428    ;;
6429  *)
6430    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6431    if test -n "$lt_cv_sys_max_cmd_len"; then
6432      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6433      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6434    else
6435      # Make teststring a little bigger before we do anything with it.
6436      # a 1K string should be a reasonable start.
6437      for i in 1 2 3 4 5 6 7 8 ; do
6438        teststring=$teststring$teststring
6439      done
6440      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6441      # If test is not a shell built-in, we'll probably end up computing a
6442      # maximum length that is only half of the actual maximum length, but
6443      # we can't tell.
6444      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6445	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6446	      test $i != 17 # 1/2 MB should be enough
6447      do
6448        i=`expr $i + 1`
6449        teststring=$teststring$teststring
6450      done
6451      # Only check the string length outside the loop.
6452      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6453      teststring=
6454      # Add a significant safety factor because C++ compilers can tack on
6455      # massive amounts of additional arguments before passing them to the
6456      # linker.  It appears as though 1/2 is a usable value.
6457      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6458    fi
6459    ;;
6460  esac
6461
6462fi
6463
6464if test -n $lt_cv_sys_max_cmd_len ; then
6465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6466$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6467else
6468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6469$as_echo "none" >&6; }
6470fi
6471max_cmd_len=$lt_cv_sys_max_cmd_len
6472
6473
6474
6475
6476
6477
6478: ${CP="cp -f"}
6479: ${MV="mv -f"}
6480: ${RM="rm -f"}
6481
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6483$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6484# Try some XSI features
6485xsi_shell=no
6486( _lt_dummy="a/b/c"
6487  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6488      = c,a/b,b/c, \
6489    && eval 'test $(( 1 + 1 )) -eq 2 \
6490    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6491  && xsi_shell=yes
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6493$as_echo "$xsi_shell" >&6; }
6494
6495
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6497$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6498lt_shell_append=no
6499( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6500    >/dev/null 2>&1 \
6501  && lt_shell_append=yes
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6503$as_echo "$lt_shell_append" >&6; }
6504
6505
6506if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6507  lt_unset=unset
6508else
6509  lt_unset=false
6510fi
6511
6512
6513
6514
6515
6516# test EBCDIC or ASCII
6517case `echo X|tr X '\101'` in
6518 A) # ASCII based system
6519    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6520  lt_SP2NL='tr \040 \012'
6521  lt_NL2SP='tr \015\012 \040\040'
6522  ;;
6523 *) # EBCDIC based system
6524  lt_SP2NL='tr \100 \n'
6525  lt_NL2SP='tr \r\n \100\100'
6526  ;;
6527esac
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6538$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6539if ${lt_cv_to_host_file_cmd+:} false; then :
6540  $as_echo_n "(cached) " >&6
6541else
6542  case $host in
6543  *-*-mingw* )
6544    case $build in
6545      *-*-mingw* ) # actually msys
6546        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6547        ;;
6548      *-*-cygwin* )
6549        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6550        ;;
6551      * ) # otherwise, assume *nix
6552        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6553        ;;
6554    esac
6555    ;;
6556  *-*-cygwin* )
6557    case $build in
6558      *-*-mingw* ) # actually msys
6559        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6560        ;;
6561      *-*-cygwin* )
6562        lt_cv_to_host_file_cmd=func_convert_file_noop
6563        ;;
6564      * ) # otherwise, assume *nix
6565        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6566        ;;
6567    esac
6568    ;;
6569  * ) # unhandled hosts (and "normal" native builds)
6570    lt_cv_to_host_file_cmd=func_convert_file_noop
6571    ;;
6572esac
6573
6574fi
6575
6576to_host_file_cmd=$lt_cv_to_host_file_cmd
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6578$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6579
6580
6581
6582
6583
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6585$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6586if ${lt_cv_to_tool_file_cmd+:} false; then :
6587  $as_echo_n "(cached) " >&6
6588else
6589  #assume ordinary cross tools, or native build.
6590lt_cv_to_tool_file_cmd=func_convert_file_noop
6591case $host in
6592  *-*-mingw* )
6593    case $build in
6594      *-*-mingw* ) # actually msys
6595        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6596        ;;
6597    esac
6598    ;;
6599esac
6600
6601fi
6602
6603to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6605$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6606
6607
6608
6609
6610
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6612$as_echo_n "checking for $LD option to reload object files... " >&6; }
6613if ${lt_cv_ld_reload_flag+:} false; then :
6614  $as_echo_n "(cached) " >&6
6615else
6616  lt_cv_ld_reload_flag='-r'
6617fi
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6619$as_echo "$lt_cv_ld_reload_flag" >&6; }
6620reload_flag=$lt_cv_ld_reload_flag
6621case $reload_flag in
6622"" | " "*) ;;
6623*) reload_flag=" $reload_flag" ;;
6624esac
6625reload_cmds='$LD$reload_flag -o $output$reload_objs'
6626case $host_os in
6627  cygwin* | mingw* | pw32* | cegcc*)
6628    if test "$GCC" != yes; then
6629      reload_cmds=false
6630    fi
6631    ;;
6632  darwin*)
6633    if test "$GCC" = yes; then
6634      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6635    else
6636      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6637    fi
6638    ;;
6639esac
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649if test -n "$ac_tool_prefix"; then
6650  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6651set dummy ${ac_tool_prefix}objdump; ac_word=$2
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653$as_echo_n "checking for $ac_word... " >&6; }
6654if ${ac_cv_prog_OBJDUMP+:} false; then :
6655  $as_echo_n "(cached) " >&6
6656else
6657  if test -n "$OBJDUMP"; then
6658  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6659else
6660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661for as_dir in $PATH
6662do
6663  IFS=$as_save_IFS
6664  test -z "$as_dir" && as_dir=.
6665    for ac_exec_ext in '' $ac_executable_extensions; do
6666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6667    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669    break 2
6670  fi
6671done
6672  done
6673IFS=$as_save_IFS
6674
6675fi
6676fi
6677OBJDUMP=$ac_cv_prog_OBJDUMP
6678if test -n "$OBJDUMP"; then
6679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6680$as_echo "$OBJDUMP" >&6; }
6681else
6682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683$as_echo "no" >&6; }
6684fi
6685
6686
6687fi
6688if test -z "$ac_cv_prog_OBJDUMP"; then
6689  ac_ct_OBJDUMP=$OBJDUMP
6690  # Extract the first word of "objdump", so it can be a program name with args.
6691set dummy objdump; ac_word=$2
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693$as_echo_n "checking for $ac_word... " >&6; }
6694if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6695  $as_echo_n "(cached) " >&6
6696else
6697  if test -n "$ac_ct_OBJDUMP"; then
6698  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6699else
6700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701for as_dir in $PATH
6702do
6703  IFS=$as_save_IFS
6704  test -z "$as_dir" && as_dir=.
6705    for ac_exec_ext in '' $ac_executable_extensions; do
6706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6707    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709    break 2
6710  fi
6711done
6712  done
6713IFS=$as_save_IFS
6714
6715fi
6716fi
6717ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6718if test -n "$ac_ct_OBJDUMP"; then
6719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6720$as_echo "$ac_ct_OBJDUMP" >&6; }
6721else
6722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723$as_echo "no" >&6; }
6724fi
6725
6726  if test "x$ac_ct_OBJDUMP" = x; then
6727    OBJDUMP="false"
6728  else
6729    case $cross_compiling:$ac_tool_warned in
6730yes:)
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6733ac_tool_warned=yes ;;
6734esac
6735    OBJDUMP=$ac_ct_OBJDUMP
6736  fi
6737else
6738  OBJDUMP="$ac_cv_prog_OBJDUMP"
6739fi
6740
6741test -z "$OBJDUMP" && OBJDUMP=objdump
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6752$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6753if ${lt_cv_deplibs_check_method+:} false; then :
6754  $as_echo_n "(cached) " >&6
6755else
6756  lt_cv_file_magic_cmd='$MAGIC_CMD'
6757lt_cv_file_magic_test_file=
6758lt_cv_deplibs_check_method='unknown'
6759# Need to set the preceding variable on all platforms that support
6760# interlibrary dependencies.
6761# 'none' -- dependencies not supported.
6762# `unknown' -- same as none, but documents that we really don't know.
6763# 'pass_all' -- all dependencies passed with no checks.
6764# 'test_compile' -- check by making test program.
6765# 'file_magic [[regex]]' -- check by looking for files in library path
6766# which responds to the $file_magic_cmd with a given extended regex.
6767# If you have `file' or equivalent on your system and you're not sure
6768# whether `pass_all' will *always* work, you probably want this one.
6769
6770case $host_os in
6771aix[4-9]*)
6772  lt_cv_deplibs_check_method=pass_all
6773  ;;
6774
6775beos*)
6776  lt_cv_deplibs_check_method=pass_all
6777  ;;
6778
6779bsdi[45]*)
6780  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6781  lt_cv_file_magic_cmd='/usr/bin/file -L'
6782  lt_cv_file_magic_test_file=/shlib/libc.so
6783  ;;
6784
6785cygwin*)
6786  # func_win32_libid is a shell function defined in ltmain.sh
6787  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6788  lt_cv_file_magic_cmd='func_win32_libid'
6789  ;;
6790
6791mingw* | pw32*)
6792  # Base MSYS/MinGW do not provide the 'file' command needed by
6793  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6794  # unless we find 'file', for example because we are cross-compiling.
6795  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6796  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6797    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6798    lt_cv_file_magic_cmd='func_win32_libid'
6799  else
6800    # Keep this pattern in sync with the one in func_win32_libid.
6801    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6802    lt_cv_file_magic_cmd='$OBJDUMP -f'
6803  fi
6804  ;;
6805
6806cegcc*)
6807  # use the weaker test based on 'objdump'. See mingw*.
6808  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6809  lt_cv_file_magic_cmd='$OBJDUMP -f'
6810  ;;
6811
6812darwin* | rhapsody*)
6813  lt_cv_deplibs_check_method=pass_all
6814  ;;
6815
6816freebsd* | dragonfly*)
6817  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6818    case $host_cpu in
6819    i*86 )
6820      # Not sure whether the presence of OpenBSD here was a mistake.
6821      # Let's accept both of them until this is cleared up.
6822      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6823      lt_cv_file_magic_cmd=/usr/bin/file
6824      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6825      ;;
6826    esac
6827  else
6828    lt_cv_deplibs_check_method=pass_all
6829  fi
6830  ;;
6831
6832gnu*)
6833  lt_cv_deplibs_check_method=pass_all
6834  ;;
6835
6836haiku*)
6837  lt_cv_deplibs_check_method=pass_all
6838  ;;
6839
6840hpux10.20* | hpux11*)
6841  lt_cv_file_magic_cmd=/usr/bin/file
6842  case $host_cpu in
6843  ia64*)
6844    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6845    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6846    ;;
6847  hppa*64*)
6848    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]'
6849    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6850    ;;
6851  *)
6852    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6853    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6854    ;;
6855  esac
6856  ;;
6857
6858interix[3-9]*)
6859  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6860  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6861  ;;
6862
6863irix5* | irix6* | nonstopux*)
6864  case $LD in
6865  *-32|*"-32 ") libmagic=32-bit;;
6866  *-n32|*"-n32 ") libmagic=N32;;
6867  *-64|*"-64 ") libmagic=64-bit;;
6868  *) libmagic=never-match;;
6869  esac
6870  lt_cv_deplibs_check_method=pass_all
6871  ;;
6872
6873# This must be glibc/ELF.
6874linux* | k*bsd*-gnu | kopensolaris*-gnu)
6875  lt_cv_deplibs_check_method=pass_all
6876  ;;
6877
6878netbsd*)
6879  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6880    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6881  else
6882    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6883  fi
6884  ;;
6885
6886newos6*)
6887  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6888  lt_cv_file_magic_cmd=/usr/bin/file
6889  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6890  ;;
6891
6892*nto* | *qnx*)
6893  lt_cv_deplibs_check_method=pass_all
6894  ;;
6895
6896openbsd*)
6897  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6898    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6899  else
6900    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6901  fi
6902  ;;
6903
6904osf3* | osf4* | osf5*)
6905  lt_cv_deplibs_check_method=pass_all
6906  ;;
6907
6908rdos*)
6909  lt_cv_deplibs_check_method=pass_all
6910  ;;
6911
6912solaris*)
6913  lt_cv_deplibs_check_method=pass_all
6914  ;;
6915
6916sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6917  lt_cv_deplibs_check_method=pass_all
6918  ;;
6919
6920sysv4 | sysv4.3*)
6921  case $host_vendor in
6922  motorola)
6923    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]'
6924    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6925    ;;
6926  ncr)
6927    lt_cv_deplibs_check_method=pass_all
6928    ;;
6929  sequent)
6930    lt_cv_file_magic_cmd='/bin/file'
6931    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6932    ;;
6933  sni)
6934    lt_cv_file_magic_cmd='/bin/file'
6935    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6936    lt_cv_file_magic_test_file=/lib/libc.so
6937    ;;
6938  siemens)
6939    lt_cv_deplibs_check_method=pass_all
6940    ;;
6941  pc)
6942    lt_cv_deplibs_check_method=pass_all
6943    ;;
6944  esac
6945  ;;
6946
6947tpf*)
6948  lt_cv_deplibs_check_method=pass_all
6949  ;;
6950esac
6951
6952fi
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6954$as_echo "$lt_cv_deplibs_check_method" >&6; }
6955
6956file_magic_glob=
6957want_nocaseglob=no
6958if test "$build" = "$host"; then
6959  case $host_os in
6960  mingw* | pw32*)
6961    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6962      want_nocaseglob=yes
6963    else
6964      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6965    fi
6966    ;;
6967  esac
6968fi
6969
6970file_magic_cmd=$lt_cv_file_magic_cmd
6971deplibs_check_method=$lt_cv_deplibs_check_method
6972test -z "$deplibs_check_method" && deplibs_check_method=unknown
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995if test -n "$ac_tool_prefix"; then
6996  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6997set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999$as_echo_n "checking for $ac_word... " >&6; }
7000if ${ac_cv_prog_DLLTOOL+:} false; then :
7001  $as_echo_n "(cached) " >&6
7002else
7003  if test -n "$DLLTOOL"; then
7004  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7005else
7006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007for as_dir in $PATH
7008do
7009  IFS=$as_save_IFS
7010  test -z "$as_dir" && as_dir=.
7011    for ac_exec_ext in '' $ac_executable_extensions; do
7012  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015    break 2
7016  fi
7017done
7018  done
7019IFS=$as_save_IFS
7020
7021fi
7022fi
7023DLLTOOL=$ac_cv_prog_DLLTOOL
7024if test -n "$DLLTOOL"; then
7025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7026$as_echo "$DLLTOOL" >&6; }
7027else
7028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029$as_echo "no" >&6; }
7030fi
7031
7032
7033fi
7034if test -z "$ac_cv_prog_DLLTOOL"; then
7035  ac_ct_DLLTOOL=$DLLTOOL
7036  # Extract the first word of "dlltool", so it can be a program name with args.
7037set dummy dlltool; ac_word=$2
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039$as_echo_n "checking for $ac_word... " >&6; }
7040if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7041  $as_echo_n "(cached) " >&6
7042else
7043  if test -n "$ac_ct_DLLTOOL"; then
7044  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7045else
7046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047for as_dir in $PATH
7048do
7049  IFS=$as_save_IFS
7050  test -z "$as_dir" && as_dir=.
7051    for ac_exec_ext in '' $ac_executable_extensions; do
7052  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055    break 2
7056  fi
7057done
7058  done
7059IFS=$as_save_IFS
7060
7061fi
7062fi
7063ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7064if test -n "$ac_ct_DLLTOOL"; then
7065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7066$as_echo "$ac_ct_DLLTOOL" >&6; }
7067else
7068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069$as_echo "no" >&6; }
7070fi
7071
7072  if test "x$ac_ct_DLLTOOL" = x; then
7073    DLLTOOL="false"
7074  else
7075    case $cross_compiling:$ac_tool_warned in
7076yes:)
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079ac_tool_warned=yes ;;
7080esac
7081    DLLTOOL=$ac_ct_DLLTOOL
7082  fi
7083else
7084  DLLTOOL="$ac_cv_prog_DLLTOOL"
7085fi
7086
7087test -z "$DLLTOOL" && DLLTOOL=dlltool
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7099$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7100if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7101  $as_echo_n "(cached) " >&6
7102else
7103  lt_cv_sharedlib_from_linklib_cmd='unknown'
7104
7105case $host_os in
7106cygwin* | mingw* | pw32* | cegcc*)
7107  # two different shell functions defined in ltmain.sh
7108  # decide which to use based on capabilities of $DLLTOOL
7109  case `$DLLTOOL --help 2>&1` in
7110  *--identify-strict*)
7111    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7112    ;;
7113  *)
7114    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7115    ;;
7116  esac
7117  ;;
7118*)
7119  # fallback: assume linklib IS sharedlib
7120  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7121  ;;
7122esac
7123
7124fi
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7126$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7127sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7128test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7129
7130
7131
7132
7133
7134
7135
7136
7137if test -n "$ac_tool_prefix"; then
7138  for ac_prog in ar
7139  do
7140    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7141set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143$as_echo_n "checking for $ac_word... " >&6; }
7144if ${ac_cv_prog_AR+:} false; then :
7145  $as_echo_n "(cached) " >&6
7146else
7147  if test -n "$AR"; then
7148  ac_cv_prog_AR="$AR" # Let the user override the test.
7149else
7150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153  IFS=$as_save_IFS
7154  test -z "$as_dir" && as_dir=.
7155    for ac_exec_ext in '' $ac_executable_extensions; do
7156  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159    break 2
7160  fi
7161done
7162  done
7163IFS=$as_save_IFS
7164
7165fi
7166fi
7167AR=$ac_cv_prog_AR
7168if test -n "$AR"; then
7169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7170$as_echo "$AR" >&6; }
7171else
7172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173$as_echo "no" >&6; }
7174fi
7175
7176
7177    test -n "$AR" && break
7178  done
7179fi
7180if test -z "$AR"; then
7181  ac_ct_AR=$AR
7182  for ac_prog in ar
7183do
7184  # Extract the first word of "$ac_prog", so it can be a program name with args.
7185set dummy $ac_prog; ac_word=$2
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187$as_echo_n "checking for $ac_word... " >&6; }
7188if ${ac_cv_prog_ac_ct_AR+:} false; then :
7189  $as_echo_n "(cached) " >&6
7190else
7191  if test -n "$ac_ct_AR"; then
7192  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7193else
7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197  IFS=$as_save_IFS
7198  test -z "$as_dir" && as_dir=.
7199    for ac_exec_ext in '' $ac_executable_extensions; do
7200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201    ac_cv_prog_ac_ct_AR="$ac_prog"
7202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203    break 2
7204  fi
7205done
7206  done
7207IFS=$as_save_IFS
7208
7209fi
7210fi
7211ac_ct_AR=$ac_cv_prog_ac_ct_AR
7212if test -n "$ac_ct_AR"; then
7213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7214$as_echo "$ac_ct_AR" >&6; }
7215else
7216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217$as_echo "no" >&6; }
7218fi
7219
7220
7221  test -n "$ac_ct_AR" && break
7222done
7223
7224  if test "x$ac_ct_AR" = x; then
7225    AR="false"
7226  else
7227    case $cross_compiling:$ac_tool_warned in
7228yes:)
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231ac_tool_warned=yes ;;
7232esac
7233    AR=$ac_ct_AR
7234  fi
7235fi
7236
7237: ${AR=ar}
7238: ${AR_FLAGS=cru}
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7251$as_echo_n "checking for archiver @FILE support... " >&6; }
7252if ${lt_cv_ar_at_file+:} false; then :
7253  $as_echo_n "(cached) " >&6
7254else
7255  lt_cv_ar_at_file=no
7256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257/* end confdefs.h.  */
7258
7259int
7260main ()
7261{
7262
7263  ;
7264  return 0;
7265}
7266_ACEOF
7267if ac_fn_c_try_compile "$LINENO"; then :
7268  echo conftest.$ac_objext > conftest.lst
7269      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7270      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7271  (eval $lt_ar_try) 2>&5
7272  ac_status=$?
7273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7274  test $ac_status = 0; }
7275      if test "$ac_status" -eq 0; then
7276	# Ensure the archiver fails upon bogus file names.
7277	rm -f conftest.$ac_objext libconftest.a
7278	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7279  (eval $lt_ar_try) 2>&5
7280  ac_status=$?
7281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7282  test $ac_status = 0; }
7283	if test "$ac_status" -ne 0; then
7284          lt_cv_ar_at_file=@
7285        fi
7286      fi
7287      rm -f conftest.* libconftest.a
7288
7289fi
7290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291
7292fi
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7294$as_echo "$lt_cv_ar_at_file" >&6; }
7295
7296if test "x$lt_cv_ar_at_file" = xno; then
7297  archiver_list_spec=
7298else
7299  archiver_list_spec=$lt_cv_ar_at_file
7300fi
7301
7302
7303
7304
7305
7306
7307
7308if test -n "$ac_tool_prefix"; then
7309  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7310set dummy ${ac_tool_prefix}strip; ac_word=$2
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312$as_echo_n "checking for $ac_word... " >&6; }
7313if ${ac_cv_prog_STRIP+:} false; then :
7314  $as_echo_n "(cached) " >&6
7315else
7316  if test -n "$STRIP"; then
7317  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7318else
7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322  IFS=$as_save_IFS
7323  test -z "$as_dir" && as_dir=.
7324    for ac_exec_ext in '' $ac_executable_extensions; do
7325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328    break 2
7329  fi
7330done
7331  done
7332IFS=$as_save_IFS
7333
7334fi
7335fi
7336STRIP=$ac_cv_prog_STRIP
7337if test -n "$STRIP"; then
7338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7339$as_echo "$STRIP" >&6; }
7340else
7341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342$as_echo "no" >&6; }
7343fi
7344
7345
7346fi
7347if test -z "$ac_cv_prog_STRIP"; then
7348  ac_ct_STRIP=$STRIP
7349  # Extract the first word of "strip", so it can be a program name with args.
7350set dummy strip; ac_word=$2
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352$as_echo_n "checking for $ac_word... " >&6; }
7353if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7354  $as_echo_n "(cached) " >&6
7355else
7356  if test -n "$ac_ct_STRIP"; then
7357  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7358else
7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362  IFS=$as_save_IFS
7363  test -z "$as_dir" && as_dir=.
7364    for ac_exec_ext in '' $ac_executable_extensions; do
7365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366    ac_cv_prog_ac_ct_STRIP="strip"
7367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368    break 2
7369  fi
7370done
7371  done
7372IFS=$as_save_IFS
7373
7374fi
7375fi
7376ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7377if test -n "$ac_ct_STRIP"; then
7378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7379$as_echo "$ac_ct_STRIP" >&6; }
7380else
7381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382$as_echo "no" >&6; }
7383fi
7384
7385  if test "x$ac_ct_STRIP" = x; then
7386    STRIP=":"
7387  else
7388    case $cross_compiling:$ac_tool_warned in
7389yes:)
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392ac_tool_warned=yes ;;
7393esac
7394    STRIP=$ac_ct_STRIP
7395  fi
7396else
7397  STRIP="$ac_cv_prog_STRIP"
7398fi
7399
7400test -z "$STRIP" && STRIP=:
7401
7402
7403
7404
7405
7406
7407if test -n "$ac_tool_prefix"; then
7408  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7409set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411$as_echo_n "checking for $ac_word... " >&6; }
7412if ${ac_cv_prog_RANLIB+:} false; then :
7413  $as_echo_n "(cached) " >&6
7414else
7415  if test -n "$RANLIB"; then
7416  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7417else
7418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419for as_dir in $PATH
7420do
7421  IFS=$as_save_IFS
7422  test -z "$as_dir" && as_dir=.
7423    for ac_exec_ext in '' $ac_executable_extensions; do
7424  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427    break 2
7428  fi
7429done
7430  done
7431IFS=$as_save_IFS
7432
7433fi
7434fi
7435RANLIB=$ac_cv_prog_RANLIB
7436if test -n "$RANLIB"; then
7437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7438$as_echo "$RANLIB" >&6; }
7439else
7440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441$as_echo "no" >&6; }
7442fi
7443
7444
7445fi
7446if test -z "$ac_cv_prog_RANLIB"; then
7447  ac_ct_RANLIB=$RANLIB
7448  # Extract the first word of "ranlib", so it can be a program name with args.
7449set dummy ranlib; ac_word=$2
7450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451$as_echo_n "checking for $ac_word... " >&6; }
7452if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7453  $as_echo_n "(cached) " >&6
7454else
7455  if test -n "$ac_ct_RANLIB"; then
7456  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7457else
7458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459for as_dir in $PATH
7460do
7461  IFS=$as_save_IFS
7462  test -z "$as_dir" && as_dir=.
7463    for ac_exec_ext in '' $ac_executable_extensions; do
7464  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465    ac_cv_prog_ac_ct_RANLIB="ranlib"
7466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467    break 2
7468  fi
7469done
7470  done
7471IFS=$as_save_IFS
7472
7473fi
7474fi
7475ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7476if test -n "$ac_ct_RANLIB"; then
7477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7478$as_echo "$ac_ct_RANLIB" >&6; }
7479else
7480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481$as_echo "no" >&6; }
7482fi
7483
7484  if test "x$ac_ct_RANLIB" = x; then
7485    RANLIB=":"
7486  else
7487    case $cross_compiling:$ac_tool_warned in
7488yes:)
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7491ac_tool_warned=yes ;;
7492esac
7493    RANLIB=$ac_ct_RANLIB
7494  fi
7495else
7496  RANLIB="$ac_cv_prog_RANLIB"
7497fi
7498
7499test -z "$RANLIB" && RANLIB=:
7500
7501
7502
7503
7504
7505
7506# Determine commands to create old-style static archives.
7507old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7508old_postinstall_cmds='chmod 644 $oldlib'
7509old_postuninstall_cmds=
7510
7511if test -n "$RANLIB"; then
7512  case $host_os in
7513  openbsd*)
7514    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7515    ;;
7516  *)
7517    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7518    ;;
7519  esac
7520  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7521fi
7522
7523case $host_os in
7524  darwin*)
7525    lock_old_archive_extraction=yes ;;
7526  *)
7527    lock_old_archive_extraction=no ;;
7528esac
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568# If no C compiler was specified, use CC.
7569LTCC=${LTCC-"$CC"}
7570
7571# If no C compiler flags were specified, use CFLAGS.
7572LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7573
7574# Allow CC to be a program name with arguments.
7575compiler=$CC
7576
7577
7578# Check for command to grab the raw symbol name followed by C symbol from nm.
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7580$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7581if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7582  $as_echo_n "(cached) " >&6
7583else
7584
7585# These are sane defaults that work on at least a few old systems.
7586# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7587
7588# Character class describing NM global symbol codes.
7589symcode='[BCDEGRST]'
7590
7591# Regexp to match symbols that can be accessed directly from C.
7592sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7593
7594# Define system-specific variables.
7595case $host_os in
7596aix*)
7597  symcode='[BCDT]'
7598  ;;
7599cygwin* | mingw* | pw32* | cegcc*)
7600  symcode='[ABCDGISTW]'
7601  ;;
7602hpux*)
7603  if test "$host_cpu" = ia64; then
7604    symcode='[ABCDEGRST]'
7605  fi
7606  ;;
7607irix* | nonstopux*)
7608  symcode='[BCDEGRST]'
7609  ;;
7610osf*)
7611  symcode='[BCDEGQRST]'
7612  ;;
7613solaris*)
7614  symcode='[BDRT]'
7615  ;;
7616sco3.2v5*)
7617  symcode='[DT]'
7618  ;;
7619sysv4.2uw2*)
7620  symcode='[DT]'
7621  ;;
7622sysv5* | sco5v6* | unixware* | OpenUNIX*)
7623  symcode='[ABDT]'
7624  ;;
7625sysv4)
7626  symcode='[DFNSTU]'
7627  ;;
7628esac
7629
7630# If we're using GNU nm, then use its standard symbol codes.
7631case `$NM -V 2>&1` in
7632*GNU* | *'with BFD'*)
7633  symcode='[ABCDGIRSTW]' ;;
7634esac
7635
7636# Transform an extracted symbol line into a proper C declaration.
7637# Some systems (esp. on ia64) link data and code symbols differently,
7638# so use this general approach.
7639lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7640
7641# Transform an extracted symbol line into symbol name and symbol address
7642lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7643lt_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'"
7644
7645# Handle CRLF in mingw tool chain
7646opt_cr=
7647case $build_os in
7648mingw*)
7649  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7650  ;;
7651esac
7652
7653# Try without a prefix underscore, then with it.
7654for ac_symprfx in "" "_"; do
7655
7656  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7657  symxfrm="\\1 $ac_symprfx\\2 \\2"
7658
7659  # Write the raw and C identifiers.
7660  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7661    # Fake it for dumpbin and say T for any non-static function
7662    # and D for any global variable.
7663    # Also find C++ and __fastcall symbols from MSVC++,
7664    # which start with @ or ?.
7665    lt_cv_sys_global_symbol_pipe="$AWK '"\
7666"     {last_section=section; section=\$ 3};"\
7667"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7668"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7669"     \$ 0!~/External *\|/{next};"\
7670"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7671"     {if(hide[section]) next};"\
7672"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7673"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7674"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7675"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7676"     ' prfx=^$ac_symprfx"
7677  else
7678    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7679  fi
7680  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7681
7682  # Check to see that the pipe works correctly.
7683  pipe_works=no
7684
7685  rm -f conftest*
7686  cat > conftest.$ac_ext <<_LT_EOF
7687#ifdef __cplusplus
7688extern "C" {
7689#endif
7690char nm_test_var;
7691void nm_test_func(void);
7692void nm_test_func(void){}
7693#ifdef __cplusplus
7694}
7695#endif
7696int main(){nm_test_var='a';nm_test_func();return(0);}
7697_LT_EOF
7698
7699  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7700  (eval $ac_compile) 2>&5
7701  ac_status=$?
7702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703  test $ac_status = 0; }; then
7704    # Now try to grab the symbols.
7705    nlist=conftest.nm
7706    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7707  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7708  ac_status=$?
7709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7710  test $ac_status = 0; } && test -s "$nlist"; then
7711      # Try sorting and uniquifying the output.
7712      if sort "$nlist" | uniq > "$nlist"T; then
7713	mv -f "$nlist"T "$nlist"
7714      else
7715	rm -f "$nlist"T
7716      fi
7717
7718      # Make sure that we snagged all the symbols we need.
7719      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7720	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7721	  cat <<_LT_EOF > conftest.$ac_ext
7722/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7723#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7724/* DATA imports from DLLs on WIN32 con't be const, because runtime
7725   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7726# define LT_DLSYM_CONST
7727#elif defined(__osf__)
7728/* This system does not cope well with relocations in const data.  */
7729# define LT_DLSYM_CONST
7730#else
7731# define LT_DLSYM_CONST const
7732#endif
7733
7734#ifdef __cplusplus
7735extern "C" {
7736#endif
7737
7738_LT_EOF
7739	  # Now generate the symbol file.
7740	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7741
7742	  cat <<_LT_EOF >> conftest.$ac_ext
7743
7744/* The mapping between symbol names and symbols.  */
7745LT_DLSYM_CONST struct {
7746  const char *name;
7747  void       *address;
7748}
7749lt__PROGRAM__LTX_preloaded_symbols[] =
7750{
7751  { "@PROGRAM@", (void *) 0 },
7752_LT_EOF
7753	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7754	  cat <<\_LT_EOF >> conftest.$ac_ext
7755  {0, (void *) 0}
7756};
7757
7758/* This works around a problem in FreeBSD linker */
7759#ifdef FREEBSD_WORKAROUND
7760static const void *lt_preloaded_setup() {
7761  return lt__PROGRAM__LTX_preloaded_symbols;
7762}
7763#endif
7764
7765#ifdef __cplusplus
7766}
7767#endif
7768_LT_EOF
7769	  # Now try linking the two files.
7770	  mv conftest.$ac_objext conftstm.$ac_objext
7771	  lt_globsym_save_LIBS=$LIBS
7772	  lt_globsym_save_CFLAGS=$CFLAGS
7773	  LIBS="conftstm.$ac_objext"
7774	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7775	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7776  (eval $ac_link) 2>&5
7777  ac_status=$?
7778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7779  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7780	    pipe_works=yes
7781	  fi
7782	  LIBS=$lt_globsym_save_LIBS
7783	  CFLAGS=$lt_globsym_save_CFLAGS
7784	else
7785	  echo "cannot find nm_test_func in $nlist" >&5
7786	fi
7787      else
7788	echo "cannot find nm_test_var in $nlist" >&5
7789      fi
7790    else
7791      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7792    fi
7793  else
7794    echo "$progname: failed program was:" >&5
7795    cat conftest.$ac_ext >&5
7796  fi
7797  rm -rf conftest* conftst*
7798
7799  # Do not use the global_symbol_pipe unless it works.
7800  if test "$pipe_works" = yes; then
7801    break
7802  else
7803    lt_cv_sys_global_symbol_pipe=
7804  fi
7805done
7806
7807fi
7808
7809if test -z "$lt_cv_sys_global_symbol_pipe"; then
7810  lt_cv_sys_global_symbol_to_cdecl=
7811fi
7812if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7814$as_echo "failed" >&6; }
7815else
7816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7817$as_echo "ok" >&6; }
7818fi
7819
7820# Response file support.
7821if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7822  nm_file_list_spec='@'
7823elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7824  nm_file_list_spec='@'
7825fi
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7854$as_echo_n "checking for sysroot... " >&6; }
7855
7856# Check whether --with-sysroot was given.
7857if test "${with_sysroot+set}" = set; then :
7858  withval=$with_sysroot;
7859else
7860  with_sysroot=no
7861fi
7862
7863
7864lt_sysroot=
7865case ${with_sysroot} in #(
7866 yes)
7867   if test "$GCC" = yes; then
7868     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7869   fi
7870   ;; #(
7871 /*)
7872   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7873   ;; #(
7874 no|'')
7875   ;; #(
7876 *)
7877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7878$as_echo "${with_sysroot}" >&6; }
7879   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7880   ;;
7881esac
7882
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7884$as_echo "${lt_sysroot:-no}" >&6; }
7885
7886
7887
7888
7889
7890# Check whether --enable-libtool-lock was given.
7891if test "${enable_libtool_lock+set}" = set; then :
7892  enableval=$enable_libtool_lock;
7893fi
7894
7895test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7896
7897# Some flags need to be propagated to the compiler or linker for good
7898# libtool support.
7899case $host in
7900ia64-*-hpux*)
7901  # Find out which ABI we are using.
7902  echo 'int i;' > conftest.$ac_ext
7903  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7904  (eval $ac_compile) 2>&5
7905  ac_status=$?
7906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7907  test $ac_status = 0; }; then
7908    case `/usr/bin/file conftest.$ac_objext` in
7909      *ELF-32*)
7910	HPUX_IA64_MODE="32"
7911	;;
7912      *ELF-64*)
7913	HPUX_IA64_MODE="64"
7914	;;
7915    esac
7916  fi
7917  rm -rf conftest*
7918  ;;
7919*-*-irix6*)
7920  # Find out which ABI we are using.
7921  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7922  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7923  (eval $ac_compile) 2>&5
7924  ac_status=$?
7925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7926  test $ac_status = 0; }; then
7927    if test "$lt_cv_prog_gnu_ld" = yes; then
7928      case `/usr/bin/file conftest.$ac_objext` in
7929	*32-bit*)
7930	  LD="${LD-ld} -melf32bsmip"
7931	  ;;
7932	*N32*)
7933	  LD="${LD-ld} -melf32bmipn32"
7934	  ;;
7935	*64-bit*)
7936	  LD="${LD-ld} -melf64bmip"
7937	;;
7938      esac
7939    else
7940      case `/usr/bin/file conftest.$ac_objext` in
7941	*32-bit*)
7942	  LD="${LD-ld} -32"
7943	  ;;
7944	*N32*)
7945	  LD="${LD-ld} -n32"
7946	  ;;
7947	*64-bit*)
7948	  LD="${LD-ld} -64"
7949	  ;;
7950      esac
7951    fi
7952  fi
7953  rm -rf conftest*
7954  ;;
7955
7956x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7957s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7958  # Find out which ABI we are using.
7959  echo 'int i;' > conftest.$ac_ext
7960  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7961  (eval $ac_compile) 2>&5
7962  ac_status=$?
7963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7964  test $ac_status = 0; }; then
7965    case `/usr/bin/file conftest.o` in
7966      *32-bit*)
7967	case $host in
7968	  x86_64-*kfreebsd*-gnu)
7969	    LD="${LD-ld} -m elf_i386_fbsd"
7970	    ;;
7971	  x86_64-*linux*)
7972	    LD="${LD-ld} -m elf_i386"
7973	    ;;
7974	  ppc64-*linux*|powerpc64-*linux*)
7975	    LD="${LD-ld} -m elf32ppclinux"
7976	    ;;
7977	  s390x-*linux*)
7978	    LD="${LD-ld} -m elf_s390"
7979	    ;;
7980	  sparc64-*linux*)
7981	    LD="${LD-ld} -m elf32_sparc"
7982	    ;;
7983	esac
7984	;;
7985      *64-bit*)
7986	case $host in
7987	  x86_64-*kfreebsd*-gnu)
7988	    LD="${LD-ld} -m elf_x86_64_fbsd"
7989	    ;;
7990	  x86_64-*linux*)
7991	    LD="${LD-ld} -m elf_x86_64"
7992	    ;;
7993	  ppc*-*linux*|powerpc*-*linux*)
7994	    LD="${LD-ld} -m elf64ppc"
7995	    ;;
7996	  s390*-*linux*|s390*-*tpf*)
7997	    LD="${LD-ld} -m elf64_s390"
7998	    ;;
7999	  sparc*-*linux*)
8000	    LD="${LD-ld} -m elf64_sparc"
8001	    ;;
8002	esac
8003	;;
8004    esac
8005  fi
8006  rm -rf conftest*
8007  ;;
8008
8009*-*-sco3.2v5*)
8010  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8011  SAVE_CFLAGS="$CFLAGS"
8012  CFLAGS="$CFLAGS -belf"
8013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8014$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8015if ${lt_cv_cc_needs_belf+:} false; then :
8016  $as_echo_n "(cached) " >&6
8017else
8018  ac_ext=c
8019ac_cpp='$CPP $CPPFLAGS'
8020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8022ac_compiler_gnu=$ac_cv_c_compiler_gnu
8023
8024     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025/* end confdefs.h.  */
8026
8027int
8028main ()
8029{
8030
8031  ;
8032  return 0;
8033}
8034_ACEOF
8035if ac_fn_c_try_link "$LINENO"; then :
8036  lt_cv_cc_needs_belf=yes
8037else
8038  lt_cv_cc_needs_belf=no
8039fi
8040rm -f core conftest.err conftest.$ac_objext \
8041    conftest$ac_exeext conftest.$ac_ext
8042     ac_ext=c
8043ac_cpp='$CPP $CPPFLAGS'
8044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8046ac_compiler_gnu=$ac_cv_c_compiler_gnu
8047
8048fi
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8050$as_echo "$lt_cv_cc_needs_belf" >&6; }
8051  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8052    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8053    CFLAGS="$SAVE_CFLAGS"
8054  fi
8055  ;;
8056*-*solaris*)
8057  # Find out which ABI we are using.
8058  echo 'int i;' > conftest.$ac_ext
8059  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8060  (eval $ac_compile) 2>&5
8061  ac_status=$?
8062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8063  test $ac_status = 0; }; then
8064    case `/usr/bin/file conftest.o` in
8065    *64-bit*)
8066      case $lt_cv_prog_gnu_ld in
8067      yes*)
8068        case $host in
8069        i?86-*-solaris*)
8070          LD="${LD-ld} -m elf_x86_64"
8071          ;;
8072        sparc*-*-solaris*)
8073          LD="${LD-ld} -m elf64_sparc"
8074          ;;
8075        esac
8076        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8077        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8078          LD="${LD-ld}_sol2"
8079        fi
8080        ;;
8081      *)
8082	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8083	  LD="${LD-ld} -64"
8084	fi
8085	;;
8086      esac
8087      ;;
8088    esac
8089  fi
8090  rm -rf conftest*
8091  ;;
8092esac
8093
8094need_locks="$enable_libtool_lock"
8095
8096if test -n "$ac_tool_prefix"; then
8097  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8098set dummy ${ac_tool_prefix}mt; ac_word=$2
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100$as_echo_n "checking for $ac_word... " >&6; }
8101if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8102  $as_echo_n "(cached) " >&6
8103else
8104  if test -n "$MANIFEST_TOOL"; then
8105  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8106else
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110  IFS=$as_save_IFS
8111  test -z "$as_dir" && as_dir=.
8112    for ac_exec_ext in '' $ac_executable_extensions; do
8113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116    break 2
8117  fi
8118done
8119  done
8120IFS=$as_save_IFS
8121
8122fi
8123fi
8124MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8125if test -n "$MANIFEST_TOOL"; then
8126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8127$as_echo "$MANIFEST_TOOL" >&6; }
8128else
8129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130$as_echo "no" >&6; }
8131fi
8132
8133
8134fi
8135if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8136  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8137  # Extract the first word of "mt", so it can be a program name with args.
8138set dummy mt; ac_word=$2
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140$as_echo_n "checking for $ac_word... " >&6; }
8141if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8142  $as_echo_n "(cached) " >&6
8143else
8144  if test -n "$ac_ct_MANIFEST_TOOL"; then
8145  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8146else
8147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148for as_dir in $PATH
8149do
8150  IFS=$as_save_IFS
8151  test -z "$as_dir" && as_dir=.
8152    for ac_exec_ext in '' $ac_executable_extensions; do
8153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8154    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156    break 2
8157  fi
8158done
8159  done
8160IFS=$as_save_IFS
8161
8162fi
8163fi
8164ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8165if test -n "$ac_ct_MANIFEST_TOOL"; then
8166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8167$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8168else
8169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170$as_echo "no" >&6; }
8171fi
8172
8173  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8174    MANIFEST_TOOL=":"
8175  else
8176    case $cross_compiling:$ac_tool_warned in
8177yes:)
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8180ac_tool_warned=yes ;;
8181esac
8182    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8183  fi
8184else
8185  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8186fi
8187
8188test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8190$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8191if ${lt_cv_path_mainfest_tool+:} false; then :
8192  $as_echo_n "(cached) " >&6
8193else
8194  lt_cv_path_mainfest_tool=no
8195  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8196  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8197  cat conftest.err >&5
8198  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8199    lt_cv_path_mainfest_tool=yes
8200  fi
8201  rm -f conftest*
8202fi
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8204$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8205if test "x$lt_cv_path_mainfest_tool" != xyes; then
8206  MANIFEST_TOOL=:
8207fi
8208
8209
8210
8211
8212
8213
8214  case $host_os in
8215    rhapsody* | darwin*)
8216    if test -n "$ac_tool_prefix"; then
8217  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8218set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220$as_echo_n "checking for $ac_word... " >&6; }
8221if ${ac_cv_prog_DSYMUTIL+:} false; then :
8222  $as_echo_n "(cached) " >&6
8223else
8224  if test -n "$DSYMUTIL"; then
8225  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8226else
8227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228for as_dir in $PATH
8229do
8230  IFS=$as_save_IFS
8231  test -z "$as_dir" && as_dir=.
8232    for ac_exec_ext in '' $ac_executable_extensions; do
8233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8234    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236    break 2
8237  fi
8238done
8239  done
8240IFS=$as_save_IFS
8241
8242fi
8243fi
8244DSYMUTIL=$ac_cv_prog_DSYMUTIL
8245if test -n "$DSYMUTIL"; then
8246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8247$as_echo "$DSYMUTIL" >&6; }
8248else
8249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250$as_echo "no" >&6; }
8251fi
8252
8253
8254fi
8255if test -z "$ac_cv_prog_DSYMUTIL"; then
8256  ac_ct_DSYMUTIL=$DSYMUTIL
8257  # Extract the first word of "dsymutil", so it can be a program name with args.
8258set dummy dsymutil; ac_word=$2
8259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260$as_echo_n "checking for $ac_word... " >&6; }
8261if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8262  $as_echo_n "(cached) " >&6
8263else
8264  if test -n "$ac_ct_DSYMUTIL"; then
8265  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8266else
8267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268for as_dir in $PATH
8269do
8270  IFS=$as_save_IFS
8271  test -z "$as_dir" && as_dir=.
8272    for ac_exec_ext in '' $ac_executable_extensions; do
8273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8274    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8276    break 2
8277  fi
8278done
8279  done
8280IFS=$as_save_IFS
8281
8282fi
8283fi
8284ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8285if test -n "$ac_ct_DSYMUTIL"; then
8286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8287$as_echo "$ac_ct_DSYMUTIL" >&6; }
8288else
8289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290$as_echo "no" >&6; }
8291fi
8292
8293  if test "x$ac_ct_DSYMUTIL" = x; then
8294    DSYMUTIL=":"
8295  else
8296    case $cross_compiling:$ac_tool_warned in
8297yes:)
8298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8300ac_tool_warned=yes ;;
8301esac
8302    DSYMUTIL=$ac_ct_DSYMUTIL
8303  fi
8304else
8305  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8306fi
8307
8308    if test -n "$ac_tool_prefix"; then
8309  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8310set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312$as_echo_n "checking for $ac_word... " >&6; }
8313if ${ac_cv_prog_NMEDIT+:} false; then :
8314  $as_echo_n "(cached) " >&6
8315else
8316  if test -n "$NMEDIT"; then
8317  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8318else
8319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320for as_dir in $PATH
8321do
8322  IFS=$as_save_IFS
8323  test -z "$as_dir" && as_dir=.
8324    for ac_exec_ext in '' $ac_executable_extensions; do
8325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8326    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328    break 2
8329  fi
8330done
8331  done
8332IFS=$as_save_IFS
8333
8334fi
8335fi
8336NMEDIT=$ac_cv_prog_NMEDIT
8337if test -n "$NMEDIT"; then
8338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8339$as_echo "$NMEDIT" >&6; }
8340else
8341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342$as_echo "no" >&6; }
8343fi
8344
8345
8346fi
8347if test -z "$ac_cv_prog_NMEDIT"; then
8348  ac_ct_NMEDIT=$NMEDIT
8349  # Extract the first word of "nmedit", so it can be a program name with args.
8350set dummy nmedit; ac_word=$2
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352$as_echo_n "checking for $ac_word... " >&6; }
8353if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8354  $as_echo_n "(cached) " >&6
8355else
8356  if test -n "$ac_ct_NMEDIT"; then
8357  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8358else
8359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360for as_dir in $PATH
8361do
8362  IFS=$as_save_IFS
8363  test -z "$as_dir" && as_dir=.
8364    for ac_exec_ext in '' $ac_executable_extensions; do
8365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8366    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368    break 2
8369  fi
8370done
8371  done
8372IFS=$as_save_IFS
8373
8374fi
8375fi
8376ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8377if test -n "$ac_ct_NMEDIT"; then
8378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8379$as_echo "$ac_ct_NMEDIT" >&6; }
8380else
8381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382$as_echo "no" >&6; }
8383fi
8384
8385  if test "x$ac_ct_NMEDIT" = x; then
8386    NMEDIT=":"
8387  else
8388    case $cross_compiling:$ac_tool_warned in
8389yes:)
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8392ac_tool_warned=yes ;;
8393esac
8394    NMEDIT=$ac_ct_NMEDIT
8395  fi
8396else
8397  NMEDIT="$ac_cv_prog_NMEDIT"
8398fi
8399
8400    if test -n "$ac_tool_prefix"; then
8401  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8402set dummy ${ac_tool_prefix}lipo; ac_word=$2
8403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404$as_echo_n "checking for $ac_word... " >&6; }
8405if ${ac_cv_prog_LIPO+:} false; then :
8406  $as_echo_n "(cached) " >&6
8407else
8408  if test -n "$LIPO"; then
8409  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8410else
8411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412for as_dir in $PATH
8413do
8414  IFS=$as_save_IFS
8415  test -z "$as_dir" && as_dir=.
8416    for ac_exec_ext in '' $ac_executable_extensions; do
8417  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8418    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420    break 2
8421  fi
8422done
8423  done
8424IFS=$as_save_IFS
8425
8426fi
8427fi
8428LIPO=$ac_cv_prog_LIPO
8429if test -n "$LIPO"; then
8430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8431$as_echo "$LIPO" >&6; }
8432else
8433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434$as_echo "no" >&6; }
8435fi
8436
8437
8438fi
8439if test -z "$ac_cv_prog_LIPO"; then
8440  ac_ct_LIPO=$LIPO
8441  # Extract the first word of "lipo", so it can be a program name with args.
8442set dummy lipo; ac_word=$2
8443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8444$as_echo_n "checking for $ac_word... " >&6; }
8445if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8446  $as_echo_n "(cached) " >&6
8447else
8448  if test -n "$ac_ct_LIPO"; then
8449  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8450else
8451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452for as_dir in $PATH
8453do
8454  IFS=$as_save_IFS
8455  test -z "$as_dir" && as_dir=.
8456    for ac_exec_ext in '' $ac_executable_extensions; do
8457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8458    ac_cv_prog_ac_ct_LIPO="lipo"
8459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8460    break 2
8461  fi
8462done
8463  done
8464IFS=$as_save_IFS
8465
8466fi
8467fi
8468ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8469if test -n "$ac_ct_LIPO"; then
8470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8471$as_echo "$ac_ct_LIPO" >&6; }
8472else
8473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474$as_echo "no" >&6; }
8475fi
8476
8477  if test "x$ac_ct_LIPO" = x; then
8478    LIPO=":"
8479  else
8480    case $cross_compiling:$ac_tool_warned in
8481yes:)
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8484ac_tool_warned=yes ;;
8485esac
8486    LIPO=$ac_ct_LIPO
8487  fi
8488else
8489  LIPO="$ac_cv_prog_LIPO"
8490fi
8491
8492    if test -n "$ac_tool_prefix"; then
8493  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8494set dummy ${ac_tool_prefix}otool; ac_word=$2
8495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496$as_echo_n "checking for $ac_word... " >&6; }
8497if ${ac_cv_prog_OTOOL+:} false; then :
8498  $as_echo_n "(cached) " >&6
8499else
8500  if test -n "$OTOOL"; then
8501  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8502else
8503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504for as_dir in $PATH
8505do
8506  IFS=$as_save_IFS
8507  test -z "$as_dir" && as_dir=.
8508    for ac_exec_ext in '' $ac_executable_extensions; do
8509  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8510    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512    break 2
8513  fi
8514done
8515  done
8516IFS=$as_save_IFS
8517
8518fi
8519fi
8520OTOOL=$ac_cv_prog_OTOOL
8521if test -n "$OTOOL"; then
8522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8523$as_echo "$OTOOL" >&6; }
8524else
8525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526$as_echo "no" >&6; }
8527fi
8528
8529
8530fi
8531if test -z "$ac_cv_prog_OTOOL"; then
8532  ac_ct_OTOOL=$OTOOL
8533  # Extract the first word of "otool", so it can be a program name with args.
8534set dummy otool; ac_word=$2
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536$as_echo_n "checking for $ac_word... " >&6; }
8537if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8538  $as_echo_n "(cached) " >&6
8539else
8540  if test -n "$ac_ct_OTOOL"; then
8541  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8542else
8543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544for as_dir in $PATH
8545do
8546  IFS=$as_save_IFS
8547  test -z "$as_dir" && as_dir=.
8548    for ac_exec_ext in '' $ac_executable_extensions; do
8549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8550    ac_cv_prog_ac_ct_OTOOL="otool"
8551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8552    break 2
8553  fi
8554done
8555  done
8556IFS=$as_save_IFS
8557
8558fi
8559fi
8560ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8561if test -n "$ac_ct_OTOOL"; then
8562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8563$as_echo "$ac_ct_OTOOL" >&6; }
8564else
8565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566$as_echo "no" >&6; }
8567fi
8568
8569  if test "x$ac_ct_OTOOL" = x; then
8570    OTOOL=":"
8571  else
8572    case $cross_compiling:$ac_tool_warned in
8573yes:)
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8576ac_tool_warned=yes ;;
8577esac
8578    OTOOL=$ac_ct_OTOOL
8579  fi
8580else
8581  OTOOL="$ac_cv_prog_OTOOL"
8582fi
8583
8584    if test -n "$ac_tool_prefix"; then
8585  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8586set dummy ${ac_tool_prefix}otool64; ac_word=$2
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588$as_echo_n "checking for $ac_word... " >&6; }
8589if ${ac_cv_prog_OTOOL64+:} false; then :
8590  $as_echo_n "(cached) " >&6
8591else
8592  if test -n "$OTOOL64"; then
8593  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8594else
8595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596for as_dir in $PATH
8597do
8598  IFS=$as_save_IFS
8599  test -z "$as_dir" && as_dir=.
8600    for ac_exec_ext in '' $ac_executable_extensions; do
8601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8602    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604    break 2
8605  fi
8606done
8607  done
8608IFS=$as_save_IFS
8609
8610fi
8611fi
8612OTOOL64=$ac_cv_prog_OTOOL64
8613if test -n "$OTOOL64"; then
8614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8615$as_echo "$OTOOL64" >&6; }
8616else
8617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
8619fi
8620
8621
8622fi
8623if test -z "$ac_cv_prog_OTOOL64"; then
8624  ac_ct_OTOOL64=$OTOOL64
8625  # Extract the first word of "otool64", so it can be a program name with args.
8626set dummy otool64; ac_word=$2
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628$as_echo_n "checking for $ac_word... " >&6; }
8629if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8630  $as_echo_n "(cached) " >&6
8631else
8632  if test -n "$ac_ct_OTOOL64"; then
8633  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8634else
8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636for as_dir in $PATH
8637do
8638  IFS=$as_save_IFS
8639  test -z "$as_dir" && as_dir=.
8640    for ac_exec_ext in '' $ac_executable_extensions; do
8641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8642    ac_cv_prog_ac_ct_OTOOL64="otool64"
8643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644    break 2
8645  fi
8646done
8647  done
8648IFS=$as_save_IFS
8649
8650fi
8651fi
8652ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8653if test -n "$ac_ct_OTOOL64"; then
8654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8655$as_echo "$ac_ct_OTOOL64" >&6; }
8656else
8657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658$as_echo "no" >&6; }
8659fi
8660
8661  if test "x$ac_ct_OTOOL64" = x; then
8662    OTOOL64=":"
8663  else
8664    case $cross_compiling:$ac_tool_warned in
8665yes:)
8666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8668ac_tool_warned=yes ;;
8669esac
8670    OTOOL64=$ac_ct_OTOOL64
8671  fi
8672else
8673  OTOOL64="$ac_cv_prog_OTOOL64"
8674fi
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8703$as_echo_n "checking for -single_module linker flag... " >&6; }
8704if ${lt_cv_apple_cc_single_mod+:} false; then :
8705  $as_echo_n "(cached) " >&6
8706else
8707  lt_cv_apple_cc_single_mod=no
8708      if test -z "${LT_MULTI_MODULE}"; then
8709	# By default we will add the -single_module flag. You can override
8710	# by either setting the environment variable LT_MULTI_MODULE
8711	# non-empty at configure time, or by adding -multi_module to the
8712	# link flags.
8713	rm -rf libconftest.dylib*
8714	echo "int foo(void){return 1;}" > conftest.c
8715	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8716-dynamiclib -Wl,-single_module conftest.c" >&5
8717	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8718	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8719        _lt_result=$?
8720	# If there is a non-empty error log, and "single_module"
8721	# appears in it, assume the flag caused a linker warning
8722        if test -s conftest.err && $GREP single_module conftest.err; then
8723	  cat conftest.err >&5
8724	# Otherwise, if the output was created with a 0 exit code from
8725	# the compiler, it worked.
8726	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8727	  lt_cv_apple_cc_single_mod=yes
8728	else
8729	  cat conftest.err >&5
8730	fi
8731	rm -rf libconftest.dylib*
8732	rm -f conftest.*
8733      fi
8734fi
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8736$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8737
8738    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8739$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8740if ${lt_cv_ld_exported_symbols_list+:} false; then :
8741  $as_echo_n "(cached) " >&6
8742else
8743  lt_cv_ld_exported_symbols_list=no
8744      save_LDFLAGS=$LDFLAGS
8745      echo "_main" > conftest.sym
8746      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8747      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748/* end confdefs.h.  */
8749
8750int
8751main ()
8752{
8753
8754  ;
8755  return 0;
8756}
8757_ACEOF
8758if ac_fn_c_try_link "$LINENO"; then :
8759  lt_cv_ld_exported_symbols_list=yes
8760else
8761  lt_cv_ld_exported_symbols_list=no
8762fi
8763rm -f core conftest.err conftest.$ac_objext \
8764    conftest$ac_exeext conftest.$ac_ext
8765	LDFLAGS="$save_LDFLAGS"
8766
8767fi
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8769$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8770
8771    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8772$as_echo_n "checking for -force_load linker flag... " >&6; }
8773if ${lt_cv_ld_force_load+:} false; then :
8774  $as_echo_n "(cached) " >&6
8775else
8776  lt_cv_ld_force_load=no
8777      cat > conftest.c << _LT_EOF
8778int forced_loaded() { return 2;}
8779_LT_EOF
8780      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8781      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8782      echo "$AR cru libconftest.a conftest.o" >&5
8783      $AR cru libconftest.a conftest.o 2>&5
8784      echo "$RANLIB libconftest.a" >&5
8785      $RANLIB libconftest.a 2>&5
8786      cat > conftest.c << _LT_EOF
8787int main() { return 0;}
8788_LT_EOF
8789      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8790      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8791      _lt_result=$?
8792      if test -s conftest.err && $GREP force_load conftest.err; then
8793	cat conftest.err >&5
8794      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8795	lt_cv_ld_force_load=yes
8796      else
8797	cat conftest.err >&5
8798      fi
8799        rm -f conftest.err libconftest.a conftest conftest.c
8800        rm -rf conftest.dSYM
8801
8802fi
8803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8804$as_echo "$lt_cv_ld_force_load" >&6; }
8805    case $host_os in
8806    rhapsody* | darwin1.[012])
8807      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8808    darwin1.*)
8809      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8810    darwin*) # darwin 5.x on
8811      # if running on 10.5 or later, the deployment target defaults
8812      # to the OS version, if on x86, and 10.4, the deployment
8813      # target defaults to 10.4. Don't you love it?
8814      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8815	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8816	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8817	10.[012]*)
8818	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8819	10.*)
8820	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8821      esac
8822    ;;
8823  esac
8824    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8825      _lt_dar_single_mod='$single_module'
8826    fi
8827    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8828      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8829    else
8830      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8831    fi
8832    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8833      _lt_dsymutil='~$DSYMUTIL $lib || :'
8834    else
8835      _lt_dsymutil=
8836    fi
8837    ;;
8838  esac
8839
8840ac_ext=c
8841ac_cpp='$CPP $CPPFLAGS'
8842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8844ac_compiler_gnu=$ac_cv_c_compiler_gnu
8845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8846$as_echo_n "checking how to run the C preprocessor... " >&6; }
8847# On Suns, sometimes $CPP names a directory.
8848if test -n "$CPP" && test -d "$CPP"; then
8849  CPP=
8850fi
8851if test -z "$CPP"; then
8852  if ${ac_cv_prog_CPP+:} false; then :
8853  $as_echo_n "(cached) " >&6
8854else
8855      # Double quotes because CPP needs to be expanded
8856    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8857    do
8858      ac_preproc_ok=false
8859for ac_c_preproc_warn_flag in '' yes
8860do
8861  # Use a header file that comes with gcc, so configuring glibc
8862  # with a fresh cross-compiler works.
8863  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8864  # <limits.h> exists even on freestanding compilers.
8865  # On the NeXT, cc -E runs the code through the compiler's parser,
8866  # not just through cpp. "Syntax error" is here to catch this case.
8867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868/* end confdefs.h.  */
8869#ifdef __STDC__
8870# include <limits.h>
8871#else
8872# include <assert.h>
8873#endif
8874		     Syntax error
8875_ACEOF
8876if ac_fn_c_try_cpp "$LINENO"; then :
8877
8878else
8879  # Broken: fails on valid input.
8880continue
8881fi
8882rm -f conftest.err conftest.i conftest.$ac_ext
8883
8884  # OK, works on sane cases.  Now check whether nonexistent headers
8885  # can be detected and how.
8886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887/* end confdefs.h.  */
8888#include <ac_nonexistent.h>
8889_ACEOF
8890if ac_fn_c_try_cpp "$LINENO"; then :
8891  # Broken: success on invalid input.
8892continue
8893else
8894  # Passes both tests.
8895ac_preproc_ok=:
8896break
8897fi
8898rm -f conftest.err conftest.i conftest.$ac_ext
8899
8900done
8901# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8902rm -f conftest.i conftest.err conftest.$ac_ext
8903if $ac_preproc_ok; then :
8904  break
8905fi
8906
8907    done
8908    ac_cv_prog_CPP=$CPP
8909
8910fi
8911  CPP=$ac_cv_prog_CPP
8912else
8913  ac_cv_prog_CPP=$CPP
8914fi
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8916$as_echo "$CPP" >&6; }
8917ac_preproc_ok=false
8918for ac_c_preproc_warn_flag in '' yes
8919do
8920  # Use a header file that comes with gcc, so configuring glibc
8921  # with a fresh cross-compiler works.
8922  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8923  # <limits.h> exists even on freestanding compilers.
8924  # On the NeXT, cc -E runs the code through the compiler's parser,
8925  # not just through cpp. "Syntax error" is here to catch this case.
8926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927/* end confdefs.h.  */
8928#ifdef __STDC__
8929# include <limits.h>
8930#else
8931# include <assert.h>
8932#endif
8933		     Syntax error
8934_ACEOF
8935if ac_fn_c_try_cpp "$LINENO"; then :
8936
8937else
8938  # Broken: fails on valid input.
8939continue
8940fi
8941rm -f conftest.err conftest.i conftest.$ac_ext
8942
8943  # OK, works on sane cases.  Now check whether nonexistent headers
8944  # can be detected and how.
8945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946/* end confdefs.h.  */
8947#include <ac_nonexistent.h>
8948_ACEOF
8949if ac_fn_c_try_cpp "$LINENO"; then :
8950  # Broken: success on invalid input.
8951continue
8952else
8953  # Passes both tests.
8954ac_preproc_ok=:
8955break
8956fi
8957rm -f conftest.err conftest.i conftest.$ac_ext
8958
8959done
8960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8961rm -f conftest.i conftest.err conftest.$ac_ext
8962if $ac_preproc_ok; then :
8963
8964else
8965  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8967as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8968See \`config.log' for more details" "$LINENO" 5; }
8969fi
8970
8971ac_ext=c
8972ac_cpp='$CPP $CPPFLAGS'
8973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8975ac_compiler_gnu=$ac_cv_c_compiler_gnu
8976
8977
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8979$as_echo_n "checking for ANSI C header files... " >&6; }
8980if ${ac_cv_header_stdc+:} false; then :
8981  $as_echo_n "(cached) " >&6
8982else
8983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984/* end confdefs.h.  */
8985#include <stdlib.h>
8986#include <stdarg.h>
8987#include <string.h>
8988#include <float.h>
8989
8990int
8991main ()
8992{
8993
8994  ;
8995  return 0;
8996}
8997_ACEOF
8998if ac_fn_c_try_compile "$LINENO"; then :
8999  ac_cv_header_stdc=yes
9000else
9001  ac_cv_header_stdc=no
9002fi
9003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004
9005if test $ac_cv_header_stdc = yes; then
9006  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008/* end confdefs.h.  */
9009#include <string.h>
9010
9011_ACEOF
9012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9013  $EGREP "memchr" >/dev/null 2>&1; then :
9014
9015else
9016  ac_cv_header_stdc=no
9017fi
9018rm -f conftest*
9019
9020fi
9021
9022if test $ac_cv_header_stdc = yes; then
9023  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025/* end confdefs.h.  */
9026#include <stdlib.h>
9027
9028_ACEOF
9029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9030  $EGREP "free" >/dev/null 2>&1; then :
9031
9032else
9033  ac_cv_header_stdc=no
9034fi
9035rm -f conftest*
9036
9037fi
9038
9039if test $ac_cv_header_stdc = yes; then
9040  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9041  if test "$cross_compiling" = yes; then :
9042  :
9043else
9044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045/* end confdefs.h.  */
9046#include <ctype.h>
9047#include <stdlib.h>
9048#if ((' ' & 0x0FF) == 0x020)
9049# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9050# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9051#else
9052# define ISLOWER(c) \
9053		   (('a' <= (c) && (c) <= 'i') \
9054		     || ('j' <= (c) && (c) <= 'r') \
9055		     || ('s' <= (c) && (c) <= 'z'))
9056# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9057#endif
9058
9059#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9060int
9061main ()
9062{
9063  int i;
9064  for (i = 0; i < 256; i++)
9065    if (XOR (islower (i), ISLOWER (i))
9066	|| toupper (i) != TOUPPER (i))
9067      return 2;
9068  return 0;
9069}
9070_ACEOF
9071if ac_fn_c_try_run "$LINENO"; then :
9072
9073else
9074  ac_cv_header_stdc=no
9075fi
9076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9077  conftest.$ac_objext conftest.beam conftest.$ac_ext
9078fi
9079
9080fi
9081fi
9082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9083$as_echo "$ac_cv_header_stdc" >&6; }
9084if test $ac_cv_header_stdc = yes; then
9085
9086$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9087
9088fi
9089
9090# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9091for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9092		  inttypes.h stdint.h unistd.h
9093do :
9094  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9095ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9096"
9097if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9098  cat >>confdefs.h <<_ACEOF
9099#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9100_ACEOF
9101
9102fi
9103
9104done
9105
9106
9107for ac_header in dlfcn.h
9108do :
9109  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9110"
9111if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9112  cat >>confdefs.h <<_ACEOF
9113#define HAVE_DLFCN_H 1
9114_ACEOF
9115
9116fi
9117
9118done
9119
9120
9121
9122func_stripname_cnf ()
9123{
9124  case ${2} in
9125  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9126  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9127  esac
9128} # func_stripname_cnf
9129
9130
9131
9132
9133
9134# Set options
9135# Check whether --enable-shared was given.
9136if test "${enable_shared+set}" = set; then :
9137  enableval=$enable_shared; p=${PACKAGE-default}
9138    case $enableval in
9139    yes) enable_shared=yes ;;
9140    no) enable_shared=no ;;
9141    *)
9142      enable_shared=no
9143      # Look at the argument we got.  We use all the common list separators.
9144      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9145      for pkg in $enableval; do
9146	IFS="$lt_save_ifs"
9147	if test "X$pkg" = "X$p"; then
9148	  enable_shared=yes
9149	fi
9150      done
9151      IFS="$lt_save_ifs"
9152      ;;
9153    esac
9154else
9155  enable_shared=no
9156fi
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167        enable_dlopen=no
9168
9169
9170  enable_win32_dll=no
9171
9172
9173
9174  # Check whether --enable-static was given.
9175if test "${enable_static+set}" = set; then :
9176  enableval=$enable_static; p=${PACKAGE-default}
9177    case $enableval in
9178    yes) enable_static=yes ;;
9179    no) enable_static=no ;;
9180    *)
9181     enable_static=no
9182      # Look at the argument we got.  We use all the common list separators.
9183      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9184      for pkg in $enableval; do
9185	IFS="$lt_save_ifs"
9186	if test "X$pkg" = "X$p"; then
9187	  enable_static=yes
9188	fi
9189      done
9190      IFS="$lt_save_ifs"
9191      ;;
9192    esac
9193else
9194  enable_static=yes
9195fi
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206# Check whether --with-pic was given.
9207if test "${with_pic+set}" = set; then :
9208  withval=$with_pic; lt_p=${PACKAGE-default}
9209    case $withval in
9210    yes|no) pic_mode=$withval ;;
9211    *)
9212      pic_mode=default
9213      # Look at the argument we got.  We use all the common list separators.
9214      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9215      for lt_pkg in $withval; do
9216	IFS="$lt_save_ifs"
9217	if test "X$lt_pkg" = "X$lt_p"; then
9218	  pic_mode=yes
9219	fi
9220      done
9221      IFS="$lt_save_ifs"
9222      ;;
9223    esac
9224else
9225  pic_mode=default
9226fi
9227
9228
9229test -z "$pic_mode" && pic_mode=default
9230
9231
9232
9233
9234
9235
9236
9237  # Check whether --enable-fast-install was given.
9238if test "${enable_fast_install+set}" = set; then :
9239  enableval=$enable_fast_install; p=${PACKAGE-default}
9240    case $enableval in
9241    yes) enable_fast_install=yes ;;
9242    no) enable_fast_install=no ;;
9243    *)
9244      enable_fast_install=no
9245      # Look at the argument we got.  We use all the common list separators.
9246      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9247      for pkg in $enableval; do
9248	IFS="$lt_save_ifs"
9249	if test "X$pkg" = "X$p"; then
9250	  enable_fast_install=yes
9251	fi
9252      done
9253      IFS="$lt_save_ifs"
9254      ;;
9255    esac
9256else
9257  enable_fast_install=yes
9258fi
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270# This can be used to rebuild libtool when needed
9271LIBTOOL_DEPS="$ltmain"
9272
9273# Always use our own libtool.
9274LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305test -z "$LN_S" && LN_S="ln -s"
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320if test -n "${ZSH_VERSION+set}" ; then
9321   setopt NO_GLOB_SUBST
9322fi
9323
9324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9325$as_echo_n "checking for objdir... " >&6; }
9326if ${lt_cv_objdir+:} false; then :
9327  $as_echo_n "(cached) " >&6
9328else
9329  rm -f .libs 2>/dev/null
9330mkdir .libs 2>/dev/null
9331if test -d .libs; then
9332  lt_cv_objdir=.libs
9333else
9334  # MS-DOS does not allow filenames that begin with a dot.
9335  lt_cv_objdir=_libs
9336fi
9337rmdir .libs 2>/dev/null
9338fi
9339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9340$as_echo "$lt_cv_objdir" >&6; }
9341objdir=$lt_cv_objdir
9342
9343
9344
9345
9346
9347cat >>confdefs.h <<_ACEOF
9348#define LT_OBJDIR "$lt_cv_objdir/"
9349_ACEOF
9350
9351
9352
9353
9354case $host_os in
9355aix3*)
9356  # AIX sometimes has problems with the GCC collect2 program.  For some
9357  # reason, if we set the COLLECT_NAMES environment variable, the problems
9358  # vanish in a puff of smoke.
9359  if test "X${COLLECT_NAMES+set}" != Xset; then
9360    COLLECT_NAMES=
9361    export COLLECT_NAMES
9362  fi
9363  ;;
9364esac
9365
9366# Global variables:
9367ofile=libtool
9368can_build_shared=yes
9369
9370# All known linkers require a `.a' archive for static linking (except MSVC,
9371# which needs '.lib').
9372libext=a
9373
9374with_gnu_ld="$lt_cv_prog_gnu_ld"
9375
9376old_CC="$CC"
9377old_CFLAGS="$CFLAGS"
9378
9379# Set sane defaults for various variables
9380test -z "$CC" && CC=cc
9381test -z "$LTCC" && LTCC=$CC
9382test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9383test -z "$LD" && LD=ld
9384test -z "$ac_objext" && ac_objext=o
9385
9386for cc_temp in $compiler""; do
9387  case $cc_temp in
9388    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9389    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9390    \-*) ;;
9391    *) break;;
9392  esac
9393done
9394cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9395
9396
9397# Only perform the check for file, if the check method requires it
9398test -z "$MAGIC_CMD" && MAGIC_CMD=file
9399case $deplibs_check_method in
9400file_magic*)
9401  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9402    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9403$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9404if ${lt_cv_path_MAGIC_CMD+:} false; then :
9405  $as_echo_n "(cached) " >&6
9406else
9407  case $MAGIC_CMD in
9408[\\/*] |  ?:[\\/]*)
9409  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9410  ;;
9411*)
9412  lt_save_MAGIC_CMD="$MAGIC_CMD"
9413  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9414  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9415  for ac_dir in $ac_dummy; do
9416    IFS="$lt_save_ifs"
9417    test -z "$ac_dir" && ac_dir=.
9418    if test -f $ac_dir/${ac_tool_prefix}file; then
9419      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9420      if test -n "$file_magic_test_file"; then
9421	case $deplibs_check_method in
9422	"file_magic "*)
9423	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9424	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9425	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9426	    $EGREP "$file_magic_regex" > /dev/null; then
9427	    :
9428	  else
9429	    cat <<_LT_EOF 1>&2
9430
9431*** Warning: the command libtool uses to detect shared libraries,
9432*** $file_magic_cmd, produces output that libtool cannot recognize.
9433*** The result is that libtool may fail to recognize shared libraries
9434*** as such.  This will affect the creation of libtool libraries that
9435*** depend on shared libraries, but programs linked with such libtool
9436*** libraries will work regardless of this problem.  Nevertheless, you
9437*** may want to report the problem to your system manager and/or to
9438*** bug-libtool@gnu.org
9439
9440_LT_EOF
9441	  fi ;;
9442	esac
9443      fi
9444      break
9445    fi
9446  done
9447  IFS="$lt_save_ifs"
9448  MAGIC_CMD="$lt_save_MAGIC_CMD"
9449  ;;
9450esac
9451fi
9452
9453MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9454if test -n "$MAGIC_CMD"; then
9455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9456$as_echo "$MAGIC_CMD" >&6; }
9457else
9458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459$as_echo "no" >&6; }
9460fi
9461
9462
9463
9464
9465
9466if test -z "$lt_cv_path_MAGIC_CMD"; then
9467  if test -n "$ac_tool_prefix"; then
9468    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9469$as_echo_n "checking for file... " >&6; }
9470if ${lt_cv_path_MAGIC_CMD+:} false; then :
9471  $as_echo_n "(cached) " >&6
9472else
9473  case $MAGIC_CMD in
9474[\\/*] |  ?:[\\/]*)
9475  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9476  ;;
9477*)
9478  lt_save_MAGIC_CMD="$MAGIC_CMD"
9479  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9480  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9481  for ac_dir in $ac_dummy; do
9482    IFS="$lt_save_ifs"
9483    test -z "$ac_dir" && ac_dir=.
9484    if test -f $ac_dir/file; then
9485      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9486      if test -n "$file_magic_test_file"; then
9487	case $deplibs_check_method in
9488	"file_magic "*)
9489	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9490	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9491	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9492	    $EGREP "$file_magic_regex" > /dev/null; then
9493	    :
9494	  else
9495	    cat <<_LT_EOF 1>&2
9496
9497*** Warning: the command libtool uses to detect shared libraries,
9498*** $file_magic_cmd, produces output that libtool cannot recognize.
9499*** The result is that libtool may fail to recognize shared libraries
9500*** as such.  This will affect the creation of libtool libraries that
9501*** depend on shared libraries, but programs linked with such libtool
9502*** libraries will work regardless of this problem.  Nevertheless, you
9503*** may want to report the problem to your system manager and/or to
9504*** bug-libtool@gnu.org
9505
9506_LT_EOF
9507	  fi ;;
9508	esac
9509      fi
9510      break
9511    fi
9512  done
9513  IFS="$lt_save_ifs"
9514  MAGIC_CMD="$lt_save_MAGIC_CMD"
9515  ;;
9516esac
9517fi
9518
9519MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9520if test -n "$MAGIC_CMD"; then
9521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9522$as_echo "$MAGIC_CMD" >&6; }
9523else
9524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525$as_echo "no" >&6; }
9526fi
9527
9528
9529  else
9530    MAGIC_CMD=:
9531  fi
9532fi
9533
9534  fi
9535  ;;
9536esac
9537
9538# Use C for the default configuration in the libtool script
9539
9540lt_save_CC="$CC"
9541ac_ext=c
9542ac_cpp='$CPP $CPPFLAGS'
9543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9545ac_compiler_gnu=$ac_cv_c_compiler_gnu
9546
9547
9548# Source file extension for C test sources.
9549ac_ext=c
9550
9551# Object file extension for compiled C test sources.
9552objext=o
9553objext=$objext
9554
9555# Code to be used in simple compile tests
9556lt_simple_compile_test_code="int some_variable = 0;"
9557
9558# Code to be used in simple link tests
9559lt_simple_link_test_code='int main(){return(0);}'
9560
9561
9562
9563
9564
9565
9566
9567# If no C compiler was specified, use CC.
9568LTCC=${LTCC-"$CC"}
9569
9570# If no C compiler flags were specified, use CFLAGS.
9571LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9572
9573# Allow CC to be a program name with arguments.
9574compiler=$CC
9575
9576# Save the default compiler, since it gets overwritten when the other
9577# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9578compiler_DEFAULT=$CC
9579
9580# save warnings/boilerplate of simple test code
9581ac_outfile=conftest.$ac_objext
9582echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9583eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9584_lt_compiler_boilerplate=`cat conftest.err`
9585$RM conftest*
9586
9587ac_outfile=conftest.$ac_objext
9588echo "$lt_simple_link_test_code" >conftest.$ac_ext
9589eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9590_lt_linker_boilerplate=`cat conftest.err`
9591$RM -r conftest*
9592
9593
9594if test -n "$compiler"; then
9595
9596lt_prog_compiler_no_builtin_flag=
9597
9598if test "$GCC" = yes; then
9599  case $cc_basename in
9600  nvcc*)
9601    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9602  *)
9603    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9604  esac
9605
9606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9607$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9608if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9609  $as_echo_n "(cached) " >&6
9610else
9611  lt_cv_prog_compiler_rtti_exceptions=no
9612   ac_outfile=conftest.$ac_objext
9613   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9614   lt_compiler_flag="-fno-rtti -fno-exceptions"
9615   # Insert the option either (1) after the last *FLAGS variable, or
9616   # (2) before a word containing "conftest.", or (3) at the end.
9617   # Note that $ac_compile itself does not contain backslashes and begins
9618   # with a dollar sign (not a hyphen), so the echo should work correctly.
9619   # The option is referenced via a variable to avoid confusing sed.
9620   lt_compile=`echo "$ac_compile" | $SED \
9621   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9622   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9623   -e 's:$: $lt_compiler_flag:'`
9624   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9625   (eval "$lt_compile" 2>conftest.err)
9626   ac_status=$?
9627   cat conftest.err >&5
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   if (exit $ac_status) && test -s "$ac_outfile"; then
9630     # The compiler can only warn and ignore the option if not recognized
9631     # So say no if there are warnings other than the usual output.
9632     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9633     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9634     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9635       lt_cv_prog_compiler_rtti_exceptions=yes
9636     fi
9637   fi
9638   $RM conftest*
9639
9640fi
9641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9642$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9643
9644if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9645    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9646else
9647    :
9648fi
9649
9650fi
9651
9652
9653
9654
9655
9656
9657  lt_prog_compiler_wl=
9658lt_prog_compiler_pic=
9659lt_prog_compiler_static=
9660
9661
9662  if test "$GCC" = yes; then
9663    lt_prog_compiler_wl='-Wl,'
9664    lt_prog_compiler_static='-static'
9665
9666    case $host_os in
9667      aix*)
9668      # All AIX code is PIC.
9669      if test "$host_cpu" = ia64; then
9670	# AIX 5 now supports IA64 processor
9671	lt_prog_compiler_static='-Bstatic'
9672      fi
9673      ;;
9674
9675    amigaos*)
9676      case $host_cpu in
9677      powerpc)
9678            # see comment about AmigaOS4 .so support
9679            lt_prog_compiler_pic='-fPIC'
9680        ;;
9681      m68k)
9682            # FIXME: we need at least 68020 code to build shared libraries, but
9683            # adding the `-m68020' flag to GCC prevents building anything better,
9684            # like `-m68040'.
9685            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9686        ;;
9687      esac
9688      ;;
9689
9690    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9691      # PIC is the default for these OSes.
9692      ;;
9693
9694    mingw* | cygwin* | pw32* | os2* | cegcc*)
9695      # This hack is so that the source file can tell whether it is being
9696      # built for inclusion in a dll (and should export symbols for example).
9697      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9698      # (--disable-auto-import) libraries
9699      lt_prog_compiler_pic='-DDLL_EXPORT'
9700      ;;
9701
9702    darwin* | rhapsody*)
9703      # PIC is the default on this platform
9704      # Common symbols not allowed in MH_DYLIB files
9705      lt_prog_compiler_pic='-fno-common'
9706      ;;
9707
9708    haiku*)
9709      # PIC is the default for Haiku.
9710      # The "-static" flag exists, but is broken.
9711      lt_prog_compiler_static=
9712      ;;
9713
9714    hpux*)
9715      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9716      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9717      # sets the default TLS model and affects inlining.
9718      case $host_cpu in
9719      hppa*64*)
9720	# +Z the default
9721	;;
9722      *)
9723	lt_prog_compiler_pic='-fPIC'
9724	;;
9725      esac
9726      ;;
9727
9728    interix[3-9]*)
9729      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9730      # Instead, we relocate shared libraries at runtime.
9731      ;;
9732
9733    msdosdjgpp*)
9734      # Just because we use GCC doesn't mean we suddenly get shared libraries
9735      # on systems that don't support them.
9736      lt_prog_compiler_can_build_shared=no
9737      enable_shared=no
9738      ;;
9739
9740    *nto* | *qnx*)
9741      # QNX uses GNU C++, but need to define -shared option too, otherwise
9742      # it will coredump.
9743      lt_prog_compiler_pic='-fPIC -shared'
9744      ;;
9745
9746    sysv4*MP*)
9747      if test -d /usr/nec; then
9748	lt_prog_compiler_pic=-Kconform_pic
9749      fi
9750      ;;
9751
9752    *)
9753      lt_prog_compiler_pic='-fPIC'
9754      ;;
9755    esac
9756
9757    case $cc_basename in
9758    nvcc*) # Cuda Compiler Driver 2.2
9759      lt_prog_compiler_wl='-Xlinker '
9760      if test -n "$lt_prog_compiler_pic"; then
9761        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9762      fi
9763      ;;
9764    esac
9765  else
9766    # PORTME Check for flag to pass linker flags through the system compiler.
9767    case $host_os in
9768    aix*)
9769      lt_prog_compiler_wl='-Wl,'
9770      if test "$host_cpu" = ia64; then
9771	# AIX 5 now supports IA64 processor
9772	lt_prog_compiler_static='-Bstatic'
9773      else
9774	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9775      fi
9776      ;;
9777
9778    mingw* | cygwin* | pw32* | os2* | cegcc*)
9779      # This hack is so that the source file can tell whether it is being
9780      # built for inclusion in a dll (and should export symbols for example).
9781      lt_prog_compiler_pic='-DDLL_EXPORT'
9782      ;;
9783
9784    hpux9* | hpux10* | hpux11*)
9785      lt_prog_compiler_wl='-Wl,'
9786      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9787      # not for PA HP-UX.
9788      case $host_cpu in
9789      hppa*64*|ia64*)
9790	# +Z the default
9791	;;
9792      *)
9793	lt_prog_compiler_pic='+Z'
9794	;;
9795      esac
9796      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9797      lt_prog_compiler_static='${wl}-a ${wl}archive'
9798      ;;
9799
9800    irix5* | irix6* | nonstopux*)
9801      lt_prog_compiler_wl='-Wl,'
9802      # PIC (with -KPIC) is the default.
9803      lt_prog_compiler_static='-non_shared'
9804      ;;
9805
9806    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9807      case $cc_basename in
9808      # old Intel for x86_64 which still supported -KPIC.
9809      ecc*)
9810	lt_prog_compiler_wl='-Wl,'
9811	lt_prog_compiler_pic='-KPIC'
9812	lt_prog_compiler_static='-static'
9813        ;;
9814      # icc used to be incompatible with GCC.
9815      # ICC 10 doesn't accept -KPIC any more.
9816      icc* | ifort*)
9817	lt_prog_compiler_wl='-Wl,'
9818	lt_prog_compiler_pic='-fPIC'
9819	lt_prog_compiler_static='-static'
9820        ;;
9821      # Lahey Fortran 8.1.
9822      lf95*)
9823	lt_prog_compiler_wl='-Wl,'
9824	lt_prog_compiler_pic='--shared'
9825	lt_prog_compiler_static='--static'
9826	;;
9827      nagfor*)
9828	# NAG Fortran compiler
9829	lt_prog_compiler_wl='-Wl,-Wl,,'
9830	lt_prog_compiler_pic='-PIC'
9831	lt_prog_compiler_static='-Bstatic'
9832	;;
9833      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9834        # Portland Group compilers (*not* the Pentium gcc compiler,
9835	# which looks to be a dead project)
9836	lt_prog_compiler_wl='-Wl,'
9837	lt_prog_compiler_pic='-fpic'
9838	lt_prog_compiler_static='-Bstatic'
9839        ;;
9840      ccc*)
9841        lt_prog_compiler_wl='-Wl,'
9842        # All Alpha code is PIC.
9843        lt_prog_compiler_static='-non_shared'
9844        ;;
9845      xl* | bgxl* | bgf* | mpixl*)
9846	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9847	lt_prog_compiler_wl='-Wl,'
9848	lt_prog_compiler_pic='-qpic'
9849	lt_prog_compiler_static='-qstaticlink'
9850	;;
9851      *)
9852	case `$CC -V 2>&1 | sed 5q` in
9853	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9854	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9855	  lt_prog_compiler_pic='-KPIC'
9856	  lt_prog_compiler_static='-Bstatic'
9857	  lt_prog_compiler_wl=''
9858	  ;;
9859	*Sun\ F* | *Sun*Fortran*)
9860	  lt_prog_compiler_pic='-KPIC'
9861	  lt_prog_compiler_static='-Bstatic'
9862	  lt_prog_compiler_wl='-Qoption ld '
9863	  ;;
9864	*Sun\ C*)
9865	  # Sun C 5.9
9866	  lt_prog_compiler_pic='-KPIC'
9867	  lt_prog_compiler_static='-Bstatic'
9868	  lt_prog_compiler_wl='-Wl,'
9869	  ;;
9870        *Intel*\ [CF]*Compiler*)
9871	  lt_prog_compiler_wl='-Wl,'
9872	  lt_prog_compiler_pic='-fPIC'
9873	  lt_prog_compiler_static='-static'
9874	  ;;
9875	*Portland\ Group*)
9876	  lt_prog_compiler_wl='-Wl,'
9877	  lt_prog_compiler_pic='-fpic'
9878	  lt_prog_compiler_static='-Bstatic'
9879	  ;;
9880	esac
9881	;;
9882      esac
9883      ;;
9884
9885    newsos6)
9886      lt_prog_compiler_pic='-KPIC'
9887      lt_prog_compiler_static='-Bstatic'
9888      ;;
9889
9890    *nto* | *qnx*)
9891      # QNX uses GNU C++, but need to define -shared option too, otherwise
9892      # it will coredump.
9893      lt_prog_compiler_pic='-fPIC -shared'
9894      ;;
9895
9896    osf3* | osf4* | osf5*)
9897      lt_prog_compiler_wl='-Wl,'
9898      # All OSF/1 code is PIC.
9899      lt_prog_compiler_static='-non_shared'
9900      ;;
9901
9902    rdos*)
9903      lt_prog_compiler_static='-non_shared'
9904      ;;
9905
9906    solaris*)
9907      lt_prog_compiler_pic='-KPIC'
9908      lt_prog_compiler_static='-Bstatic'
9909      case $cc_basename in
9910      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9911	lt_prog_compiler_wl='-Qoption ld ';;
9912      *)
9913	lt_prog_compiler_wl='-Wl,';;
9914      esac
9915      ;;
9916
9917    sunos4*)
9918      lt_prog_compiler_wl='-Qoption ld '
9919      lt_prog_compiler_pic='-PIC'
9920      lt_prog_compiler_static='-Bstatic'
9921      ;;
9922
9923    sysv4 | sysv4.2uw2* | sysv4.3*)
9924      lt_prog_compiler_wl='-Wl,'
9925      lt_prog_compiler_pic='-KPIC'
9926      lt_prog_compiler_static='-Bstatic'
9927      ;;
9928
9929    sysv4*MP*)
9930      if test -d /usr/nec ;then
9931	lt_prog_compiler_pic='-Kconform_pic'
9932	lt_prog_compiler_static='-Bstatic'
9933      fi
9934      ;;
9935
9936    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9937      lt_prog_compiler_wl='-Wl,'
9938      lt_prog_compiler_pic='-KPIC'
9939      lt_prog_compiler_static='-Bstatic'
9940      ;;
9941
9942    unicos*)
9943      lt_prog_compiler_wl='-Wl,'
9944      lt_prog_compiler_can_build_shared=no
9945      ;;
9946
9947    uts4*)
9948      lt_prog_compiler_pic='-pic'
9949      lt_prog_compiler_static='-Bstatic'
9950      ;;
9951
9952    *)
9953      lt_prog_compiler_can_build_shared=no
9954      ;;
9955    esac
9956  fi
9957
9958case $host_os in
9959  # For platforms which do not support PIC, -DPIC is meaningless:
9960  *djgpp*)
9961    lt_prog_compiler_pic=
9962    ;;
9963  *)
9964    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9965    ;;
9966esac
9967
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9969$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9970if ${lt_cv_prog_compiler_pic+:} false; then :
9971  $as_echo_n "(cached) " >&6
9972else
9973  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9974fi
9975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9976$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9977lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9978
9979#
9980# Check to make sure the PIC flag actually works.
9981#
9982if test -n "$lt_prog_compiler_pic"; then
9983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9984$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9985if ${lt_cv_prog_compiler_pic_works+:} false; then :
9986  $as_echo_n "(cached) " >&6
9987else
9988  lt_cv_prog_compiler_pic_works=no
9989   ac_outfile=conftest.$ac_objext
9990   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9991   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9992   # Insert the option either (1) after the last *FLAGS variable, or
9993   # (2) before a word containing "conftest.", or (3) at the end.
9994   # Note that $ac_compile itself does not contain backslashes and begins
9995   # with a dollar sign (not a hyphen), so the echo should work correctly.
9996   # The option is referenced via a variable to avoid confusing sed.
9997   lt_compile=`echo "$ac_compile" | $SED \
9998   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9999   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10000   -e 's:$: $lt_compiler_flag:'`
10001   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10002   (eval "$lt_compile" 2>conftest.err)
10003   ac_status=$?
10004   cat conftest.err >&5
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   if (exit $ac_status) && test -s "$ac_outfile"; then
10007     # The compiler can only warn and ignore the option if not recognized
10008     # So say no if there are warnings other than the usual output.
10009     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10010     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10011     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10012       lt_cv_prog_compiler_pic_works=yes
10013     fi
10014   fi
10015   $RM conftest*
10016
10017fi
10018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10019$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10020
10021if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10022    case $lt_prog_compiler_pic in
10023     "" | " "*) ;;
10024     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10025     esac
10026else
10027    lt_prog_compiler_pic=
10028     lt_prog_compiler_can_build_shared=no
10029fi
10030
10031fi
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043#
10044# Check to make sure the static flag actually works.
10045#
10046wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10048$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10049if ${lt_cv_prog_compiler_static_works+:} false; then :
10050  $as_echo_n "(cached) " >&6
10051else
10052  lt_cv_prog_compiler_static_works=no
10053   save_LDFLAGS="$LDFLAGS"
10054   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10055   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10056   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10057     # The linker can only warn and ignore the option if not recognized
10058     # So say no if there are warnings
10059     if test -s conftest.err; then
10060       # Append any errors to the config.log.
10061       cat conftest.err 1>&5
10062       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10063       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10064       if diff conftest.exp conftest.er2 >/dev/null; then
10065         lt_cv_prog_compiler_static_works=yes
10066       fi
10067     else
10068       lt_cv_prog_compiler_static_works=yes
10069     fi
10070   fi
10071   $RM -r conftest*
10072   LDFLAGS="$save_LDFLAGS"
10073
10074fi
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10076$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10077
10078if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10079    :
10080else
10081    lt_prog_compiler_static=
10082fi
10083
10084
10085
10086
10087
10088
10089
10090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10091$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10092if ${lt_cv_prog_compiler_c_o+:} false; then :
10093  $as_echo_n "(cached) " >&6
10094else
10095  lt_cv_prog_compiler_c_o=no
10096   $RM -r conftest 2>/dev/null
10097   mkdir conftest
10098   cd conftest
10099   mkdir out
10100   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10101
10102   lt_compiler_flag="-o out/conftest2.$ac_objext"
10103   # Insert the option either (1) after the last *FLAGS variable, or
10104   # (2) before a word containing "conftest.", or (3) at the end.
10105   # Note that $ac_compile itself does not contain backslashes and begins
10106   # with a dollar sign (not a hyphen), so the echo should work correctly.
10107   lt_compile=`echo "$ac_compile" | $SED \
10108   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10109   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10110   -e 's:$: $lt_compiler_flag:'`
10111   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10112   (eval "$lt_compile" 2>out/conftest.err)
10113   ac_status=$?
10114   cat out/conftest.err >&5
10115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10117   then
10118     # The compiler can only warn and ignore the option if not recognized
10119     # So say no if there are warnings
10120     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10121     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10122     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10123       lt_cv_prog_compiler_c_o=yes
10124     fi
10125   fi
10126   chmod u+w . 2>&5
10127   $RM conftest*
10128   # SGI C++ compiler will create directory out/ii_files/ for
10129   # template instantiation
10130   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10131   $RM out/* && rmdir out
10132   cd ..
10133   $RM -r conftest
10134   $RM conftest*
10135
10136fi
10137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10138$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10139
10140
10141
10142
10143
10144
10145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10146$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10147if ${lt_cv_prog_compiler_c_o+:} false; then :
10148  $as_echo_n "(cached) " >&6
10149else
10150  lt_cv_prog_compiler_c_o=no
10151   $RM -r conftest 2>/dev/null
10152   mkdir conftest
10153   cd conftest
10154   mkdir out
10155   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10156
10157   lt_compiler_flag="-o out/conftest2.$ac_objext"
10158   # Insert the option either (1) after the last *FLAGS variable, or
10159   # (2) before a word containing "conftest.", or (3) at the end.
10160   # Note that $ac_compile itself does not contain backslashes and begins
10161   # with a dollar sign (not a hyphen), so the echo should work correctly.
10162   lt_compile=`echo "$ac_compile" | $SED \
10163   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10164   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10165   -e 's:$: $lt_compiler_flag:'`
10166   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10167   (eval "$lt_compile" 2>out/conftest.err)
10168   ac_status=$?
10169   cat out/conftest.err >&5
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10172   then
10173     # The compiler can only warn and ignore the option if not recognized
10174     # So say no if there are warnings
10175     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10176     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10177     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10178       lt_cv_prog_compiler_c_o=yes
10179     fi
10180   fi
10181   chmod u+w . 2>&5
10182   $RM conftest*
10183   # SGI C++ compiler will create directory out/ii_files/ for
10184   # template instantiation
10185   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10186   $RM out/* && rmdir out
10187   cd ..
10188   $RM -r conftest
10189   $RM conftest*
10190
10191fi
10192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10193$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10194
10195
10196
10197
10198hard_links="nottested"
10199if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10200  # do not overwrite the value of need_locks provided by the user
10201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10202$as_echo_n "checking if we can lock with hard links... " >&6; }
10203  hard_links=yes
10204  $RM conftest*
10205  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10206  touch conftest.a
10207  ln conftest.a conftest.b 2>&5 || hard_links=no
10208  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10210$as_echo "$hard_links" >&6; }
10211  if test "$hard_links" = no; then
10212    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10213$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10214    need_locks=warn
10215  fi
10216else
10217  need_locks=no
10218fi
10219
10220
10221
10222
10223
10224
10225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10226$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10227
10228  runpath_var=
10229  allow_undefined_flag=
10230  always_export_symbols=no
10231  archive_cmds=
10232  archive_expsym_cmds=
10233  compiler_needs_object=no
10234  enable_shared_with_static_runtimes=no
10235  export_dynamic_flag_spec=
10236  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10237  hardcode_automatic=no
10238  hardcode_direct=no
10239  hardcode_direct_absolute=no
10240  hardcode_libdir_flag_spec=
10241  hardcode_libdir_separator=
10242  hardcode_minus_L=no
10243  hardcode_shlibpath_var=unsupported
10244  inherit_rpath=no
10245  link_all_deplibs=unknown
10246  module_cmds=
10247  module_expsym_cmds=
10248  old_archive_from_new_cmds=
10249  old_archive_from_expsyms_cmds=
10250  thread_safe_flag_spec=
10251  whole_archive_flag_spec=
10252  # include_expsyms should be a list of space-separated symbols to be *always*
10253  # included in the symbol list
10254  include_expsyms=
10255  # exclude_expsyms can be an extended regexp of symbols to exclude
10256  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10257  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10258  # as well as any symbol that contains `d'.
10259  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10260  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10261  # platforms (ab)use it in PIC code, but their linkers get confused if
10262  # the symbol is explicitly referenced.  Since portable code cannot
10263  # rely on this symbol name, it's probably fine to never include it in
10264  # preloaded symbol tables.
10265  # Exclude shared library initialization/finalization symbols.
10266  extract_expsyms_cmds=
10267
10268  case $host_os in
10269  cygwin* | mingw* | pw32* | cegcc*)
10270    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10271    # When not using gcc, we currently assume that we are using
10272    # Microsoft Visual C++.
10273    if test "$GCC" != yes; then
10274      with_gnu_ld=no
10275    fi
10276    ;;
10277  interix*)
10278    # we just hope/assume this is gcc and not c89 (= MSVC++)
10279    with_gnu_ld=yes
10280    ;;
10281  openbsd*)
10282    with_gnu_ld=no
10283    ;;
10284  esac
10285
10286  ld_shlibs=yes
10287
10288  # On some targets, GNU ld is compatible enough with the native linker
10289  # that we're better off using the native interface for both.
10290  lt_use_gnu_ld_interface=no
10291  if test "$with_gnu_ld" = yes; then
10292    case $host_os in
10293      aix*)
10294	# The AIX port of GNU ld has always aspired to compatibility
10295	# with the native linker.  However, as the warning in the GNU ld
10296	# block says, versions before 2.19.5* couldn't really create working
10297	# shared libraries, regardless of the interface used.
10298	case `$LD -v 2>&1` in
10299	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10300	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10301	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10302	  *)
10303	    lt_use_gnu_ld_interface=yes
10304	    ;;
10305	esac
10306	;;
10307      *)
10308	lt_use_gnu_ld_interface=yes
10309	;;
10310    esac
10311  fi
10312
10313  if test "$lt_use_gnu_ld_interface" = yes; then
10314    # If archive_cmds runs LD, not CC, wlarc should be empty
10315    wlarc='${wl}'
10316
10317    # Set some defaults for GNU ld with shared library support. These
10318    # are reset later if shared libraries are not supported. Putting them
10319    # here allows them to be overridden if necessary.
10320    runpath_var=LD_RUN_PATH
10321    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10322    export_dynamic_flag_spec='${wl}--export-dynamic'
10323    # ancient GNU ld didn't support --whole-archive et. al.
10324    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10325      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10326    else
10327      whole_archive_flag_spec=
10328    fi
10329    supports_anon_versioning=no
10330    case `$LD -v 2>&1` in
10331      *GNU\ gold*) supports_anon_versioning=yes ;;
10332      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10333      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10334      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10335      *\ 2.11.*) ;; # other 2.11 versions
10336      *) supports_anon_versioning=yes ;;
10337    esac
10338
10339    # See if GNU ld supports shared libraries.
10340    case $host_os in
10341    aix[3-9]*)
10342      # On AIX/PPC, the GNU linker is very broken
10343      if test "$host_cpu" != ia64; then
10344	ld_shlibs=no
10345	cat <<_LT_EOF 1>&2
10346
10347*** Warning: the GNU linker, at least up to release 2.19, is reported
10348*** to be unable to reliably create shared libraries on AIX.
10349*** Therefore, libtool is disabling shared libraries support.  If you
10350*** really care for shared libraries, you may want to install binutils
10351*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10352*** You will then need to restart the configuration process.
10353
10354_LT_EOF
10355      fi
10356      ;;
10357
10358    amigaos*)
10359      case $host_cpu in
10360      powerpc)
10361            # see comment about AmigaOS4 .so support
10362            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10363            archive_expsym_cmds=''
10364        ;;
10365      m68k)
10366            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)'
10367            hardcode_libdir_flag_spec='-L$libdir'
10368            hardcode_minus_L=yes
10369        ;;
10370      esac
10371      ;;
10372
10373    beos*)
10374      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10375	allow_undefined_flag=unsupported
10376	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10377	# support --undefined.  This deserves some investigation.  FIXME
10378	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10379      else
10380	ld_shlibs=no
10381      fi
10382      ;;
10383
10384    cygwin* | mingw* | pw32* | cegcc*)
10385      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10386      # as there is no search path for DLLs.
10387      hardcode_libdir_flag_spec='-L$libdir'
10388      export_dynamic_flag_spec='${wl}--export-all-symbols'
10389      allow_undefined_flag=unsupported
10390      always_export_symbols=no
10391      enable_shared_with_static_runtimes=yes
10392      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10393      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10394
10395      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10396        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10397	# If the export-symbols file already is a .def file (1st line
10398	# is EXPORTS), use it as is; otherwise, prepend...
10399	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10400	  cp $export_symbols $output_objdir/$soname.def;
10401	else
10402	  echo EXPORTS > $output_objdir/$soname.def;
10403	  cat $export_symbols >> $output_objdir/$soname.def;
10404	fi~
10405	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10406      else
10407	ld_shlibs=no
10408      fi
10409      ;;
10410
10411    haiku*)
10412      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10413      link_all_deplibs=yes
10414      ;;
10415
10416    interix[3-9]*)
10417      hardcode_direct=no
10418      hardcode_shlibpath_var=no
10419      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10420      export_dynamic_flag_spec='${wl}-E'
10421      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10422      # Instead, shared libraries are loaded at an image base (0x10000000 by
10423      # default) and relocated if they conflict, which is a slow very memory
10424      # consuming and fragmenting process.  To avoid this, we pick a random,
10425      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10426      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10427      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10428      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'
10429      ;;
10430
10431    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10432      tmp_diet=no
10433      if test "$host_os" = linux-dietlibc; then
10434	case $cc_basename in
10435	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10436	esac
10437      fi
10438      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10439	 && test "$tmp_diet" = no
10440      then
10441	tmp_addflag=' $pic_flag'
10442	tmp_sharedflag='-shared'
10443	case $cc_basename,$host_cpu in
10444        pgcc*)				# Portland Group C compiler
10445	  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'
10446	  tmp_addflag=' $pic_flag'
10447	  ;;
10448	pgf77* | pgf90* | pgf95* | pgfortran*)
10449					# Portland Group f77 and f90 compilers
10450	  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'
10451	  tmp_addflag=' $pic_flag -Mnomain' ;;
10452	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10453	  tmp_addflag=' -i_dynamic' ;;
10454	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10455	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10456	ifc* | ifort*)			# Intel Fortran compiler
10457	  tmp_addflag=' -nofor_main' ;;
10458	lf95*)				# Lahey Fortran 8.1
10459	  whole_archive_flag_spec=
10460	  tmp_sharedflag='--shared' ;;
10461	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10462	  tmp_sharedflag='-qmkshrobj'
10463	  tmp_addflag= ;;
10464	nvcc*)	# Cuda Compiler Driver 2.2
10465	  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'
10466	  compiler_needs_object=yes
10467	  ;;
10468	esac
10469	case `$CC -V 2>&1 | sed 5q` in
10470	*Sun\ C*)			# Sun C 5.9
10471	  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'
10472	  compiler_needs_object=yes
10473	  tmp_sharedflag='-G' ;;
10474	*Sun\ F*)			# Sun Fortran 8.3
10475	  tmp_sharedflag='-G' ;;
10476	esac
10477	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10478
10479        if test "x$supports_anon_versioning" = xyes; then
10480          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10481	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10482	    echo "local: *; };" >> $output_objdir/$libname.ver~
10483	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10484        fi
10485
10486	case $cc_basename in
10487	xlf* | bgf* | bgxlf* | mpixlf*)
10488	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10489	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10490	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10491	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10492	  if test "x$supports_anon_versioning" = xyes; then
10493	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10494	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10495	      echo "local: *; };" >> $output_objdir/$libname.ver~
10496	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10497	  fi
10498	  ;;
10499	esac
10500      else
10501        ld_shlibs=no
10502      fi
10503      ;;
10504
10505    netbsd*)
10506      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10507	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10508	wlarc=
10509      else
10510	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10511	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10512      fi
10513      ;;
10514
10515    solaris*)
10516      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10517	ld_shlibs=no
10518	cat <<_LT_EOF 1>&2
10519
10520*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10521*** create shared libraries on Solaris systems.  Therefore, libtool
10522*** is disabling shared libraries support.  We urge you to upgrade GNU
10523*** binutils to release 2.9.1 or newer.  Another option is to modify
10524*** your PATH or compiler configuration so that the native linker is
10525*** used, and then restart.
10526
10527_LT_EOF
10528      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10529	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10530	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10531      else
10532	ld_shlibs=no
10533      fi
10534      ;;
10535
10536    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10537      case `$LD -v 2>&1` in
10538        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10539	ld_shlibs=no
10540	cat <<_LT_EOF 1>&2
10541
10542*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10543*** reliably create shared libraries on SCO systems.  Therefore, libtool
10544*** is disabling shared libraries support.  We urge you to upgrade GNU
10545*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10546*** your PATH or compiler configuration so that the native linker is
10547*** used, and then restart.
10548
10549_LT_EOF
10550	;;
10551	*)
10552	  # For security reasons, it is highly recommended that you always
10553	  # use absolute paths for naming shared libraries, and exclude the
10554	  # DT_RUNPATH tag from executables and libraries.  But doing so
10555	  # requires that you compile everything twice, which is a pain.
10556	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10557	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10558	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10559	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10560	  else
10561	    ld_shlibs=no
10562	  fi
10563	;;
10564      esac
10565      ;;
10566
10567    sunos4*)
10568      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10569      wlarc=
10570      hardcode_direct=yes
10571      hardcode_shlibpath_var=no
10572      ;;
10573
10574    *)
10575      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10576	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10577	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10578      else
10579	ld_shlibs=no
10580      fi
10581      ;;
10582    esac
10583
10584    if test "$ld_shlibs" = no; then
10585      runpath_var=
10586      hardcode_libdir_flag_spec=
10587      export_dynamic_flag_spec=
10588      whole_archive_flag_spec=
10589    fi
10590  else
10591    # PORTME fill in a description of your system's linker (not GNU ld)
10592    case $host_os in
10593    aix3*)
10594      allow_undefined_flag=unsupported
10595      always_export_symbols=yes
10596      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'
10597      # Note: this linker hardcodes the directories in LIBPATH if there
10598      # are no directories specified by -L.
10599      hardcode_minus_L=yes
10600      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10601	# Neither direct hardcoding nor static linking is supported with a
10602	# broken collect2.
10603	hardcode_direct=unsupported
10604      fi
10605      ;;
10606
10607    aix[4-9]*)
10608      if test "$host_cpu" = ia64; then
10609	# On IA64, the linker does run time linking by default, so we don't
10610	# have to do anything special.
10611	aix_use_runtimelinking=no
10612	exp_sym_flag='-Bexport'
10613	no_entry_flag=""
10614      else
10615	# If we're using GNU nm, then we don't want the "-C" option.
10616	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10617	# Also, AIX nm treats weak defined symbols like other global
10618	# defined symbols, whereas GNU nm marks them as "W".
10619	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10620	  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'
10621	else
10622	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10623	fi
10624	aix_use_runtimelinking=no
10625
10626	# Test if we are trying to use run time linking or normal
10627	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10628	# need to do runtime linking.
10629	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10630	  for ld_flag in $LDFLAGS; do
10631	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10632	    aix_use_runtimelinking=yes
10633	    break
10634	  fi
10635	  done
10636	  ;;
10637	esac
10638
10639	exp_sym_flag='-bexport'
10640	no_entry_flag='-bnoentry'
10641      fi
10642
10643      # When large executables or shared objects are built, AIX ld can
10644      # have problems creating the table of contents.  If linking a library
10645      # or program results in "error TOC overflow" add -mminimal-toc to
10646      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10647      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10648
10649      archive_cmds=''
10650      hardcode_direct=yes
10651      hardcode_direct_absolute=yes
10652      hardcode_libdir_separator=':'
10653      link_all_deplibs=yes
10654      file_list_spec='${wl}-f,'
10655
10656      if test "$GCC" = yes; then
10657	case $host_os in aix4.[012]|aix4.[012].*)
10658	# We only want to do this on AIX 4.2 and lower, the check
10659	# below for broken collect2 doesn't work under 4.3+
10660	  collect2name=`${CC} -print-prog-name=collect2`
10661	  if test -f "$collect2name" &&
10662	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10663	  then
10664	  # We have reworked collect2
10665	  :
10666	  else
10667	  # We have old collect2
10668	  hardcode_direct=unsupported
10669	  # It fails to find uninstalled libraries when the uninstalled
10670	  # path is not listed in the libpath.  Setting hardcode_minus_L
10671	  # to unsupported forces relinking
10672	  hardcode_minus_L=yes
10673	  hardcode_libdir_flag_spec='-L$libdir'
10674	  hardcode_libdir_separator=
10675	  fi
10676	  ;;
10677	esac
10678	shared_flag='-shared'
10679	if test "$aix_use_runtimelinking" = yes; then
10680	  shared_flag="$shared_flag "'${wl}-G'
10681	fi
10682      else
10683	# not using gcc
10684	if test "$host_cpu" = ia64; then
10685	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10686	# chokes on -Wl,-G. The following line is correct:
10687	  shared_flag='-G'
10688	else
10689	  if test "$aix_use_runtimelinking" = yes; then
10690	    shared_flag='${wl}-G'
10691	  else
10692	    shared_flag='${wl}-bM:SRE'
10693	  fi
10694	fi
10695      fi
10696
10697      export_dynamic_flag_spec='${wl}-bexpall'
10698      # It seems that -bexpall does not export symbols beginning with
10699      # underscore (_), so it is better to generate a list of symbols to export.
10700      always_export_symbols=yes
10701      if test "$aix_use_runtimelinking" = yes; then
10702	# Warning - without using the other runtime loading flags (-brtl),
10703	# -berok will link without error, but may produce a broken library.
10704	allow_undefined_flag='-berok'
10705        # Determine the default libpath from the value encoded in an
10706        # empty executable.
10707        if test "${lt_cv_aix_libpath+set}" = set; then
10708  aix_libpath=$lt_cv_aix_libpath
10709else
10710  if ${lt_cv_aix_libpath_+:} false; then :
10711  $as_echo_n "(cached) " >&6
10712else
10713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714/* end confdefs.h.  */
10715
10716int
10717main ()
10718{
10719
10720  ;
10721  return 0;
10722}
10723_ACEOF
10724if ac_fn_c_try_link "$LINENO"; then :
10725
10726  lt_aix_libpath_sed='
10727      /Import File Strings/,/^$/ {
10728	  /^0/ {
10729	      s/^0  *\([^ ]*\) *$/\1/
10730	      p
10731	  }
10732      }'
10733  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10734  # Check for a 64-bit object if we didn't find anything.
10735  if test -z "$lt_cv_aix_libpath_"; then
10736    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10737  fi
10738fi
10739rm -f core conftest.err conftest.$ac_objext \
10740    conftest$ac_exeext conftest.$ac_ext
10741  if test -z "$lt_cv_aix_libpath_"; then
10742    lt_cv_aix_libpath_="/usr/lib:/lib"
10743  fi
10744
10745fi
10746
10747  aix_libpath=$lt_cv_aix_libpath_
10748fi
10749
10750        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10751        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"
10752      else
10753	if test "$host_cpu" = ia64; then
10754	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10755	  allow_undefined_flag="-z nodefs"
10756	  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"
10757	else
10758	 # Determine the default libpath from the value encoded in an
10759	 # empty executable.
10760	 if test "${lt_cv_aix_libpath+set}" = set; then
10761  aix_libpath=$lt_cv_aix_libpath
10762else
10763  if ${lt_cv_aix_libpath_+:} false; then :
10764  $as_echo_n "(cached) " >&6
10765else
10766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767/* end confdefs.h.  */
10768
10769int
10770main ()
10771{
10772
10773  ;
10774  return 0;
10775}
10776_ACEOF
10777if ac_fn_c_try_link "$LINENO"; then :
10778
10779  lt_aix_libpath_sed='
10780      /Import File Strings/,/^$/ {
10781	  /^0/ {
10782	      s/^0  *\([^ ]*\) *$/\1/
10783	      p
10784	  }
10785      }'
10786  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10787  # Check for a 64-bit object if we didn't find anything.
10788  if test -z "$lt_cv_aix_libpath_"; then
10789    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10790  fi
10791fi
10792rm -f core conftest.err conftest.$ac_objext \
10793    conftest$ac_exeext conftest.$ac_ext
10794  if test -z "$lt_cv_aix_libpath_"; then
10795    lt_cv_aix_libpath_="/usr/lib:/lib"
10796  fi
10797
10798fi
10799
10800  aix_libpath=$lt_cv_aix_libpath_
10801fi
10802
10803	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10804	  # Warning - without using the other run time loading flags,
10805	  # -berok will link without error, but may produce a broken library.
10806	  no_undefined_flag=' ${wl}-bernotok'
10807	  allow_undefined_flag=' ${wl}-berok'
10808	  if test "$with_gnu_ld" = yes; then
10809	    # We only use this code for GNU lds that support --whole-archive.
10810	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10811	  else
10812	    # Exported symbols can be pulled into shared objects from archives
10813	    whole_archive_flag_spec='$convenience'
10814	  fi
10815	  archive_cmds_need_lc=yes
10816	  # This is similar to how AIX traditionally builds its shared libraries.
10817	  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'
10818	fi
10819      fi
10820      ;;
10821
10822    amigaos*)
10823      case $host_cpu in
10824      powerpc)
10825            # see comment about AmigaOS4 .so support
10826            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10827            archive_expsym_cmds=''
10828        ;;
10829      m68k)
10830            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)'
10831            hardcode_libdir_flag_spec='-L$libdir'
10832            hardcode_minus_L=yes
10833        ;;
10834      esac
10835      ;;
10836
10837    bsdi[45]*)
10838      export_dynamic_flag_spec=-rdynamic
10839      ;;
10840
10841    cygwin* | mingw* | pw32* | cegcc*)
10842      # When not using gcc, we currently assume that we are using
10843      # Microsoft Visual C++.
10844      # hardcode_libdir_flag_spec is actually meaningless, as there is
10845      # no search path for DLLs.
10846      case $cc_basename in
10847      cl*)
10848	# Native MSVC
10849	hardcode_libdir_flag_spec=' '
10850	allow_undefined_flag=unsupported
10851	always_export_symbols=yes
10852	file_list_spec='@'
10853	# Tell ltmain to make .lib files, not .a files.
10854	libext=lib
10855	# Tell ltmain to make .dll files, not .so files.
10856	shrext_cmds=".dll"
10857	# FIXME: Setting linknames here is a bad hack.
10858	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10859	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10860	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10861	  else
10862	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10863	  fi~
10864	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10865	  linknames='
10866	# The linker will not automatically build a static lib if we build a DLL.
10867	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10868	enable_shared_with_static_runtimes=yes
10869	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10870	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10871	# Don't use ranlib
10872	old_postinstall_cmds='chmod 644 $oldlib'
10873	postlink_cmds='lt_outputfile="@OUTPUT@"~
10874	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10875	  case $lt_outputfile in
10876	    *.exe|*.EXE) ;;
10877	    *)
10878	      lt_outputfile="$lt_outputfile.exe"
10879	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10880	      ;;
10881	  esac~
10882	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10883	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10884	    $RM "$lt_outputfile.manifest";
10885	  fi'
10886	;;
10887      *)
10888	# Assume MSVC wrapper
10889	hardcode_libdir_flag_spec=' '
10890	allow_undefined_flag=unsupported
10891	# Tell ltmain to make .lib files, not .a files.
10892	libext=lib
10893	# Tell ltmain to make .dll files, not .so files.
10894	shrext_cmds=".dll"
10895	# FIXME: Setting linknames here is a bad hack.
10896	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10897	# The linker will automatically build a .lib file if we build a DLL.
10898	old_archive_from_new_cmds='true'
10899	# FIXME: Should let the user specify the lib program.
10900	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10901	enable_shared_with_static_runtimes=yes
10902	;;
10903      esac
10904      ;;
10905
10906    darwin* | rhapsody*)
10907
10908
10909  archive_cmds_need_lc=no
10910  hardcode_direct=no
10911  hardcode_automatic=yes
10912  hardcode_shlibpath_var=unsupported
10913  if test "$lt_cv_ld_force_load" = "yes"; then
10914    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\"`'
10915
10916  else
10917    whole_archive_flag_spec=''
10918  fi
10919  link_all_deplibs=yes
10920  allow_undefined_flag="$_lt_dar_allow_undefined"
10921  case $cc_basename in
10922     ifort*) _lt_dar_can_shared=yes ;;
10923     *) _lt_dar_can_shared=$GCC ;;
10924  esac
10925  if test "$_lt_dar_can_shared" = "yes"; then
10926    output_verbose_link_cmd=func_echo_all
10927    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10928    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10929    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}"
10930    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}"
10931
10932  else
10933  ld_shlibs=no
10934  fi
10935
10936      ;;
10937
10938    dgux*)
10939      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10940      hardcode_libdir_flag_spec='-L$libdir'
10941      hardcode_shlibpath_var=no
10942      ;;
10943
10944    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10945    # support.  Future versions do this automatically, but an explicit c++rt0.o
10946    # does not break anything, and helps significantly (at the cost of a little
10947    # extra space).
10948    freebsd2.2*)
10949      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10950      hardcode_libdir_flag_spec='-R$libdir'
10951      hardcode_direct=yes
10952      hardcode_shlibpath_var=no
10953      ;;
10954
10955    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10956    freebsd2.*)
10957      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10958      hardcode_direct=yes
10959      hardcode_minus_L=yes
10960      hardcode_shlibpath_var=no
10961      ;;
10962
10963    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10964    freebsd* | dragonfly*)
10965      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10966      hardcode_libdir_flag_spec='-R$libdir'
10967      hardcode_direct=yes
10968      hardcode_shlibpath_var=no
10969      ;;
10970
10971    hpux9*)
10972      if test "$GCC" = yes; then
10973	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10974      else
10975	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'
10976      fi
10977      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10978      hardcode_libdir_separator=:
10979      hardcode_direct=yes
10980
10981      # hardcode_minus_L: Not really in the search PATH,
10982      # but as the default location of the library.
10983      hardcode_minus_L=yes
10984      export_dynamic_flag_spec='${wl}-E'
10985      ;;
10986
10987    hpux10*)
10988      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10989	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10990      else
10991	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10992      fi
10993      if test "$with_gnu_ld" = no; then
10994	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10995	hardcode_libdir_separator=:
10996	hardcode_direct=yes
10997	hardcode_direct_absolute=yes
10998	export_dynamic_flag_spec='${wl}-E'
10999	# hardcode_minus_L: Not really in the search PATH,
11000	# but as the default location of the library.
11001	hardcode_minus_L=yes
11002      fi
11003      ;;
11004
11005    hpux11*)
11006      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11007	case $host_cpu in
11008	hppa*64*)
11009	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11010	  ;;
11011	ia64*)
11012	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11013	  ;;
11014	*)
11015	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11016	  ;;
11017	esac
11018      else
11019	case $host_cpu in
11020	hppa*64*)
11021	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11022	  ;;
11023	ia64*)
11024	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11025	  ;;
11026	*)
11027
11028	  # Older versions of the 11.00 compiler do not understand -b yet
11029	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11030	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11031$as_echo_n "checking if $CC understands -b... " >&6; }
11032if ${lt_cv_prog_compiler__b+:} false; then :
11033  $as_echo_n "(cached) " >&6
11034else
11035  lt_cv_prog_compiler__b=no
11036   save_LDFLAGS="$LDFLAGS"
11037   LDFLAGS="$LDFLAGS -b"
11038   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11039   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11040     # The linker can only warn and ignore the option if not recognized
11041     # So say no if there are warnings
11042     if test -s conftest.err; then
11043       # Append any errors to the config.log.
11044       cat conftest.err 1>&5
11045       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11046       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11047       if diff conftest.exp conftest.er2 >/dev/null; then
11048         lt_cv_prog_compiler__b=yes
11049       fi
11050     else
11051       lt_cv_prog_compiler__b=yes
11052     fi
11053   fi
11054   $RM -r conftest*
11055   LDFLAGS="$save_LDFLAGS"
11056
11057fi
11058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11059$as_echo "$lt_cv_prog_compiler__b" >&6; }
11060
11061if test x"$lt_cv_prog_compiler__b" = xyes; then
11062    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11063else
11064    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11065fi
11066
11067	  ;;
11068	esac
11069      fi
11070      if test "$with_gnu_ld" = no; then
11071	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11072	hardcode_libdir_separator=:
11073
11074	case $host_cpu in
11075	hppa*64*|ia64*)
11076	  hardcode_direct=no
11077	  hardcode_shlibpath_var=no
11078	  ;;
11079	*)
11080	  hardcode_direct=yes
11081	  hardcode_direct_absolute=yes
11082	  export_dynamic_flag_spec='${wl}-E'
11083
11084	  # hardcode_minus_L: Not really in the search PATH,
11085	  # but as the default location of the library.
11086	  hardcode_minus_L=yes
11087	  ;;
11088	esac
11089      fi
11090      ;;
11091
11092    irix5* | irix6* | nonstopux*)
11093      if test "$GCC" = yes; then
11094	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11095	# Try to use the -exported_symbol ld option, if it does not
11096	# work, assume that -exports_file does not work either and
11097	# implicitly export all symbols.
11098	# This should be the same for all languages, so no per-tag cache variable.
11099	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11100$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11101if ${lt_cv_irix_exported_symbol+:} false; then :
11102  $as_echo_n "(cached) " >&6
11103else
11104  save_LDFLAGS="$LDFLAGS"
11105	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11106	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107/* end confdefs.h.  */
11108int foo (void) { return 0; }
11109_ACEOF
11110if ac_fn_c_try_link "$LINENO"; then :
11111  lt_cv_irix_exported_symbol=yes
11112else
11113  lt_cv_irix_exported_symbol=no
11114fi
11115rm -f core conftest.err conftest.$ac_objext \
11116    conftest$ac_exeext conftest.$ac_ext
11117           LDFLAGS="$save_LDFLAGS"
11118fi
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11120$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11121	if test "$lt_cv_irix_exported_symbol" = yes; then
11122          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11123	fi
11124      else
11125	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'
11126	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'
11127      fi
11128      archive_cmds_need_lc='no'
11129      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11130      hardcode_libdir_separator=:
11131      inherit_rpath=yes
11132      link_all_deplibs=yes
11133      ;;
11134
11135    netbsd*)
11136      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11137	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11138      else
11139	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11140      fi
11141      hardcode_libdir_flag_spec='-R$libdir'
11142      hardcode_direct=yes
11143      hardcode_shlibpath_var=no
11144      ;;
11145
11146    newsos6)
11147      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11148      hardcode_direct=yes
11149      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11150      hardcode_libdir_separator=:
11151      hardcode_shlibpath_var=no
11152      ;;
11153
11154    *nto* | *qnx*)
11155      ;;
11156
11157    openbsd*)
11158      if test -f /usr/libexec/ld.so; then
11159	hardcode_direct=yes
11160	hardcode_shlibpath_var=no
11161	hardcode_direct_absolute=yes
11162	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11163	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11164	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11165	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11166	  export_dynamic_flag_spec='${wl}-E'
11167	else
11168	  case $host_os in
11169	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11170	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11171	     hardcode_libdir_flag_spec='-R$libdir'
11172	     ;;
11173	   *)
11174	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11175	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11176	     ;;
11177	  esac
11178	fi
11179      else
11180	ld_shlibs=no
11181      fi
11182      ;;
11183
11184    os2*)
11185      hardcode_libdir_flag_spec='-L$libdir'
11186      hardcode_minus_L=yes
11187      allow_undefined_flag=unsupported
11188      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'
11189      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11190      ;;
11191
11192    osf3*)
11193      if test "$GCC" = yes; then
11194	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11195	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'
11196      else
11197	allow_undefined_flag=' -expect_unresolved \*'
11198	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'
11199      fi
11200      archive_cmds_need_lc='no'
11201      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11202      hardcode_libdir_separator=:
11203      ;;
11204
11205    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11206      if test "$GCC" = yes; then
11207	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11208	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11209	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11210      else
11211	allow_undefined_flag=' -expect_unresolved \*'
11212	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'
11213	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~
11214	$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'
11215
11216	# Both c and cxx compiler support -rpath directly
11217	hardcode_libdir_flag_spec='-rpath $libdir'
11218      fi
11219      archive_cmds_need_lc='no'
11220      hardcode_libdir_separator=:
11221      ;;
11222
11223    solaris*)
11224      no_undefined_flag=' -z defs'
11225      if test "$GCC" = yes; then
11226	wlarc='${wl}'
11227	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11228	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11229	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11230      else
11231	case `$CC -V 2>&1` in
11232	*"Compilers 5.0"*)
11233	  wlarc=''
11234	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11235	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11236	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11237	  ;;
11238	*)
11239	  wlarc='${wl}'
11240	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11241	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11242	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11243	  ;;
11244	esac
11245      fi
11246      hardcode_libdir_flag_spec='-R$libdir'
11247      hardcode_shlibpath_var=no
11248      case $host_os in
11249      solaris2.[0-5] | solaris2.[0-5].*) ;;
11250      *)
11251	# The compiler driver will combine and reorder linker options,
11252	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11253	# but is careful enough not to reorder.
11254	# Supported since Solaris 2.6 (maybe 2.5.1?)
11255	if test "$GCC" = yes; then
11256	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11257	else
11258	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11259	fi
11260	;;
11261      esac
11262      link_all_deplibs=yes
11263      ;;
11264
11265    sunos4*)
11266      if test "x$host_vendor" = xsequent; then
11267	# Use $CC to link under sequent, because it throws in some extra .o
11268	# files that make .init and .fini sections work.
11269	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11270      else
11271	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11272      fi
11273      hardcode_libdir_flag_spec='-L$libdir'
11274      hardcode_direct=yes
11275      hardcode_minus_L=yes
11276      hardcode_shlibpath_var=no
11277      ;;
11278
11279    sysv4)
11280      case $host_vendor in
11281	sni)
11282	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11283	  hardcode_direct=yes # is this really true???
11284	;;
11285	siemens)
11286	  ## LD is ld it makes a PLAMLIB
11287	  ## CC just makes a GrossModule.
11288	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11289	  reload_cmds='$CC -r -o $output$reload_objs'
11290	  hardcode_direct=no
11291        ;;
11292	motorola)
11293	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11294	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11295	;;
11296      esac
11297      runpath_var='LD_RUN_PATH'
11298      hardcode_shlibpath_var=no
11299      ;;
11300
11301    sysv4.3*)
11302      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11303      hardcode_shlibpath_var=no
11304      export_dynamic_flag_spec='-Bexport'
11305      ;;
11306
11307    sysv4*MP*)
11308      if test -d /usr/nec; then
11309	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11310	hardcode_shlibpath_var=no
11311	runpath_var=LD_RUN_PATH
11312	hardcode_runpath_var=yes
11313	ld_shlibs=yes
11314      fi
11315      ;;
11316
11317    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11318      no_undefined_flag='${wl}-z,text'
11319      archive_cmds_need_lc=no
11320      hardcode_shlibpath_var=no
11321      runpath_var='LD_RUN_PATH'
11322
11323      if test "$GCC" = yes; then
11324	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11325	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11326      else
11327	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11328	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11329      fi
11330      ;;
11331
11332    sysv5* | sco3.2v5* | sco5v6*)
11333      # Note: We can NOT use -z defs as we might desire, because we do not
11334      # link with -lc, and that would cause any symbols used from libc to
11335      # always be unresolved, which means just about no library would
11336      # ever link correctly.  If we're not using GNU ld we use -z text
11337      # though, which does catch some bad symbols but isn't as heavy-handed
11338      # as -z defs.
11339      no_undefined_flag='${wl}-z,text'
11340      allow_undefined_flag='${wl}-z,nodefs'
11341      archive_cmds_need_lc=no
11342      hardcode_shlibpath_var=no
11343      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11344      hardcode_libdir_separator=':'
11345      link_all_deplibs=yes
11346      export_dynamic_flag_spec='${wl}-Bexport'
11347      runpath_var='LD_RUN_PATH'
11348
11349      if test "$GCC" = yes; then
11350	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11351	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11352      else
11353	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11354	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11355      fi
11356      ;;
11357
11358    uts4*)
11359      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11360      hardcode_libdir_flag_spec='-L$libdir'
11361      hardcode_shlibpath_var=no
11362      ;;
11363
11364    *)
11365      ld_shlibs=no
11366      ;;
11367    esac
11368
11369    if test x$host_vendor = xsni; then
11370      case $host in
11371      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11372	export_dynamic_flag_spec='${wl}-Blargedynsym'
11373	;;
11374      esac
11375    fi
11376  fi
11377
11378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11379$as_echo "$ld_shlibs" >&6; }
11380test "$ld_shlibs" = no && can_build_shared=no
11381
11382with_gnu_ld=$with_gnu_ld
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398#
11399# Do we need to explicitly link libc?
11400#
11401case "x$archive_cmds_need_lc" in
11402x|xyes)
11403  # Assume -lc should be added
11404  archive_cmds_need_lc=yes
11405
11406  if test "$enable_shared" = yes && test "$GCC" = yes; then
11407    case $archive_cmds in
11408    *'~'*)
11409      # FIXME: we may have to deal with multi-command sequences.
11410      ;;
11411    '$CC '*)
11412      # Test whether the compiler implicitly links with -lc since on some
11413      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11414      # to ld, don't add -lc before -lgcc.
11415      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11416$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11417if ${lt_cv_archive_cmds_need_lc+:} false; then :
11418  $as_echo_n "(cached) " >&6
11419else
11420  $RM conftest*
11421	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11422
11423	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11424  (eval $ac_compile) 2>&5
11425  ac_status=$?
11426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11427  test $ac_status = 0; } 2>conftest.err; then
11428	  soname=conftest
11429	  lib=conftest
11430	  libobjs=conftest.$ac_objext
11431	  deplibs=
11432	  wl=$lt_prog_compiler_wl
11433	  pic_flag=$lt_prog_compiler_pic
11434	  compiler_flags=-v
11435	  linker_flags=-v
11436	  verstring=
11437	  output_objdir=.
11438	  libname=conftest
11439	  lt_save_allow_undefined_flag=$allow_undefined_flag
11440	  allow_undefined_flag=
11441	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11442  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11443  ac_status=$?
11444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11445  test $ac_status = 0; }
11446	  then
11447	    lt_cv_archive_cmds_need_lc=no
11448	  else
11449	    lt_cv_archive_cmds_need_lc=yes
11450	  fi
11451	  allow_undefined_flag=$lt_save_allow_undefined_flag
11452	else
11453	  cat conftest.err 1>&5
11454	fi
11455	$RM conftest*
11456
11457fi
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11459$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11460      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11461      ;;
11462    esac
11463  fi
11464  ;;
11465esac
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11619$as_echo_n "checking dynamic linker characteristics... " >&6; }
11620
11621if test "$GCC" = yes; then
11622  case $host_os in
11623    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11624    *) lt_awk_arg="/^libraries:/" ;;
11625  esac
11626  case $host_os in
11627    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11628    *) lt_sed_strip_eq="s,=/,/,g" ;;
11629  esac
11630  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11631  case $lt_search_path_spec in
11632  *\;*)
11633    # if the path contains ";" then we assume it to be the separator
11634    # otherwise default to the standard path separator (i.e. ":") - it is
11635    # assumed that no part of a normal pathname contains ";" but that should
11636    # okay in the real world where ";" in dirpaths is itself problematic.
11637    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11638    ;;
11639  *)
11640    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11641    ;;
11642  esac
11643  # Ok, now we have the path, separated by spaces, we can step through it
11644  # and add multilib dir if necessary.
11645  lt_tmp_lt_search_path_spec=
11646  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11647  for lt_sys_path in $lt_search_path_spec; do
11648    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11649      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11650    else
11651      test -d "$lt_sys_path" && \
11652	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11653    fi
11654  done
11655  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11656BEGIN {RS=" "; FS="/|\n";} {
11657  lt_foo="";
11658  lt_count=0;
11659  for (lt_i = NF; lt_i > 0; lt_i--) {
11660    if ($lt_i != "" && $lt_i != ".") {
11661      if ($lt_i == "..") {
11662        lt_count++;
11663      } else {
11664        if (lt_count == 0) {
11665          lt_foo="/" $lt_i lt_foo;
11666        } else {
11667          lt_count--;
11668        }
11669      }
11670    }
11671  }
11672  if (lt_foo != "") { lt_freq[lt_foo]++; }
11673  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11674}'`
11675  # AWK program above erroneously prepends '/' to C:/dos/paths
11676  # for these hosts.
11677  case $host_os in
11678    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11679      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11680  esac
11681  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11682else
11683  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11684fi
11685library_names_spec=
11686libname_spec='lib$name'
11687soname_spec=
11688shrext_cmds=".so"
11689postinstall_cmds=
11690postuninstall_cmds=
11691finish_cmds=
11692finish_eval=
11693shlibpath_var=
11694shlibpath_overrides_runpath=unknown
11695version_type=none
11696dynamic_linker="$host_os ld.so"
11697sys_lib_dlsearch_path_spec="/lib /usr/lib"
11698need_lib_prefix=unknown
11699hardcode_into_libs=no
11700
11701# when you set need_version to no, make sure it does not cause -set_version
11702# flags to be left without arguments
11703need_version=unknown
11704
11705case $host_os in
11706aix3*)
11707  version_type=linux # correct to gnu/linux during the next big refactor
11708  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11709  shlibpath_var=LIBPATH
11710
11711  # AIX 3 has no versioning support, so we append a major version to the name.
11712  soname_spec='${libname}${release}${shared_ext}$major'
11713  ;;
11714
11715aix[4-9]*)
11716  version_type=linux # correct to gnu/linux during the next big refactor
11717  need_lib_prefix=no
11718  need_version=no
11719  hardcode_into_libs=yes
11720  if test "$host_cpu" = ia64; then
11721    # AIX 5 supports IA64
11722    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11723    shlibpath_var=LD_LIBRARY_PATH
11724  else
11725    # With GCC up to 2.95.x, collect2 would create an import file
11726    # for dependence libraries.  The import file would start with
11727    # the line `#! .'.  This would cause the generated library to
11728    # depend on `.', always an invalid library.  This was fixed in
11729    # development snapshots of GCC prior to 3.0.
11730    case $host_os in
11731      aix4 | aix4.[01] | aix4.[01].*)
11732      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11733	   echo ' yes '
11734	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11735	:
11736      else
11737	can_build_shared=no
11738      fi
11739      ;;
11740    esac
11741    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11742    # soname into executable. Probably we can add versioning support to
11743    # collect2, so additional links can be useful in future.
11744    if test "$aix_use_runtimelinking" = yes; then
11745      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11746      # instead of lib<name>.a to let people know that these are not
11747      # typical AIX shared libraries.
11748      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749    else
11750      # We preserve .a as extension for shared libraries through AIX4.2
11751      # and later when we are not doing run time linking.
11752      library_names_spec='${libname}${release}.a $libname.a'
11753      soname_spec='${libname}${release}${shared_ext}$major'
11754    fi
11755    shlibpath_var=LIBPATH
11756  fi
11757  ;;
11758
11759amigaos*)
11760  case $host_cpu in
11761  powerpc)
11762    # Since July 2007 AmigaOS4 officially supports .so libraries.
11763    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11764    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11765    ;;
11766  m68k)
11767    library_names_spec='$libname.ixlibrary $libname.a'
11768    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11769    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'
11770    ;;
11771  esac
11772  ;;
11773
11774beos*)
11775  library_names_spec='${libname}${shared_ext}'
11776  dynamic_linker="$host_os ld.so"
11777  shlibpath_var=LIBRARY_PATH
11778  ;;
11779
11780bsdi[45]*)
11781  version_type=linux # correct to gnu/linux during the next big refactor
11782  need_version=no
11783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784  soname_spec='${libname}${release}${shared_ext}$major'
11785  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11786  shlibpath_var=LD_LIBRARY_PATH
11787  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11788  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11789  # the default ld.so.conf also contains /usr/contrib/lib and
11790  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11791  # libtool to hard-code these into programs
11792  ;;
11793
11794cygwin* | mingw* | pw32* | cegcc*)
11795  version_type=windows
11796  shrext_cmds=".dll"
11797  need_version=no
11798  need_lib_prefix=no
11799
11800  case $GCC,$cc_basename in
11801  yes,*)
11802    # gcc
11803    library_names_spec='$libname.dll.a'
11804    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11805    postinstall_cmds='base_file=`basename \${file}`~
11806      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11807      dldir=$destdir/`dirname \$dlpath`~
11808      test -d \$dldir || mkdir -p \$dldir~
11809      $install_prog $dir/$dlname \$dldir/$dlname~
11810      chmod a+x \$dldir/$dlname~
11811      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11812        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11813      fi'
11814    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11815      dlpath=$dir/\$dldll~
11816       $RM \$dlpath'
11817    shlibpath_overrides_runpath=yes
11818
11819    case $host_os in
11820    cygwin*)
11821      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11822      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11823
11824      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11825      ;;
11826    mingw* | cegcc*)
11827      # MinGW DLLs use traditional 'lib' prefix
11828      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11829      ;;
11830    pw32*)
11831      # pw32 DLLs use 'pw' prefix rather than 'lib'
11832      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11833      ;;
11834    esac
11835    dynamic_linker='Win32 ld.exe'
11836    ;;
11837
11838  *,cl*)
11839    # Native MSVC
11840    libname_spec='$name'
11841    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11842    library_names_spec='${libname}.dll.lib'
11843
11844    case $build_os in
11845    mingw*)
11846      sys_lib_search_path_spec=
11847      lt_save_ifs=$IFS
11848      IFS=';'
11849      for lt_path in $LIB
11850      do
11851        IFS=$lt_save_ifs
11852        # Let DOS variable expansion print the short 8.3 style file name.
11853        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11854        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11855      done
11856      IFS=$lt_save_ifs
11857      # Convert to MSYS style.
11858      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11859      ;;
11860    cygwin*)
11861      # Convert to unix form, then to dos form, then back to unix form
11862      # but this time dos style (no spaces!) so that the unix form looks
11863      # like /cygdrive/c/PROGRA~1:/cygdr...
11864      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11865      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11866      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11867      ;;
11868    *)
11869      sys_lib_search_path_spec="$LIB"
11870      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11871        # It is most probably a Windows format PATH.
11872        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11873      else
11874        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11875      fi
11876      # FIXME: find the short name or the path components, as spaces are
11877      # common. (e.g. "Program Files" -> "PROGRA~1")
11878      ;;
11879    esac
11880
11881    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11882    postinstall_cmds='base_file=`basename \${file}`~
11883      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11884      dldir=$destdir/`dirname \$dlpath`~
11885      test -d \$dldir || mkdir -p \$dldir~
11886      $install_prog $dir/$dlname \$dldir/$dlname'
11887    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11888      dlpath=$dir/\$dldll~
11889       $RM \$dlpath'
11890    shlibpath_overrides_runpath=yes
11891    dynamic_linker='Win32 link.exe'
11892    ;;
11893
11894  *)
11895    # Assume MSVC wrapper
11896    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11897    dynamic_linker='Win32 ld.exe'
11898    ;;
11899  esac
11900  # FIXME: first we should search . and the directory the executable is in
11901  shlibpath_var=PATH
11902  ;;
11903
11904darwin* | rhapsody*)
11905  dynamic_linker="$host_os dyld"
11906  version_type=darwin
11907  need_lib_prefix=no
11908  need_version=no
11909  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11910  soname_spec='${libname}${release}${major}$shared_ext'
11911  shlibpath_overrides_runpath=yes
11912  shlibpath_var=DYLD_LIBRARY_PATH
11913  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11914
11915  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11916  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11917  ;;
11918
11919dgux*)
11920  version_type=linux # correct to gnu/linux during the next big refactor
11921  need_lib_prefix=no
11922  need_version=no
11923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11924  soname_spec='${libname}${release}${shared_ext}$major'
11925  shlibpath_var=LD_LIBRARY_PATH
11926  ;;
11927
11928freebsd* | dragonfly*)
11929  # DragonFly does not have aout.  When/if they implement a new
11930  # versioning mechanism, adjust this.
11931  if test -x /usr/bin/objformat; then
11932    objformat=`/usr/bin/objformat`
11933  else
11934    case $host_os in
11935    freebsd[23].*) objformat=aout ;;
11936    *) objformat=elf ;;
11937    esac
11938  fi
11939  version_type=freebsd-$objformat
11940  case $version_type in
11941    freebsd-elf*)
11942      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11943      need_version=no
11944      need_lib_prefix=no
11945      ;;
11946    freebsd-*)
11947      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11948      need_version=yes
11949      ;;
11950  esac
11951  shlibpath_var=LD_LIBRARY_PATH
11952  case $host_os in
11953  freebsd2.*)
11954    shlibpath_overrides_runpath=yes
11955    ;;
11956  freebsd3.[01]* | freebsdelf3.[01]*)
11957    shlibpath_overrides_runpath=yes
11958    hardcode_into_libs=yes
11959    ;;
11960  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11961  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11962    shlibpath_overrides_runpath=no
11963    hardcode_into_libs=yes
11964    ;;
11965  *) # from 4.6 on, and DragonFly
11966    shlibpath_overrides_runpath=yes
11967    hardcode_into_libs=yes
11968    ;;
11969  esac
11970  ;;
11971
11972gnu*)
11973  version_type=linux # correct to gnu/linux during the next big refactor
11974  need_lib_prefix=no
11975  need_version=no
11976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11977  soname_spec='${libname}${release}${shared_ext}$major'
11978  shlibpath_var=LD_LIBRARY_PATH
11979  shlibpath_overrides_runpath=no
11980  hardcode_into_libs=yes
11981  ;;
11982
11983haiku*)
11984  version_type=linux # correct to gnu/linux during the next big refactor
11985  need_lib_prefix=no
11986  need_version=no
11987  dynamic_linker="$host_os runtime_loader"
11988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11989  soname_spec='${libname}${release}${shared_ext}$major'
11990  shlibpath_var=LIBRARY_PATH
11991  shlibpath_overrides_runpath=yes
11992  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11993  hardcode_into_libs=yes
11994  ;;
11995
11996hpux9* | hpux10* | hpux11*)
11997  # Give a soname corresponding to the major version so that dld.sl refuses to
11998  # link against other versions.
11999  version_type=sunos
12000  need_lib_prefix=no
12001  need_version=no
12002  case $host_cpu in
12003  ia64*)
12004    shrext_cmds='.so'
12005    hardcode_into_libs=yes
12006    dynamic_linker="$host_os dld.so"
12007    shlibpath_var=LD_LIBRARY_PATH
12008    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12009    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12010    soname_spec='${libname}${release}${shared_ext}$major'
12011    if test "X$HPUX_IA64_MODE" = X32; then
12012      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12013    else
12014      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12015    fi
12016    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12017    ;;
12018  hppa*64*)
12019    shrext_cmds='.sl'
12020    hardcode_into_libs=yes
12021    dynamic_linker="$host_os dld.sl"
12022    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12023    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12024    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025    soname_spec='${libname}${release}${shared_ext}$major'
12026    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12027    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12028    ;;
12029  *)
12030    shrext_cmds='.sl'
12031    dynamic_linker="$host_os dld.sl"
12032    shlibpath_var=SHLIB_PATH
12033    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12034    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12035    soname_spec='${libname}${release}${shared_ext}$major'
12036    ;;
12037  esac
12038  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12039  postinstall_cmds='chmod 555 $lib'
12040  # or fails outright, so override atomically:
12041  install_override_mode=555
12042  ;;
12043
12044interix[3-9]*)
12045  version_type=linux # correct to gnu/linux during the next big refactor
12046  need_lib_prefix=no
12047  need_version=no
12048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12049  soname_spec='${libname}${release}${shared_ext}$major'
12050  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12051  shlibpath_var=LD_LIBRARY_PATH
12052  shlibpath_overrides_runpath=no
12053  hardcode_into_libs=yes
12054  ;;
12055
12056irix5* | irix6* | nonstopux*)
12057  case $host_os in
12058    nonstopux*) version_type=nonstopux ;;
12059    *)
12060	if test "$lt_cv_prog_gnu_ld" = yes; then
12061		version_type=linux # correct to gnu/linux during the next big refactor
12062	else
12063		version_type=irix
12064	fi ;;
12065  esac
12066  need_lib_prefix=no
12067  need_version=no
12068  soname_spec='${libname}${release}${shared_ext}$major'
12069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12070  case $host_os in
12071  irix5* | nonstopux*)
12072    libsuff= shlibsuff=
12073    ;;
12074  *)
12075    case $LD in # libtool.m4 will add one of these switches to LD
12076    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12077      libsuff= shlibsuff= libmagic=32-bit;;
12078    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12079      libsuff=32 shlibsuff=N32 libmagic=N32;;
12080    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12081      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12082    *) libsuff= shlibsuff= libmagic=never-match;;
12083    esac
12084    ;;
12085  esac
12086  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12087  shlibpath_overrides_runpath=no
12088  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12089  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12090  hardcode_into_libs=yes
12091  ;;
12092
12093# No shared lib support for Linux oldld, aout, or coff.
12094linux*oldld* | linux*aout* | linux*coff*)
12095  dynamic_linker=no
12096  ;;
12097
12098# This must be glibc/ELF.
12099linux* | k*bsd*-gnu | kopensolaris*-gnu)
12100  version_type=linux # correct to gnu/linux during the next big refactor
12101  need_lib_prefix=no
12102  need_version=no
12103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12104  soname_spec='${libname}${release}${shared_ext}$major'
12105  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12106  shlibpath_var=LD_LIBRARY_PATH
12107  shlibpath_overrides_runpath=no
12108
12109  # Some binutils ld are patched to set DT_RUNPATH
12110  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12111  $as_echo_n "(cached) " >&6
12112else
12113  lt_cv_shlibpath_overrides_runpath=no
12114    save_LDFLAGS=$LDFLAGS
12115    save_libdir=$libdir
12116    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12117	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12118    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119/* end confdefs.h.  */
12120
12121int
12122main ()
12123{
12124
12125  ;
12126  return 0;
12127}
12128_ACEOF
12129if ac_fn_c_try_link "$LINENO"; then :
12130  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12131  lt_cv_shlibpath_overrides_runpath=yes
12132fi
12133fi
12134rm -f core conftest.err conftest.$ac_objext \
12135    conftest$ac_exeext conftest.$ac_ext
12136    LDFLAGS=$save_LDFLAGS
12137    libdir=$save_libdir
12138
12139fi
12140
12141  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12142
12143  # This implies no fast_install, which is unacceptable.
12144  # Some rework will be needed to allow for fast_install
12145  # before this can be enabled.
12146  hardcode_into_libs=yes
12147
12148  # Add ABI-specific directories to the system library path.
12149  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12150
12151  # Append ld.so.conf contents to the search path
12152  if test -f /etc/ld.so.conf; then
12153    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' ' '`
12154    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12155
12156  fi
12157
12158  # We used to test for /lib/ld.so.1 and disable shared libraries on
12159  # powerpc, because MkLinux only supported shared libraries with the
12160  # GNU dynamic linker.  Since this was broken with cross compilers,
12161  # most powerpc-linux boxes support dynamic linking these days and
12162  # people can always --disable-shared, the test was removed, and we
12163  # assume the GNU/Linux dynamic linker is in use.
12164  dynamic_linker='GNU/Linux ld.so'
12165  ;;
12166
12167netbsd*)
12168  version_type=sunos
12169  need_lib_prefix=no
12170  need_version=no
12171  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12172    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12173    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12174    dynamic_linker='NetBSD (a.out) ld.so'
12175  else
12176    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12177    soname_spec='${libname}${release}${shared_ext}$major'
12178    dynamic_linker='NetBSD ld.elf_so'
12179  fi
12180  shlibpath_var=LD_LIBRARY_PATH
12181  shlibpath_overrides_runpath=yes
12182  hardcode_into_libs=yes
12183  ;;
12184
12185newsos6)
12186  version_type=linux # correct to gnu/linux during the next big refactor
12187  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12188  shlibpath_var=LD_LIBRARY_PATH
12189  shlibpath_overrides_runpath=yes
12190  ;;
12191
12192*nto* | *qnx*)
12193  version_type=qnx
12194  need_lib_prefix=no
12195  need_version=no
12196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12197  soname_spec='${libname}${release}${shared_ext}$major'
12198  shlibpath_var=LD_LIBRARY_PATH
12199  shlibpath_overrides_runpath=no
12200  hardcode_into_libs=yes
12201  dynamic_linker='ldqnx.so'
12202  ;;
12203
12204openbsd*)
12205  version_type=sunos
12206  sys_lib_dlsearch_path_spec="/usr/lib"
12207  need_lib_prefix=no
12208  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12209  case $host_os in
12210    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12211    *)				need_version=no  ;;
12212  esac
12213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12214  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12215  shlibpath_var=LD_LIBRARY_PATH
12216  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12217    case $host_os in
12218      openbsd2.[89] | openbsd2.[89].*)
12219	shlibpath_overrides_runpath=no
12220	;;
12221      *)
12222	shlibpath_overrides_runpath=yes
12223	;;
12224      esac
12225  else
12226    shlibpath_overrides_runpath=yes
12227  fi
12228  ;;
12229
12230os2*)
12231  libname_spec='$name'
12232  shrext_cmds=".dll"
12233  need_lib_prefix=no
12234  library_names_spec='$libname${shared_ext} $libname.a'
12235  dynamic_linker='OS/2 ld.exe'
12236  shlibpath_var=LIBPATH
12237  ;;
12238
12239osf3* | osf4* | osf5*)
12240  version_type=osf
12241  need_lib_prefix=no
12242  need_version=no
12243  soname_spec='${libname}${release}${shared_ext}$major'
12244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12245  shlibpath_var=LD_LIBRARY_PATH
12246  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12247  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12248  ;;
12249
12250rdos*)
12251  dynamic_linker=no
12252  ;;
12253
12254solaris*)
12255  version_type=linux # correct to gnu/linux during the next big refactor
12256  need_lib_prefix=no
12257  need_version=no
12258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12259  soname_spec='${libname}${release}${shared_ext}$major'
12260  shlibpath_var=LD_LIBRARY_PATH
12261  shlibpath_overrides_runpath=yes
12262  hardcode_into_libs=yes
12263  # ldd complains unless libraries are executable
12264  postinstall_cmds='chmod +x $lib'
12265  ;;
12266
12267sunos4*)
12268  version_type=sunos
12269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12270  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12271  shlibpath_var=LD_LIBRARY_PATH
12272  shlibpath_overrides_runpath=yes
12273  if test "$with_gnu_ld" = yes; then
12274    need_lib_prefix=no
12275  fi
12276  need_version=yes
12277  ;;
12278
12279sysv4 | sysv4.3*)
12280  version_type=linux # correct to gnu/linux during the next big refactor
12281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12282  soname_spec='${libname}${release}${shared_ext}$major'
12283  shlibpath_var=LD_LIBRARY_PATH
12284  case $host_vendor in
12285    sni)
12286      shlibpath_overrides_runpath=no
12287      need_lib_prefix=no
12288      runpath_var=LD_RUN_PATH
12289      ;;
12290    siemens)
12291      need_lib_prefix=no
12292      ;;
12293    motorola)
12294      need_lib_prefix=no
12295      need_version=no
12296      shlibpath_overrides_runpath=no
12297      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12298      ;;
12299  esac
12300  ;;
12301
12302sysv4*MP*)
12303  if test -d /usr/nec ;then
12304    version_type=linux # correct to gnu/linux during the next big refactor
12305    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12306    soname_spec='$libname${shared_ext}.$major'
12307    shlibpath_var=LD_LIBRARY_PATH
12308  fi
12309  ;;
12310
12311sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12312  version_type=freebsd-elf
12313  need_lib_prefix=no
12314  need_version=no
12315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12316  soname_spec='${libname}${release}${shared_ext}$major'
12317  shlibpath_var=LD_LIBRARY_PATH
12318  shlibpath_overrides_runpath=yes
12319  hardcode_into_libs=yes
12320  if test "$with_gnu_ld" = yes; then
12321    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12322  else
12323    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12324    case $host_os in
12325      sco3.2v5*)
12326        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12327	;;
12328    esac
12329  fi
12330  sys_lib_dlsearch_path_spec='/usr/lib'
12331  ;;
12332
12333tpf*)
12334  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12335  version_type=linux # correct to gnu/linux during the next big refactor
12336  need_lib_prefix=no
12337  need_version=no
12338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339  shlibpath_var=LD_LIBRARY_PATH
12340  shlibpath_overrides_runpath=no
12341  hardcode_into_libs=yes
12342  ;;
12343
12344uts4*)
12345  version_type=linux # correct to gnu/linux during the next big refactor
12346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12347  soname_spec='${libname}${release}${shared_ext}$major'
12348  shlibpath_var=LD_LIBRARY_PATH
12349  ;;
12350
12351*)
12352  dynamic_linker=no
12353  ;;
12354esac
12355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12356$as_echo "$dynamic_linker" >&6; }
12357test "$dynamic_linker" = no && can_build_shared=no
12358
12359variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12360if test "$GCC" = yes; then
12361  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12362fi
12363
12364if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12365  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12366fi
12367if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12368  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12369fi
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12463$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12464hardcode_action=
12465if test -n "$hardcode_libdir_flag_spec" ||
12466   test -n "$runpath_var" ||
12467   test "X$hardcode_automatic" = "Xyes" ; then
12468
12469  # We can hardcode non-existent directories.
12470  if test "$hardcode_direct" != no &&
12471     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12472     # have to relink, otherwise we might link with an installed library
12473     # when we should be linking with a yet-to-be-installed one
12474     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12475     test "$hardcode_minus_L" != no; then
12476    # Linking always hardcodes the temporary library directory.
12477    hardcode_action=relink
12478  else
12479    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12480    hardcode_action=immediate
12481  fi
12482else
12483  # We cannot hardcode anything, or else we can only hardcode existing
12484  # directories.
12485  hardcode_action=unsupported
12486fi
12487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12488$as_echo "$hardcode_action" >&6; }
12489
12490if test "$hardcode_action" = relink ||
12491   test "$inherit_rpath" = yes; then
12492  # Fast installation is not supported
12493  enable_fast_install=no
12494elif test "$shlibpath_overrides_runpath" = yes ||
12495     test "$enable_shared" = no; then
12496  # Fast installation is not necessary
12497  enable_fast_install=needless
12498fi
12499
12500
12501
12502
12503
12504
12505  if test "x$enable_dlopen" != xyes; then
12506  enable_dlopen=unknown
12507  enable_dlopen_self=unknown
12508  enable_dlopen_self_static=unknown
12509else
12510  lt_cv_dlopen=no
12511  lt_cv_dlopen_libs=
12512
12513  case $host_os in
12514  beos*)
12515    lt_cv_dlopen="load_add_on"
12516    lt_cv_dlopen_libs=
12517    lt_cv_dlopen_self=yes
12518    ;;
12519
12520  mingw* | pw32* | cegcc*)
12521    lt_cv_dlopen="LoadLibrary"
12522    lt_cv_dlopen_libs=
12523    ;;
12524
12525  cygwin*)
12526    lt_cv_dlopen="dlopen"
12527    lt_cv_dlopen_libs=
12528    ;;
12529
12530  darwin*)
12531  # if libdl is installed we need to link against it
12532    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12533$as_echo_n "checking for dlopen in -ldl... " >&6; }
12534if ${ac_cv_lib_dl_dlopen+:} false; then :
12535  $as_echo_n "(cached) " >&6
12536else
12537  ac_check_lib_save_LIBS=$LIBS
12538LIBS="-ldl  $LIBS"
12539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540/* end confdefs.h.  */
12541
12542/* Override any GCC internal prototype to avoid an error.
12543   Use char because int might match the return type of a GCC
12544   builtin and then its argument prototype would still apply.  */
12545#ifdef __cplusplus
12546extern "C"
12547#endif
12548char dlopen ();
12549int
12550main ()
12551{
12552return dlopen ();
12553  ;
12554  return 0;
12555}
12556_ACEOF
12557if ac_fn_c_try_link "$LINENO"; then :
12558  ac_cv_lib_dl_dlopen=yes
12559else
12560  ac_cv_lib_dl_dlopen=no
12561fi
12562rm -f core conftest.err conftest.$ac_objext \
12563    conftest$ac_exeext conftest.$ac_ext
12564LIBS=$ac_check_lib_save_LIBS
12565fi
12566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12567$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12568if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12569  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12570else
12571
12572    lt_cv_dlopen="dyld"
12573    lt_cv_dlopen_libs=
12574    lt_cv_dlopen_self=yes
12575
12576fi
12577
12578    ;;
12579
12580  *)
12581    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12582if test "x$ac_cv_func_shl_load" = xyes; then :
12583  lt_cv_dlopen="shl_load"
12584else
12585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12586$as_echo_n "checking for shl_load in -ldld... " >&6; }
12587if ${ac_cv_lib_dld_shl_load+:} false; then :
12588  $as_echo_n "(cached) " >&6
12589else
12590  ac_check_lib_save_LIBS=$LIBS
12591LIBS="-ldld  $LIBS"
12592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593/* end confdefs.h.  */
12594
12595/* Override any GCC internal prototype to avoid an error.
12596   Use char because int might match the return type of a GCC
12597   builtin and then its argument prototype would still apply.  */
12598#ifdef __cplusplus
12599extern "C"
12600#endif
12601char shl_load ();
12602int
12603main ()
12604{
12605return shl_load ();
12606  ;
12607  return 0;
12608}
12609_ACEOF
12610if ac_fn_c_try_link "$LINENO"; then :
12611  ac_cv_lib_dld_shl_load=yes
12612else
12613  ac_cv_lib_dld_shl_load=no
12614fi
12615rm -f core conftest.err conftest.$ac_objext \
12616    conftest$ac_exeext conftest.$ac_ext
12617LIBS=$ac_check_lib_save_LIBS
12618fi
12619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12620$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12621if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12622  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12623else
12624  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12625if test "x$ac_cv_func_dlopen" = xyes; then :
12626  lt_cv_dlopen="dlopen"
12627else
12628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12629$as_echo_n "checking for dlopen in -ldl... " >&6; }
12630if ${ac_cv_lib_dl_dlopen+:} false; then :
12631  $as_echo_n "(cached) " >&6
12632else
12633  ac_check_lib_save_LIBS=$LIBS
12634LIBS="-ldl  $LIBS"
12635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636/* end confdefs.h.  */
12637
12638/* Override any GCC internal prototype to avoid an error.
12639   Use char because int might match the return type of a GCC
12640   builtin and then its argument prototype would still apply.  */
12641#ifdef __cplusplus
12642extern "C"
12643#endif
12644char dlopen ();
12645int
12646main ()
12647{
12648return dlopen ();
12649  ;
12650  return 0;
12651}
12652_ACEOF
12653if ac_fn_c_try_link "$LINENO"; then :
12654  ac_cv_lib_dl_dlopen=yes
12655else
12656  ac_cv_lib_dl_dlopen=no
12657fi
12658rm -f core conftest.err conftest.$ac_objext \
12659    conftest$ac_exeext conftest.$ac_ext
12660LIBS=$ac_check_lib_save_LIBS
12661fi
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12663$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12664if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12665  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12666else
12667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12668$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12669if ${ac_cv_lib_svld_dlopen+:} false; then :
12670  $as_echo_n "(cached) " >&6
12671else
12672  ac_check_lib_save_LIBS=$LIBS
12673LIBS="-lsvld  $LIBS"
12674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675/* end confdefs.h.  */
12676
12677/* Override any GCC internal prototype to avoid an error.
12678   Use char because int might match the return type of a GCC
12679   builtin and then its argument prototype would still apply.  */
12680#ifdef __cplusplus
12681extern "C"
12682#endif
12683char dlopen ();
12684int
12685main ()
12686{
12687return dlopen ();
12688  ;
12689  return 0;
12690}
12691_ACEOF
12692if ac_fn_c_try_link "$LINENO"; then :
12693  ac_cv_lib_svld_dlopen=yes
12694else
12695  ac_cv_lib_svld_dlopen=no
12696fi
12697rm -f core conftest.err conftest.$ac_objext \
12698    conftest$ac_exeext conftest.$ac_ext
12699LIBS=$ac_check_lib_save_LIBS
12700fi
12701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12702$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12703if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12704  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12705else
12706  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12707$as_echo_n "checking for dld_link in -ldld... " >&6; }
12708if ${ac_cv_lib_dld_dld_link+:} false; then :
12709  $as_echo_n "(cached) " >&6
12710else
12711  ac_check_lib_save_LIBS=$LIBS
12712LIBS="-ldld  $LIBS"
12713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714/* end confdefs.h.  */
12715
12716/* Override any GCC internal prototype to avoid an error.
12717   Use char because int might match the return type of a GCC
12718   builtin and then its argument prototype would still apply.  */
12719#ifdef __cplusplus
12720extern "C"
12721#endif
12722char dld_link ();
12723int
12724main ()
12725{
12726return dld_link ();
12727  ;
12728  return 0;
12729}
12730_ACEOF
12731if ac_fn_c_try_link "$LINENO"; then :
12732  ac_cv_lib_dld_dld_link=yes
12733else
12734  ac_cv_lib_dld_dld_link=no
12735fi
12736rm -f core conftest.err conftest.$ac_objext \
12737    conftest$ac_exeext conftest.$ac_ext
12738LIBS=$ac_check_lib_save_LIBS
12739fi
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12741$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12742if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12743  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12744fi
12745
12746
12747fi
12748
12749
12750fi
12751
12752
12753fi
12754
12755
12756fi
12757
12758
12759fi
12760
12761    ;;
12762  esac
12763
12764  if test "x$lt_cv_dlopen" != xno; then
12765    enable_dlopen=yes
12766  else
12767    enable_dlopen=no
12768  fi
12769
12770  case $lt_cv_dlopen in
12771  dlopen)
12772    save_CPPFLAGS="$CPPFLAGS"
12773    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12774
12775    save_LDFLAGS="$LDFLAGS"
12776    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12777
12778    save_LIBS="$LIBS"
12779    LIBS="$lt_cv_dlopen_libs $LIBS"
12780
12781    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12782$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12783if ${lt_cv_dlopen_self+:} false; then :
12784  $as_echo_n "(cached) " >&6
12785else
12786  	  if test "$cross_compiling" = yes; then :
12787  lt_cv_dlopen_self=cross
12788else
12789  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12790  lt_status=$lt_dlunknown
12791  cat > conftest.$ac_ext <<_LT_EOF
12792#line $LINENO "configure"
12793#include "confdefs.h"
12794
12795#if HAVE_DLFCN_H
12796#include <dlfcn.h>
12797#endif
12798
12799#include <stdio.h>
12800
12801#ifdef RTLD_GLOBAL
12802#  define LT_DLGLOBAL		RTLD_GLOBAL
12803#else
12804#  ifdef DL_GLOBAL
12805#    define LT_DLGLOBAL		DL_GLOBAL
12806#  else
12807#    define LT_DLGLOBAL		0
12808#  endif
12809#endif
12810
12811/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12812   find out it does not work in some platform. */
12813#ifndef LT_DLLAZY_OR_NOW
12814#  ifdef RTLD_LAZY
12815#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12816#  else
12817#    ifdef DL_LAZY
12818#      define LT_DLLAZY_OR_NOW		DL_LAZY
12819#    else
12820#      ifdef RTLD_NOW
12821#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12822#      else
12823#        ifdef DL_NOW
12824#          define LT_DLLAZY_OR_NOW	DL_NOW
12825#        else
12826#          define LT_DLLAZY_OR_NOW	0
12827#        endif
12828#      endif
12829#    endif
12830#  endif
12831#endif
12832
12833/* When -fvisbility=hidden is used, assume the code has been annotated
12834   correspondingly for the symbols needed.  */
12835#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12836int fnord () __attribute__((visibility("default")));
12837#endif
12838
12839int fnord () { return 42; }
12840int main ()
12841{
12842  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12843  int status = $lt_dlunknown;
12844
12845  if (self)
12846    {
12847      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12848      else
12849        {
12850	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12851          else puts (dlerror ());
12852	}
12853      /* dlclose (self); */
12854    }
12855  else
12856    puts (dlerror ());
12857
12858  return status;
12859}
12860_LT_EOF
12861  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12862  (eval $ac_link) 2>&5
12863  ac_status=$?
12864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12865  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12866    (./conftest; exit; ) >&5 2>/dev/null
12867    lt_status=$?
12868    case x$lt_status in
12869      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12870      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12871      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12872    esac
12873  else :
12874    # compilation failed
12875    lt_cv_dlopen_self=no
12876  fi
12877fi
12878rm -fr conftest*
12879
12880
12881fi
12882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12883$as_echo "$lt_cv_dlopen_self" >&6; }
12884
12885    if test "x$lt_cv_dlopen_self" = xyes; then
12886      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12887      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12888$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12889if ${lt_cv_dlopen_self_static+:} false; then :
12890  $as_echo_n "(cached) " >&6
12891else
12892  	  if test "$cross_compiling" = yes; then :
12893  lt_cv_dlopen_self_static=cross
12894else
12895  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12896  lt_status=$lt_dlunknown
12897  cat > conftest.$ac_ext <<_LT_EOF
12898#line $LINENO "configure"
12899#include "confdefs.h"
12900
12901#if HAVE_DLFCN_H
12902#include <dlfcn.h>
12903#endif
12904
12905#include <stdio.h>
12906
12907#ifdef RTLD_GLOBAL
12908#  define LT_DLGLOBAL		RTLD_GLOBAL
12909#else
12910#  ifdef DL_GLOBAL
12911#    define LT_DLGLOBAL		DL_GLOBAL
12912#  else
12913#    define LT_DLGLOBAL		0
12914#  endif
12915#endif
12916
12917/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12918   find out it does not work in some platform. */
12919#ifndef LT_DLLAZY_OR_NOW
12920#  ifdef RTLD_LAZY
12921#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12922#  else
12923#    ifdef DL_LAZY
12924#      define LT_DLLAZY_OR_NOW		DL_LAZY
12925#    else
12926#      ifdef RTLD_NOW
12927#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12928#      else
12929#        ifdef DL_NOW
12930#          define LT_DLLAZY_OR_NOW	DL_NOW
12931#        else
12932#          define LT_DLLAZY_OR_NOW	0
12933#        endif
12934#      endif
12935#    endif
12936#  endif
12937#endif
12938
12939/* When -fvisbility=hidden is used, assume the code has been annotated
12940   correspondingly for the symbols needed.  */
12941#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12942int fnord () __attribute__((visibility("default")));
12943#endif
12944
12945int fnord () { return 42; }
12946int main ()
12947{
12948  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12949  int status = $lt_dlunknown;
12950
12951  if (self)
12952    {
12953      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12954      else
12955        {
12956	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12957          else puts (dlerror ());
12958	}
12959      /* dlclose (self); */
12960    }
12961  else
12962    puts (dlerror ());
12963
12964  return status;
12965}
12966_LT_EOF
12967  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12968  (eval $ac_link) 2>&5
12969  ac_status=$?
12970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12971  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12972    (./conftest; exit; ) >&5 2>/dev/null
12973    lt_status=$?
12974    case x$lt_status in
12975      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12976      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12977      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12978    esac
12979  else :
12980    # compilation failed
12981    lt_cv_dlopen_self_static=no
12982  fi
12983fi
12984rm -fr conftest*
12985
12986
12987fi
12988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12989$as_echo "$lt_cv_dlopen_self_static" >&6; }
12990    fi
12991
12992    CPPFLAGS="$save_CPPFLAGS"
12993    LDFLAGS="$save_LDFLAGS"
12994    LIBS="$save_LIBS"
12995    ;;
12996  esac
12997
12998  case $lt_cv_dlopen_self in
12999  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13000  *) enable_dlopen_self=unknown ;;
13001  esac
13002
13003  case $lt_cv_dlopen_self_static in
13004  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13005  *) enable_dlopen_self_static=unknown ;;
13006  esac
13007fi
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025striplib=
13026old_striplib=
13027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13028$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13029if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13030  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13031  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13033$as_echo "yes" >&6; }
13034else
13035# FIXME - insert some real tests, host_os isn't really good enough
13036  case $host_os in
13037  darwin*)
13038    if test -n "$STRIP" ; then
13039      striplib="$STRIP -x"
13040      old_striplib="$STRIP -S"
13041      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13042$as_echo "yes" >&6; }
13043    else
13044      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045$as_echo "no" >&6; }
13046    fi
13047    ;;
13048  *)
13049    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13050$as_echo "no" >&6; }
13051    ;;
13052  esac
13053fi
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066  # Report which library types will actually be built
13067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13068$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13070$as_echo "$can_build_shared" >&6; }
13071
13072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13073$as_echo_n "checking whether to build shared libraries... " >&6; }
13074  test "$can_build_shared" = "no" && enable_shared=no
13075
13076  # On AIX, shared libraries and static libraries use the same namespace, and
13077  # are all built from PIC.
13078  case $host_os in
13079  aix3*)
13080    test "$enable_shared" = yes && enable_static=no
13081    if test -n "$RANLIB"; then
13082      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13083      postinstall_cmds='$RANLIB $lib'
13084    fi
13085    ;;
13086
13087  aix[4-9]*)
13088    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13089      test "$enable_shared" = yes && enable_static=no
13090    fi
13091    ;;
13092  esac
13093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13094$as_echo "$enable_shared" >&6; }
13095
13096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13097$as_echo_n "checking whether to build static libraries... " >&6; }
13098  # Make sure either enable_shared or enable_static is yes.
13099  test "$enable_shared" = yes || enable_static=yes
13100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13101$as_echo "$enable_static" >&6; }
13102
13103
13104
13105
13106fi
13107ac_ext=c
13108ac_cpp='$CPP $CPPFLAGS'
13109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13111ac_compiler_gnu=$ac_cv_c_compiler_gnu
13112
13113CC="$lt_save_CC"
13114
13115
13116
13117
13118
13119      ac_ext=${ac_fc_srcext-f}
13120ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13121ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13122ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13123
13124
13125if test -z "$FC" || test "X$FC" = "Xno"; then
13126  _lt_disable_FC=yes
13127fi
13128
13129archive_cmds_need_lc_FC=no
13130allow_undefined_flag_FC=
13131always_export_symbols_FC=no
13132archive_expsym_cmds_FC=
13133export_dynamic_flag_spec_FC=
13134hardcode_direct_FC=no
13135hardcode_direct_absolute_FC=no
13136hardcode_libdir_flag_spec_FC=
13137hardcode_libdir_separator_FC=
13138hardcode_minus_L_FC=no
13139hardcode_automatic_FC=no
13140inherit_rpath_FC=no
13141module_cmds_FC=
13142module_expsym_cmds_FC=
13143link_all_deplibs_FC=unknown
13144old_archive_cmds_FC=$old_archive_cmds
13145reload_flag_FC=$reload_flag
13146reload_cmds_FC=$reload_cmds
13147no_undefined_flag_FC=
13148whole_archive_flag_spec_FC=
13149enable_shared_with_static_runtimes_FC=no
13150
13151# Source file extension for fc test sources.
13152ac_ext=${ac_fc_srcext-f}
13153
13154# Object file extension for compiled fc test sources.
13155objext=o
13156objext_FC=$objext
13157
13158# No sense in running all these tests if we already determined that
13159# the FC compiler isn't working.  Some variables (like enable_shared)
13160# are currently assumed to apply to all compilers on this platform,
13161# and will be corrupted by setting them based on a non-working compiler.
13162if test "$_lt_disable_FC" != yes; then
13163  # Code to be used in simple compile tests
13164  lt_simple_compile_test_code="\
13165      subroutine t
13166      return
13167      end
13168"
13169
13170  # Code to be used in simple link tests
13171  lt_simple_link_test_code="\
13172      program t
13173      end
13174"
13175
13176  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13177
13178
13179
13180
13181
13182
13183# If no C compiler was specified, use CC.
13184LTCC=${LTCC-"$CC"}
13185
13186# If no C compiler flags were specified, use CFLAGS.
13187LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13188
13189# Allow CC to be a program name with arguments.
13190compiler=$CC
13191
13192
13193  # save warnings/boilerplate of simple test code
13194  ac_outfile=conftest.$ac_objext
13195echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13196eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13197_lt_compiler_boilerplate=`cat conftest.err`
13198$RM conftest*
13199
13200  ac_outfile=conftest.$ac_objext
13201echo "$lt_simple_link_test_code" >conftest.$ac_ext
13202eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13203_lt_linker_boilerplate=`cat conftest.err`
13204$RM -r conftest*
13205
13206
13207  # Allow CC to be a program name with arguments.
13208  lt_save_CC="$CC"
13209  lt_save_GCC=$GCC
13210  lt_save_CFLAGS=$CFLAGS
13211  CC=${FC-"f95"}
13212  CFLAGS=$FCFLAGS
13213  compiler=$CC
13214  GCC=$ac_cv_fc_compiler_gnu
13215
13216  compiler_FC=$CC
13217  for cc_temp in $compiler""; do
13218  case $cc_temp in
13219    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13220    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13221    \-*) ;;
13222    *) break;;
13223  esac
13224done
13225cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13226
13227
13228  if test -n "$compiler"; then
13229    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13230$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13231    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13232$as_echo "$can_build_shared" >&6; }
13233
13234    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13235$as_echo_n "checking whether to build shared libraries... " >&6; }
13236    test "$can_build_shared" = "no" && enable_shared=no
13237
13238    # On AIX, shared libraries and static libraries use the same namespace, and
13239    # are all built from PIC.
13240    case $host_os in
13241      aix3*)
13242        test "$enable_shared" = yes && enable_static=no
13243        if test -n "$RANLIB"; then
13244          archive_cmds="$archive_cmds~\$RANLIB \$lib"
13245          postinstall_cmds='$RANLIB $lib'
13246        fi
13247        ;;
13248      aix[4-9]*)
13249	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13250	  test "$enable_shared" = yes && enable_static=no
13251	fi
13252        ;;
13253    esac
13254    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13255$as_echo "$enable_shared" >&6; }
13256
13257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13258$as_echo_n "checking whether to build static libraries... " >&6; }
13259    # Make sure either enable_shared or enable_static is yes.
13260    test "$enable_shared" = yes || enable_static=yes
13261    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13262$as_echo "$enable_static" >&6; }
13263
13264    GCC_FC="$ac_cv_fc_compiler_gnu"
13265    LD_FC="$LD"
13266
13267    ## CAVEAT EMPTOR:
13268    ## There is no encapsulation within the following macros, do not change
13269    ## the running order or otherwise move them around unless you know exactly
13270    ## what you are doing...
13271    # Dependencies to place before and after the object being linked:
13272predep_objects_FC=
13273postdep_objects_FC=
13274predeps_FC=
13275postdeps_FC=
13276compiler_lib_search_path_FC=
13277
13278cat > conftest.$ac_ext <<_LT_EOF
13279      subroutine foo
13280      implicit none
13281      integer a
13282      a=0
13283      return
13284      end
13285_LT_EOF
13286
13287
13288_lt_libdeps_save_CFLAGS=$CFLAGS
13289case "$CC $CFLAGS " in #(
13290*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13291*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13292*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13293esac
13294
13295if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13296  (eval $ac_compile) 2>&5
13297  ac_status=$?
13298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13299  test $ac_status = 0; }; then
13300  # Parse the compiler output and extract the necessary
13301  # objects, libraries and library flags.
13302
13303  # Sentinel used to keep track of whether or not we are before
13304  # the conftest object file.
13305  pre_test_object_deps_done=no
13306
13307  for p in `eval "$output_verbose_link_cmd"`; do
13308    case ${prev}${p} in
13309
13310    -L* | -R* | -l*)
13311       # Some compilers place space between "-{L,R}" and the path.
13312       # Remove the space.
13313       if test $p = "-L" ||
13314          test $p = "-R"; then
13315	 prev=$p
13316	 continue
13317       fi
13318
13319       # Expand the sysroot to ease extracting the directories later.
13320       if test -z "$prev"; then
13321         case $p in
13322         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13323         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13324         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13325         esac
13326       fi
13327       case $p in
13328       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13329       esac
13330       if test "$pre_test_object_deps_done" = no; then
13331	 case ${prev} in
13332	 -L | -R)
13333	   # Internal compiler library paths should come after those
13334	   # provided the user.  The postdeps already come after the
13335	   # user supplied libs so there is no need to process them.
13336	   if test -z "$compiler_lib_search_path_FC"; then
13337	     compiler_lib_search_path_FC="${prev}${p}"
13338	   else
13339	     compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13340	   fi
13341	   ;;
13342	 # The "-l" case would never come before the object being
13343	 # linked, so don't bother handling this case.
13344	 esac
13345       else
13346	 if test -z "$postdeps_FC"; then
13347	   postdeps_FC="${prev}${p}"
13348	 else
13349	   postdeps_FC="${postdeps_FC} ${prev}${p}"
13350	 fi
13351       fi
13352       prev=
13353       ;;
13354
13355    *.lto.$objext) ;; # Ignore GCC LTO objects
13356    *.$objext)
13357       # This assumes that the test object file only shows up
13358       # once in the compiler output.
13359       if test "$p" = "conftest.$objext"; then
13360	 pre_test_object_deps_done=yes
13361	 continue
13362       fi
13363
13364       if test "$pre_test_object_deps_done" = no; then
13365	 if test -z "$predep_objects_FC"; then
13366	   predep_objects_FC="$p"
13367	 else
13368	   predep_objects_FC="$predep_objects_FC $p"
13369	 fi
13370       else
13371	 if test -z "$postdep_objects_FC"; then
13372	   postdep_objects_FC="$p"
13373	 else
13374	   postdep_objects_FC="$postdep_objects_FC $p"
13375	 fi
13376       fi
13377       ;;
13378
13379    *) ;; # Ignore the rest.
13380
13381    esac
13382  done
13383
13384  # Clean up.
13385  rm -f a.out a.exe
13386else
13387  echo "libtool.m4: error: problem compiling FC test program"
13388fi
13389
13390$RM -f confest.$objext
13391CFLAGS=$_lt_libdeps_save_CFLAGS
13392
13393# PORTME: override above test on systems where it is broken
13394
13395
13396case " $postdeps_FC " in
13397*" -lc "*) archive_cmds_need_lc_FC=no ;;
13398esac
13399 compiler_lib_search_dirs_FC=
13400if test -n "${compiler_lib_search_path_FC}"; then
13401 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13402fi
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434    lt_prog_compiler_wl_FC=
13435lt_prog_compiler_pic_FC=
13436lt_prog_compiler_static_FC=
13437
13438
13439  if test "$GCC" = yes; then
13440    lt_prog_compiler_wl_FC='-Wl,'
13441    lt_prog_compiler_static_FC='-static'
13442
13443    case $host_os in
13444      aix*)
13445      # All AIX code is PIC.
13446      if test "$host_cpu" = ia64; then
13447	# AIX 5 now supports IA64 processor
13448	lt_prog_compiler_static_FC='-Bstatic'
13449      fi
13450      ;;
13451
13452    amigaos*)
13453      case $host_cpu in
13454      powerpc)
13455            # see comment about AmigaOS4 .so support
13456            lt_prog_compiler_pic_FC='-fPIC'
13457        ;;
13458      m68k)
13459            # FIXME: we need at least 68020 code to build shared libraries, but
13460            # adding the `-m68020' flag to GCC prevents building anything better,
13461            # like `-m68040'.
13462            lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13463        ;;
13464      esac
13465      ;;
13466
13467    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13468      # PIC is the default for these OSes.
13469      ;;
13470
13471    mingw* | cygwin* | pw32* | os2* | cegcc*)
13472      # This hack is so that the source file can tell whether it is being
13473      # built for inclusion in a dll (and should export symbols for example).
13474      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13475      # (--disable-auto-import) libraries
13476      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13477      ;;
13478
13479    darwin* | rhapsody*)
13480      # PIC is the default on this platform
13481      # Common symbols not allowed in MH_DYLIB files
13482      lt_prog_compiler_pic_FC='-fno-common'
13483      ;;
13484
13485    haiku*)
13486      # PIC is the default for Haiku.
13487      # The "-static" flag exists, but is broken.
13488      lt_prog_compiler_static_FC=
13489      ;;
13490
13491    hpux*)
13492      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13493      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13494      # sets the default TLS model and affects inlining.
13495      case $host_cpu in
13496      hppa*64*)
13497	# +Z the default
13498	;;
13499      *)
13500	lt_prog_compiler_pic_FC='-fPIC'
13501	;;
13502      esac
13503      ;;
13504
13505    interix[3-9]*)
13506      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13507      # Instead, we relocate shared libraries at runtime.
13508      ;;
13509
13510    msdosdjgpp*)
13511      # Just because we use GCC doesn't mean we suddenly get shared libraries
13512      # on systems that don't support them.
13513      lt_prog_compiler_can_build_shared_FC=no
13514      enable_shared=no
13515      ;;
13516
13517    *nto* | *qnx*)
13518      # QNX uses GNU C++, but need to define -shared option too, otherwise
13519      # it will coredump.
13520      lt_prog_compiler_pic_FC='-fPIC -shared'
13521      ;;
13522
13523    sysv4*MP*)
13524      if test -d /usr/nec; then
13525	lt_prog_compiler_pic_FC=-Kconform_pic
13526      fi
13527      ;;
13528
13529    *)
13530      lt_prog_compiler_pic_FC='-fPIC'
13531      ;;
13532    esac
13533
13534    case $cc_basename in
13535    nvcc*) # Cuda Compiler Driver 2.2
13536      lt_prog_compiler_wl_FC='-Xlinker '
13537      if test -n "$lt_prog_compiler_pic_FC"; then
13538        lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC"
13539      fi
13540      ;;
13541    esac
13542  else
13543    # PORTME Check for flag to pass linker flags through the system compiler.
13544    case $host_os in
13545    aix*)
13546      lt_prog_compiler_wl_FC='-Wl,'
13547      if test "$host_cpu" = ia64; then
13548	# AIX 5 now supports IA64 processor
13549	lt_prog_compiler_static_FC='-Bstatic'
13550      else
13551	lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13552      fi
13553      ;;
13554
13555    mingw* | cygwin* | pw32* | os2* | cegcc*)
13556      # This hack is so that the source file can tell whether it is being
13557      # built for inclusion in a dll (and should export symbols for example).
13558      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13559      ;;
13560
13561    hpux9* | hpux10* | hpux11*)
13562      lt_prog_compiler_wl_FC='-Wl,'
13563      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13564      # not for PA HP-UX.
13565      case $host_cpu in
13566      hppa*64*|ia64*)
13567	# +Z the default
13568	;;
13569      *)
13570	lt_prog_compiler_pic_FC='+Z'
13571	;;
13572      esac
13573      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13574      lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13575      ;;
13576
13577    irix5* | irix6* | nonstopux*)
13578      lt_prog_compiler_wl_FC='-Wl,'
13579      # PIC (with -KPIC) is the default.
13580      lt_prog_compiler_static_FC='-non_shared'
13581      ;;
13582
13583    linux* | k*bsd*-gnu | kopensolaris*-gnu)
13584      case $cc_basename in
13585      # old Intel for x86_64 which still supported -KPIC.
13586      ecc*)
13587	lt_prog_compiler_wl_FC='-Wl,'
13588	lt_prog_compiler_pic_FC='-KPIC'
13589	lt_prog_compiler_static_FC='-static'
13590        ;;
13591      # icc used to be incompatible with GCC.
13592      # ICC 10 doesn't accept -KPIC any more.
13593      icc* | ifort*)
13594	lt_prog_compiler_wl_FC='-Wl,'
13595	lt_prog_compiler_pic_FC='-fPIC'
13596	lt_prog_compiler_static_FC='-static'
13597        ;;
13598      # Lahey Fortran 8.1.
13599      lf95*)
13600	lt_prog_compiler_wl_FC='-Wl,'
13601	lt_prog_compiler_pic_FC='--shared'
13602	lt_prog_compiler_static_FC='--static'
13603	;;
13604      nagfor*)
13605	# NAG Fortran compiler
13606	lt_prog_compiler_wl_FC='-Wl,-Wl,,'
13607	lt_prog_compiler_pic_FC='-PIC'
13608	lt_prog_compiler_static_FC='-Bstatic'
13609	;;
13610      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13611        # Portland Group compilers (*not* the Pentium gcc compiler,
13612	# which looks to be a dead project)
13613	lt_prog_compiler_wl_FC='-Wl,'
13614	lt_prog_compiler_pic_FC='-fpic'
13615	lt_prog_compiler_static_FC='-Bstatic'
13616        ;;
13617      ccc*)
13618        lt_prog_compiler_wl_FC='-Wl,'
13619        # All Alpha code is PIC.
13620        lt_prog_compiler_static_FC='-non_shared'
13621        ;;
13622      xl* | bgxl* | bgf* | mpixl*)
13623	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13624	lt_prog_compiler_wl_FC='-Wl,'
13625	lt_prog_compiler_pic_FC='-qpic'
13626	lt_prog_compiler_static_FC='-qstaticlink'
13627	;;
13628      *)
13629	case `$CC -V 2>&1 | sed 5q` in
13630	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13631	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13632	  lt_prog_compiler_pic_FC='-KPIC'
13633	  lt_prog_compiler_static_FC='-Bstatic'
13634	  lt_prog_compiler_wl_FC=''
13635	  ;;
13636	*Sun\ F* | *Sun*Fortran*)
13637	  lt_prog_compiler_pic_FC='-KPIC'
13638	  lt_prog_compiler_static_FC='-Bstatic'
13639	  lt_prog_compiler_wl_FC='-Qoption ld '
13640	  ;;
13641	*Sun\ C*)
13642	  # Sun C 5.9
13643	  lt_prog_compiler_pic_FC='-KPIC'
13644	  lt_prog_compiler_static_FC='-Bstatic'
13645	  lt_prog_compiler_wl_FC='-Wl,'
13646	  ;;
13647        *Intel*\ [CF]*Compiler*)
13648	  lt_prog_compiler_wl_FC='-Wl,'
13649	  lt_prog_compiler_pic_FC='-fPIC'
13650	  lt_prog_compiler_static_FC='-static'
13651	  ;;
13652	*Portland\ Group*)
13653	  lt_prog_compiler_wl_FC='-Wl,'
13654	  lt_prog_compiler_pic_FC='-fpic'
13655	  lt_prog_compiler_static_FC='-Bstatic'
13656	  ;;
13657	esac
13658	;;
13659      esac
13660      ;;
13661
13662    newsos6)
13663      lt_prog_compiler_pic_FC='-KPIC'
13664      lt_prog_compiler_static_FC='-Bstatic'
13665      ;;
13666
13667    *nto* | *qnx*)
13668      # QNX uses GNU C++, but need to define -shared option too, otherwise
13669      # it will coredump.
13670      lt_prog_compiler_pic_FC='-fPIC -shared'
13671      ;;
13672
13673    osf3* | osf4* | osf5*)
13674      lt_prog_compiler_wl_FC='-Wl,'
13675      # All OSF/1 code is PIC.
13676      lt_prog_compiler_static_FC='-non_shared'
13677      ;;
13678
13679    rdos*)
13680      lt_prog_compiler_static_FC='-non_shared'
13681      ;;
13682
13683    solaris*)
13684      lt_prog_compiler_pic_FC='-KPIC'
13685      lt_prog_compiler_static_FC='-Bstatic'
13686      case $cc_basename in
13687      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13688	lt_prog_compiler_wl_FC='-Qoption ld ';;
13689      *)
13690	lt_prog_compiler_wl_FC='-Wl,';;
13691      esac
13692      ;;
13693
13694    sunos4*)
13695      lt_prog_compiler_wl_FC='-Qoption ld '
13696      lt_prog_compiler_pic_FC='-PIC'
13697      lt_prog_compiler_static_FC='-Bstatic'
13698      ;;
13699
13700    sysv4 | sysv4.2uw2* | sysv4.3*)
13701      lt_prog_compiler_wl_FC='-Wl,'
13702      lt_prog_compiler_pic_FC='-KPIC'
13703      lt_prog_compiler_static_FC='-Bstatic'
13704      ;;
13705
13706    sysv4*MP*)
13707      if test -d /usr/nec ;then
13708	lt_prog_compiler_pic_FC='-Kconform_pic'
13709	lt_prog_compiler_static_FC='-Bstatic'
13710      fi
13711      ;;
13712
13713    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13714      lt_prog_compiler_wl_FC='-Wl,'
13715      lt_prog_compiler_pic_FC='-KPIC'
13716      lt_prog_compiler_static_FC='-Bstatic'
13717      ;;
13718
13719    unicos*)
13720      lt_prog_compiler_wl_FC='-Wl,'
13721      lt_prog_compiler_can_build_shared_FC=no
13722      ;;
13723
13724    uts4*)
13725      lt_prog_compiler_pic_FC='-pic'
13726      lt_prog_compiler_static_FC='-Bstatic'
13727      ;;
13728
13729    *)
13730      lt_prog_compiler_can_build_shared_FC=no
13731      ;;
13732    esac
13733  fi
13734
13735case $host_os in
13736  # For platforms which do not support PIC, -DPIC is meaningless:
13737  *djgpp*)
13738    lt_prog_compiler_pic_FC=
13739    ;;
13740  *)
13741    lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13742    ;;
13743esac
13744
13745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13746$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13747if ${lt_cv_prog_compiler_pic_FC+:} false; then :
13748  $as_echo_n "(cached) " >&6
13749else
13750  lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC
13751fi
13752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5
13753$as_echo "$lt_cv_prog_compiler_pic_FC" >&6; }
13754lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC
13755
13756#
13757# Check to make sure the PIC flag actually works.
13758#
13759if test -n "$lt_prog_compiler_pic_FC"; then
13760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13761$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13762if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
13763  $as_echo_n "(cached) " >&6
13764else
13765  lt_cv_prog_compiler_pic_works_FC=no
13766   ac_outfile=conftest.$ac_objext
13767   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13768   lt_compiler_flag="$lt_prog_compiler_pic_FC"
13769   # Insert the option either (1) after the last *FLAGS variable, or
13770   # (2) before a word containing "conftest.", or (3) at the end.
13771   # Note that $ac_compile itself does not contain backslashes and begins
13772   # with a dollar sign (not a hyphen), so the echo should work correctly.
13773   # The option is referenced via a variable to avoid confusing sed.
13774   lt_compile=`echo "$ac_compile" | $SED \
13775   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13776   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13777   -e 's:$: $lt_compiler_flag:'`
13778   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13779   (eval "$lt_compile" 2>conftest.err)
13780   ac_status=$?
13781   cat conftest.err >&5
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   if (exit $ac_status) && test -s "$ac_outfile"; then
13784     # The compiler can only warn and ignore the option if not recognized
13785     # So say no if there are warnings other than the usual output.
13786     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13787     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13788     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13789       lt_cv_prog_compiler_pic_works_FC=yes
13790     fi
13791   fi
13792   $RM conftest*
13793
13794fi
13795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13796$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13797
13798if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13799    case $lt_prog_compiler_pic_FC in
13800     "" | " "*) ;;
13801     *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13802     esac
13803else
13804    lt_prog_compiler_pic_FC=
13805     lt_prog_compiler_can_build_shared_FC=no
13806fi
13807
13808fi
13809
13810
13811
13812
13813
13814#
13815# Check to make sure the static flag actually works.
13816#
13817wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13819$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13820if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
13821  $as_echo_n "(cached) " >&6
13822else
13823  lt_cv_prog_compiler_static_works_FC=no
13824   save_LDFLAGS="$LDFLAGS"
13825   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13826   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13827   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13828     # The linker can only warn and ignore the option if not recognized
13829     # So say no if there are warnings
13830     if test -s conftest.err; then
13831       # Append any errors to the config.log.
13832       cat conftest.err 1>&5
13833       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13834       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13835       if diff conftest.exp conftest.er2 >/dev/null; then
13836         lt_cv_prog_compiler_static_works_FC=yes
13837       fi
13838     else
13839       lt_cv_prog_compiler_static_works_FC=yes
13840     fi
13841   fi
13842   $RM -r conftest*
13843   LDFLAGS="$save_LDFLAGS"
13844
13845fi
13846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13847$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13848
13849if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13850    :
13851else
13852    lt_prog_compiler_static_FC=
13853fi
13854
13855
13856
13857
13858    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13859$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13860if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
13861  $as_echo_n "(cached) " >&6
13862else
13863  lt_cv_prog_compiler_c_o_FC=no
13864   $RM -r conftest 2>/dev/null
13865   mkdir conftest
13866   cd conftest
13867   mkdir out
13868   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13869
13870   lt_compiler_flag="-o out/conftest2.$ac_objext"
13871   # Insert the option either (1) after the last *FLAGS variable, or
13872   # (2) before a word containing "conftest.", or (3) at the end.
13873   # Note that $ac_compile itself does not contain backslashes and begins
13874   # with a dollar sign (not a hyphen), so the echo should work correctly.
13875   lt_compile=`echo "$ac_compile" | $SED \
13876   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13877   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13878   -e 's:$: $lt_compiler_flag:'`
13879   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13880   (eval "$lt_compile" 2>out/conftest.err)
13881   ac_status=$?
13882   cat out/conftest.err >&5
13883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13885   then
13886     # The compiler can only warn and ignore the option if not recognized
13887     # So say no if there are warnings
13888     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13889     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13890     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13891       lt_cv_prog_compiler_c_o_FC=yes
13892     fi
13893   fi
13894   chmod u+w . 2>&5
13895   $RM conftest*
13896   # SGI C++ compiler will create directory out/ii_files/ for
13897   # template instantiation
13898   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13899   $RM out/* && rmdir out
13900   cd ..
13901   $RM -r conftest
13902   $RM conftest*
13903
13904fi
13905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13906$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13907
13908
13909
13910    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13911$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13912if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
13913  $as_echo_n "(cached) " >&6
13914else
13915  lt_cv_prog_compiler_c_o_FC=no
13916   $RM -r conftest 2>/dev/null
13917   mkdir conftest
13918   cd conftest
13919   mkdir out
13920   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13921
13922   lt_compiler_flag="-o out/conftest2.$ac_objext"
13923   # Insert the option either (1) after the last *FLAGS variable, or
13924   # (2) before a word containing "conftest.", or (3) at the end.
13925   # Note that $ac_compile itself does not contain backslashes and begins
13926   # with a dollar sign (not a hyphen), so the echo should work correctly.
13927   lt_compile=`echo "$ac_compile" | $SED \
13928   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13929   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13930   -e 's:$: $lt_compiler_flag:'`
13931   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13932   (eval "$lt_compile" 2>out/conftest.err)
13933   ac_status=$?
13934   cat out/conftest.err >&5
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13937   then
13938     # The compiler can only warn and ignore the option if not recognized
13939     # So say no if there are warnings
13940     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13941     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13942     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13943       lt_cv_prog_compiler_c_o_FC=yes
13944     fi
13945   fi
13946   chmod u+w . 2>&5
13947   $RM conftest*
13948   # SGI C++ compiler will create directory out/ii_files/ for
13949   # template instantiation
13950   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13951   $RM out/* && rmdir out
13952   cd ..
13953   $RM -r conftest
13954   $RM conftest*
13955
13956fi
13957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13958$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13959
13960
13961
13962
13963hard_links="nottested"
13964if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13965  # do not overwrite the value of need_locks provided by the user
13966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13967$as_echo_n "checking if we can lock with hard links... " >&6; }
13968  hard_links=yes
13969  $RM conftest*
13970  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13971  touch conftest.a
13972  ln conftest.a conftest.b 2>&5 || hard_links=no
13973  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13975$as_echo "$hard_links" >&6; }
13976  if test "$hard_links" = no; then
13977    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13978$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13979    need_locks=warn
13980  fi
13981else
13982  need_locks=no
13983fi
13984
13985
13986
13987    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13988$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13989
13990  runpath_var=
13991  allow_undefined_flag_FC=
13992  always_export_symbols_FC=no
13993  archive_cmds_FC=
13994  archive_expsym_cmds_FC=
13995  compiler_needs_object_FC=no
13996  enable_shared_with_static_runtimes_FC=no
13997  export_dynamic_flag_spec_FC=
13998  export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13999  hardcode_automatic_FC=no
14000  hardcode_direct_FC=no
14001  hardcode_direct_absolute_FC=no
14002  hardcode_libdir_flag_spec_FC=
14003  hardcode_libdir_separator_FC=
14004  hardcode_minus_L_FC=no
14005  hardcode_shlibpath_var_FC=unsupported
14006  inherit_rpath_FC=no
14007  link_all_deplibs_FC=unknown
14008  module_cmds_FC=
14009  module_expsym_cmds_FC=
14010  old_archive_from_new_cmds_FC=
14011  old_archive_from_expsyms_cmds_FC=
14012  thread_safe_flag_spec_FC=
14013  whole_archive_flag_spec_FC=
14014  # include_expsyms should be a list of space-separated symbols to be *always*
14015  # included in the symbol list
14016  include_expsyms_FC=
14017  # exclude_expsyms can be an extended regexp of symbols to exclude
14018  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14019  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14020  # as well as any symbol that contains `d'.
14021  exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14022  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14023  # platforms (ab)use it in PIC code, but their linkers get confused if
14024  # the symbol is explicitly referenced.  Since portable code cannot
14025  # rely on this symbol name, it's probably fine to never include it in
14026  # preloaded symbol tables.
14027  # Exclude shared library initialization/finalization symbols.
14028  extract_expsyms_cmds=
14029
14030  case $host_os in
14031  cygwin* | mingw* | pw32* | cegcc*)
14032    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14033    # When not using gcc, we currently assume that we are using
14034    # Microsoft Visual C++.
14035    if test "$GCC" != yes; then
14036      with_gnu_ld=no
14037    fi
14038    ;;
14039  interix*)
14040    # we just hope/assume this is gcc and not c89 (= MSVC++)
14041    with_gnu_ld=yes
14042    ;;
14043  openbsd*)
14044    with_gnu_ld=no
14045    ;;
14046  esac
14047
14048  ld_shlibs_FC=yes
14049
14050  # On some targets, GNU ld is compatible enough with the native linker
14051  # that we're better off using the native interface for both.
14052  lt_use_gnu_ld_interface=no
14053  if test "$with_gnu_ld" = yes; then
14054    case $host_os in
14055      aix*)
14056	# The AIX port of GNU ld has always aspired to compatibility
14057	# with the native linker.  However, as the warning in the GNU ld
14058	# block says, versions before 2.19.5* couldn't really create working
14059	# shared libraries, regardless of the interface used.
14060	case `$LD -v 2>&1` in
14061	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14062	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14063	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14064	  *)
14065	    lt_use_gnu_ld_interface=yes
14066	    ;;
14067	esac
14068	;;
14069      *)
14070	lt_use_gnu_ld_interface=yes
14071	;;
14072    esac
14073  fi
14074
14075  if test "$lt_use_gnu_ld_interface" = yes; then
14076    # If archive_cmds runs LD, not CC, wlarc should be empty
14077    wlarc='${wl}'
14078
14079    # Set some defaults for GNU ld with shared library support. These
14080    # are reset later if shared libraries are not supported. Putting them
14081    # here allows them to be overridden if necessary.
14082    runpath_var=LD_RUN_PATH
14083    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14084    export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14085    # ancient GNU ld didn't support --whole-archive et. al.
14086    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14087      whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14088    else
14089      whole_archive_flag_spec_FC=
14090    fi
14091    supports_anon_versioning=no
14092    case `$LD -v 2>&1` in
14093      *GNU\ gold*) supports_anon_versioning=yes ;;
14094      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14095      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14096      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14097      *\ 2.11.*) ;; # other 2.11 versions
14098      *) supports_anon_versioning=yes ;;
14099    esac
14100
14101    # See if GNU ld supports shared libraries.
14102    case $host_os in
14103    aix[3-9]*)
14104      # On AIX/PPC, the GNU linker is very broken
14105      if test "$host_cpu" != ia64; then
14106	ld_shlibs_FC=no
14107	cat <<_LT_EOF 1>&2
14108
14109*** Warning: the GNU linker, at least up to release 2.19, is reported
14110*** to be unable to reliably create shared libraries on AIX.
14111*** Therefore, libtool is disabling shared libraries support.  If you
14112*** really care for shared libraries, you may want to install binutils
14113*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14114*** You will then need to restart the configuration process.
14115
14116_LT_EOF
14117      fi
14118      ;;
14119
14120    amigaos*)
14121      case $host_cpu in
14122      powerpc)
14123            # see comment about AmigaOS4 .so support
14124            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14125            archive_expsym_cmds_FC=''
14126        ;;
14127      m68k)
14128            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)'
14129            hardcode_libdir_flag_spec_FC='-L$libdir'
14130            hardcode_minus_L_FC=yes
14131        ;;
14132      esac
14133      ;;
14134
14135    beos*)
14136      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14137	allow_undefined_flag_FC=unsupported
14138	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14139	# support --undefined.  This deserves some investigation.  FIXME
14140	archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14141      else
14142	ld_shlibs_FC=no
14143      fi
14144      ;;
14145
14146    cygwin* | mingw* | pw32* | cegcc*)
14147      # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14148      # as there is no search path for DLLs.
14149      hardcode_libdir_flag_spec_FC='-L$libdir'
14150      export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
14151      allow_undefined_flag_FC=unsupported
14152      always_export_symbols_FC=no
14153      enable_shared_with_static_runtimes_FC=yes
14154      export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14155      exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14156
14157      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14158        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14159	# If the export-symbols file already is a .def file (1st line
14160	# is EXPORTS), use it as is; otherwise, prepend...
14161	archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14162	  cp $export_symbols $output_objdir/$soname.def;
14163	else
14164	  echo EXPORTS > $output_objdir/$soname.def;
14165	  cat $export_symbols >> $output_objdir/$soname.def;
14166	fi~
14167	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14168      else
14169	ld_shlibs_FC=no
14170      fi
14171      ;;
14172
14173    haiku*)
14174      archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14175      link_all_deplibs_FC=yes
14176      ;;
14177
14178    interix[3-9]*)
14179      hardcode_direct_FC=no
14180      hardcode_shlibpath_var_FC=no
14181      hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14182      export_dynamic_flag_spec_FC='${wl}-E'
14183      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14184      # Instead, shared libraries are loaded at an image base (0x10000000 by
14185      # default) and relocated if they conflict, which is a slow very memory
14186      # consuming and fragmenting process.  To avoid this, we pick a random,
14187      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14188      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14189      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'
14190      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'
14191      ;;
14192
14193    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14194      tmp_diet=no
14195      if test "$host_os" = linux-dietlibc; then
14196	case $cc_basename in
14197	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
14198	esac
14199      fi
14200      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14201	 && test "$tmp_diet" = no
14202      then
14203	tmp_addflag=' $pic_flag'
14204	tmp_sharedflag='-shared'
14205	case $cc_basename,$host_cpu in
14206        pgcc*)				# Portland Group C compiler
14207	  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'
14208	  tmp_addflag=' $pic_flag'
14209	  ;;
14210	pgf77* | pgf90* | pgf95* | pgfortran*)
14211					# Portland Group f77 and f90 compilers
14212	  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'
14213	  tmp_addflag=' $pic_flag -Mnomain' ;;
14214	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
14215	  tmp_addflag=' -i_dynamic' ;;
14216	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14217	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14218	ifc* | ifort*)			# Intel Fortran compiler
14219	  tmp_addflag=' -nofor_main' ;;
14220	lf95*)				# Lahey Fortran 8.1
14221	  whole_archive_flag_spec_FC=
14222	  tmp_sharedflag='--shared' ;;
14223	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14224	  tmp_sharedflag='-qmkshrobj'
14225	  tmp_addflag= ;;
14226	nvcc*)	# Cuda Compiler Driver 2.2
14227	  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'
14228	  compiler_needs_object_FC=yes
14229	  ;;
14230	esac
14231	case `$CC -V 2>&1 | sed 5q` in
14232	*Sun\ C*)			# Sun C 5.9
14233	  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'
14234	  compiler_needs_object_FC=yes
14235	  tmp_sharedflag='-G' ;;
14236	*Sun\ F*)			# Sun Fortran 8.3
14237	  tmp_sharedflag='-G' ;;
14238	esac
14239	archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14240
14241        if test "x$supports_anon_versioning" = xyes; then
14242          archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14243	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14244	    echo "local: *; };" >> $output_objdir/$libname.ver~
14245	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14246        fi
14247
14248	case $cc_basename in
14249	xlf* | bgf* | bgxlf* | mpixlf*)
14250	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14251	  whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14252	  hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14253	  archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14254	  if test "x$supports_anon_versioning" = xyes; then
14255	    archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14256	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14257	      echo "local: *; };" >> $output_objdir/$libname.ver~
14258	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14259	  fi
14260	  ;;
14261	esac
14262      else
14263        ld_shlibs_FC=no
14264      fi
14265      ;;
14266
14267    netbsd*)
14268      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14269	archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14270	wlarc=
14271      else
14272	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14273	archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14274      fi
14275      ;;
14276
14277    solaris*)
14278      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14279	ld_shlibs_FC=no
14280	cat <<_LT_EOF 1>&2
14281
14282*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14283*** create shared libraries on Solaris systems.  Therefore, libtool
14284*** is disabling shared libraries support.  We urge you to upgrade GNU
14285*** binutils to release 2.9.1 or newer.  Another option is to modify
14286*** your PATH or compiler configuration so that the native linker is
14287*** used, and then restart.
14288
14289_LT_EOF
14290      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14291	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14292	archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14293      else
14294	ld_shlibs_FC=no
14295      fi
14296      ;;
14297
14298    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14299      case `$LD -v 2>&1` in
14300        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14301	ld_shlibs_FC=no
14302	cat <<_LT_EOF 1>&2
14303
14304*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14305*** reliably create shared libraries on SCO systems.  Therefore, libtool
14306*** is disabling shared libraries support.  We urge you to upgrade GNU
14307*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14308*** your PATH or compiler configuration so that the native linker is
14309*** used, and then restart.
14310
14311_LT_EOF
14312	;;
14313	*)
14314	  # For security reasons, it is highly recommended that you always
14315	  # use absolute paths for naming shared libraries, and exclude the
14316	  # DT_RUNPATH tag from executables and libraries.  But doing so
14317	  # requires that you compile everything twice, which is a pain.
14318	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14319	    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14320	    archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14321	    archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14322	  else
14323	    ld_shlibs_FC=no
14324	  fi
14325	;;
14326      esac
14327      ;;
14328
14329    sunos4*)
14330      archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14331      wlarc=
14332      hardcode_direct_FC=yes
14333      hardcode_shlibpath_var_FC=no
14334      ;;
14335
14336    *)
14337      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14338	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14339	archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14340      else
14341	ld_shlibs_FC=no
14342      fi
14343      ;;
14344    esac
14345
14346    if test "$ld_shlibs_FC" = no; then
14347      runpath_var=
14348      hardcode_libdir_flag_spec_FC=
14349      export_dynamic_flag_spec_FC=
14350      whole_archive_flag_spec_FC=
14351    fi
14352  else
14353    # PORTME fill in a description of your system's linker (not GNU ld)
14354    case $host_os in
14355    aix3*)
14356      allow_undefined_flag_FC=unsupported
14357      always_export_symbols_FC=yes
14358      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'
14359      # Note: this linker hardcodes the directories in LIBPATH if there
14360      # are no directories specified by -L.
14361      hardcode_minus_L_FC=yes
14362      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14363	# Neither direct hardcoding nor static linking is supported with a
14364	# broken collect2.
14365	hardcode_direct_FC=unsupported
14366      fi
14367      ;;
14368
14369    aix[4-9]*)
14370      if test "$host_cpu" = ia64; then
14371	# On IA64, the linker does run time linking by default, so we don't
14372	# have to do anything special.
14373	aix_use_runtimelinking=no
14374	exp_sym_flag='-Bexport'
14375	no_entry_flag=""
14376      else
14377	# If we're using GNU nm, then we don't want the "-C" option.
14378	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14379	# Also, AIX nm treats weak defined symbols like other global
14380	# defined symbols, whereas GNU nm marks them as "W".
14381	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14382	  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'
14383	else
14384	  export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14385	fi
14386	aix_use_runtimelinking=no
14387
14388	# Test if we are trying to use run time linking or normal
14389	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14390	# need to do runtime linking.
14391	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14392	  for ld_flag in $LDFLAGS; do
14393	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14394	    aix_use_runtimelinking=yes
14395	    break
14396	  fi
14397	  done
14398	  ;;
14399	esac
14400
14401	exp_sym_flag='-bexport'
14402	no_entry_flag='-bnoentry'
14403      fi
14404
14405      # When large executables or shared objects are built, AIX ld can
14406      # have problems creating the table of contents.  If linking a library
14407      # or program results in "error TOC overflow" add -mminimal-toc to
14408      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14409      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14410
14411      archive_cmds_FC=''
14412      hardcode_direct_FC=yes
14413      hardcode_direct_absolute_FC=yes
14414      hardcode_libdir_separator_FC=':'
14415      link_all_deplibs_FC=yes
14416      file_list_spec_FC='${wl}-f,'
14417
14418      if test "$GCC" = yes; then
14419	case $host_os in aix4.[012]|aix4.[012].*)
14420	# We only want to do this on AIX 4.2 and lower, the check
14421	# below for broken collect2 doesn't work under 4.3+
14422	  collect2name=`${CC} -print-prog-name=collect2`
14423	  if test -f "$collect2name" &&
14424	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14425	  then
14426	  # We have reworked collect2
14427	  :
14428	  else
14429	  # We have old collect2
14430	  hardcode_direct_FC=unsupported
14431	  # It fails to find uninstalled libraries when the uninstalled
14432	  # path is not listed in the libpath.  Setting hardcode_minus_L
14433	  # to unsupported forces relinking
14434	  hardcode_minus_L_FC=yes
14435	  hardcode_libdir_flag_spec_FC='-L$libdir'
14436	  hardcode_libdir_separator_FC=
14437	  fi
14438	  ;;
14439	esac
14440	shared_flag='-shared'
14441	if test "$aix_use_runtimelinking" = yes; then
14442	  shared_flag="$shared_flag "'${wl}-G'
14443	fi
14444      else
14445	# not using gcc
14446	if test "$host_cpu" = ia64; then
14447	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14448	# chokes on -Wl,-G. The following line is correct:
14449	  shared_flag='-G'
14450	else
14451	  if test "$aix_use_runtimelinking" = yes; then
14452	    shared_flag='${wl}-G'
14453	  else
14454	    shared_flag='${wl}-bM:SRE'
14455	  fi
14456	fi
14457      fi
14458
14459      export_dynamic_flag_spec_FC='${wl}-bexpall'
14460      # It seems that -bexpall does not export symbols beginning with
14461      # underscore (_), so it is better to generate a list of symbols to export.
14462      always_export_symbols_FC=yes
14463      if test "$aix_use_runtimelinking" = yes; then
14464	# Warning - without using the other runtime loading flags (-brtl),
14465	# -berok will link without error, but may produce a broken library.
14466	allow_undefined_flag_FC='-berok'
14467        # Determine the default libpath from the value encoded in an
14468        # empty executable.
14469        if test "${lt_cv_aix_libpath+set}" = set; then
14470  aix_libpath=$lt_cv_aix_libpath
14471else
14472  if ${lt_cv_aix_libpath__FC+:} false; then :
14473  $as_echo_n "(cached) " >&6
14474else
14475  cat > conftest.$ac_ext <<_ACEOF
14476      program main
14477
14478      end
14479_ACEOF
14480if ac_fn_fc_try_link "$LINENO"; then :
14481
14482  lt_aix_libpath_sed='
14483      /Import File Strings/,/^$/ {
14484	  /^0/ {
14485	      s/^0  *\([^ ]*\) *$/\1/
14486	      p
14487	  }
14488      }'
14489  lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14490  # Check for a 64-bit object if we didn't find anything.
14491  if test -z "$lt_cv_aix_libpath__FC"; then
14492    lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14493  fi
14494fi
14495rm -f core conftest.err conftest.$ac_objext \
14496    conftest$ac_exeext conftest.$ac_ext
14497  if test -z "$lt_cv_aix_libpath__FC"; then
14498    lt_cv_aix_libpath__FC="/usr/lib:/lib"
14499  fi
14500
14501fi
14502
14503  aix_libpath=$lt_cv_aix_libpath__FC
14504fi
14505
14506        hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14507        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"
14508      else
14509	if test "$host_cpu" = ia64; then
14510	  hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14511	  allow_undefined_flag_FC="-z nodefs"
14512	  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"
14513	else
14514	 # Determine the default libpath from the value encoded in an
14515	 # empty executable.
14516	 if test "${lt_cv_aix_libpath+set}" = set; then
14517  aix_libpath=$lt_cv_aix_libpath
14518else
14519  if ${lt_cv_aix_libpath__FC+:} false; then :
14520  $as_echo_n "(cached) " >&6
14521else
14522  cat > conftest.$ac_ext <<_ACEOF
14523      program main
14524
14525      end
14526_ACEOF
14527if ac_fn_fc_try_link "$LINENO"; then :
14528
14529  lt_aix_libpath_sed='
14530      /Import File Strings/,/^$/ {
14531	  /^0/ {
14532	      s/^0  *\([^ ]*\) *$/\1/
14533	      p
14534	  }
14535      }'
14536  lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14537  # Check for a 64-bit object if we didn't find anything.
14538  if test -z "$lt_cv_aix_libpath__FC"; then
14539    lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14540  fi
14541fi
14542rm -f core conftest.err conftest.$ac_objext \
14543    conftest$ac_exeext conftest.$ac_ext
14544  if test -z "$lt_cv_aix_libpath__FC"; then
14545    lt_cv_aix_libpath__FC="/usr/lib:/lib"
14546  fi
14547
14548fi
14549
14550  aix_libpath=$lt_cv_aix_libpath__FC
14551fi
14552
14553	 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14554	  # Warning - without using the other run time loading flags,
14555	  # -berok will link without error, but may produce a broken library.
14556	  no_undefined_flag_FC=' ${wl}-bernotok'
14557	  allow_undefined_flag_FC=' ${wl}-berok'
14558	  if test "$with_gnu_ld" = yes; then
14559	    # We only use this code for GNU lds that support --whole-archive.
14560	    whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14561	  else
14562	    # Exported symbols can be pulled into shared objects from archives
14563	    whole_archive_flag_spec_FC='$convenience'
14564	  fi
14565	  archive_cmds_need_lc_FC=yes
14566	  # This is similar to how AIX traditionally builds its shared libraries.
14567	  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'
14568	fi
14569      fi
14570      ;;
14571
14572    amigaos*)
14573      case $host_cpu in
14574      powerpc)
14575            # see comment about AmigaOS4 .so support
14576            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14577            archive_expsym_cmds_FC=''
14578        ;;
14579      m68k)
14580            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)'
14581            hardcode_libdir_flag_spec_FC='-L$libdir'
14582            hardcode_minus_L_FC=yes
14583        ;;
14584      esac
14585      ;;
14586
14587    bsdi[45]*)
14588      export_dynamic_flag_spec_FC=-rdynamic
14589      ;;
14590
14591    cygwin* | mingw* | pw32* | cegcc*)
14592      # When not using gcc, we currently assume that we are using
14593      # Microsoft Visual C++.
14594      # hardcode_libdir_flag_spec is actually meaningless, as there is
14595      # no search path for DLLs.
14596      case $cc_basename in
14597      cl*)
14598	# Native MSVC
14599	hardcode_libdir_flag_spec_FC=' '
14600	allow_undefined_flag_FC=unsupported
14601	always_export_symbols_FC=yes
14602	file_list_spec_FC='@'
14603	# Tell ltmain to make .lib files, not .a files.
14604	libext=lib
14605	# Tell ltmain to make .dll files, not .so files.
14606	shrext_cmds=".dll"
14607	# FIXME: Setting linknames here is a bad hack.
14608	archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14609	archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14610	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14611	  else
14612	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14613	  fi~
14614	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14615	  linknames='
14616	# The linker will not automatically build a static lib if we build a DLL.
14617	# _LT_TAGVAR(old_archive_from_new_cmds, FC)='true'
14618	enable_shared_with_static_runtimes_FC=yes
14619	exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14620	export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14621	# Don't use ranlib
14622	old_postinstall_cmds_FC='chmod 644 $oldlib'
14623	postlink_cmds_FC='lt_outputfile="@OUTPUT@"~
14624	  lt_tool_outputfile="@TOOL_OUTPUT@"~
14625	  case $lt_outputfile in
14626	    *.exe|*.EXE) ;;
14627	    *)
14628	      lt_outputfile="$lt_outputfile.exe"
14629	      lt_tool_outputfile="$lt_tool_outputfile.exe"
14630	      ;;
14631	  esac~
14632	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14633	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14634	    $RM "$lt_outputfile.manifest";
14635	  fi'
14636	;;
14637      *)
14638	# Assume MSVC wrapper
14639	hardcode_libdir_flag_spec_FC=' '
14640	allow_undefined_flag_FC=unsupported
14641	# Tell ltmain to make .lib files, not .a files.
14642	libext=lib
14643	# Tell ltmain to make .dll files, not .so files.
14644	shrext_cmds=".dll"
14645	# FIXME: Setting linknames here is a bad hack.
14646	archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14647	# The linker will automatically build a .lib file if we build a DLL.
14648	old_archive_from_new_cmds_FC='true'
14649	# FIXME: Should let the user specify the lib program.
14650	old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14651	enable_shared_with_static_runtimes_FC=yes
14652	;;
14653      esac
14654      ;;
14655
14656    darwin* | rhapsody*)
14657
14658
14659  archive_cmds_need_lc_FC=no
14660  hardcode_direct_FC=no
14661  hardcode_automatic_FC=yes
14662  hardcode_shlibpath_var_FC=unsupported
14663  if test "$lt_cv_ld_force_load" = "yes"; then
14664    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\"`'
14665    compiler_needs_object_FC=yes
14666  else
14667    whole_archive_flag_spec_FC=''
14668  fi
14669  link_all_deplibs_FC=yes
14670  allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14671  case $cc_basename in
14672     ifort*) _lt_dar_can_shared=yes ;;
14673     *) _lt_dar_can_shared=$GCC ;;
14674  esac
14675  if test "$_lt_dar_can_shared" = "yes"; then
14676    output_verbose_link_cmd=func_echo_all
14677    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}"
14678    module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14679    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}"
14680    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}"
14681
14682  else
14683  ld_shlibs_FC=no
14684  fi
14685
14686      ;;
14687
14688    dgux*)
14689      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14690      hardcode_libdir_flag_spec_FC='-L$libdir'
14691      hardcode_shlibpath_var_FC=no
14692      ;;
14693
14694    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14695    # support.  Future versions do this automatically, but an explicit c++rt0.o
14696    # does not break anything, and helps significantly (at the cost of a little
14697    # extra space).
14698    freebsd2.2*)
14699      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14700      hardcode_libdir_flag_spec_FC='-R$libdir'
14701      hardcode_direct_FC=yes
14702      hardcode_shlibpath_var_FC=no
14703      ;;
14704
14705    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14706    freebsd2.*)
14707      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14708      hardcode_direct_FC=yes
14709      hardcode_minus_L_FC=yes
14710      hardcode_shlibpath_var_FC=no
14711      ;;
14712
14713    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14714    freebsd* | dragonfly*)
14715      archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14716      hardcode_libdir_flag_spec_FC='-R$libdir'
14717      hardcode_direct_FC=yes
14718      hardcode_shlibpath_var_FC=no
14719      ;;
14720
14721    hpux9*)
14722      if test "$GCC" = yes; then
14723	archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14724      else
14725	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'
14726      fi
14727      hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14728      hardcode_libdir_separator_FC=:
14729      hardcode_direct_FC=yes
14730
14731      # hardcode_minus_L: Not really in the search PATH,
14732      # but as the default location of the library.
14733      hardcode_minus_L_FC=yes
14734      export_dynamic_flag_spec_FC='${wl}-E'
14735      ;;
14736
14737    hpux10*)
14738      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14739	archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14740      else
14741	archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14742      fi
14743      if test "$with_gnu_ld" = no; then
14744	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14745	hardcode_libdir_separator_FC=:
14746	hardcode_direct_FC=yes
14747	hardcode_direct_absolute_FC=yes
14748	export_dynamic_flag_spec_FC='${wl}-E'
14749	# hardcode_minus_L: Not really in the search PATH,
14750	# but as the default location of the library.
14751	hardcode_minus_L_FC=yes
14752      fi
14753      ;;
14754
14755    hpux11*)
14756      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14757	case $host_cpu in
14758	hppa*64*)
14759	  archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14760	  ;;
14761	ia64*)
14762	  archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14763	  ;;
14764	*)
14765	  archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14766	  ;;
14767	esac
14768      else
14769	case $host_cpu in
14770	hppa*64*)
14771	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14772	  ;;
14773	ia64*)
14774	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14775	  ;;
14776	*)
14777	archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14778	  ;;
14779	esac
14780      fi
14781      if test "$with_gnu_ld" = no; then
14782	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14783	hardcode_libdir_separator_FC=:
14784
14785	case $host_cpu in
14786	hppa*64*|ia64*)
14787	  hardcode_direct_FC=no
14788	  hardcode_shlibpath_var_FC=no
14789	  ;;
14790	*)
14791	  hardcode_direct_FC=yes
14792	  hardcode_direct_absolute_FC=yes
14793	  export_dynamic_flag_spec_FC='${wl}-E'
14794
14795	  # hardcode_minus_L: Not really in the search PATH,
14796	  # but as the default location of the library.
14797	  hardcode_minus_L_FC=yes
14798	  ;;
14799	esac
14800      fi
14801      ;;
14802
14803    irix5* | irix6* | nonstopux*)
14804      if test "$GCC" = yes; then
14805	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14806	# Try to use the -exported_symbol ld option, if it does not
14807	# work, assume that -exports_file does not work either and
14808	# implicitly export all symbols.
14809	# This should be the same for all languages, so no per-tag cache variable.
14810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14811$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14812if ${lt_cv_irix_exported_symbol+:} false; then :
14813  $as_echo_n "(cached) " >&6
14814else
14815  save_LDFLAGS="$LDFLAGS"
14816	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14817	   cat > conftest.$ac_ext <<_ACEOF
14818
14819      subroutine foo
14820      end
14821_ACEOF
14822if ac_fn_fc_try_link "$LINENO"; then :
14823  lt_cv_irix_exported_symbol=yes
14824else
14825  lt_cv_irix_exported_symbol=no
14826fi
14827rm -f core conftest.err conftest.$ac_objext \
14828    conftest$ac_exeext conftest.$ac_ext
14829           LDFLAGS="$save_LDFLAGS"
14830fi
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14832$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14833	if test "$lt_cv_irix_exported_symbol" = yes; then
14834          archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
14835	fi
14836      else
14837	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'
14838	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'
14839      fi
14840      archive_cmds_need_lc_FC='no'
14841      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14842      hardcode_libdir_separator_FC=:
14843      inherit_rpath_FC=yes
14844      link_all_deplibs_FC=yes
14845      ;;
14846
14847    netbsd*)
14848      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14849	archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14850      else
14851	archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14852      fi
14853      hardcode_libdir_flag_spec_FC='-R$libdir'
14854      hardcode_direct_FC=yes
14855      hardcode_shlibpath_var_FC=no
14856      ;;
14857
14858    newsos6)
14859      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14860      hardcode_direct_FC=yes
14861      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14862      hardcode_libdir_separator_FC=:
14863      hardcode_shlibpath_var_FC=no
14864      ;;
14865
14866    *nto* | *qnx*)
14867      ;;
14868
14869    openbsd*)
14870      if test -f /usr/libexec/ld.so; then
14871	hardcode_direct_FC=yes
14872	hardcode_shlibpath_var_FC=no
14873	hardcode_direct_absolute_FC=yes
14874	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14875	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14876	  archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14877	  hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14878	  export_dynamic_flag_spec_FC='${wl}-E'
14879	else
14880	  case $host_os in
14881	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14882	     archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14883	     hardcode_libdir_flag_spec_FC='-R$libdir'
14884	     ;;
14885	   *)
14886	     archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14887	     hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14888	     ;;
14889	  esac
14890	fi
14891      else
14892	ld_shlibs_FC=no
14893      fi
14894      ;;
14895
14896    os2*)
14897      hardcode_libdir_flag_spec_FC='-L$libdir'
14898      hardcode_minus_L_FC=yes
14899      allow_undefined_flag_FC=unsupported
14900      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'
14901      old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14902      ;;
14903
14904    osf3*)
14905      if test "$GCC" = yes; then
14906	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14907	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'
14908      else
14909	allow_undefined_flag_FC=' -expect_unresolved \*'
14910	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'
14911      fi
14912      archive_cmds_need_lc_FC='no'
14913      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14914      hardcode_libdir_separator_FC=:
14915      ;;
14916
14917    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14918      if test "$GCC" = yes; then
14919	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14920	archive_cmds_FC='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14921	hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14922      else
14923	allow_undefined_flag_FC=' -expect_unresolved \*'
14924	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'
14925	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~
14926	$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'
14927
14928	# Both c and cxx compiler support -rpath directly
14929	hardcode_libdir_flag_spec_FC='-rpath $libdir'
14930      fi
14931      archive_cmds_need_lc_FC='no'
14932      hardcode_libdir_separator_FC=:
14933      ;;
14934
14935    solaris*)
14936      no_undefined_flag_FC=' -z defs'
14937      if test "$GCC" = yes; then
14938	wlarc='${wl}'
14939	archive_cmds_FC='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14940	archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14941	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14942      else
14943	case `$CC -V 2>&1` in
14944	*"Compilers 5.0"*)
14945	  wlarc=''
14946	  archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14947	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14948	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14949	  ;;
14950	*)
14951	  wlarc='${wl}'
14952	  archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14953	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14954	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14955	  ;;
14956	esac
14957      fi
14958      hardcode_libdir_flag_spec_FC='-R$libdir'
14959      hardcode_shlibpath_var_FC=no
14960      case $host_os in
14961      solaris2.[0-5] | solaris2.[0-5].*) ;;
14962      *)
14963	# The compiler driver will combine and reorder linker options,
14964	# but understands `-z linker_flag'.  GCC discards it without `$wl',
14965	# but is careful enough not to reorder.
14966	# Supported since Solaris 2.6 (maybe 2.5.1?)
14967	if test "$GCC" = yes; then
14968	  whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14969	else
14970	  whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14971	fi
14972	;;
14973      esac
14974      link_all_deplibs_FC=yes
14975      ;;
14976
14977    sunos4*)
14978      if test "x$host_vendor" = xsequent; then
14979	# Use $CC to link under sequent, because it throws in some extra .o
14980	# files that make .init and .fini sections work.
14981	archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14982      else
14983	archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14984      fi
14985      hardcode_libdir_flag_spec_FC='-L$libdir'
14986      hardcode_direct_FC=yes
14987      hardcode_minus_L_FC=yes
14988      hardcode_shlibpath_var_FC=no
14989      ;;
14990
14991    sysv4)
14992      case $host_vendor in
14993	sni)
14994	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14995	  hardcode_direct_FC=yes # is this really true???
14996	;;
14997	siemens)
14998	  ## LD is ld it makes a PLAMLIB
14999	  ## CC just makes a GrossModule.
15000	  archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15001	  reload_cmds_FC='$CC -r -o $output$reload_objs'
15002	  hardcode_direct_FC=no
15003        ;;
15004	motorola)
15005	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15006	  hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
15007	;;
15008      esac
15009      runpath_var='LD_RUN_PATH'
15010      hardcode_shlibpath_var_FC=no
15011      ;;
15012
15013    sysv4.3*)
15014      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15015      hardcode_shlibpath_var_FC=no
15016      export_dynamic_flag_spec_FC='-Bexport'
15017      ;;
15018
15019    sysv4*MP*)
15020      if test -d /usr/nec; then
15021	archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15022	hardcode_shlibpath_var_FC=no
15023	runpath_var=LD_RUN_PATH
15024	hardcode_runpath_var=yes
15025	ld_shlibs_FC=yes
15026      fi
15027      ;;
15028
15029    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15030      no_undefined_flag_FC='${wl}-z,text'
15031      archive_cmds_need_lc_FC=no
15032      hardcode_shlibpath_var_FC=no
15033      runpath_var='LD_RUN_PATH'
15034
15035      if test "$GCC" = yes; then
15036	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15037	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15038      else
15039	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15040	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15041      fi
15042      ;;
15043
15044    sysv5* | sco3.2v5* | sco5v6*)
15045      # Note: We can NOT use -z defs as we might desire, because we do not
15046      # link with -lc, and that would cause any symbols used from libc to
15047      # always be unresolved, which means just about no library would
15048      # ever link correctly.  If we're not using GNU ld we use -z text
15049      # though, which does catch some bad symbols but isn't as heavy-handed
15050      # as -z defs.
15051      no_undefined_flag_FC='${wl}-z,text'
15052      allow_undefined_flag_FC='${wl}-z,nodefs'
15053      archive_cmds_need_lc_FC=no
15054      hardcode_shlibpath_var_FC=no
15055      hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
15056      hardcode_libdir_separator_FC=':'
15057      link_all_deplibs_FC=yes
15058      export_dynamic_flag_spec_FC='${wl}-Bexport'
15059      runpath_var='LD_RUN_PATH'
15060
15061      if test "$GCC" = yes; then
15062	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15063	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15064      else
15065	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15066	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15067      fi
15068      ;;
15069
15070    uts4*)
15071      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15072      hardcode_libdir_flag_spec_FC='-L$libdir'
15073      hardcode_shlibpath_var_FC=no
15074      ;;
15075
15076    *)
15077      ld_shlibs_FC=no
15078      ;;
15079    esac
15080
15081    if test x$host_vendor = xsni; then
15082      case $host in
15083      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15084	export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
15085	;;
15086      esac
15087    fi
15088  fi
15089
15090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
15091$as_echo "$ld_shlibs_FC" >&6; }
15092test "$ld_shlibs_FC" = no && can_build_shared=no
15093
15094with_gnu_ld_FC=$with_gnu_ld
15095
15096
15097
15098
15099
15100
15101#
15102# Do we need to explicitly link libc?
15103#
15104case "x$archive_cmds_need_lc_FC" in
15105x|xyes)
15106  # Assume -lc should be added
15107  archive_cmds_need_lc_FC=yes
15108
15109  if test "$enable_shared" = yes && test "$GCC" = yes; then
15110    case $archive_cmds_FC in
15111    *'~'*)
15112      # FIXME: we may have to deal with multi-command sequences.
15113      ;;
15114    '$CC '*)
15115      # Test whether the compiler implicitly links with -lc since on some
15116      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15117      # to ld, don't add -lc before -lgcc.
15118      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15119$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15120if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
15121  $as_echo_n "(cached) " >&6
15122else
15123  $RM conftest*
15124	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15125
15126	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15127  (eval $ac_compile) 2>&5
15128  ac_status=$?
15129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15130  test $ac_status = 0; } 2>conftest.err; then
15131	  soname=conftest
15132	  lib=conftest
15133	  libobjs=conftest.$ac_objext
15134	  deplibs=
15135	  wl=$lt_prog_compiler_wl_FC
15136	  pic_flag=$lt_prog_compiler_pic_FC
15137	  compiler_flags=-v
15138	  linker_flags=-v
15139	  verstring=
15140	  output_objdir=.
15141	  libname=conftest
15142	  lt_save_allow_undefined_flag=$allow_undefined_flag_FC
15143	  allow_undefined_flag_FC=
15144	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15145  (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15146  ac_status=$?
15147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15148  test $ac_status = 0; }
15149	  then
15150	    lt_cv_archive_cmds_need_lc_FC=no
15151	  else
15152	    lt_cv_archive_cmds_need_lc_FC=yes
15153	  fi
15154	  allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15155	else
15156	  cat conftest.err 1>&5
15157	fi
15158	$RM conftest*
15159
15160fi
15161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15162$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
15163      archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
15164      ;;
15165    esac
15166  fi
15167  ;;
15168esac
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15232$as_echo_n "checking dynamic linker characteristics... " >&6; }
15233
15234library_names_spec=
15235libname_spec='lib$name'
15236soname_spec=
15237shrext_cmds=".so"
15238postinstall_cmds=
15239postuninstall_cmds=
15240finish_cmds=
15241finish_eval=
15242shlibpath_var=
15243shlibpath_overrides_runpath=unknown
15244version_type=none
15245dynamic_linker="$host_os ld.so"
15246sys_lib_dlsearch_path_spec="/lib /usr/lib"
15247need_lib_prefix=unknown
15248hardcode_into_libs=no
15249
15250# when you set need_version to no, make sure it does not cause -set_version
15251# flags to be left without arguments
15252need_version=unknown
15253
15254case $host_os in
15255aix3*)
15256  version_type=linux # correct to gnu/linux during the next big refactor
15257  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15258  shlibpath_var=LIBPATH
15259
15260  # AIX 3 has no versioning support, so we append a major version to the name.
15261  soname_spec='${libname}${release}${shared_ext}$major'
15262  ;;
15263
15264aix[4-9]*)
15265  version_type=linux # correct to gnu/linux during the next big refactor
15266  need_lib_prefix=no
15267  need_version=no
15268  hardcode_into_libs=yes
15269  if test "$host_cpu" = ia64; then
15270    # AIX 5 supports IA64
15271    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15272    shlibpath_var=LD_LIBRARY_PATH
15273  else
15274    # With GCC up to 2.95.x, collect2 would create an import file
15275    # for dependence libraries.  The import file would start with
15276    # the line `#! .'.  This would cause the generated library to
15277    # depend on `.', always an invalid library.  This was fixed in
15278    # development snapshots of GCC prior to 3.0.
15279    case $host_os in
15280      aix4 | aix4.[01] | aix4.[01].*)
15281      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15282	   echo ' yes '
15283	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15284	:
15285      else
15286	can_build_shared=no
15287      fi
15288      ;;
15289    esac
15290    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15291    # soname into executable. Probably we can add versioning support to
15292    # collect2, so additional links can be useful in future.
15293    if test "$aix_use_runtimelinking" = yes; then
15294      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15295      # instead of lib<name>.a to let people know that these are not
15296      # typical AIX shared libraries.
15297      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15298    else
15299      # We preserve .a as extension for shared libraries through AIX4.2
15300      # and later when we are not doing run time linking.
15301      library_names_spec='${libname}${release}.a $libname.a'
15302      soname_spec='${libname}${release}${shared_ext}$major'
15303    fi
15304    shlibpath_var=LIBPATH
15305  fi
15306  ;;
15307
15308amigaos*)
15309  case $host_cpu in
15310  powerpc)
15311    # Since July 2007 AmigaOS4 officially supports .so libraries.
15312    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15313    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15314    ;;
15315  m68k)
15316    library_names_spec='$libname.ixlibrary $libname.a'
15317    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15318    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'
15319    ;;
15320  esac
15321  ;;
15322
15323beos*)
15324  library_names_spec='${libname}${shared_ext}'
15325  dynamic_linker="$host_os ld.so"
15326  shlibpath_var=LIBRARY_PATH
15327  ;;
15328
15329bsdi[45]*)
15330  version_type=linux # correct to gnu/linux during the next big refactor
15331  need_version=no
15332  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15333  soname_spec='${libname}${release}${shared_ext}$major'
15334  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15335  shlibpath_var=LD_LIBRARY_PATH
15336  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15337  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15338  # the default ld.so.conf also contains /usr/contrib/lib and
15339  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15340  # libtool to hard-code these into programs
15341  ;;
15342
15343cygwin* | mingw* | pw32* | cegcc*)
15344  version_type=windows
15345  shrext_cmds=".dll"
15346  need_version=no
15347  need_lib_prefix=no
15348
15349  case $GCC,$cc_basename in
15350  yes,*)
15351    # gcc
15352    library_names_spec='$libname.dll.a'
15353    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15354    postinstall_cmds='base_file=`basename \${file}`~
15355      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15356      dldir=$destdir/`dirname \$dlpath`~
15357      test -d \$dldir || mkdir -p \$dldir~
15358      $install_prog $dir/$dlname \$dldir/$dlname~
15359      chmod a+x \$dldir/$dlname~
15360      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15361        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15362      fi'
15363    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15364      dlpath=$dir/\$dldll~
15365       $RM \$dlpath'
15366    shlibpath_overrides_runpath=yes
15367
15368    case $host_os in
15369    cygwin*)
15370      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15371      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15372
15373      ;;
15374    mingw* | cegcc*)
15375      # MinGW DLLs use traditional 'lib' prefix
15376      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15377      ;;
15378    pw32*)
15379      # pw32 DLLs use 'pw' prefix rather than 'lib'
15380      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15381      ;;
15382    esac
15383    dynamic_linker='Win32 ld.exe'
15384    ;;
15385
15386  *,cl*)
15387    # Native MSVC
15388    libname_spec='$name'
15389    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15390    library_names_spec='${libname}.dll.lib'
15391
15392    case $build_os in
15393    mingw*)
15394      sys_lib_search_path_spec=
15395      lt_save_ifs=$IFS
15396      IFS=';'
15397      for lt_path in $LIB
15398      do
15399        IFS=$lt_save_ifs
15400        # Let DOS variable expansion print the short 8.3 style file name.
15401        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15402        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15403      done
15404      IFS=$lt_save_ifs
15405      # Convert to MSYS style.
15406      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15407      ;;
15408    cygwin*)
15409      # Convert to unix form, then to dos form, then back to unix form
15410      # but this time dos style (no spaces!) so that the unix form looks
15411      # like /cygdrive/c/PROGRA~1:/cygdr...
15412      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15413      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15414      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15415      ;;
15416    *)
15417      sys_lib_search_path_spec="$LIB"
15418      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15419        # It is most probably a Windows format PATH.
15420        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15421      else
15422        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15423      fi
15424      # FIXME: find the short name or the path components, as spaces are
15425      # common. (e.g. "Program Files" -> "PROGRA~1")
15426      ;;
15427    esac
15428
15429    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15430    postinstall_cmds='base_file=`basename \${file}`~
15431      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15432      dldir=$destdir/`dirname \$dlpath`~
15433      test -d \$dldir || mkdir -p \$dldir~
15434      $install_prog $dir/$dlname \$dldir/$dlname'
15435    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15436      dlpath=$dir/\$dldll~
15437       $RM \$dlpath'
15438    shlibpath_overrides_runpath=yes
15439    dynamic_linker='Win32 link.exe'
15440    ;;
15441
15442  *)
15443    # Assume MSVC wrapper
15444    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15445    dynamic_linker='Win32 ld.exe'
15446    ;;
15447  esac
15448  # FIXME: first we should search . and the directory the executable is in
15449  shlibpath_var=PATH
15450  ;;
15451
15452darwin* | rhapsody*)
15453  dynamic_linker="$host_os dyld"
15454  version_type=darwin
15455  need_lib_prefix=no
15456  need_version=no
15457  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15458  soname_spec='${libname}${release}${major}$shared_ext'
15459  shlibpath_overrides_runpath=yes
15460  shlibpath_var=DYLD_LIBRARY_PATH
15461  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15462
15463  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15464  ;;
15465
15466dgux*)
15467  version_type=linux # correct to gnu/linux during the next big refactor
15468  need_lib_prefix=no
15469  need_version=no
15470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15471  soname_spec='${libname}${release}${shared_ext}$major'
15472  shlibpath_var=LD_LIBRARY_PATH
15473  ;;
15474
15475freebsd* | dragonfly*)
15476  # DragonFly does not have aout.  When/if they implement a new
15477  # versioning mechanism, adjust this.
15478  if test -x /usr/bin/objformat; then
15479    objformat=`/usr/bin/objformat`
15480  else
15481    case $host_os in
15482    freebsd[23].*) objformat=aout ;;
15483    *) objformat=elf ;;
15484    esac
15485  fi
15486  version_type=freebsd-$objformat
15487  case $version_type in
15488    freebsd-elf*)
15489      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15490      need_version=no
15491      need_lib_prefix=no
15492      ;;
15493    freebsd-*)
15494      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15495      need_version=yes
15496      ;;
15497  esac
15498  shlibpath_var=LD_LIBRARY_PATH
15499  case $host_os in
15500  freebsd2.*)
15501    shlibpath_overrides_runpath=yes
15502    ;;
15503  freebsd3.[01]* | freebsdelf3.[01]*)
15504    shlibpath_overrides_runpath=yes
15505    hardcode_into_libs=yes
15506    ;;
15507  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15508  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15509    shlibpath_overrides_runpath=no
15510    hardcode_into_libs=yes
15511    ;;
15512  *) # from 4.6 on, and DragonFly
15513    shlibpath_overrides_runpath=yes
15514    hardcode_into_libs=yes
15515    ;;
15516  esac
15517  ;;
15518
15519gnu*)
15520  version_type=linux # correct to gnu/linux during the next big refactor
15521  need_lib_prefix=no
15522  need_version=no
15523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15524  soname_spec='${libname}${release}${shared_ext}$major'
15525  shlibpath_var=LD_LIBRARY_PATH
15526  shlibpath_overrides_runpath=no
15527  hardcode_into_libs=yes
15528  ;;
15529
15530haiku*)
15531  version_type=linux # correct to gnu/linux during the next big refactor
15532  need_lib_prefix=no
15533  need_version=no
15534  dynamic_linker="$host_os runtime_loader"
15535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15536  soname_spec='${libname}${release}${shared_ext}$major'
15537  shlibpath_var=LIBRARY_PATH
15538  shlibpath_overrides_runpath=yes
15539  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15540  hardcode_into_libs=yes
15541  ;;
15542
15543hpux9* | hpux10* | hpux11*)
15544  # Give a soname corresponding to the major version so that dld.sl refuses to
15545  # link against other versions.
15546  version_type=sunos
15547  need_lib_prefix=no
15548  need_version=no
15549  case $host_cpu in
15550  ia64*)
15551    shrext_cmds='.so'
15552    hardcode_into_libs=yes
15553    dynamic_linker="$host_os dld.so"
15554    shlibpath_var=LD_LIBRARY_PATH
15555    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15556    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557    soname_spec='${libname}${release}${shared_ext}$major'
15558    if test "X$HPUX_IA64_MODE" = X32; then
15559      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15560    else
15561      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15562    fi
15563    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15564    ;;
15565  hppa*64*)
15566    shrext_cmds='.sl'
15567    hardcode_into_libs=yes
15568    dynamic_linker="$host_os dld.sl"
15569    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15570    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15571    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15572    soname_spec='${libname}${release}${shared_ext}$major'
15573    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15574    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15575    ;;
15576  *)
15577    shrext_cmds='.sl'
15578    dynamic_linker="$host_os dld.sl"
15579    shlibpath_var=SHLIB_PATH
15580    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15581    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582    soname_spec='${libname}${release}${shared_ext}$major'
15583    ;;
15584  esac
15585  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15586  postinstall_cmds='chmod 555 $lib'
15587  # or fails outright, so override atomically:
15588  install_override_mode=555
15589  ;;
15590
15591interix[3-9]*)
15592  version_type=linux # correct to gnu/linux during the next big refactor
15593  need_lib_prefix=no
15594  need_version=no
15595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15596  soname_spec='${libname}${release}${shared_ext}$major'
15597  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15598  shlibpath_var=LD_LIBRARY_PATH
15599  shlibpath_overrides_runpath=no
15600  hardcode_into_libs=yes
15601  ;;
15602
15603irix5* | irix6* | nonstopux*)
15604  case $host_os in
15605    nonstopux*) version_type=nonstopux ;;
15606    *)
15607	if test "$lt_cv_prog_gnu_ld" = yes; then
15608		version_type=linux # correct to gnu/linux during the next big refactor
15609	else
15610		version_type=irix
15611	fi ;;
15612  esac
15613  need_lib_prefix=no
15614  need_version=no
15615  soname_spec='${libname}${release}${shared_ext}$major'
15616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15617  case $host_os in
15618  irix5* | nonstopux*)
15619    libsuff= shlibsuff=
15620    ;;
15621  *)
15622    case $LD in # libtool.m4 will add one of these switches to LD
15623    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15624      libsuff= shlibsuff= libmagic=32-bit;;
15625    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15626      libsuff=32 shlibsuff=N32 libmagic=N32;;
15627    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15628      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15629    *) libsuff= shlibsuff= libmagic=never-match;;
15630    esac
15631    ;;
15632  esac
15633  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15634  shlibpath_overrides_runpath=no
15635  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15636  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15637  hardcode_into_libs=yes
15638  ;;
15639
15640# No shared lib support for Linux oldld, aout, or coff.
15641linux*oldld* | linux*aout* | linux*coff*)
15642  dynamic_linker=no
15643  ;;
15644
15645# This must be glibc/ELF.
15646linux* | k*bsd*-gnu | kopensolaris*-gnu)
15647  version_type=linux # correct to gnu/linux during the next big refactor
15648  need_lib_prefix=no
15649  need_version=no
15650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651  soname_spec='${libname}${release}${shared_ext}$major'
15652  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15653  shlibpath_var=LD_LIBRARY_PATH
15654  shlibpath_overrides_runpath=no
15655
15656  # Some binutils ld are patched to set DT_RUNPATH
15657  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15658  $as_echo_n "(cached) " >&6
15659else
15660  lt_cv_shlibpath_overrides_runpath=no
15661    save_LDFLAGS=$LDFLAGS
15662    save_libdir=$libdir
15663    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15664	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15665    cat > conftest.$ac_ext <<_ACEOF
15666      program main
15667
15668      end
15669_ACEOF
15670if ac_fn_fc_try_link "$LINENO"; then :
15671  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15672  lt_cv_shlibpath_overrides_runpath=yes
15673fi
15674fi
15675rm -f core conftest.err conftest.$ac_objext \
15676    conftest$ac_exeext conftest.$ac_ext
15677    LDFLAGS=$save_LDFLAGS
15678    libdir=$save_libdir
15679
15680fi
15681
15682  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15683
15684  # This implies no fast_install, which is unacceptable.
15685  # Some rework will be needed to allow for fast_install
15686  # before this can be enabled.
15687  hardcode_into_libs=yes
15688
15689  # Add ABI-specific directories to the system library path.
15690  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15691
15692  # Append ld.so.conf contents to the search path
15693  if test -f /etc/ld.so.conf; then
15694    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' ' '`
15695    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15696
15697  fi
15698
15699  # We used to test for /lib/ld.so.1 and disable shared libraries on
15700  # powerpc, because MkLinux only supported shared libraries with the
15701  # GNU dynamic linker.  Since this was broken with cross compilers,
15702  # most powerpc-linux boxes support dynamic linking these days and
15703  # people can always --disable-shared, the test was removed, and we
15704  # assume the GNU/Linux dynamic linker is in use.
15705  dynamic_linker='GNU/Linux ld.so'
15706  ;;
15707
15708netbsd*)
15709  version_type=sunos
15710  need_lib_prefix=no
15711  need_version=no
15712  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15713    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15714    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15715    dynamic_linker='NetBSD (a.out) ld.so'
15716  else
15717    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15718    soname_spec='${libname}${release}${shared_ext}$major'
15719    dynamic_linker='NetBSD ld.elf_so'
15720  fi
15721  shlibpath_var=LD_LIBRARY_PATH
15722  shlibpath_overrides_runpath=yes
15723  hardcode_into_libs=yes
15724  ;;
15725
15726newsos6)
15727  version_type=linux # correct to gnu/linux during the next big refactor
15728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729  shlibpath_var=LD_LIBRARY_PATH
15730  shlibpath_overrides_runpath=yes
15731  ;;
15732
15733*nto* | *qnx*)
15734  version_type=qnx
15735  need_lib_prefix=no
15736  need_version=no
15737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15738  soname_spec='${libname}${release}${shared_ext}$major'
15739  shlibpath_var=LD_LIBRARY_PATH
15740  shlibpath_overrides_runpath=no
15741  hardcode_into_libs=yes
15742  dynamic_linker='ldqnx.so'
15743  ;;
15744
15745openbsd*)
15746  version_type=sunos
15747  sys_lib_dlsearch_path_spec="/usr/lib"
15748  need_lib_prefix=no
15749  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15750  case $host_os in
15751    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15752    *)				need_version=no  ;;
15753  esac
15754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15755  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15756  shlibpath_var=LD_LIBRARY_PATH
15757  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15758    case $host_os in
15759      openbsd2.[89] | openbsd2.[89].*)
15760	shlibpath_overrides_runpath=no
15761	;;
15762      *)
15763	shlibpath_overrides_runpath=yes
15764	;;
15765      esac
15766  else
15767    shlibpath_overrides_runpath=yes
15768  fi
15769  ;;
15770
15771os2*)
15772  libname_spec='$name'
15773  shrext_cmds=".dll"
15774  need_lib_prefix=no
15775  library_names_spec='$libname${shared_ext} $libname.a'
15776  dynamic_linker='OS/2 ld.exe'
15777  shlibpath_var=LIBPATH
15778  ;;
15779
15780osf3* | osf4* | osf5*)
15781  version_type=osf
15782  need_lib_prefix=no
15783  need_version=no
15784  soname_spec='${libname}${release}${shared_ext}$major'
15785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786  shlibpath_var=LD_LIBRARY_PATH
15787  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15788  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15789  ;;
15790
15791rdos*)
15792  dynamic_linker=no
15793  ;;
15794
15795solaris*)
15796  version_type=linux # correct to gnu/linux during the next big refactor
15797  need_lib_prefix=no
15798  need_version=no
15799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15800  soname_spec='${libname}${release}${shared_ext}$major'
15801  shlibpath_var=LD_LIBRARY_PATH
15802  shlibpath_overrides_runpath=yes
15803  hardcode_into_libs=yes
15804  # ldd complains unless libraries are executable
15805  postinstall_cmds='chmod +x $lib'
15806  ;;
15807
15808sunos4*)
15809  version_type=sunos
15810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15811  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15812  shlibpath_var=LD_LIBRARY_PATH
15813  shlibpath_overrides_runpath=yes
15814  if test "$with_gnu_ld" = yes; then
15815    need_lib_prefix=no
15816  fi
15817  need_version=yes
15818  ;;
15819
15820sysv4 | sysv4.3*)
15821  version_type=linux # correct to gnu/linux during the next big refactor
15822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15823  soname_spec='${libname}${release}${shared_ext}$major'
15824  shlibpath_var=LD_LIBRARY_PATH
15825  case $host_vendor in
15826    sni)
15827      shlibpath_overrides_runpath=no
15828      need_lib_prefix=no
15829      runpath_var=LD_RUN_PATH
15830      ;;
15831    siemens)
15832      need_lib_prefix=no
15833      ;;
15834    motorola)
15835      need_lib_prefix=no
15836      need_version=no
15837      shlibpath_overrides_runpath=no
15838      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15839      ;;
15840  esac
15841  ;;
15842
15843sysv4*MP*)
15844  if test -d /usr/nec ;then
15845    version_type=linux # correct to gnu/linux during the next big refactor
15846    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15847    soname_spec='$libname${shared_ext}.$major'
15848    shlibpath_var=LD_LIBRARY_PATH
15849  fi
15850  ;;
15851
15852sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15853  version_type=freebsd-elf
15854  need_lib_prefix=no
15855  need_version=no
15856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15857  soname_spec='${libname}${release}${shared_ext}$major'
15858  shlibpath_var=LD_LIBRARY_PATH
15859  shlibpath_overrides_runpath=yes
15860  hardcode_into_libs=yes
15861  if test "$with_gnu_ld" = yes; then
15862    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15863  else
15864    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15865    case $host_os in
15866      sco3.2v5*)
15867        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15868	;;
15869    esac
15870  fi
15871  sys_lib_dlsearch_path_spec='/usr/lib'
15872  ;;
15873
15874tpf*)
15875  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15876  version_type=linux # correct to gnu/linux during the next big refactor
15877  need_lib_prefix=no
15878  need_version=no
15879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15880  shlibpath_var=LD_LIBRARY_PATH
15881  shlibpath_overrides_runpath=no
15882  hardcode_into_libs=yes
15883  ;;
15884
15885uts4*)
15886  version_type=linux # correct to gnu/linux during the next big refactor
15887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15888  soname_spec='${libname}${release}${shared_ext}$major'
15889  shlibpath_var=LD_LIBRARY_PATH
15890  ;;
15891
15892*)
15893  dynamic_linker=no
15894  ;;
15895esac
15896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15897$as_echo "$dynamic_linker" >&6; }
15898test "$dynamic_linker" = no && can_build_shared=no
15899
15900variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15901if test "$GCC" = yes; then
15902  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15903fi
15904
15905if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15906  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15907fi
15908if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15909  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15910fi
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15950$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15951hardcode_action_FC=
15952if test -n "$hardcode_libdir_flag_spec_FC" ||
15953   test -n "$runpath_var_FC" ||
15954   test "X$hardcode_automatic_FC" = "Xyes" ; then
15955
15956  # We can hardcode non-existent directories.
15957  if test "$hardcode_direct_FC" != no &&
15958     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15959     # have to relink, otherwise we might link with an installed library
15960     # when we should be linking with a yet-to-be-installed one
15961     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15962     test "$hardcode_minus_L_FC" != no; then
15963    # Linking always hardcodes the temporary library directory.
15964    hardcode_action_FC=relink
15965  else
15966    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15967    hardcode_action_FC=immediate
15968  fi
15969else
15970  # We cannot hardcode anything, or else we can only hardcode existing
15971  # directories.
15972  hardcode_action_FC=unsupported
15973fi
15974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15975$as_echo "$hardcode_action_FC" >&6; }
15976
15977if test "$hardcode_action_FC" = relink ||
15978   test "$inherit_rpath_FC" = yes; then
15979  # Fast installation is not supported
15980  enable_fast_install=no
15981elif test "$shlibpath_overrides_runpath" = yes ||
15982     test "$enable_shared" = no; then
15983  # Fast installation is not necessary
15984  enable_fast_install=needless
15985fi
15986
15987
15988
15989
15990
15991
15992
15993  fi # test -n "$compiler"
15994
15995  GCC=$lt_save_GCC
15996  CC=$lt_save_CC
15997  CFLAGS=$lt_save_CFLAGS
15998fi # test "$_lt_disable_FC" != yes
15999
16000ac_ext=c
16001ac_cpp='$CPP $CPPFLAGS'
16002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16004ac_compiler_gnu=$ac_cv_c_compiler_gnu
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016        ac_config_commands="$ac_config_commands libtool"
16017
16018
16019
16020
16021# Only expand once:
16022
16023
16024
16025LTOBJEXT="lo"
16026
16027
16028
16029                    # ------------------------------------ #
16030
16031#
16032# Final configuration
16033#
16034
16035# Note: in order to let the user override the defaults through the
16036#       command-line, the build flags (FCFLAGS, LDFLAGS) are set only if
16037#       they are found empty.
16038
16039if test "${FCFLAGS}" = ""; then
16040  FCFLAGS="${ATP_FCOPTS}"
16041  if test "${ac_cv_prog_fc_g}" = "yes"; then
16042    FCFLAGS="-g ${FCFLAGS}"
16043  fi
16044fi
16045if test "${LDFLAGS}" = ""; then
16046  LDFLAGS="${ATP_LDOPTS}"
16047fi
16048if test "${LDFLAGS}" = ""; then
16049  LDFLAGS="${ATP_LDOPTS}"
16050fi
16051
16052                    # ------------------------------------ #
16053
16054#
16055# Library search
16056#
16057
16058# NOTE: least dependent libraries first
16059
16060# Linear Algebra: search for the libraries and check that they properly work
16061
16062
16063  atp_linalg_found="unknown"
16064
16065  list_dirs="empty /opt/local /usr/local /usr / /Library/lapack /usr/local/lapack ${LINALG_ROOT} ${LINALG_DIR}"
16066  list_funcs="zhpev zgemm"
16067
16068  atp_saved_LDFLAGS="${LDFLAGS}"
16069  atp_saved_LIBS="${LIBS}"
16070
16071  { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
16072$as_echo "$as_me: " >&6;}
16073  { $as_echo "$as_me:${as_lineno-$LINENO}: ===== Looking for Linear Algebra libraries" >&5
16074$as_echo "$as_me: ===== Looking for Linear Algebra libraries" >&6;}
16075
16076  ac_ext=${ac_fc_srcext-f}
16077ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16078ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
16079ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16080
16081
16082  atp_linalg_libs_ok="no"
16083
16084  if test "x${LINALG_PREFIX}" != "x" -a "x${with_linalg_prefix}" = "x"; then
16085    with_linalg_prefix="${LINALG_PREFIX}"
16086  fi
16087
16088# First, check with user-defined macros
16089  if test "x${with_linalg_libs}" != "x" -o "x${with_linalg_prefix}" != "x"; then
16090    { $as_echo "$as_me:${as_lineno-$LINENO}: ...Linear Algebra: trying with command-line options" >&5
16091$as_echo "$as_me: ...Linear Algebra: trying with command-line options" >&6;}
16092
16093
16094    for ax_var in ${list_funcs}
16095do :
16096
16097        as_ax_Var=`$as_echo "ac_cv_lib_${ax_var}" | $as_tr_sh`
16098
16099        { eval $as_ax_Var=; unset $as_ax_Var;}
16100
16101
16102done
16103
16104
16105    LDFLAGS="";LIBS=""
16106    if test "x${with_linalg_libs}" != "x"; then
16107      LDFLAGS="${with_linalg_libs}"
16108      LIBS="${with_linalg_libs}"
16109    else
16110      LDFLAGS="-L${with_linalg_prefix}/lib -lblas -llapack -lblas"
16111      LIBS="-L${with_linalg_prefix}/lib -lblas -llapack -lblas"
16112    fi
16113    atp_linalg_libs_ok="yes"
16114    for func in ${list_funcs}; do
16115      as_ac_Search=`$as_echo "ac_cv_search_${func}" | $as_tr_sh`
16116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ${func}" >&5
16117$as_echo_n "checking for library containing ${func}... " >&6; }
16118if eval \${$as_ac_Search+:} false; then :
16119  $as_echo_n "(cached) " >&6
16120else
16121  ac_func_search_save_LIBS=$LIBS
16122cat > conftest.$ac_ext <<_ACEOF
16123      program main
16124      call ${func}
16125      end
16126_ACEOF
16127for ac_lib in '' lapack; do
16128  if test -z "$ac_lib"; then
16129    ac_res="none required"
16130  else
16131    ac_res=-l$ac_lib
16132    LIBS="-l$ac_lib -lblas $ac_func_search_save_LIBS"
16133  fi
16134  if ac_fn_fc_try_link "$LINENO"; then :
16135  eval "$as_ac_Search=\$ac_res"
16136fi
16137rm -f core conftest.err conftest.$ac_objext \
16138    conftest$ac_exeext
16139  if eval \${$as_ac_Search+:} false; then :
16140  break
16141fi
16142done
16143if eval \${$as_ac_Search+:} false; then :
16144
16145else
16146  eval "$as_ac_Search=no"
16147fi
16148rm conftest.$ac_ext
16149LIBS=$ac_func_search_save_LIBS
16150fi
16151eval ac_res=\$$as_ac_Search
16152	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16153$as_echo "$ac_res" >&6; }
16154eval ac_res=\$$as_ac_Search
16155if test "$ac_res" != no; then :
16156  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16157
16158else
16159  atp_linalg_libs_ok="no"
16160fi
16161
16162    done
16163    if test "${atp_linalg_libs_ok}" = "yes"; then
16164      with_linalg_libs="${LDFLAGS}"
16165    else
16166      as_fn_error $? "Linear Algebra libraries (blas, lapack) were not found with the specified --with_linalg_libs/--with_linalg_prefix" "$LINENO" 5
16167    fi
16168  fi
16169
16170# Then, check in a list of directories
16171  if test "x${with_linalg_libs}" = "x"; then
16172
16173    for with_linalg_prefix in ${list_dirs}; do
16174
16175
16176    for ax_var in ${list_funcs}
16177do :
16178
16179        as_ax_Var=`$as_echo "ac_cv_lib_${ax_var}" | $as_tr_sh`
16180
16181        { eval $as_ax_Var=; unset $as_ax_Var;}
16182
16183
16184done
16185
16186
16187      LDFLAGS="";LIBS=""
16188      if test "x${with_linalg_prefix}" = "xempty"; then
16189        { $as_echo "$as_me:${as_lineno-$LINENO}: ...Linear Algebra: trying with current environment" >&5
16190$as_echo "$as_me: ...Linear Algebra: trying with current environment" >&6;}
16191        LDFLAGS="-lblas -llapack -lblas";LIBS="-lblas -llapack -lblas"
16192      else
16193        { $as_echo "$as_me:${as_lineno-$LINENO}: ...Linear Algebra: trying in ${with_linalg_prefix}" >&5
16194$as_echo "$as_me: ...Linear Algebra: trying in ${with_linalg_prefix}" >&6;}
16195        if test "x${with_linalg_libs}" != "x"; then
16196          LDFLAGS="${with_linalg_libs}"
16197          LIBS="${with_linalg_libs}"
16198        else
16199          LDFLAGS="-L${with_linalg_prefix}/lib -lxc"
16200          LIBS="-L${with_linalg_prefix}/lib -lxc"
16201        fi
16202      fi
16203      atp_linalg_libs_ok="yes"
16204      for func in ${list_funcs}; do
16205        as_ac_Search=`$as_echo "ac_cv_search_${func}" | $as_tr_sh`
16206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ${func}" >&5
16207$as_echo_n "checking for library containing ${func}... " >&6; }
16208if eval \${$as_ac_Search+:} false; then :
16209  $as_echo_n "(cached) " >&6
16210else
16211  ac_func_search_save_LIBS=$LIBS
16212cat > conftest.$ac_ext <<_ACEOF
16213      program main
16214      call ${func}
16215      end
16216_ACEOF
16217for ac_lib in '' lapack; do
16218  if test -z "$ac_lib"; then
16219    ac_res="none required"
16220  else
16221    ac_res=-l$ac_lib
16222    LIBS="-l$ac_lib -lblas $ac_func_search_save_LIBS"
16223  fi
16224  if ac_fn_fc_try_link "$LINENO"; then :
16225  eval "$as_ac_Search=\$ac_res"
16226fi
16227rm -f core conftest.err conftest.$ac_objext \
16228    conftest$ac_exeext
16229  if eval \${$as_ac_Search+:} false; then :
16230  break
16231fi
16232done
16233if eval \${$as_ac_Search+:} false; then :
16234
16235else
16236  eval "$as_ac_Search=no"
16237fi
16238rm conftest.$ac_ext
16239LIBS=$ac_func_search_save_LIBS
16240fi
16241eval ac_res=\$$as_ac_Search
16242	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16243$as_echo "$ac_res" >&6; }
16244eval ac_res=\$$as_ac_Search
16245if test "$ac_res" != no; then :
16246  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16247
16248else
16249  atp_linalg_libs_ok="no"
16250fi
16251
16252      done
16253      if test "${atp_linalg_libs_ok}" != "yes";then
16254        if test "x${with_linalg_prefix}" != "xempty"; then
16255          if test "x${with_linalg_prefix}" != "x"; then
16256            LDFLAGS="-L${with_linalg_prefix}/lib64 -lxc"
16257            LIBS="-L${with_linalg_prefix}/lib64 -lxc"
16258            atp_linalg_libs_ok="yes"
16259            for func in ${list_funcs}; do
16260              as_ac_Search=`$as_echo "ac_cv_search_${func}" | $as_tr_sh`
16261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ${func}" >&5
16262$as_echo_n "checking for library containing ${func}... " >&6; }
16263if eval \${$as_ac_Search+:} false; then :
16264  $as_echo_n "(cached) " >&6
16265else
16266  ac_func_search_save_LIBS=$LIBS
16267cat > conftest.$ac_ext <<_ACEOF
16268      program main
16269      call ${func}
16270      end
16271_ACEOF
16272for ac_lib in '' lapack; do
16273  if test -z "$ac_lib"; then
16274    ac_res="none required"
16275  else
16276    ac_res=-l$ac_lib
16277    LIBS="-l$ac_lib -lblas $ac_func_search_save_LIBS"
16278  fi
16279  if ac_fn_fc_try_link "$LINENO"; then :
16280  eval "$as_ac_Search=\$ac_res"
16281fi
16282rm -f core conftest.err conftest.$ac_objext \
16283    conftest$ac_exeext
16284  if eval \${$as_ac_Search+:} false; then :
16285  break
16286fi
16287done
16288if eval \${$as_ac_Search+:} false; then :
16289
16290else
16291  eval "$as_ac_Search=no"
16292fi
16293rm conftest.$ac_ext
16294LIBS=$ac_func_search_save_LIBS
16295fi
16296eval ac_res=\$$as_ac_Search
16297	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16298$as_echo "$ac_res" >&6; }
16299eval ac_res=\$$as_ac_Search
16300if test "$ac_res" != no; then :
16301  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16302
16303else
16304  atp_linalg_libs_ok="no"
16305fi
16306
16307            done
16308          fi
16309        fi
16310      fi
16311      if test "${atp_linalg_libs_ok}" = "yes"; then
16312        with_linalg_libs="${LDFLAGS}"
16313        break
16314      fi
16315
16316    done
16317
16318  fi
16319
16320  ac_ext=c
16321ac_cpp='$CPP $CPPFLAGS'
16322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16324ac_compiler_gnu=$ac_cv_c_compiler_gnu
16325
16326
16327  LDFLAGS="${atp_saved_LDFLAGS}"
16328  LIBS="${atp_saved_LIBS}"
16329
16330  if test "${atp_linalg_libs_ok}" = "yes"; then
16331    atp_linalg_found="yes"
16332    LDFLAGS="${with_linalg_libs} ${LDFLAGS}"
16333    LIBS="${with_linalg_libs} ${LIBS}"
16334    { $as_echo "$as_me:${as_lineno-$LINENO}: => Linear Algebra libraries were found on the system" >&5
16335$as_echo "$as_me: => Linear Algebra libraries were found on the system" >&6;}
16336  else
16337    atp_linalg_found="no"
16338    as_fn_error $? ">>>> No Linear Algebra libraries (libblas, liblapack) were found on the system!" "$LINENO" 5
16339  fi
16340
16341
16342
16343
16344  atp_linalg_ok="unknown"
16345
16346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linear Algebra libraries work" >&5
16347$as_echo_n "checking whether Linear Algebra libraries work... " >&6; }
16348
16349# Check BLAS and LAPACK routines
16350  ac_ext=${ac_fc_srcext-f}
16351ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16352ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
16353ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16354
16355  cat > conftest.$ac_ext <<_ACEOF
16356      program main
16357
16358      call zgemm
16359      call zhpev
16360
16361      end
16362_ACEOF
16363if ac_fn_fc_try_link "$LINENO"; then :
16364  atp_linalg_ok="yes"
16365else
16366  atp_linalg_ok="no"
16367fi
16368rm -f core conftest.err conftest.$ac_objext \
16369    conftest$ac_exeext conftest.$ac_ext
16370  ac_ext=c
16371ac_cpp='$CPP $CPPFLAGS'
16372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16374ac_compiler_gnu=$ac_cv_c_compiler_gnu
16375
16376
16377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${atp_linalg_ok}" >&5
16378$as_echo "${atp_linalg_ok}" >&6; }
16379
16380  if test "${atp_linalg_ok}" = "yes"; then
16381    { $as_echo "$as_me:${as_lineno-$LINENO}: ===== Linear Algebra libraries OK for use" >&5
16382$as_echo "$as_me: ===== Linear Algebra libraries OK for use" >&6;}
16383    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
16384$as_echo "$as_me: " >&6;}
16385  else
16386    as_fn_error $? "No working Linear Algebra libraries have been found!" "$LINENO" 5
16387  fi
16388
16389
16390
16391# LIBXC: search for the library and check that it properly works
16392if test "${enable_libxc}" = "yes"; then
16393
16394
16395  atp_libxc_found="unknown"
16396
16397  list_dirs="empty /opt/local /usr/local /opt/etsf /usr / /Library/libxc /usr/local/libxc ${LIBXC_ROOT} ${LIBXC_DIR} ${LIBXC_PREFIX}"
16398  list_headers="xc.h xc_funcs.h"
16399  list_funcs="xc_func_init xc_func_end"
16400
16401  atp_saved_CPPFLAGS="${CPPFLAGS}"
16402  atp_saved_LDFLAGS="${LDFLAGS}"
16403  atp_saved_LIBS="${LIBS}"
16404
16405  { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
16406$as_echo "$as_me: " >&6;}
16407  { $as_echo "$as_me:${as_lineno-$LINENO}: ===== Looking for LibXC headers and libraries" >&5
16408$as_echo "$as_me: ===== Looking for LibXC headers and libraries" >&6;}
16409
16410  ac_ext=c
16411ac_cpp='$CPP $CPPFLAGS'
16412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16414ac_compiler_gnu=$ac_cv_c_compiler_gnu
16415
16416
16417  if test "x${LIBXC_PREFIX}" != "x" -a "x${with_libxc_prefix}" = "x"; then
16418    with_libxc_prefix="${LIBXC_PREFIX}"
16419  fi
16420
16421  atp_libxc_headers_ok="no"
16422  atp_libxc_libs_ok="no"
16423
16424# First, check with user-defined macros
16425  if test "x${with_libxc_incs}" != "x" -o "x${with_libxc_libs}" != "x" -o "x${with_libxc_prefix}" != "x"; then
16426    { $as_echo "$as_me:${as_lineno-$LINENO}: ...LibXC: trying with command-line options" >&5
16427$as_echo "$as_me: ...LibXC: trying with command-line options" >&6;}
16428
16429#   Headers
16430
16431    for ax_var in ${list_headers}
16432do :
16433
16434        as_ax_Var=`$as_echo "ac_cv_header_${ax_var}" | $as_tr_sh`
16435
16436        { eval $as_ax_Var=; unset $as_ax_Var;}
16437
16438
16439done
16440
16441
16442    for ax_var in ${list_funcs}
16443do :
16444
16445        as_ax_Var=`$as_echo "ac_cv_header_${ax_var}" | $as_tr_sh`
16446
16447        { eval $as_ax_Var=; unset $as_ax_Var;}
16448
16449
16450done
16451
16452    if test "x${with_libxc_incs}" != "x" -o "x${with_libxc_prefix}" != "x"; then
16453      CPPFLAGS="";LDFLAGS="";LIBS=""
16454      if test "x${with_libxc_incs}" != "x"; then
16455        CPPFLAGS="${with_libxc_incs}"
16456      else
16457        CPPFLAGS="-I${with_libxc_prefix}/include"
16458      fi
16459      for ac_header in ${list_headers}
16460do :
16461  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16462ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16463if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16464  cat >>confdefs.h <<_ACEOF
16465#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16466_ACEOF
16467 atp_libxc_headers_ok="yes"
16468else
16469  atp_libxc_headers_ok="no"
16470fi
16471
16472done
16473
16474      if test "${atp_libxc_headers_ok}" = "yes"; then
16475        with_libxc_incs="${CPPFLAGS}"
16476      else
16477        as_fn_error $? "LibXC header files were not found with the specified --with_libxc_incs/--with_libxc_prefix" "$LINENO" 5
16478      fi
16479    fi
16480
16481#   Libraries
16482    if test "x${with_libxc_libs}" != "x" -o "x${with_libxc_prefix}" != "x"; then
16483      CPPFLAGS="";LDFLAGS="";LIBS=""
16484      if test "x${with_libxc_libs}" != "x"; then
16485        LDFLAGS="${with_libxc_libs}"
16486        LIBS="${with_libxc_libs}"
16487      else
16488        LDFLAGS="-L${with_libxc_prefix}/lib -lxc"
16489        LIBS="-L${with_libxc_prefix}/lib -lxc"
16490      fi
16491
16492
16493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ${list_funcs}" >&5
16494$as_echo_n "checking for library containing ${list_funcs}... " >&6; }
16495
16496  ac_pgm1="" ; ac_pgm2=""
16497  for fnc in ${list_funcs}; do
16498    ac_pgm1="${ac_pgm1}
16499       interface
16500         integer(c_int) function ${fnc}() bind(C)
16501         use iso_c_binding, only : c_int
16502         end function ${fnc}
16503       end interface";
16504    ac_pgm2="${ac_pgm2}
16505       ok=${fnc}()";
16506  done
16507
16508  LDFLAGS_SAV="${LDFLAGS}"
16509  LIBS_SAV="${LIBS}"
16510  LDFLAGS="${LDFLAGS} -lm"
16511  LIBS="${LIBS} -lm"
16512
16513  ac_ext=${ac_fc_srcext-f}
16514ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16515ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
16516ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16517
16518
16519  cat > conftest.$ac_ext <<_ACEOF
16520      program main
16521
16522       use iso_c_binding
16523       integer(c_int) :: ok
16524       ${ac_pgm1}
16525       ${ac_pgm2}
16526
16527      end
16528_ACEOF
16529if ac_fn_fc_try_link "$LINENO"; then :
16530  lib_fc_ok="yes";atp_libxc_libs_ok="yes"
16531else
16532  lib_fc_ok="no";atp_libxc_libs_ok="no"
16533fi
16534rm -f core conftest.err conftest.$ac_objext \
16535    conftest$ac_exeext conftest.$ac_ext
16536
16537  ac_ext=c
16538ac_cpp='$CPP $CPPFLAGS'
16539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16541ac_compiler_gnu=$ac_cv_c_compiler_gnu
16542
16543
16544  LDFLAGS="${LDFLAGS_SAV}"
16545  LIBS="${LIBS_SAV}"
16546
16547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lib_fc_ok}" >&5
16548$as_echo "${lib_fc_ok}" >&6; }
16549
16550
16551      if test "${atp_libxc_libs_ok}" = "yes"; then
16552        with_libxc_libs="${LDFLAGS} -lm"
16553      else
16554        if test "x${with_libxc_prefix}" != "x"; then
16555          LDFLAGS="-L${with_libxc_prefix}/lib64 -lxc"
16556          LIBS="-L${with_libxc_prefix}/lib64 -lxc"
16557
16558
16559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ${list_funcs}" >&5
16560$as_echo_n "checking for library containing ${list_funcs}... " >&6; }
16561
16562  ac_pgm1="" ; ac_pgm2=""
16563  for fnc in ${list_funcs}; do
16564    ac_pgm1="${ac_pgm1}
16565       interface
16566         integer(c_int) function ${fnc}() bind(C)
16567         use iso_c_binding, only : c_int
16568         end function ${fnc}
16569       end interface";
16570    ac_pgm2="${ac_pgm2}
16571       ok=${fnc}()";
16572  done
16573
16574  LDFLAGS_SAV="${LDFLAGS}"
16575  LIBS_SAV="${LIBS}"
16576  LDFLAGS="${LDFLAGS} -lm"
16577  LIBS="${LIBS} -lm"
16578
16579  ac_ext=${ac_fc_srcext-f}
16580ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16581ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
16582ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16583
16584
16585  cat > conftest.$ac_ext <<_ACEOF
16586      program main
16587
16588       use iso_c_binding
16589       integer(c_int) :: ok
16590       ${ac_pgm1}
16591       ${ac_pgm2}
16592
16593      end
16594_ACEOF
16595if ac_fn_fc_try_link "$LINENO"; then :
16596  lib_fc_ok="yes";atp_libxc_libs_ok="yes"
16597else
16598  lib_fc_ok="no";atp_libxc_libs_ok="no"
16599fi
16600rm -f core conftest.err conftest.$ac_objext \
16601    conftest$ac_exeext conftest.$ac_ext
16602
16603  ac_ext=c
16604ac_cpp='$CPP $CPPFLAGS'
16605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16607ac_compiler_gnu=$ac_cv_c_compiler_gnu
16608
16609
16610  LDFLAGS="${LDFLAGS_SAV}"
16611  LIBS="${LIBS_SAV}"
16612
16613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lib_fc_ok}" >&5
16614$as_echo "${lib_fc_ok}" >&6; }
16615
16616
16617          if test "${atp_libxc_libs_ok}" = "yes"; then
16618            with_libxc_libs="${LDFLAGS} -lm"
16619          fi
16620        fi
16621      fi
16622      if test "${atp_libxc_libs_ok}" = "no"; then
16623        as_fn_error $? "LibXC library was not found with the specified --with_libxc_libs/--with_libxc_prefix option" "$LINENO" 5
16624      fi
16625    fi
16626  fi
16627
16628# Then, check in a list of directories
16629  if test "${atp_libxc_incs_ok}" = "no" -o "${atp_libxc_libs_ok}" = "no"; then
16630    if test "x${with_libxc_incs}" = "x" -o "x${with_libxc_libs}" = "x"; then
16631
16632#     Loop over dirs
16633	  for with_libxc_prefix in ${list_dirs}; do
16634		CPPFLAGS="";LDFLAGS="";LIBS=""
16635
16636    for ax_var in ${list_headers}
16637do :
16638
16639        as_ax_Var=`$as_echo "ac_cv_header_${ax_var}" | $as_tr_sh`
16640
16641        { eval $as_ax_Var=; unset $as_ax_Var;}
16642
16643
16644done
16645
16646
16647    for ax_var in ${list_funcs}
16648do :
16649
16650        as_ax_Var=`$as_echo "ac_cv_lib_${ax_var}" | $as_tr_sh`
16651
16652        { eval $as_ax_Var=; unset $as_ax_Var;}
16653
16654
16655done
16656
16657
16658#       Current environment
16659		if test "x${with_libxc_prefix}" = "xempty"; then
16660		  { $as_echo "$as_me:${as_lineno-$LINENO}: ...LibXC: trying with current environment" >&5
16661$as_echo "$as_me: ...LibXC: trying with current environment" >&6;}
16662
16663#         Headers
16664		  CPPFLAGS="";LDFLAGS="-lxc";LIBS="-lxc"
16665		  for ac_header in ${list_headers}
16666do :
16667  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16668ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16669if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16670  cat >>confdefs.h <<_ACEOF
16671#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16672_ACEOF
16673 atp_libxc_headers_ok="yes"
16674else
16675  atp_libxc_headers_ok="no"
16676fi
16677
16678done
16679
16680
16681#         Libraries
16682		  if test "${atp_libxc_headers_ok}" = "yes"; then
16683
16684
16685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ${list_funcs}" >&5
16686$as_echo_n "checking for library containing ${list_funcs}... " >&6; }
16687
16688  ac_pgm1="" ; ac_pgm2=""
16689  for fnc in ${list_funcs}; do
16690    ac_pgm1="${ac_pgm1}
16691       interface
16692         integer(c_int) function ${fnc}() bind(C)
16693         use iso_c_binding, only : c_int
16694         end function ${fnc}
16695       end interface";
16696    ac_pgm2="${ac_pgm2}
16697       ok=${fnc}()";
16698  done
16699
16700  LDFLAGS_SAV="${LDFLAGS}"
16701  LIBS_SAV="${LIBS}"
16702  LDFLAGS="${LDFLAGS} -lm"
16703  LIBS="${LIBS} -lm"
16704
16705  ac_ext=${ac_fc_srcext-f}
16706ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16707ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
16708ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16709
16710
16711  cat > conftest.$ac_ext <<_ACEOF
16712      program main
16713
16714       use iso_c_binding
16715       integer(c_int) :: ok
16716       ${ac_pgm1}
16717       ${ac_pgm2}
16718
16719      end
16720_ACEOF
16721if ac_fn_fc_try_link "$LINENO"; then :
16722  lib_fc_ok="yes";atp_libxc_libs_ok="yes"
16723else
16724  lib_fc_ok="no";atp_libxc_libs_ok="no"
16725fi
16726rm -f core conftest.err conftest.$ac_objext \
16727    conftest$ac_exeext conftest.$ac_ext
16728
16729  ac_ext=c
16730ac_cpp='$CPP $CPPFLAGS'
16731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16733ac_compiler_gnu=$ac_cv_c_compiler_gnu
16734
16735
16736  LDFLAGS="${LDFLAGS_SAV}"
16737  LIBS="${LIBS_SAV}"
16738
16739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lib_fc_ok}" >&5
16740$as_echo "${lib_fc_ok}" >&6; }
16741
16742
16743		  fi
16744
16745		else
16746
16747#         Other directories
16748		  { $as_echo "$as_me:${as_lineno-$LINENO}: ...LibXC: trying in ${with_libxc_prefix}" >&5
16749$as_echo "$as_me: ...LibXC: trying in ${with_libxc_prefix}" >&6;}
16750
16751#         Headers
16752		  if test "x${with_libxc_incs}" != "x"; then
16753			CPPFLAGS="${with_libxc_incs}"
16754		  else
16755			CPPFLAGS="-I${with_libxc_prefix}/include"
16756		  fi
16757		  atp_libxc_headers_ok="yes"
16758		  for ac_header in ${list_headers}
16759do :
16760  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16761ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16762if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16763  cat >>confdefs.h <<_ACEOF
16764#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16765_ACEOF
16766
16767else
16768  atp_libxc_headers_ok="no"
16769fi
16770
16771done
16772
16773
16774#         Libraries
16775		  if test "${atp_libxc_headers_ok}" = "yes"; then
16776			if test "x${with_libxc_libs}" != "x"; then
16777			  LDFLAGS="${with_libxc_libs}"
16778			  LIBS="${with_libxc_libs}"
16779			else
16780			  LDFLAGS="-L${with_libxc_prefix}/lib -lxc"
16781			  LIBS="-L${with_libxc_prefix}/lib -lxc"
16782			fi
16783
16784
16785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ${list_funcs}" >&5
16786$as_echo_n "checking for library containing ${list_funcs}... " >&6; }
16787
16788  ac_pgm1="" ; ac_pgm2=""
16789  for fnc in ${list_funcs}; do
16790    ac_pgm1="${ac_pgm1}
16791       interface
16792         integer(c_int) function ${fnc}() bind(C)
16793         use iso_c_binding, only : c_int
16794         end function ${fnc}
16795       end interface";
16796    ac_pgm2="${ac_pgm2}
16797       ok=${fnc}()";
16798  done
16799
16800  LDFLAGS_SAV="${LDFLAGS}"
16801  LIBS_SAV="${LIBS}"
16802  LDFLAGS="${LDFLAGS} -lm"
16803  LIBS="${LIBS} -lm"
16804
16805  ac_ext=${ac_fc_srcext-f}
16806ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16807ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
16808ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16809
16810
16811  cat > conftest.$ac_ext <<_ACEOF
16812      program main
16813
16814       use iso_c_binding
16815       integer(c_int) :: ok
16816       ${ac_pgm1}
16817       ${ac_pgm2}
16818
16819      end
16820_ACEOF
16821if ac_fn_fc_try_link "$LINENO"; then :
16822  lib_fc_ok="yes";atp_libxc_libs_ok="yes"
16823else
16824  lib_fc_ok="no";atp_libxc_libs_ok="no"
16825fi
16826rm -f core conftest.err conftest.$ac_objext \
16827    conftest$ac_exeext conftest.$ac_ext
16828
16829  ac_ext=c
16830ac_cpp='$CPP $CPPFLAGS'
16831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16833ac_compiler_gnu=$ac_cv_c_compiler_gnu
16834
16835
16836  LDFLAGS="${LDFLAGS_SAV}"
16837  LIBS="${LIBS_SAV}"
16838
16839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lib_fc_ok}" >&5
16840$as_echo "${lib_fc_ok}" >&6; }
16841
16842
16843			if test "${atp_libxc_libs_ok}" != "yes"; then
16844			  if test "x${with_libxc_prefix}" != "x" ; then
16845			    LDFLAGS="-L${with_libxc_prefix}/lib64 -lxc"
16846			    LIBS="-L${with_libxc_prefix}/lib64 -lxc"
16847			    atp_libxc_libs_ok="yes"
16848
16849
16850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ${list_funcs}" >&5
16851$as_echo_n "checking for library containing ${list_funcs}... " >&6; }
16852
16853  ac_pgm1="" ; ac_pgm2=""
16854  for fnc in ${list_funcs}; do
16855    ac_pgm1="${ac_pgm1}
16856       interface
16857         integer(c_int) function ${fnc}() bind(C)
16858         use iso_c_binding, only : c_int
16859         end function ${fnc}
16860       end interface";
16861    ac_pgm2="${ac_pgm2}
16862       ok=${fnc}()";
16863  done
16864
16865  LDFLAGS_SAV="${LDFLAGS}"
16866  LIBS_SAV="${LIBS}"
16867  LDFLAGS="${LDFLAGS} -lm"
16868  LIBS="${LIBS} -lm"
16869
16870  ac_ext=${ac_fc_srcext-f}
16871ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16872ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
16873ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16874
16875
16876  cat > conftest.$ac_ext <<_ACEOF
16877      program main
16878
16879       use iso_c_binding
16880       integer(c_int) :: ok
16881       ${ac_pgm1}
16882       ${ac_pgm2}
16883
16884      end
16885_ACEOF
16886if ac_fn_fc_try_link "$LINENO"; then :
16887  lib_fc_ok="yes";atp_libxc_libs_ok="yes"
16888else
16889  lib_fc_ok="no";atp_libxc_libs_ok="no"
16890fi
16891rm -f core conftest.err conftest.$ac_objext \
16892    conftest$ac_exeext conftest.$ac_ext
16893
16894  ac_ext=c
16895ac_cpp='$CPP $CPPFLAGS'
16896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16898ac_compiler_gnu=$ac_cv_c_compiler_gnu
16899
16900
16901  LDFLAGS="${LDFLAGS_SAV}"
16902  LIBS="${LIBS_SAV}"
16903
16904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lib_fc_ok}" >&5
16905$as_echo "${lib_fc_ok}" >&6; }
16906
16907
16908              fi
16909			fi
16910		  fi
16911		fi
16912
16913#       If found, tore final values of flags
16914        if test "${atp_libxc_headers_ok}" = "yes" -a "${atp_libxc_libs_ok}" = "yes"; then
16915	      { $as_echo "$as_me:${as_lineno-$LINENO}: => libXC library was found on the system" >&5
16916$as_echo "$as_me: => libXC library was found on the system" >&6;}
16917		  with_libxc_incs="${CPPFLAGS}"
16918		  with_libxc_libs="${LDFLAGS} -lm"
16919		  break
16920		fi
16921
16922	  done
16923
16924    fi
16925  fi
16926
16927  ac_ext=c
16928ac_cpp='$CPP $CPPFLAGS'
16929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16931ac_compiler_gnu=$ac_cv_c_compiler_gnu
16932
16933
16934  CPPFLAGS="${atp_saved_CPPFLAGS}"
16935  LDFLAGS="${atp_saved_LDFLAGS}"
16936  LIBS="${atp_saved_LIBS}"
16937
16938  if test "${atp_libxc_headers_ok}" = "yes" -a "${atp_libxc_libs_ok}" = "yes"; then
16939    atp_libxc_found="yes"
16940    CPPFLAGS="${CPPFLAGS} ${with_libxc_incs}"
16941    LDFLAGS="${with_libxc_libs} ${LDFLAGS}"
16942    LIBS="${with_libxc_libs} ${LIBS}"
16943    { $as_echo "$as_me:${as_lineno-$LINENO}: => A LibXC library was found on the system" >&5
16944$as_echo "$as_me: => A LibXC library was found on the system" >&6;}
16945  else
16946    atp_libxc_found="no"
16947    as_fn_error $? ">>>> No LibXC library (libxc.*) was found on the system!" "$LINENO" 5
16948  fi
16949
16950
16951
16952
16953  atp_libxc_ok="unknown"
16954
16955  if test "${fc_has_iso_c_binding}" = "no"; then
16956    atp_libxc_ok="no"
16957    as_fn_error $? ">>>> LibXC library needs a Fortran 2003 compiler supporting ISO_C_BINDINGS!" "$LINENO" 5
16958  fi
16959
16960  atp_saved_FCFLAGS="${FCFLAGS}"
16961  atp_saved_LDFLAGS="${LDFLAGS}"
16962  atp_saved_LIBS="${LIBS}"
16963  FCFLAGS="${atp_saved_FCFLAGS} ${CPPFLAGS}"
16964  LDFLAGS="${atp_saved_LDFLAGS} -lm"
16965  LIBS="${atp_saved_LIBS} -lm"
16966
16967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LibXC library works" >&5
16968$as_echo_n "checking whether LibXC library works... " >&6; }
16969
16970  ac_ext=c
16971ac_cpp='$CPP $CPPFLAGS'
16972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16974ac_compiler_gnu=$ac_cv_c_compiler_gnu
16975
16976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977/* end confdefs.h.  */
16978#include "xc.h"
16979      #include "xc_funcs.h"
16980int
16981main ()
16982{
16983
16984       xc_func_type func;
16985       double exc[5];
16986       double rho[3] = {0.1, 0.2, 0.3};
16987       int err,func_id = 1;
16988       err=xc_func_init(&func, func_id, XC_UNPOLARIZED);
16989       xc_lda_exc(&func, 3, rho, exc);
16990
16991  ;
16992  return 0;
16993}
16994_ACEOF
16995if ac_fn_c_try_link "$LINENO"; then :
16996  atp_libxc_ok="yes"
16997else
16998  atp_libxc_ok="no"
16999fi
17000rm -f core conftest.err conftest.$ac_objext \
17001    conftest$ac_exeext conftest.$ac_ext
17002  ac_ext=c
17003ac_cpp='$CPP $CPPFLAGS'
17004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17006ac_compiler_gnu=$ac_cv_c_compiler_gnu
17007
17008
17009  if test "${atp_libxc_ok}" = "yes"; then
17010    ac_ext=${ac_fc_srcext-f}
17011ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
17012ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
17013ac_compiler_gnu=$ac_cv_fc_compiler_gnu
17014
17015    cat > conftest.$ac_ext <<_ACEOF
17016      program main
17017
17018       use iso_c_binding
17019       integer(c_int) :: ok
17020       interface
17021         integer(c_int) function xc_func_init() bind(C)
17022         use iso_c_binding, only : c_int
17023         end function xc_func_init
17024       end interface
17025       ok=xc_func_init()
17026
17027      end
17028_ACEOF
17029if ac_fn_fc_try_link "$LINENO"; then :
17030  atp_libxc_ok="yes"
17031else
17032  atp_libxc_ok="no"
17033fi
17034rm -f core conftest.err conftest.$ac_objext \
17035    conftest$ac_exeext conftest.$ac_ext
17036    ac_ext=c
17037ac_cpp='$CPP $CPPFLAGS'
17038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17040ac_compiler_gnu=$ac_cv_c_compiler_gnu
17041
17042  fi
17043
17044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${atp_libxc_ok}" >&5
17045$as_echo "${atp_libxc_ok}" >&6; }
17046
17047  FCFLAGS="${atp_saved_FCFLAGS}"
17048  LDFLAGS="${atp_saved_LDFLAGS}"
17049  LIBSS="${atp_saved_LIBS}"
17050
17051  if test "${atp_libxc_ok}" = "yes"; then
17052
17053$as_echo "#define HAVE_LIBXC 1" >>confdefs.h
17054
17055    { $as_echo "$as_me:${as_lineno-$LINENO}: ===== LibXC library OK for use" >&5
17056$as_echo "$as_me: ===== LibXC library OK for use" >&6;}
17057    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
17058$as_echo "$as_me: " >&6;}
17059  else
17060    as_fn_error $? "No working LibXC library has been found!" "$LINENO" 5
17061  fi
17062
17063
17064fi
17065
17066                    # ------------------------------------ #
17067
17068#
17069# Output configuration
17070#
17071
17072{ $as_echo "$as_me:${as_lineno-$LINENO}: FC       = ${FC}" >&5
17073$as_echo "$as_me: FC       = ${FC}" >&6;}
17074{ $as_echo "$as_me:${as_lineno-$LINENO}: CPPFLAGS = ${CPPFLAGS}" >&5
17075$as_echo "$as_me: CPPFLAGS = ${CPPFLAGS}" >&6;}
17076{ $as_echo "$as_me:${as_lineno-$LINENO}: FCFLAGS  = ${FCFLAGS}" >&5
17077$as_echo "$as_me: FCFLAGS  = ${FCFLAGS}" >&6;}
17078{ $as_echo "$as_me:${as_lineno-$LINENO}: LDFLAGS  = ${LDFLAGS}" >&5
17079$as_echo "$as_me: LDFLAGS  = ${LDFLAGS}" >&6;}
17080{ $as_echo "$as_me:${as_lineno-$LINENO}: LIBS     = ${LIBS}" >&5
17081$as_echo "$as_me: LIBS     = ${LIBS}" >&6;}
17082
17083ac_config_files="$ac_config_files Makefile src/Makefile src/pkginfo.f90"
17084
17085cat >confcache <<\_ACEOF
17086# This file is a shell script that caches the results of configure
17087# tests run on this system so they can be shared between configure
17088# scripts and configure runs, see configure's option --config-cache.
17089# It is not useful on other systems.  If it contains results you don't
17090# want to keep, you may remove or edit it.
17091#
17092# config.status only pays attention to the cache file if you give it
17093# the --recheck option to rerun configure.
17094#
17095# `ac_cv_env_foo' variables (set or unset) will be overridden when
17096# loading this file, other *unset* `ac_cv_foo' will be assigned the
17097# following values.
17098
17099_ACEOF
17100
17101# The following way of writing the cache mishandles newlines in values,
17102# but we know of no workaround that is simple, portable, and efficient.
17103# So, we kill variables containing newlines.
17104# Ultrix sh set writes to stderr and can't be redirected directly,
17105# and sets the high bit in the cache file unless we assign to the vars.
17106(
17107  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17108    eval ac_val=\$$ac_var
17109    case $ac_val in #(
17110    *${as_nl}*)
17111      case $ac_var in #(
17112      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17113$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17114      esac
17115      case $ac_var in #(
17116      _ | IFS | as_nl) ;; #(
17117      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17118      *) { eval $ac_var=; unset $ac_var;} ;;
17119      esac ;;
17120    esac
17121  done
17122
17123  (set) 2>&1 |
17124    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17125    *${as_nl}ac_space=\ *)
17126      # `set' does not quote correctly, so add quotes: double-quote
17127      # substitution turns \\\\ into \\, and sed turns \\ into \.
17128      sed -n \
17129	"s/'/'\\\\''/g;
17130	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17131      ;; #(
17132    *)
17133      # `set' quotes correctly as required by POSIX, so do not add quotes.
17134      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17135      ;;
17136    esac |
17137    sort
17138) |
17139  sed '
17140     /^ac_cv_env_/b end
17141     t clear
17142     :clear
17143     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17144     t end
17145     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17146     :end' >>confcache
17147if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17148  if test -w "$cache_file"; then
17149    if test "x$cache_file" != "x/dev/null"; then
17150      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17151$as_echo "$as_me: updating cache $cache_file" >&6;}
17152      if test ! -f "$cache_file" || test -h "$cache_file"; then
17153	cat confcache >"$cache_file"
17154      else
17155        case $cache_file in #(
17156        */* | ?:*)
17157	  mv -f confcache "$cache_file"$$ &&
17158	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17159        *)
17160	  mv -f confcache "$cache_file" ;;
17161	esac
17162      fi
17163    fi
17164  else
17165    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17166$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17167  fi
17168fi
17169rm -f confcache
17170
17171test "x$prefix" = xNONE && prefix=$ac_default_prefix
17172# Let make expand exec_prefix.
17173test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17174
17175DEFS=-DHAVE_CONFIG_H
17176
17177ac_libobjs=
17178ac_ltlibobjs=
17179for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17180  # 1. Remove the extension, and $U if already installed.
17181  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17182  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17183  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17184  #    will be set to the directory where LIBOBJS objects are built.
17185  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17186  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17187done
17188LIBOBJS=$ac_libobjs
17189
17190LTLIBOBJS=$ac_ltlibobjs
17191
17192
17193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17194$as_echo_n "checking that generated files are newer than configure... " >&6; }
17195   if test -n "$am_sleep_pid"; then
17196     # Hide warnings about reused PIDs.
17197     wait $am_sleep_pid 2>/dev/null
17198   fi
17199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17200$as_echo "done" >&6; }
17201 if test -n "$EXEEXT"; then
17202  am__EXEEXT_TRUE=
17203  am__EXEEXT_FALSE='#'
17204else
17205  am__EXEEXT_TRUE='#'
17206  am__EXEEXT_FALSE=
17207fi
17208
17209if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17210  as_fn_error $? "conditional \"AMDEP\" was never defined.
17211Usually this means the macro was only invoked conditionally." "$LINENO" 5
17212fi
17213if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17214  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17215Usually this means the macro was only invoked conditionally." "$LINENO" 5
17216fi
17217
17218: "${CONFIG_STATUS=./config.status}"
17219ac_write_fail=0
17220ac_clean_files_save=$ac_clean_files
17221ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17222{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17223$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17224as_write_fail=0
17225cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17226#! $SHELL
17227# Generated by $as_me.
17228# Run this file to recreate the current configuration.
17229# Compiler output produced by configure, useful for debugging
17230# configure, is in config.log if it exists.
17231
17232debug=false
17233ac_cs_recheck=false
17234ac_cs_silent=false
17235
17236SHELL=\${CONFIG_SHELL-$SHELL}
17237export SHELL
17238_ASEOF
17239cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17240## -------------------- ##
17241## M4sh Initialization. ##
17242## -------------------- ##
17243
17244# Be more Bourne compatible
17245DUALCASE=1; export DUALCASE # for MKS sh
17246if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17247  emulate sh
17248  NULLCMD=:
17249  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17250  # is contrary to our usage.  Disable this feature.
17251  alias -g '${1+"$@"}'='"$@"'
17252  setopt NO_GLOB_SUBST
17253else
17254  case `(set -o) 2>/dev/null` in #(
17255  *posix*) :
17256    set -o posix ;; #(
17257  *) :
17258     ;;
17259esac
17260fi
17261
17262
17263as_nl='
17264'
17265export as_nl
17266# Printing a long string crashes Solaris 7 /usr/bin/printf.
17267as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17268as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17269as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17270# Prefer a ksh shell builtin over an external printf program on Solaris,
17271# but without wasting forks for bash or zsh.
17272if test -z "$BASH_VERSION$ZSH_VERSION" \
17273    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17274  as_echo='print -r --'
17275  as_echo_n='print -rn --'
17276elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17277  as_echo='printf %s\n'
17278  as_echo_n='printf %s'
17279else
17280  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17281    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17282    as_echo_n='/usr/ucb/echo -n'
17283  else
17284    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17285    as_echo_n_body='eval
17286      arg=$1;
17287      case $arg in #(
17288      *"$as_nl"*)
17289	expr "X$arg" : "X\\(.*\\)$as_nl";
17290	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17291      esac;
17292      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17293    '
17294    export as_echo_n_body
17295    as_echo_n='sh -c $as_echo_n_body as_echo'
17296  fi
17297  export as_echo_body
17298  as_echo='sh -c $as_echo_body as_echo'
17299fi
17300
17301# The user is always right.
17302if test "${PATH_SEPARATOR+set}" != set; then
17303  PATH_SEPARATOR=:
17304  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17305    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17306      PATH_SEPARATOR=';'
17307  }
17308fi
17309
17310
17311# IFS
17312# We need space, tab and new line, in precisely that order.  Quoting is
17313# there to prevent editors from complaining about space-tab.
17314# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17315# splitting by setting IFS to empty value.)
17316IFS=" ""	$as_nl"
17317
17318# Find who we are.  Look in the path if we contain no directory separator.
17319as_myself=
17320case $0 in #((
17321  *[\\/]* ) as_myself=$0 ;;
17322  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17323for as_dir in $PATH
17324do
17325  IFS=$as_save_IFS
17326  test -z "$as_dir" && as_dir=.
17327    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17328  done
17329IFS=$as_save_IFS
17330
17331     ;;
17332esac
17333# We did not find ourselves, most probably we were run as `sh COMMAND'
17334# in which case we are not to be found in the path.
17335if test "x$as_myself" = x; then
17336  as_myself=$0
17337fi
17338if test ! -f "$as_myself"; then
17339  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17340  exit 1
17341fi
17342
17343# Unset variables that we do not need and which cause bugs (e.g. in
17344# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17345# suppresses any "Segmentation fault" message there.  '((' could
17346# trigger a bug in pdksh 5.2.14.
17347for as_var in BASH_ENV ENV MAIL MAILPATH
17348do eval test x\${$as_var+set} = xset \
17349  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17350done
17351PS1='$ '
17352PS2='> '
17353PS4='+ '
17354
17355# NLS nuisances.
17356LC_ALL=C
17357export LC_ALL
17358LANGUAGE=C
17359export LANGUAGE
17360
17361# CDPATH.
17362(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17363
17364
17365# as_fn_error STATUS ERROR [LINENO LOG_FD]
17366# ----------------------------------------
17367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17369# script with STATUS, using 1 if that was 0.
17370as_fn_error ()
17371{
17372  as_status=$1; test $as_status -eq 0 && as_status=1
17373  if test "$4"; then
17374    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17375    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17376  fi
17377  $as_echo "$as_me: error: $2" >&2
17378  as_fn_exit $as_status
17379} # as_fn_error
17380
17381
17382# as_fn_set_status STATUS
17383# -----------------------
17384# Set $? to STATUS, without forking.
17385as_fn_set_status ()
17386{
17387  return $1
17388} # as_fn_set_status
17389
17390# as_fn_exit STATUS
17391# -----------------
17392# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17393as_fn_exit ()
17394{
17395  set +e
17396  as_fn_set_status $1
17397  exit $1
17398} # as_fn_exit
17399
17400# as_fn_unset VAR
17401# ---------------
17402# Portably unset VAR.
17403as_fn_unset ()
17404{
17405  { eval $1=; unset $1;}
17406}
17407as_unset=as_fn_unset
17408# as_fn_append VAR VALUE
17409# ----------------------
17410# Append the text in VALUE to the end of the definition contained in VAR. Take
17411# advantage of any shell optimizations that allow amortized linear growth over
17412# repeated appends, instead of the typical quadratic growth present in naive
17413# implementations.
17414if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17415  eval 'as_fn_append ()
17416  {
17417    eval $1+=\$2
17418  }'
17419else
17420  as_fn_append ()
17421  {
17422    eval $1=\$$1\$2
17423  }
17424fi # as_fn_append
17425
17426# as_fn_arith ARG...
17427# ------------------
17428# Perform arithmetic evaluation on the ARGs, and store the result in the
17429# global $as_val. Take advantage of shells that can avoid forks. The arguments
17430# must be portable across $(()) and expr.
17431if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17432  eval 'as_fn_arith ()
17433  {
17434    as_val=$(( $* ))
17435  }'
17436else
17437  as_fn_arith ()
17438  {
17439    as_val=`expr "$@" || test $? -eq 1`
17440  }
17441fi # as_fn_arith
17442
17443
17444if expr a : '\(a\)' >/dev/null 2>&1 &&
17445   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17446  as_expr=expr
17447else
17448  as_expr=false
17449fi
17450
17451if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17452  as_basename=basename
17453else
17454  as_basename=false
17455fi
17456
17457if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17458  as_dirname=dirname
17459else
17460  as_dirname=false
17461fi
17462
17463as_me=`$as_basename -- "$0" ||
17464$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17465	 X"$0" : 'X\(//\)$' \| \
17466	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17467$as_echo X/"$0" |
17468    sed '/^.*\/\([^/][^/]*\)\/*$/{
17469	    s//\1/
17470	    q
17471	  }
17472	  /^X\/\(\/\/\)$/{
17473	    s//\1/
17474	    q
17475	  }
17476	  /^X\/\(\/\).*/{
17477	    s//\1/
17478	    q
17479	  }
17480	  s/.*/./; q'`
17481
17482# Avoid depending upon Character Ranges.
17483as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17484as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17485as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17486as_cr_digits='0123456789'
17487as_cr_alnum=$as_cr_Letters$as_cr_digits
17488
17489ECHO_C= ECHO_N= ECHO_T=
17490case `echo -n x` in #(((((
17491-n*)
17492  case `echo 'xy\c'` in
17493  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17494  xy)  ECHO_C='\c';;
17495  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17496       ECHO_T='	';;
17497  esac;;
17498*)
17499  ECHO_N='-n';;
17500esac
17501
17502rm -f conf$$ conf$$.exe conf$$.file
17503if test -d conf$$.dir; then
17504  rm -f conf$$.dir/conf$$.file
17505else
17506  rm -f conf$$.dir
17507  mkdir conf$$.dir 2>/dev/null
17508fi
17509if (echo >conf$$.file) 2>/dev/null; then
17510  if ln -s conf$$.file conf$$ 2>/dev/null; then
17511    as_ln_s='ln -s'
17512    # ... but there are two gotchas:
17513    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17514    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17515    # In both cases, we have to default to `cp -pR'.
17516    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17517      as_ln_s='cp -pR'
17518  elif ln conf$$.file conf$$ 2>/dev/null; then
17519    as_ln_s=ln
17520  else
17521    as_ln_s='cp -pR'
17522  fi
17523else
17524  as_ln_s='cp -pR'
17525fi
17526rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17527rmdir conf$$.dir 2>/dev/null
17528
17529
17530# as_fn_mkdir_p
17531# -------------
17532# Create "$as_dir" as a directory, including parents if necessary.
17533as_fn_mkdir_p ()
17534{
17535
17536  case $as_dir in #(
17537  -*) as_dir=./$as_dir;;
17538  esac
17539  test -d "$as_dir" || eval $as_mkdir_p || {
17540    as_dirs=
17541    while :; do
17542      case $as_dir in #(
17543      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17544      *) as_qdir=$as_dir;;
17545      esac
17546      as_dirs="'$as_qdir' $as_dirs"
17547      as_dir=`$as_dirname -- "$as_dir" ||
17548$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17549	 X"$as_dir" : 'X\(//\)[^/]' \| \
17550	 X"$as_dir" : 'X\(//\)$' \| \
17551	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17552$as_echo X"$as_dir" |
17553    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17554	    s//\1/
17555	    q
17556	  }
17557	  /^X\(\/\/\)[^/].*/{
17558	    s//\1/
17559	    q
17560	  }
17561	  /^X\(\/\/\)$/{
17562	    s//\1/
17563	    q
17564	  }
17565	  /^X\(\/\).*/{
17566	    s//\1/
17567	    q
17568	  }
17569	  s/.*/./; q'`
17570      test -d "$as_dir" && break
17571    done
17572    test -z "$as_dirs" || eval "mkdir $as_dirs"
17573  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17574
17575
17576} # as_fn_mkdir_p
17577if mkdir -p . 2>/dev/null; then
17578  as_mkdir_p='mkdir -p "$as_dir"'
17579else
17580  test -d ./-p && rmdir ./-p
17581  as_mkdir_p=false
17582fi
17583
17584
17585# as_fn_executable_p FILE
17586# -----------------------
17587# Test if FILE is an executable regular file.
17588as_fn_executable_p ()
17589{
17590  test -f "$1" && test -x "$1"
17591} # as_fn_executable_p
17592as_test_x='test -x'
17593as_executable_p=as_fn_executable_p
17594
17595# Sed expression to map a string onto a valid CPP name.
17596as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17597
17598# Sed expression to map a string onto a valid variable name.
17599as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17600
17601
17602exec 6>&1
17603## ----------------------------------- ##
17604## Main body of $CONFIG_STATUS script. ##
17605## ----------------------------------- ##
17606_ASEOF
17607test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17608
17609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17610# Save the log message, to keep $0 and so on meaningful, and to
17611# report actual input values of CONFIG_FILES etc. instead of their
17612# values after options handling.
17613ac_log="
17614This file was extended by AtomPAW $as_me 4.1.1.0, which was
17615generated by GNU Autoconf 2.69.  Invocation command line was
17616
17617  CONFIG_FILES    = $CONFIG_FILES
17618  CONFIG_HEADERS  = $CONFIG_HEADERS
17619  CONFIG_LINKS    = $CONFIG_LINKS
17620  CONFIG_COMMANDS = $CONFIG_COMMANDS
17621  $ $0 $@
17622
17623on `(hostname || uname -n) 2>/dev/null | sed 1q`
17624"
17625
17626_ACEOF
17627
17628case $ac_config_files in *"
17629"*) set x $ac_config_files; shift; ac_config_files=$*;;
17630esac
17631
17632case $ac_config_headers in *"
17633"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17634esac
17635
17636
17637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17638# Files that config.status was made for.
17639config_files="$ac_config_files"
17640config_headers="$ac_config_headers"
17641config_commands="$ac_config_commands"
17642
17643_ACEOF
17644
17645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17646ac_cs_usage="\
17647\`$as_me' instantiates files and other configuration actions
17648from templates according to the current configuration.  Unless the files
17649and actions are specified as TAGs, all are instantiated by default.
17650
17651Usage: $0 [OPTION]... [TAG]...
17652
17653  -h, --help       print this help, then exit
17654  -V, --version    print version number and configuration settings, then exit
17655      --config     print configuration, then exit
17656  -q, --quiet, --silent
17657                   do not print progress messages
17658  -d, --debug      don't remove temporary files
17659      --recheck    update $as_me by reconfiguring in the same conditions
17660      --file=FILE[:TEMPLATE]
17661                   instantiate the configuration file FILE
17662      --header=FILE[:TEMPLATE]
17663                   instantiate the configuration header FILE
17664
17665Configuration files:
17666$config_files
17667
17668Configuration headers:
17669$config_headers
17670
17671Configuration commands:
17672$config_commands
17673
17674Report bugs to <natalie@wfu.edu, marc.torrent@cea.fr>."
17675
17676_ACEOF
17677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17678ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17679ac_cs_version="\\
17680AtomPAW config.status 4.1.1.0
17681configured by $0, generated by GNU Autoconf 2.69,
17682  with options \\"\$ac_cs_config\\"
17683
17684Copyright (C) 2012 Free Software Foundation, Inc.
17685This config.status script is free software; the Free Software Foundation
17686gives unlimited permission to copy, distribute and modify it."
17687
17688ac_pwd='$ac_pwd'
17689srcdir='$srcdir'
17690INSTALL='$INSTALL'
17691MKDIR_P='$MKDIR_P'
17692AWK='$AWK'
17693test -n "\$AWK" || AWK=awk
17694_ACEOF
17695
17696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17697# The default lists apply if the user does not specify any file.
17698ac_need_defaults=:
17699while test $# != 0
17700do
17701  case $1 in
17702  --*=?*)
17703    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17704    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17705    ac_shift=:
17706    ;;
17707  --*=)
17708    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17709    ac_optarg=
17710    ac_shift=:
17711    ;;
17712  *)
17713    ac_option=$1
17714    ac_optarg=$2
17715    ac_shift=shift
17716    ;;
17717  esac
17718
17719  case $ac_option in
17720  # Handling of the options.
17721  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17722    ac_cs_recheck=: ;;
17723  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17724    $as_echo "$ac_cs_version"; exit ;;
17725  --config | --confi | --conf | --con | --co | --c )
17726    $as_echo "$ac_cs_config"; exit ;;
17727  --debug | --debu | --deb | --de | --d | -d )
17728    debug=: ;;
17729  --file | --fil | --fi | --f )
17730    $ac_shift
17731    case $ac_optarg in
17732    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17733    '') as_fn_error $? "missing file argument" ;;
17734    esac
17735    as_fn_append CONFIG_FILES " '$ac_optarg'"
17736    ac_need_defaults=false;;
17737  --header | --heade | --head | --hea )
17738    $ac_shift
17739    case $ac_optarg in
17740    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17741    esac
17742    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17743    ac_need_defaults=false;;
17744  --he | --h)
17745    # Conflict between --help and --header
17746    as_fn_error $? "ambiguous option: \`$1'
17747Try \`$0 --help' for more information.";;
17748  --help | --hel | -h )
17749    $as_echo "$ac_cs_usage"; exit ;;
17750  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17751  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17752    ac_cs_silent=: ;;
17753
17754  # This is an error.
17755  -*) as_fn_error $? "unrecognized option: \`$1'
17756Try \`$0 --help' for more information." ;;
17757
17758  *) as_fn_append ac_config_targets " $1"
17759     ac_need_defaults=false ;;
17760
17761  esac
17762  shift
17763done
17764
17765ac_configure_extra_args=
17766
17767if $ac_cs_silent; then
17768  exec 6>/dev/null
17769  ac_configure_extra_args="$ac_configure_extra_args --silent"
17770fi
17771
17772_ACEOF
17773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17774if \$ac_cs_recheck; then
17775  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17776  shift
17777  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17778  CONFIG_SHELL='$SHELL'
17779  export CONFIG_SHELL
17780  exec "\$@"
17781fi
17782
17783_ACEOF
17784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17785exec 5>>config.log
17786{
17787  echo
17788  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17789## Running $as_me. ##
17790_ASBOX
17791  $as_echo "$ac_log"
17792} >&5
17793
17794_ACEOF
17795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17796#
17797# INIT-COMMANDS
17798#
17799AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17800
17801
17802# The HP-UX ksh and POSIX shell print the target directory to stdout
17803# if CDPATH is set.
17804(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17805
17806sed_quote_subst='$sed_quote_subst'
17807double_quote_subst='$double_quote_subst'
17808delay_variable_subst='$delay_variable_subst'
17809macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17810macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17811enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17812enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17813pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17814enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17815SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17816ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17817PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17818host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17819host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17820host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17821build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17822build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17823build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17824SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17825Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17826GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17827EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17828FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17829LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17830NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17831LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17832max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17833ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17834exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17835lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17836lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17837lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17838lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17839lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17840reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17841reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17842OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17843deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17844file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17845file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17846want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17847DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17848sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17849AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17850AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17851archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17852STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17853RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17854old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17855old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17856old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17857lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17858CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17859CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17860compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17861GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17862lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17863lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17864lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17865lt_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"`'
17866nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17867lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17868objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17869MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17870lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17871lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17872lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17873lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17874lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17875need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17876MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17877DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17878NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17879LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17880OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17881OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17882libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17883shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17884extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17885archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17886enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17887export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17888whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17889compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17890old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17891old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17892archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17893archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17894module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17895module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17896with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17897allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17898no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17899hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17900hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17901hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17902hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17903hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17904hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17905hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17906inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17907link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17908always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17909export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17910exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17911include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17912prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17913postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17914file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17915variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17916need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17917need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17918version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17919runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17920shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17921shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17922libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17923library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17924soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17925install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17926postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17927postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17928finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17929finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17930hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17931sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17932sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17933hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17934enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17935enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17936enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17937old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17938striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17939compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17940predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17941postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17942predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17943postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17944compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17945LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17946reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17947reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17948old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17949compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17950GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17951lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17952lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17953lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17954lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17955lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17956archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17957enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17958export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17959whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17960compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17961old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17962old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17963archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17964archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17965module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17966module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17967with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17968allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17969no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17970hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17971hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17972hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17973hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17974hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17975hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17976hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17977inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17978link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17979always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17980export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17981exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17982include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17983prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17984postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17985file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17986hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17987compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17988predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17989postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17990predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17991postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17992compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17993
17994LTCC='$LTCC'
17995LTCFLAGS='$LTCFLAGS'
17996compiler='$compiler_DEFAULT'
17997
17998# A function that is used when there is no print builtin or printf.
17999func_fallback_echo ()
18000{
18001  eval 'cat <<_LTECHO_EOF
18002\$1
18003_LTECHO_EOF'
18004}
18005
18006# Quote evaled strings.
18007for var in SHELL \
18008ECHO \
18009PATH_SEPARATOR \
18010SED \
18011GREP \
18012EGREP \
18013FGREP \
18014LD \
18015NM \
18016LN_S \
18017lt_SP2NL \
18018lt_NL2SP \
18019reload_flag \
18020OBJDUMP \
18021deplibs_check_method \
18022file_magic_cmd \
18023file_magic_glob \
18024want_nocaseglob \
18025DLLTOOL \
18026sharedlib_from_linklib_cmd \
18027AR \
18028AR_FLAGS \
18029archiver_list_spec \
18030STRIP \
18031RANLIB \
18032CC \
18033CFLAGS \
18034compiler \
18035lt_cv_sys_global_symbol_pipe \
18036lt_cv_sys_global_symbol_to_cdecl \
18037lt_cv_sys_global_symbol_to_c_name_address \
18038lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18039nm_file_list_spec \
18040lt_prog_compiler_no_builtin_flag \
18041lt_prog_compiler_pic \
18042lt_prog_compiler_wl \
18043lt_prog_compiler_static \
18044lt_cv_prog_compiler_c_o \
18045need_locks \
18046MANIFEST_TOOL \
18047DSYMUTIL \
18048NMEDIT \
18049LIPO \
18050OTOOL \
18051OTOOL64 \
18052shrext_cmds \
18053export_dynamic_flag_spec \
18054whole_archive_flag_spec \
18055compiler_needs_object \
18056with_gnu_ld \
18057allow_undefined_flag \
18058no_undefined_flag \
18059hardcode_libdir_flag_spec \
18060hardcode_libdir_separator \
18061exclude_expsyms \
18062include_expsyms \
18063file_list_spec \
18064variables_saved_for_relink \
18065libname_spec \
18066library_names_spec \
18067soname_spec \
18068install_override_mode \
18069finish_eval \
18070old_striplib \
18071striplib \
18072compiler_lib_search_dirs \
18073predep_objects \
18074postdep_objects \
18075predeps \
18076postdeps \
18077compiler_lib_search_path \
18078LD_FC \
18079reload_flag_FC \
18080compiler_FC \
18081lt_prog_compiler_no_builtin_flag_FC \
18082lt_prog_compiler_pic_FC \
18083lt_prog_compiler_wl_FC \
18084lt_prog_compiler_static_FC \
18085lt_cv_prog_compiler_c_o_FC \
18086export_dynamic_flag_spec_FC \
18087whole_archive_flag_spec_FC \
18088compiler_needs_object_FC \
18089with_gnu_ld_FC \
18090allow_undefined_flag_FC \
18091no_undefined_flag_FC \
18092hardcode_libdir_flag_spec_FC \
18093hardcode_libdir_separator_FC \
18094exclude_expsyms_FC \
18095include_expsyms_FC \
18096file_list_spec_FC \
18097compiler_lib_search_dirs_FC \
18098predep_objects_FC \
18099postdep_objects_FC \
18100predeps_FC \
18101postdeps_FC \
18102compiler_lib_search_path_FC; do
18103    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18104    *[\\\\\\\`\\"\\\$]*)
18105      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18106      ;;
18107    *)
18108      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18109      ;;
18110    esac
18111done
18112
18113# Double-quote double-evaled strings.
18114for var in reload_cmds \
18115old_postinstall_cmds \
18116old_postuninstall_cmds \
18117old_archive_cmds \
18118extract_expsyms_cmds \
18119old_archive_from_new_cmds \
18120old_archive_from_expsyms_cmds \
18121archive_cmds \
18122archive_expsym_cmds \
18123module_cmds \
18124module_expsym_cmds \
18125export_symbols_cmds \
18126prelink_cmds \
18127postlink_cmds \
18128postinstall_cmds \
18129postuninstall_cmds \
18130finish_cmds \
18131sys_lib_search_path_spec \
18132sys_lib_dlsearch_path_spec \
18133reload_cmds_FC \
18134old_archive_cmds_FC \
18135old_archive_from_new_cmds_FC \
18136old_archive_from_expsyms_cmds_FC \
18137archive_cmds_FC \
18138archive_expsym_cmds_FC \
18139module_cmds_FC \
18140module_expsym_cmds_FC \
18141export_symbols_cmds_FC \
18142prelink_cmds_FC \
18143postlink_cmds_FC; do
18144    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18145    *[\\\\\\\`\\"\\\$]*)
18146      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18147      ;;
18148    *)
18149      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18150      ;;
18151    esac
18152done
18153
18154ac_aux_dir='$ac_aux_dir'
18155xsi_shell='$xsi_shell'
18156lt_shell_append='$lt_shell_append'
18157
18158# See if we are running on zsh, and set the options which allow our
18159# commands through without removal of \ escapes INIT.
18160if test -n "\${ZSH_VERSION+set}" ; then
18161   setopt NO_GLOB_SUBST
18162fi
18163
18164
18165    PACKAGE='$PACKAGE'
18166    VERSION='$VERSION'
18167    TIMESTAMP='$TIMESTAMP'
18168    RM='$RM'
18169    ofile='$ofile'
18170
18171
18172
18173
18174
18175
18176_ACEOF
18177
18178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18179
18180# Handling of arguments.
18181for ac_config_target in $ac_config_targets
18182do
18183  case $ac_config_target in
18184    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18185    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18186    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18187    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18188    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18189    "src/pkginfo.f90") CONFIG_FILES="$CONFIG_FILES src/pkginfo.f90" ;;
18190
18191  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18192  esac
18193done
18194
18195
18196# If the user did not use the arguments to specify the items to instantiate,
18197# then the envvar interface is used.  Set only those that are not.
18198# We use the long form for the default assignment because of an extremely
18199# bizarre bug on SunOS 4.1.3.
18200if $ac_need_defaults; then
18201  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18202  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18203  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18204fi
18205
18206# Have a temporary directory for convenience.  Make it in the build tree
18207# simply because there is no reason against having it here, and in addition,
18208# creating and moving files from /tmp can sometimes cause problems.
18209# Hook for its removal unless debugging.
18210# Note that there is a small window in which the directory will not be cleaned:
18211# after its creation but before its name has been assigned to `$tmp'.
18212$debug ||
18213{
18214  tmp= ac_tmp=
18215  trap 'exit_status=$?
18216  : "${ac_tmp:=$tmp}"
18217  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18218' 0
18219  trap 'as_fn_exit 1' 1 2 13 15
18220}
18221# Create a (secure) tmp directory for tmp files.
18222
18223{
18224  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18225  test -d "$tmp"
18226}  ||
18227{
18228  tmp=./conf$$-$RANDOM
18229  (umask 077 && mkdir "$tmp")
18230} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18231ac_tmp=$tmp
18232
18233# Set up the scripts for CONFIG_FILES section.
18234# No need to generate them if there are no CONFIG_FILES.
18235# This happens for instance with `./config.status config.h'.
18236if test -n "$CONFIG_FILES"; then
18237
18238
18239ac_cr=`echo X | tr X '\015'`
18240# On cygwin, bash can eat \r inside `` if the user requested igncr.
18241# But we know of no other shell where ac_cr would be empty at this
18242# point, so we can use a bashism as a fallback.
18243if test "x$ac_cr" = x; then
18244  eval ac_cr=\$\'\\r\'
18245fi
18246ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18247if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18248  ac_cs_awk_cr='\\r'
18249else
18250  ac_cs_awk_cr=$ac_cr
18251fi
18252
18253echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18254_ACEOF
18255
18256
18257{
18258  echo "cat >conf$$subs.awk <<_ACEOF" &&
18259  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18260  echo "_ACEOF"
18261} >conf$$subs.sh ||
18262  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18263ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18264ac_delim='%!_!# '
18265for ac_last_try in false false false false false :; do
18266  . ./conf$$subs.sh ||
18267    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18268
18269  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18270  if test $ac_delim_n = $ac_delim_num; then
18271    break
18272  elif $ac_last_try; then
18273    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18274  else
18275    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18276  fi
18277done
18278rm -f conf$$subs.sh
18279
18280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18281cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18282_ACEOF
18283sed -n '
18284h
18285s/^/S["/; s/!.*/"]=/
18286p
18287g
18288s/^[^!]*!//
18289:repl
18290t repl
18291s/'"$ac_delim"'$//
18292t delim
18293:nl
18294h
18295s/\(.\{148\}\)..*/\1/
18296t more1
18297s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18298p
18299n
18300b repl
18301:more1
18302s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18303p
18304g
18305s/.\{148\}//
18306t nl
18307:delim
18308h
18309s/\(.\{148\}\)..*/\1/
18310t more2
18311s/["\\]/\\&/g; s/^/"/; s/$/"/
18312p
18313b
18314:more2
18315s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18316p
18317g
18318s/.\{148\}//
18319t delim
18320' <conf$$subs.awk | sed '
18321/^[^""]/{
18322  N
18323  s/\n//
18324}
18325' >>$CONFIG_STATUS || ac_write_fail=1
18326rm -f conf$$subs.awk
18327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18328_ACAWK
18329cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18330  for (key in S) S_is_set[key] = 1
18331  FS = ""
18332
18333}
18334{
18335  line = $ 0
18336  nfields = split(line, field, "@")
18337  substed = 0
18338  len = length(field[1])
18339  for (i = 2; i < nfields; i++) {
18340    key = field[i]
18341    keylen = length(key)
18342    if (S_is_set[key]) {
18343      value = S[key]
18344      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18345      len += length(value) + length(field[++i])
18346      substed = 1
18347    } else
18348      len += 1 + keylen
18349  }
18350
18351  print line
18352}
18353
18354_ACAWK
18355_ACEOF
18356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18357if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18358  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18359else
18360  cat
18361fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18362  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18363_ACEOF
18364
18365# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18366# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18367# trailing colons and then remove the whole line if VPATH becomes empty
18368# (actually we leave an empty line to preserve line numbers).
18369if test "x$srcdir" = x.; then
18370  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18371h
18372s///
18373s/^/:/
18374s/[	 ]*$/:/
18375s/:\$(srcdir):/:/g
18376s/:\${srcdir}:/:/g
18377s/:@srcdir@:/:/g
18378s/^:*//
18379s/:*$//
18380x
18381s/\(=[	 ]*\).*/\1/
18382G
18383s/\n//
18384s/^[^=]*=[	 ]*$//
18385}'
18386fi
18387
18388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18389fi # test -n "$CONFIG_FILES"
18390
18391# Set up the scripts for CONFIG_HEADERS section.
18392# No need to generate them if there are no CONFIG_HEADERS.
18393# This happens for instance with `./config.status Makefile'.
18394if test -n "$CONFIG_HEADERS"; then
18395cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18396BEGIN {
18397_ACEOF
18398
18399# Transform confdefs.h into an awk script `defines.awk', embedded as
18400# here-document in config.status, that substitutes the proper values into
18401# config.h.in to produce config.h.
18402
18403# Create a delimiter string that does not exist in confdefs.h, to ease
18404# handling of long lines.
18405ac_delim='%!_!# '
18406for ac_last_try in false false :; do
18407  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18408  if test -z "$ac_tt"; then
18409    break
18410  elif $ac_last_try; then
18411    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18412  else
18413    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18414  fi
18415done
18416
18417# For the awk script, D is an array of macro values keyed by name,
18418# likewise P contains macro parameters if any.  Preserve backslash
18419# newline sequences.
18420
18421ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18422sed -n '
18423s/.\{148\}/&'"$ac_delim"'/g
18424t rset
18425:rset
18426s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18427t def
18428d
18429:def
18430s/\\$//
18431t bsnl
18432s/["\\]/\\&/g
18433s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18434D["\1"]=" \3"/p
18435s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18436d
18437:bsnl
18438s/["\\]/\\&/g
18439s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18440D["\1"]=" \3\\\\\\n"\\/p
18441t cont
18442s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18443t cont
18444d
18445:cont
18446n
18447s/.\{148\}/&'"$ac_delim"'/g
18448t clear
18449:clear
18450s/\\$//
18451t bsnlc
18452s/["\\]/\\&/g; s/^/"/; s/$/"/p
18453d
18454:bsnlc
18455s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18456b cont
18457' <confdefs.h | sed '
18458s/'"$ac_delim"'/"\\\
18459"/g' >>$CONFIG_STATUS || ac_write_fail=1
18460
18461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18462  for (key in D) D_is_set[key] = 1
18463  FS = ""
18464}
18465/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18466  line = \$ 0
18467  split(line, arg, " ")
18468  if (arg[1] == "#") {
18469    defundef = arg[2]
18470    mac1 = arg[3]
18471  } else {
18472    defundef = substr(arg[1], 2)
18473    mac1 = arg[2]
18474  }
18475  split(mac1, mac2, "(") #)
18476  macro = mac2[1]
18477  prefix = substr(line, 1, index(line, defundef) - 1)
18478  if (D_is_set[macro]) {
18479    # Preserve the white space surrounding the "#".
18480    print prefix "define", macro P[macro] D[macro]
18481    next
18482  } else {
18483    # Replace #undef with comments.  This is necessary, for example,
18484    # in the case of _POSIX_SOURCE, which is predefined and required
18485    # on some systems where configure will not decide to define it.
18486    if (defundef == "undef") {
18487      print "/*", prefix defundef, macro, "*/"
18488      next
18489    }
18490  }
18491}
18492{ print }
18493_ACAWK
18494_ACEOF
18495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18496  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18497fi # test -n "$CONFIG_HEADERS"
18498
18499
18500eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18501shift
18502for ac_tag
18503do
18504  case $ac_tag in
18505  :[FHLC]) ac_mode=$ac_tag; continue;;
18506  esac
18507  case $ac_mode$ac_tag in
18508  :[FHL]*:*);;
18509  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18510  :[FH]-) ac_tag=-:-;;
18511  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18512  esac
18513  ac_save_IFS=$IFS
18514  IFS=:
18515  set x $ac_tag
18516  IFS=$ac_save_IFS
18517  shift
18518  ac_file=$1
18519  shift
18520
18521  case $ac_mode in
18522  :L) ac_source=$1;;
18523  :[FH])
18524    ac_file_inputs=
18525    for ac_f
18526    do
18527      case $ac_f in
18528      -) ac_f="$ac_tmp/stdin";;
18529      *) # Look for the file first in the build tree, then in the source tree
18530	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18531	 # because $ac_f cannot contain `:'.
18532	 test -f "$ac_f" ||
18533	   case $ac_f in
18534	   [\\/$]*) false;;
18535	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18536	   esac ||
18537	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18538      esac
18539      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18540      as_fn_append ac_file_inputs " '$ac_f'"
18541    done
18542
18543    # Let's still pretend it is `configure' which instantiates (i.e., don't
18544    # use $as_me), people would be surprised to read:
18545    #    /* config.h.  Generated by config.status.  */
18546    configure_input='Generated from '`
18547	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18548	`' by configure.'
18549    if test x"$ac_file" != x-; then
18550      configure_input="$ac_file.  $configure_input"
18551      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18552$as_echo "$as_me: creating $ac_file" >&6;}
18553    fi
18554    # Neutralize special characters interpreted by sed in replacement strings.
18555    case $configure_input in #(
18556    *\&* | *\|* | *\\* )
18557       ac_sed_conf_input=`$as_echo "$configure_input" |
18558       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18559    *) ac_sed_conf_input=$configure_input;;
18560    esac
18561
18562    case $ac_tag in
18563    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18564      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18565    esac
18566    ;;
18567  esac
18568
18569  ac_dir=`$as_dirname -- "$ac_file" ||
18570$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18571	 X"$ac_file" : 'X\(//\)[^/]' \| \
18572	 X"$ac_file" : 'X\(//\)$' \| \
18573	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18574$as_echo X"$ac_file" |
18575    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18576	    s//\1/
18577	    q
18578	  }
18579	  /^X\(\/\/\)[^/].*/{
18580	    s//\1/
18581	    q
18582	  }
18583	  /^X\(\/\/\)$/{
18584	    s//\1/
18585	    q
18586	  }
18587	  /^X\(\/\).*/{
18588	    s//\1/
18589	    q
18590	  }
18591	  s/.*/./; q'`
18592  as_dir="$ac_dir"; as_fn_mkdir_p
18593  ac_builddir=.
18594
18595case "$ac_dir" in
18596.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18597*)
18598  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18599  # A ".." for each directory in $ac_dir_suffix.
18600  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18601  case $ac_top_builddir_sub in
18602  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18603  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18604  esac ;;
18605esac
18606ac_abs_top_builddir=$ac_pwd
18607ac_abs_builddir=$ac_pwd$ac_dir_suffix
18608# for backward compatibility:
18609ac_top_builddir=$ac_top_build_prefix
18610
18611case $srcdir in
18612  .)  # We are building in place.
18613    ac_srcdir=.
18614    ac_top_srcdir=$ac_top_builddir_sub
18615    ac_abs_top_srcdir=$ac_pwd ;;
18616  [\\/]* | ?:[\\/]* )  # Absolute name.
18617    ac_srcdir=$srcdir$ac_dir_suffix;
18618    ac_top_srcdir=$srcdir
18619    ac_abs_top_srcdir=$srcdir ;;
18620  *) # Relative name.
18621    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18622    ac_top_srcdir=$ac_top_build_prefix$srcdir
18623    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18624esac
18625ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18626
18627
18628  case $ac_mode in
18629  :F)
18630  #
18631  # CONFIG_FILE
18632  #
18633
18634  case $INSTALL in
18635  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18636  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18637  esac
18638  ac_MKDIR_P=$MKDIR_P
18639  case $MKDIR_P in
18640  [\\/$]* | ?:[\\/]* ) ;;
18641  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18642  esac
18643_ACEOF
18644
18645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18646# If the template does not know about datarootdir, expand it.
18647# FIXME: This hack should be removed a few years after 2.60.
18648ac_datarootdir_hack=; ac_datarootdir_seen=
18649ac_sed_dataroot='
18650/datarootdir/ {
18651  p
18652  q
18653}
18654/@datadir@/p
18655/@docdir@/p
18656/@infodir@/p
18657/@localedir@/p
18658/@mandir@/p'
18659case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18660*datarootdir*) ac_datarootdir_seen=yes;;
18661*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18662  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18663$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18664_ACEOF
18665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18666  ac_datarootdir_hack='
18667  s&@datadir@&$datadir&g
18668  s&@docdir@&$docdir&g
18669  s&@infodir@&$infodir&g
18670  s&@localedir@&$localedir&g
18671  s&@mandir@&$mandir&g
18672  s&\\\${datarootdir}&$datarootdir&g' ;;
18673esac
18674_ACEOF
18675
18676# Neutralize VPATH when `$srcdir' = `.'.
18677# Shell code in configure.ac might set extrasub.
18678# FIXME: do we really want to maintain this feature?
18679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18680ac_sed_extra="$ac_vpsub
18681$extrasub
18682_ACEOF
18683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18684:t
18685/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18686s|@configure_input@|$ac_sed_conf_input|;t t
18687s&@top_builddir@&$ac_top_builddir_sub&;t t
18688s&@top_build_prefix@&$ac_top_build_prefix&;t t
18689s&@srcdir@&$ac_srcdir&;t t
18690s&@abs_srcdir@&$ac_abs_srcdir&;t t
18691s&@top_srcdir@&$ac_top_srcdir&;t t
18692s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18693s&@builddir@&$ac_builddir&;t t
18694s&@abs_builddir@&$ac_abs_builddir&;t t
18695s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18696s&@INSTALL@&$ac_INSTALL&;t t
18697s&@MKDIR_P@&$ac_MKDIR_P&;t t
18698$ac_datarootdir_hack
18699"
18700eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18701  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18702
18703test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18704  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18705  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18706      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18707  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18708which seems to be undefined.  Please make sure it is defined" >&5
18709$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18710which seems to be undefined.  Please make sure it is defined" >&2;}
18711
18712  rm -f "$ac_tmp/stdin"
18713  case $ac_file in
18714  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18715  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18716  esac \
18717  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18718 ;;
18719  :H)
18720  #
18721  # CONFIG_HEADER
18722  #
18723  if test x"$ac_file" != x-; then
18724    {
18725      $as_echo "/* $configure_input  */" \
18726      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18727    } >"$ac_tmp/config.h" \
18728      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18729    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18730      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18731$as_echo "$as_me: $ac_file is unchanged" >&6;}
18732    else
18733      rm -f "$ac_file"
18734      mv "$ac_tmp/config.h" "$ac_file" \
18735	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18736    fi
18737  else
18738    $as_echo "/* $configure_input  */" \
18739      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18740      || as_fn_error $? "could not create -" "$LINENO" 5
18741  fi
18742# Compute "$ac_file"'s index in $config_headers.
18743_am_arg="$ac_file"
18744_am_stamp_count=1
18745for _am_header in $config_headers :; do
18746  case $_am_header in
18747    $_am_arg | $_am_arg:* )
18748      break ;;
18749    * )
18750      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18751  esac
18752done
18753echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18754$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18755	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18756	 X"$_am_arg" : 'X\(//\)$' \| \
18757	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18758$as_echo X"$_am_arg" |
18759    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18760	    s//\1/
18761	    q
18762	  }
18763	  /^X\(\/\/\)[^/].*/{
18764	    s//\1/
18765	    q
18766	  }
18767	  /^X\(\/\/\)$/{
18768	    s//\1/
18769	    q
18770	  }
18771	  /^X\(\/\).*/{
18772	    s//\1/
18773	    q
18774	  }
18775	  s/.*/./; q'`/stamp-h$_am_stamp_count
18776 ;;
18777
18778  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18779$as_echo "$as_me: executing $ac_file commands" >&6;}
18780 ;;
18781  esac
18782
18783
18784  case $ac_file$ac_mode in
18785    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18786  # Older Autoconf quotes --file arguments for eval, but not when files
18787  # are listed without --file.  Let's play safe and only enable the eval
18788  # if we detect the quoting.
18789  case $CONFIG_FILES in
18790  *\'*) eval set x "$CONFIG_FILES" ;;
18791  *)   set x $CONFIG_FILES ;;
18792  esac
18793  shift
18794  for mf
18795  do
18796    # Strip MF so we end up with the name of the file.
18797    mf=`echo "$mf" | sed -e 's/:.*$//'`
18798    # Check whether this is an Automake generated Makefile or not.
18799    # We used to match only the files named 'Makefile.in', but
18800    # some people rename them; so instead we look at the file content.
18801    # Grep'ing the first line is not enough: some people post-process
18802    # each Makefile.in and add a new line on top of each file to say so.
18803    # Grep'ing the whole file is not good either: AIX grep has a line
18804    # limit of 2048, but all sed's we know have understand at least 4000.
18805    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18806      dirpart=`$as_dirname -- "$mf" ||
18807$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18808	 X"$mf" : 'X\(//\)[^/]' \| \
18809	 X"$mf" : 'X\(//\)$' \| \
18810	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18811$as_echo X"$mf" |
18812    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18813	    s//\1/
18814	    q
18815	  }
18816	  /^X\(\/\/\)[^/].*/{
18817	    s//\1/
18818	    q
18819	  }
18820	  /^X\(\/\/\)$/{
18821	    s//\1/
18822	    q
18823	  }
18824	  /^X\(\/\).*/{
18825	    s//\1/
18826	    q
18827	  }
18828	  s/.*/./; q'`
18829    else
18830      continue
18831    fi
18832    # Extract the definition of DEPDIR, am__include, and am__quote
18833    # from the Makefile without running 'make'.
18834    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18835    test -z "$DEPDIR" && continue
18836    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18837    test -z "$am__include" && continue
18838    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18839    # Find all dependency output files, they are included files with
18840    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18841    # simplest approach to changing $(DEPDIR) to its actual value in the
18842    # expansion.
18843    for file in `sed -n "
18844      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18845	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18846      # Make sure the directory exists.
18847      test -f "$dirpart/$file" && continue
18848      fdir=`$as_dirname -- "$file" ||
18849$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18850	 X"$file" : 'X\(//\)[^/]' \| \
18851	 X"$file" : 'X\(//\)$' \| \
18852	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18853$as_echo X"$file" |
18854    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18855	    s//\1/
18856	    q
18857	  }
18858	  /^X\(\/\/\)[^/].*/{
18859	    s//\1/
18860	    q
18861	  }
18862	  /^X\(\/\/\)$/{
18863	    s//\1/
18864	    q
18865	  }
18866	  /^X\(\/\).*/{
18867	    s//\1/
18868	    q
18869	  }
18870	  s/.*/./; q'`
18871      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18872      # echo "creating $dirpart/$file"
18873      echo '# dummy' > "$dirpart/$file"
18874    done
18875  done
18876}
18877 ;;
18878    "libtool":C)
18879
18880    # See if we are running on zsh, and set the options which allow our
18881    # commands through without removal of \ escapes.
18882    if test -n "${ZSH_VERSION+set}" ; then
18883      setopt NO_GLOB_SUBST
18884    fi
18885
18886    cfgfile="${ofile}T"
18887    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18888    $RM "$cfgfile"
18889
18890    cat <<_LT_EOF >> "$cfgfile"
18891#! $SHELL
18892
18893# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18894# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18895# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18896# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18897#
18898#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18899#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18900#                 Foundation, Inc.
18901#   Written by Gordon Matzigkeit, 1996
18902#
18903#   This file is part of GNU Libtool.
18904#
18905# GNU Libtool is free software; you can redistribute it and/or
18906# modify it under the terms of the GNU General Public License as
18907# published by the Free Software Foundation; either version 2 of
18908# the License, or (at your option) any later version.
18909#
18910# As a special exception to the GNU General Public License,
18911# if you distribute this file as part of a program or library that
18912# is built using GNU Libtool, you may include this file under the
18913# same distribution terms that you use for the rest of that program.
18914#
18915# GNU Libtool is distributed in the hope that it will be useful,
18916# but WITHOUT ANY WARRANTY; without even the implied warranty of
18917# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18918# GNU General Public License for more details.
18919#
18920# You should have received a copy of the GNU General Public License
18921# along with GNU Libtool; see the file COPYING.  If not, a copy
18922# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18923# obtained by writing to the Free Software Foundation, Inc.,
18924# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18925
18926
18927# The names of the tagged configurations supported by this script.
18928available_tags="FC "
18929
18930# ### BEGIN LIBTOOL CONFIG
18931
18932# Which release of libtool.m4 was used?
18933macro_version=$macro_version
18934macro_revision=$macro_revision
18935
18936# Whether or not to build shared libraries.
18937build_libtool_libs=$enable_shared
18938
18939# Whether or not to build static libraries.
18940build_old_libs=$enable_static
18941
18942# What type of objects to build.
18943pic_mode=$pic_mode
18944
18945# Whether or not to optimize for fast installation.
18946fast_install=$enable_fast_install
18947
18948# Shell to use when invoking shell scripts.
18949SHELL=$lt_SHELL
18950
18951# An echo program that protects backslashes.
18952ECHO=$lt_ECHO
18953
18954# The PATH separator for the build system.
18955PATH_SEPARATOR=$lt_PATH_SEPARATOR
18956
18957# The host system.
18958host_alias=$host_alias
18959host=$host
18960host_os=$host_os
18961
18962# The build system.
18963build_alias=$build_alias
18964build=$build
18965build_os=$build_os
18966
18967# A sed program that does not truncate output.
18968SED=$lt_SED
18969
18970# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18971Xsed="\$SED -e 1s/^X//"
18972
18973# A grep program that handles long lines.
18974GREP=$lt_GREP
18975
18976# An ERE matcher.
18977EGREP=$lt_EGREP
18978
18979# A literal string matcher.
18980FGREP=$lt_FGREP
18981
18982# A BSD- or MS-compatible name lister.
18983NM=$lt_NM
18984
18985# Whether we need soft or hard links.
18986LN_S=$lt_LN_S
18987
18988# What is the maximum length of a command?
18989max_cmd_len=$max_cmd_len
18990
18991# Object file suffix (normally "o").
18992objext=$ac_objext
18993
18994# Executable file suffix (normally "").
18995exeext=$exeext
18996
18997# whether the shell understands "unset".
18998lt_unset=$lt_unset
18999
19000# turn spaces into newlines.
19001SP2NL=$lt_lt_SP2NL
19002
19003# turn newlines into spaces.
19004NL2SP=$lt_lt_NL2SP
19005
19006# convert \$build file names to \$host format.
19007to_host_file_cmd=$lt_cv_to_host_file_cmd
19008
19009# convert \$build files to toolchain format.
19010to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19011
19012# An object symbol dumper.
19013OBJDUMP=$lt_OBJDUMP
19014
19015# Method to check whether dependent libraries are shared objects.
19016deplibs_check_method=$lt_deplibs_check_method
19017
19018# Command to use when deplibs_check_method = "file_magic".
19019file_magic_cmd=$lt_file_magic_cmd
19020
19021# How to find potential files when deplibs_check_method = "file_magic".
19022file_magic_glob=$lt_file_magic_glob
19023
19024# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19025want_nocaseglob=$lt_want_nocaseglob
19026
19027# DLL creation program.
19028DLLTOOL=$lt_DLLTOOL
19029
19030# Command to associate shared and link libraries.
19031sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19032
19033# The archiver.
19034AR=$lt_AR
19035
19036# Flags to create an archive.
19037AR_FLAGS=$lt_AR_FLAGS
19038
19039# How to feed a file listing to the archiver.
19040archiver_list_spec=$lt_archiver_list_spec
19041
19042# A symbol stripping program.
19043STRIP=$lt_STRIP
19044
19045# Commands used to install an old-style archive.
19046RANLIB=$lt_RANLIB
19047old_postinstall_cmds=$lt_old_postinstall_cmds
19048old_postuninstall_cmds=$lt_old_postuninstall_cmds
19049
19050# Whether to use a lock for old archive extraction.
19051lock_old_archive_extraction=$lock_old_archive_extraction
19052
19053# A C compiler.
19054LTCC=$lt_CC
19055
19056# LTCC compiler flags.
19057LTCFLAGS=$lt_CFLAGS
19058
19059# Take the output of nm and produce a listing of raw symbols and C names.
19060global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19061
19062# Transform the output of nm in a proper C declaration.
19063global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19064
19065# Transform the output of nm in a C name address pair.
19066global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19067
19068# Transform the output of nm in a C name address pair when lib prefix is needed.
19069global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19070
19071# Specify filename containing input files for \$NM.
19072nm_file_list_spec=$lt_nm_file_list_spec
19073
19074# The root where to search for dependent libraries,and in which our libraries should be installed.
19075lt_sysroot=$lt_sysroot
19076
19077# The name of the directory that contains temporary libtool files.
19078objdir=$objdir
19079
19080# Used to examine libraries when file_magic_cmd begins with "file".
19081MAGIC_CMD=$MAGIC_CMD
19082
19083# Must we lock files when doing compilation?
19084need_locks=$lt_need_locks
19085
19086# Manifest tool.
19087MANIFEST_TOOL=$lt_MANIFEST_TOOL
19088
19089# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19090DSYMUTIL=$lt_DSYMUTIL
19091
19092# Tool to change global to local symbols on Mac OS X.
19093NMEDIT=$lt_NMEDIT
19094
19095# Tool to manipulate fat objects and archives on Mac OS X.
19096LIPO=$lt_LIPO
19097
19098# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19099OTOOL=$lt_OTOOL
19100
19101# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19102OTOOL64=$lt_OTOOL64
19103
19104# Old archive suffix (normally "a").
19105libext=$libext
19106
19107# Shared library suffix (normally ".so").
19108shrext_cmds=$lt_shrext_cmds
19109
19110# The commands to extract the exported symbol list from a shared archive.
19111extract_expsyms_cmds=$lt_extract_expsyms_cmds
19112
19113# Variables whose values should be saved in libtool wrapper scripts and
19114# restored at link time.
19115variables_saved_for_relink=$lt_variables_saved_for_relink
19116
19117# Do we need the "lib" prefix for modules?
19118need_lib_prefix=$need_lib_prefix
19119
19120# Do we need a version for libraries?
19121need_version=$need_version
19122
19123# Library versioning type.
19124version_type=$version_type
19125
19126# Shared library runtime path variable.
19127runpath_var=$runpath_var
19128
19129# Shared library path variable.
19130shlibpath_var=$shlibpath_var
19131
19132# Is shlibpath searched before the hard-coded library search path?
19133shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19134
19135# Format of library name prefix.
19136libname_spec=$lt_libname_spec
19137
19138# List of archive names.  First name is the real one, the rest are links.
19139# The last name is the one that the linker finds with -lNAME
19140library_names_spec=$lt_library_names_spec
19141
19142# The coded name of the library, if different from the real name.
19143soname_spec=$lt_soname_spec
19144
19145# Permission mode override for installation of shared libraries.
19146install_override_mode=$lt_install_override_mode
19147
19148# Command to use after installation of a shared archive.
19149postinstall_cmds=$lt_postinstall_cmds
19150
19151# Command to use after uninstallation of a shared archive.
19152postuninstall_cmds=$lt_postuninstall_cmds
19153
19154# Commands used to finish a libtool library installation in a directory.
19155finish_cmds=$lt_finish_cmds
19156
19157# As "finish_cmds", except a single script fragment to be evaled but
19158# not shown.
19159finish_eval=$lt_finish_eval
19160
19161# Whether we should hardcode library paths into libraries.
19162hardcode_into_libs=$hardcode_into_libs
19163
19164# Compile-time system search path for libraries.
19165sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19166
19167# Run-time system search path for libraries.
19168sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19169
19170# Whether dlopen is supported.
19171dlopen_support=$enable_dlopen
19172
19173# Whether dlopen of programs is supported.
19174dlopen_self=$enable_dlopen_self
19175
19176# Whether dlopen of statically linked programs is supported.
19177dlopen_self_static=$enable_dlopen_self_static
19178
19179# Commands to strip libraries.
19180old_striplib=$lt_old_striplib
19181striplib=$lt_striplib
19182
19183
19184# The linker used to build libraries.
19185LD=$lt_LD
19186
19187# How to create reloadable object files.
19188reload_flag=$lt_reload_flag
19189reload_cmds=$lt_reload_cmds
19190
19191# Commands used to build an old-style archive.
19192old_archive_cmds=$lt_old_archive_cmds
19193
19194# A language specific compiler.
19195CC=$lt_compiler
19196
19197# Is the compiler the GNU compiler?
19198with_gcc=$GCC
19199
19200# Compiler flag to turn off builtin functions.
19201no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19202
19203# Additional compiler flags for building library objects.
19204pic_flag=$lt_lt_prog_compiler_pic
19205
19206# How to pass a linker flag through the compiler.
19207wl=$lt_lt_prog_compiler_wl
19208
19209# Compiler flag to prevent dynamic linking.
19210link_static_flag=$lt_lt_prog_compiler_static
19211
19212# Does compiler simultaneously support -c and -o options?
19213compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19214
19215# Whether or not to add -lc for building shared libraries.
19216build_libtool_need_lc=$archive_cmds_need_lc
19217
19218# Whether or not to disallow shared libs when runtime libs are static.
19219allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19220
19221# Compiler flag to allow reflexive dlopens.
19222export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19223
19224# Compiler flag to generate shared objects directly from archives.
19225whole_archive_flag_spec=$lt_whole_archive_flag_spec
19226
19227# Whether the compiler copes with passing no objects directly.
19228compiler_needs_object=$lt_compiler_needs_object
19229
19230# Create an old-style archive from a shared archive.
19231old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19232
19233# Create a temporary old-style archive to link instead of a shared archive.
19234old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19235
19236# Commands used to build a shared archive.
19237archive_cmds=$lt_archive_cmds
19238archive_expsym_cmds=$lt_archive_expsym_cmds
19239
19240# Commands used to build a loadable module if different from building
19241# a shared archive.
19242module_cmds=$lt_module_cmds
19243module_expsym_cmds=$lt_module_expsym_cmds
19244
19245# Whether we are building with GNU ld or not.
19246with_gnu_ld=$lt_with_gnu_ld
19247
19248# Flag that allows shared libraries with undefined symbols to be built.
19249allow_undefined_flag=$lt_allow_undefined_flag
19250
19251# Flag that enforces no undefined symbols.
19252no_undefined_flag=$lt_no_undefined_flag
19253
19254# Flag to hardcode \$libdir into a binary during linking.
19255# This must work even if \$libdir does not exist
19256hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19257
19258# Whether we need a single "-rpath" flag with a separated argument.
19259hardcode_libdir_separator=$lt_hardcode_libdir_separator
19260
19261# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19262# DIR into the resulting binary.
19263hardcode_direct=$hardcode_direct
19264
19265# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19266# DIR into the resulting binary and the resulting library dependency is
19267# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19268# library is relocated.
19269hardcode_direct_absolute=$hardcode_direct_absolute
19270
19271# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19272# into the resulting binary.
19273hardcode_minus_L=$hardcode_minus_L
19274
19275# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19276# into the resulting binary.
19277hardcode_shlibpath_var=$hardcode_shlibpath_var
19278
19279# Set to "yes" if building a shared library automatically hardcodes DIR
19280# into the library and all subsequent libraries and executables linked
19281# against it.
19282hardcode_automatic=$hardcode_automatic
19283
19284# Set to yes if linker adds runtime paths of dependent libraries
19285# to runtime path list.
19286inherit_rpath=$inherit_rpath
19287
19288# Whether libtool must link a program against all its dependency libraries.
19289link_all_deplibs=$link_all_deplibs
19290
19291# Set to "yes" if exported symbols are required.
19292always_export_symbols=$always_export_symbols
19293
19294# The commands to list exported symbols.
19295export_symbols_cmds=$lt_export_symbols_cmds
19296
19297# Symbols that should not be listed in the preloaded symbols.
19298exclude_expsyms=$lt_exclude_expsyms
19299
19300# Symbols that must always be exported.
19301include_expsyms=$lt_include_expsyms
19302
19303# Commands necessary for linking programs (against libraries) with templates.
19304prelink_cmds=$lt_prelink_cmds
19305
19306# Commands necessary for finishing linking programs.
19307postlink_cmds=$lt_postlink_cmds
19308
19309# Specify filename containing input files.
19310file_list_spec=$lt_file_list_spec
19311
19312# How to hardcode a shared library path into an executable.
19313hardcode_action=$hardcode_action
19314
19315# The directories searched by this compiler when creating a shared library.
19316compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19317
19318# Dependencies to place before and after the objects being linked to
19319# create a shared library.
19320predep_objects=$lt_predep_objects
19321postdep_objects=$lt_postdep_objects
19322predeps=$lt_predeps
19323postdeps=$lt_postdeps
19324
19325# The library search path used internally by the compiler when linking
19326# a shared library.
19327compiler_lib_search_path=$lt_compiler_lib_search_path
19328
19329# ### END LIBTOOL CONFIG
19330
19331_LT_EOF
19332
19333  case $host_os in
19334  aix3*)
19335    cat <<\_LT_EOF >> "$cfgfile"
19336# AIX sometimes has problems with the GCC collect2 program.  For some
19337# reason, if we set the COLLECT_NAMES environment variable, the problems
19338# vanish in a puff of smoke.
19339if test "X${COLLECT_NAMES+set}" != Xset; then
19340  COLLECT_NAMES=
19341  export COLLECT_NAMES
19342fi
19343_LT_EOF
19344    ;;
19345  esac
19346
19347
19348ltmain="$ac_aux_dir/ltmain.sh"
19349
19350
19351  # We use sed instead of cat because bash on DJGPP gets confused if
19352  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19353  # text mode, it properly converts lines to CR/LF.  This bash problem
19354  # is reportedly fixed, but why not run on old versions too?
19355  sed '$q' "$ltmain" >> "$cfgfile" \
19356     || (rm -f "$cfgfile"; exit 1)
19357
19358  if test x"$xsi_shell" = xyes; then
19359  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19360func_dirname ()\
19361{\
19362\    case ${1} in\
19363\      */*) func_dirname_result="${1%/*}${2}" ;;\
19364\      *  ) func_dirname_result="${3}" ;;\
19365\    esac\
19366} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19367  && mv -f "$cfgfile.tmp" "$cfgfile" \
19368    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19369test 0 -eq $? || _lt_function_replace_fail=:
19370
19371
19372  sed -e '/^func_basename ()$/,/^} # func_basename /c\
19373func_basename ()\
19374{\
19375\    func_basename_result="${1##*/}"\
19376} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19377  && mv -f "$cfgfile.tmp" "$cfgfile" \
19378    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19379test 0 -eq $? || _lt_function_replace_fail=:
19380
19381
19382  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19383func_dirname_and_basename ()\
19384{\
19385\    case ${1} in\
19386\      */*) func_dirname_result="${1%/*}${2}" ;;\
19387\      *  ) func_dirname_result="${3}" ;;\
19388\    esac\
19389\    func_basename_result="${1##*/}"\
19390} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19391  && mv -f "$cfgfile.tmp" "$cfgfile" \
19392    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19393test 0 -eq $? || _lt_function_replace_fail=:
19394
19395
19396  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19397func_stripname ()\
19398{\
19399\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19400\    # positional parameters, so assign one to ordinary parameter first.\
19401\    func_stripname_result=${3}\
19402\    func_stripname_result=${func_stripname_result#"${1}"}\
19403\    func_stripname_result=${func_stripname_result%"${2}"}\
19404} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19405  && mv -f "$cfgfile.tmp" "$cfgfile" \
19406    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19407test 0 -eq $? || _lt_function_replace_fail=:
19408
19409
19410  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19411func_split_long_opt ()\
19412{\
19413\    func_split_long_opt_name=${1%%=*}\
19414\    func_split_long_opt_arg=${1#*=}\
19415} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19416  && mv -f "$cfgfile.tmp" "$cfgfile" \
19417    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19418test 0 -eq $? || _lt_function_replace_fail=:
19419
19420
19421  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19422func_split_short_opt ()\
19423{\
19424\    func_split_short_opt_arg=${1#??}\
19425\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19426} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19427  && mv -f "$cfgfile.tmp" "$cfgfile" \
19428    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19429test 0 -eq $? || _lt_function_replace_fail=:
19430
19431
19432  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19433func_lo2o ()\
19434{\
19435\    case ${1} in\
19436\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19437\      *)    func_lo2o_result=${1} ;;\
19438\    esac\
19439} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19440  && mv -f "$cfgfile.tmp" "$cfgfile" \
19441    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19442test 0 -eq $? || _lt_function_replace_fail=:
19443
19444
19445  sed -e '/^func_xform ()$/,/^} # func_xform /c\
19446func_xform ()\
19447{\
19448    func_xform_result=${1%.*}.lo\
19449} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19450  && mv -f "$cfgfile.tmp" "$cfgfile" \
19451    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19452test 0 -eq $? || _lt_function_replace_fail=:
19453
19454
19455  sed -e '/^func_arith ()$/,/^} # func_arith /c\
19456func_arith ()\
19457{\
19458    func_arith_result=$(( $* ))\
19459} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19460  && mv -f "$cfgfile.tmp" "$cfgfile" \
19461    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19462test 0 -eq $? || _lt_function_replace_fail=:
19463
19464
19465  sed -e '/^func_len ()$/,/^} # func_len /c\
19466func_len ()\
19467{\
19468    func_len_result=${#1}\
19469} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19470  && mv -f "$cfgfile.tmp" "$cfgfile" \
19471    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19472test 0 -eq $? || _lt_function_replace_fail=:
19473
19474fi
19475
19476if test x"$lt_shell_append" = xyes; then
19477  sed -e '/^func_append ()$/,/^} # func_append /c\
19478func_append ()\
19479{\
19480    eval "${1}+=\\${2}"\
19481} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19482  && mv -f "$cfgfile.tmp" "$cfgfile" \
19483    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19484test 0 -eq $? || _lt_function_replace_fail=:
19485
19486
19487  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19488func_append_quoted ()\
19489{\
19490\    func_quote_for_eval "${2}"\
19491\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19492} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19493  && mv -f "$cfgfile.tmp" "$cfgfile" \
19494    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19495test 0 -eq $? || _lt_function_replace_fail=:
19496
19497
19498  # Save a `func_append' function call where possible by direct use of '+='
19499  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19500    && mv -f "$cfgfile.tmp" "$cfgfile" \
19501      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19502  test 0 -eq $? || _lt_function_replace_fail=:
19503else
19504  # Save a `func_append' function call even when '+=' is not available
19505  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19506    && mv -f "$cfgfile.tmp" "$cfgfile" \
19507      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19508  test 0 -eq $? || _lt_function_replace_fail=:
19509fi
19510
19511if test x"$_lt_function_replace_fail" = x":"; then
19512  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19513$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19514fi
19515
19516
19517   mv -f "$cfgfile" "$ofile" ||
19518    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19519  chmod +x "$ofile"
19520
19521
19522    cat <<_LT_EOF >> "$ofile"
19523
19524# ### BEGIN LIBTOOL TAG CONFIG: FC
19525
19526# The linker used to build libraries.
19527LD=$lt_LD_FC
19528
19529# How to create reloadable object files.
19530reload_flag=$lt_reload_flag_FC
19531reload_cmds=$lt_reload_cmds_FC
19532
19533# Commands used to build an old-style archive.
19534old_archive_cmds=$lt_old_archive_cmds_FC
19535
19536# A language specific compiler.
19537CC=$lt_compiler_FC
19538
19539# Is the compiler the GNU compiler?
19540with_gcc=$GCC_FC
19541
19542# Compiler flag to turn off builtin functions.
19543no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19544
19545# Additional compiler flags for building library objects.
19546pic_flag=$lt_lt_prog_compiler_pic_FC
19547
19548# How to pass a linker flag through the compiler.
19549wl=$lt_lt_prog_compiler_wl_FC
19550
19551# Compiler flag to prevent dynamic linking.
19552link_static_flag=$lt_lt_prog_compiler_static_FC
19553
19554# Does compiler simultaneously support -c and -o options?
19555compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19556
19557# Whether or not to add -lc for building shared libraries.
19558build_libtool_need_lc=$archive_cmds_need_lc_FC
19559
19560# Whether or not to disallow shared libs when runtime libs are static.
19561allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19562
19563# Compiler flag to allow reflexive dlopens.
19564export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19565
19566# Compiler flag to generate shared objects directly from archives.
19567whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19568
19569# Whether the compiler copes with passing no objects directly.
19570compiler_needs_object=$lt_compiler_needs_object_FC
19571
19572# Create an old-style archive from a shared archive.
19573old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19574
19575# Create a temporary old-style archive to link instead of a shared archive.
19576old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19577
19578# Commands used to build a shared archive.
19579archive_cmds=$lt_archive_cmds_FC
19580archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19581
19582# Commands used to build a loadable module if different from building
19583# a shared archive.
19584module_cmds=$lt_module_cmds_FC
19585module_expsym_cmds=$lt_module_expsym_cmds_FC
19586
19587# Whether we are building with GNU ld or not.
19588with_gnu_ld=$lt_with_gnu_ld_FC
19589
19590# Flag that allows shared libraries with undefined symbols to be built.
19591allow_undefined_flag=$lt_allow_undefined_flag_FC
19592
19593# Flag that enforces no undefined symbols.
19594no_undefined_flag=$lt_no_undefined_flag_FC
19595
19596# Flag to hardcode \$libdir into a binary during linking.
19597# This must work even if \$libdir does not exist
19598hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19599
19600# Whether we need a single "-rpath" flag with a separated argument.
19601hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19602
19603# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19604# DIR into the resulting binary.
19605hardcode_direct=$hardcode_direct_FC
19606
19607# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19608# DIR into the resulting binary and the resulting library dependency is
19609# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19610# library is relocated.
19611hardcode_direct_absolute=$hardcode_direct_absolute_FC
19612
19613# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19614# into the resulting binary.
19615hardcode_minus_L=$hardcode_minus_L_FC
19616
19617# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19618# into the resulting binary.
19619hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19620
19621# Set to "yes" if building a shared library automatically hardcodes DIR
19622# into the library and all subsequent libraries and executables linked
19623# against it.
19624hardcode_automatic=$hardcode_automatic_FC
19625
19626# Set to yes if linker adds runtime paths of dependent libraries
19627# to runtime path list.
19628inherit_rpath=$inherit_rpath_FC
19629
19630# Whether libtool must link a program against all its dependency libraries.
19631link_all_deplibs=$link_all_deplibs_FC
19632
19633# Set to "yes" if exported symbols are required.
19634always_export_symbols=$always_export_symbols_FC
19635
19636# The commands to list exported symbols.
19637export_symbols_cmds=$lt_export_symbols_cmds_FC
19638
19639# Symbols that should not be listed in the preloaded symbols.
19640exclude_expsyms=$lt_exclude_expsyms_FC
19641
19642# Symbols that must always be exported.
19643include_expsyms=$lt_include_expsyms_FC
19644
19645# Commands necessary for linking programs (against libraries) with templates.
19646prelink_cmds=$lt_prelink_cmds_FC
19647
19648# Commands necessary for finishing linking programs.
19649postlink_cmds=$lt_postlink_cmds_FC
19650
19651# Specify filename containing input files.
19652file_list_spec=$lt_file_list_spec_FC
19653
19654# How to hardcode a shared library path into an executable.
19655hardcode_action=$hardcode_action_FC
19656
19657# The directories searched by this compiler when creating a shared library.
19658compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19659
19660# Dependencies to place before and after the objects being linked to
19661# create a shared library.
19662predep_objects=$lt_predep_objects_FC
19663postdep_objects=$lt_postdep_objects_FC
19664predeps=$lt_predeps_FC
19665postdeps=$lt_postdeps_FC
19666
19667# The library search path used internally by the compiler when linking
19668# a shared library.
19669compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19670
19671# ### END LIBTOOL TAG CONFIG: FC
19672_LT_EOF
19673
19674 ;;
19675
19676  esac
19677done # for ac_tag
19678
19679
19680as_fn_exit 0
19681_ACEOF
19682ac_clean_files=$ac_clean_files_save
19683
19684test $ac_write_fail = 0 ||
19685  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19686
19687
19688# configure is writing to config.log, and then calls config.status.
19689# config.status does its own redirection, appending to config.log.
19690# Unfortunately, on DOS this fails, as config.log is still kept open
19691# by configure, so config.status won't be able to write to it; its
19692# output is simply discarded.  So we exec the FD to /dev/null,
19693# effectively closing config.log, so it can be properly (re)opened and
19694# appended to by config.status.  When coming back to configure, we
19695# need to make the FD available again.
19696if test "$no_create" != yes; then
19697  ac_cs_success=:
19698  ac_config_status_args=
19699  test "$silent" = yes &&
19700    ac_config_status_args="$ac_config_status_args --quiet"
19701  exec 5>/dev/null
19702  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19703  exec 5>>config.log
19704  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19705  # would make configure fail if this is the last instruction.
19706  $ac_cs_success || as_fn_exit 1
19707fi
19708if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19709  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19710$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19711fi
19712
19713