1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ppcg 0.04.
4#
5# Report bugs to <isl-development@googlegroups.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: isl-development@googlegroups.com about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='ppcg'
592PACKAGE_TARNAME='ppcg'
593PACKAGE_VERSION='0.04'
594PACKAGE_STRING='ppcg 0.04'
595PACKAGE_BUGREPORT='isl-development@googlegroups.com'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634enable_option_checking=no
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639subdirs
640GIT_HEAD_VERSION
641GIT_HEAD
642GIT_HEAD_ID
643extra_tests
644POLYBENCH_DIR
645PET_LIBS
646PET_CFLAGS
647BUNDLED_PET_FALSE
648BUNDLED_PET_TRUE
649ISL_LIBS
650ISL_CFLAGS
651BUNDLED_ISL_FALSE
652BUNDLED_ISL_TRUE
653HAVE_OPENCL
654HAVE_OPENMP
655PKG_CONFIG_LIBDIR
656PKG_CONFIG_PATH
657PKG_CONFIG
658CPP
659OTOOL64
660OTOOL
661LIPO
662NMEDIT
663DSYMUTIL
664MANIFEST_TOOL
665RANLIB
666ac_ct_AR
667AR
668DLLTOOL
669OBJDUMP
670LN_S
671NM
672ac_ct_DUMPBIN
673DUMPBIN
674LD
675FGREP
676EGREP
677GREP
678SED
679host_os
680host_vendor
681host_cpu
682host
683build_os
684build_vendor
685build_cpu
686build
687LIBTOOL
688am__fastdepCC_FALSE
689am__fastdepCC_TRUE
690CCDEPMODE
691am__nodep
692AMDEPBACKSLASH
693AMDEP_FALSE
694AMDEP_TRUE
695am__quote
696am__include
697DEPDIR
698OBJEXT
699EXEEXT
700ac_ct_CC
701CPPFLAGS
702LDFLAGS
703CFLAGS
704CC
705AM_BACKSLASH
706AM_DEFAULT_VERBOSITY
707AM_DEFAULT_V
708AM_V
709am__untar
710am__tar
711AMTAR
712am__leading_dot
713SET_MAKE
714AWK
715mkdir_p
716MKDIR_P
717INSTALL_STRIP_PROGRAM
718STRIP
719install_sh
720MAKEINFO
721AUTOHEADER
722AUTOMAKE
723AUTOCONF
724ACLOCAL
725VERSION
726PACKAGE
727CYGPATH_W
728am__isrc
729INSTALL_DATA
730INSTALL_SCRIPT
731INSTALL_PROGRAM
732target_alias
733host_alias
734build_alias
735LIBS
736ECHO_T
737ECHO_N
738ECHO_C
739DEFS
740mandir
741localedir
742libdir
743psdir
744pdfdir
745dvidir
746htmldir
747infodir
748docdir
749oldincludedir
750includedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL'
770ac_subst_files=''
771ac_user_opts='
772enable_option_checking
773enable_silent_rules
774enable_dependency_tracking
775enable_shared
776enable_static
777with_pic
778enable_fast_install
779with_gnu_ld
780with_sysroot
781enable_libtool_lock
782with_isl
783with_isl_prefix
784with_isl_exec_prefix
785with_isl_builddir
786with_pet
787with_pet_prefix
788with_pet_exec_prefix
789with_polybench
790'
791      ac_precious_vars='build_alias
792host_alias
793target_alias
794CC
795CFLAGS
796LDFLAGS
797LIBS
798CPPFLAGS
799CPP
800PKG_CONFIG
801PKG_CONFIG_PATH
802PKG_CONFIG_LIBDIR
803ISL_CFLAGS
804ISL_LIBS
805PET_CFLAGS
806PET_LIBS'
807ac_subdirs_all='isl
808pet'
809
810# Initialize some variables set by options.
811ac_init_help=
812ac_init_version=false
813ac_unrecognized_opts=
814ac_unrecognized_sep=
815# The variables have the same names as the options, with
816# dashes changed to underlines.
817cache_file=/dev/null
818exec_prefix=NONE
819no_create=
820no_recursion=
821prefix=NONE
822program_prefix=NONE
823program_suffix=NONE
824program_transform_name=s,x,x,
825silent=
826site=
827srcdir=
828verbose=
829x_includes=NONE
830x_libraries=NONE
831
832# Installation directory options.
833# These are left unexpanded so users can "make install exec_prefix=/foo"
834# and all the variables that are supposed to be based on exec_prefix
835# by default will actually change.
836# Use braces instead of parens because sh, perl, etc. also accept them.
837# (The list follows the same order as the GNU Coding Standards.)
838bindir='${exec_prefix}/bin'
839sbindir='${exec_prefix}/sbin'
840libexecdir='${exec_prefix}/libexec'
841datarootdir='${prefix}/share'
842datadir='${datarootdir}'
843sysconfdir='${prefix}/etc'
844sharedstatedir='${prefix}/com'
845localstatedir='${prefix}/var'
846includedir='${prefix}/include'
847oldincludedir='/usr/include'
848docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849infodir='${datarootdir}/info'
850htmldir='${docdir}'
851dvidir='${docdir}'
852pdfdir='${docdir}'
853psdir='${docdir}'
854libdir='${exec_prefix}/lib'
855localedir='${datarootdir}/locale'
856mandir='${datarootdir}/man'
857
858ac_prev=
859ac_dashdash=
860for ac_option
861do
862  # If the previous option needs an argument, assign it.
863  if test -n "$ac_prev"; then
864    eval $ac_prev=\$ac_option
865    ac_prev=
866    continue
867  fi
868
869  case $ac_option in
870  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871  *=)   ac_optarg= ;;
872  *)    ac_optarg=yes ;;
873  esac
874
875  # Accept the important Cygnus configure options, so we can diagnose typos.
876
877  case $ac_dashdash$ac_option in
878  --)
879    ac_dashdash=yes ;;
880
881  -bindir | --bindir | --bindi | --bind | --bin | --bi)
882    ac_prev=bindir ;;
883  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884    bindir=$ac_optarg ;;
885
886  -build | --build | --buil | --bui | --bu)
887    ac_prev=build_alias ;;
888  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889    build_alias=$ac_optarg ;;
890
891  -cache-file | --cache-file | --cache-fil | --cache-fi \
892  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893    ac_prev=cache_file ;;
894  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896    cache_file=$ac_optarg ;;
897
898  --config-cache | -C)
899    cache_file=config.cache ;;
900
901  -datadir | --datadir | --datadi | --datad)
902    ac_prev=datadir ;;
903  -datadir=* | --datadir=* | --datadi=* | --datad=*)
904    datadir=$ac_optarg ;;
905
906  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907  | --dataroo | --dataro | --datar)
908    ac_prev=datarootdir ;;
909  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911    datarootdir=$ac_optarg ;;
912
913  -disable-* | --disable-*)
914    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915    # Reject names that are not valid shell variable names.
916    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917      as_fn_error $? "invalid feature name: $ac_useropt"
918    ac_useropt_orig=$ac_useropt
919    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920    case $ac_user_opts in
921      *"
922"enable_$ac_useropt"
923"*) ;;
924      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925	 ac_unrecognized_sep=', ';;
926    esac
927    eval enable_$ac_useropt=no ;;
928
929  -docdir | --docdir | --docdi | --doc | --do)
930    ac_prev=docdir ;;
931  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932    docdir=$ac_optarg ;;
933
934  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935    ac_prev=dvidir ;;
936  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937    dvidir=$ac_optarg ;;
938
939  -enable-* | --enable-*)
940    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941    # Reject names that are not valid shell variable names.
942    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943      as_fn_error $? "invalid feature name: $ac_useropt"
944    ac_useropt_orig=$ac_useropt
945    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946    case $ac_user_opts in
947      *"
948"enable_$ac_useropt"
949"*) ;;
950      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951	 ac_unrecognized_sep=', ';;
952    esac
953    eval enable_$ac_useropt=\$ac_optarg ;;
954
955  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957  | --exec | --exe | --ex)
958    ac_prev=exec_prefix ;;
959  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961  | --exec=* | --exe=* | --ex=*)
962    exec_prefix=$ac_optarg ;;
963
964  -gas | --gas | --ga | --g)
965    # Obsolete; use --with-gas.
966    with_gas=yes ;;
967
968  -help | --help | --hel | --he | -h)
969    ac_init_help=long ;;
970  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971    ac_init_help=recursive ;;
972  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973    ac_init_help=short ;;
974
975  -host | --host | --hos | --ho)
976    ac_prev=host_alias ;;
977  -host=* | --host=* | --hos=* | --ho=*)
978    host_alias=$ac_optarg ;;
979
980  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981    ac_prev=htmldir ;;
982  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983  | --ht=*)
984    htmldir=$ac_optarg ;;
985
986  -includedir | --includedir | --includedi | --included | --include \
987  | --includ | --inclu | --incl | --inc)
988    ac_prev=includedir ;;
989  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990  | --includ=* | --inclu=* | --incl=* | --inc=*)
991    includedir=$ac_optarg ;;
992
993  -infodir | --infodir | --infodi | --infod | --info | --inf)
994    ac_prev=infodir ;;
995  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996    infodir=$ac_optarg ;;
997
998  -libdir | --libdir | --libdi | --libd)
999    ac_prev=libdir ;;
1000  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001    libdir=$ac_optarg ;;
1002
1003  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004  | --libexe | --libex | --libe)
1005    ac_prev=libexecdir ;;
1006  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007  | --libexe=* | --libex=* | --libe=*)
1008    libexecdir=$ac_optarg ;;
1009
1010  -localedir | --localedir | --localedi | --localed | --locale)
1011    ac_prev=localedir ;;
1012  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013    localedir=$ac_optarg ;;
1014
1015  -localstatedir | --localstatedir | --localstatedi | --localstated \
1016  | --localstate | --localstat | --localsta | --localst | --locals)
1017    ac_prev=localstatedir ;;
1018  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020    localstatedir=$ac_optarg ;;
1021
1022  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023    ac_prev=mandir ;;
1024  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025    mandir=$ac_optarg ;;
1026
1027  -nfp | --nfp | --nf)
1028    # Obsolete; use --without-fp.
1029    with_fp=no ;;
1030
1031  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032  | --no-cr | --no-c | -n)
1033    no_create=yes ;;
1034
1035  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037    no_recursion=yes ;;
1038
1039  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041  | --oldin | --oldi | --old | --ol | --o)
1042    ac_prev=oldincludedir ;;
1043  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046    oldincludedir=$ac_optarg ;;
1047
1048  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049    ac_prev=prefix ;;
1050  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051    prefix=$ac_optarg ;;
1052
1053  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054  | --program-pre | --program-pr | --program-p)
1055    ac_prev=program_prefix ;;
1056  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058    program_prefix=$ac_optarg ;;
1059
1060  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061  | --program-suf | --program-su | --program-s)
1062    ac_prev=program_suffix ;;
1063  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065    program_suffix=$ac_optarg ;;
1066
1067  -program-transform-name | --program-transform-name \
1068  | --program-transform-nam | --program-transform-na \
1069  | --program-transform-n | --program-transform- \
1070  | --program-transform | --program-transfor \
1071  | --program-transfo | --program-transf \
1072  | --program-trans | --program-tran \
1073  | --progr-tra | --program-tr | --program-t)
1074    ac_prev=program_transform_name ;;
1075  -program-transform-name=* | --program-transform-name=* \
1076  | --program-transform-nam=* | --program-transform-na=* \
1077  | --program-transform-n=* | --program-transform-=* \
1078  | --program-transform=* | --program-transfor=* \
1079  | --program-transfo=* | --program-transf=* \
1080  | --program-trans=* | --program-tran=* \
1081  | --progr-tra=* | --program-tr=* | --program-t=*)
1082    program_transform_name=$ac_optarg ;;
1083
1084  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085    ac_prev=pdfdir ;;
1086  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087    pdfdir=$ac_optarg ;;
1088
1089  -psdir | --psdir | --psdi | --psd | --ps)
1090    ac_prev=psdir ;;
1091  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092    psdir=$ac_optarg ;;
1093
1094  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095  | -silent | --silent | --silen | --sile | --sil)
1096    silent=yes ;;
1097
1098  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099    ac_prev=sbindir ;;
1100  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101  | --sbi=* | --sb=*)
1102    sbindir=$ac_optarg ;;
1103
1104  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106  | --sharedst | --shareds | --shared | --share | --shar \
1107  | --sha | --sh)
1108    ac_prev=sharedstatedir ;;
1109  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112  | --sha=* | --sh=*)
1113    sharedstatedir=$ac_optarg ;;
1114
1115  -site | --site | --sit)
1116    ac_prev=site ;;
1117  -site=* | --site=* | --sit=*)
1118    site=$ac_optarg ;;
1119
1120  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121    ac_prev=srcdir ;;
1122  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123    srcdir=$ac_optarg ;;
1124
1125  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126  | --syscon | --sysco | --sysc | --sys | --sy)
1127    ac_prev=sysconfdir ;;
1128  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130    sysconfdir=$ac_optarg ;;
1131
1132  -target | --target | --targe | --targ | --tar | --ta | --t)
1133    ac_prev=target_alias ;;
1134  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135    target_alias=$ac_optarg ;;
1136
1137  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138    verbose=yes ;;
1139
1140  -version | --version | --versio | --versi | --vers | -V)
1141    ac_init_version=: ;;
1142
1143  -with-* | --with-*)
1144    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145    # Reject names that are not valid shell variable names.
1146    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147      as_fn_error $? "invalid package name: $ac_useropt"
1148    ac_useropt_orig=$ac_useropt
1149    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150    case $ac_user_opts in
1151      *"
1152"with_$ac_useropt"
1153"*) ;;
1154      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155	 ac_unrecognized_sep=', ';;
1156    esac
1157    eval with_$ac_useropt=\$ac_optarg ;;
1158
1159  -without-* | --without-*)
1160    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161    # Reject names that are not valid shell variable names.
1162    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163      as_fn_error $? "invalid package name: $ac_useropt"
1164    ac_useropt_orig=$ac_useropt
1165    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166    case $ac_user_opts in
1167      *"
1168"with_$ac_useropt"
1169"*) ;;
1170      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171	 ac_unrecognized_sep=', ';;
1172    esac
1173    eval with_$ac_useropt=no ;;
1174
1175  --x)
1176    # Obsolete; use --with-x.
1177    with_x=yes ;;
1178
1179  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180  | --x-incl | --x-inc | --x-in | --x-i)
1181    ac_prev=x_includes ;;
1182  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184    x_includes=$ac_optarg ;;
1185
1186  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188    ac_prev=x_libraries ;;
1189  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191    x_libraries=$ac_optarg ;;
1192
1193  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194Try \`$0 --help' for more information"
1195    ;;
1196
1197  *=*)
1198    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199    # Reject names that are not valid shell variable names.
1200    case $ac_envvar in #(
1201      '' | [0-9]* | *[!_$as_cr_alnum]* )
1202      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203    esac
1204    eval $ac_envvar=\$ac_optarg
1205    export $ac_envvar ;;
1206
1207  *)
1208    # FIXME: should be removed in autoconf 3.0.
1209    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213    ;;
1214
1215  esac
1216done
1217
1218if test -n "$ac_prev"; then
1219  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220  as_fn_error $? "missing argument to $ac_option"
1221fi
1222
1223if test -n "$ac_unrecognized_opts"; then
1224  case $enable_option_checking in
1225    no) ;;
1226    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228  esac
1229fi
1230
1231# Check all directory arguments for consistency.
1232for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233		datadir sysconfdir sharedstatedir localstatedir includedir \
1234		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235		libdir localedir mandir
1236do
1237  eval ac_val=\$$ac_var
1238  # Remove trailing slashes.
1239  case $ac_val in
1240    */ )
1241      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242      eval $ac_var=\$ac_val;;
1243  esac
1244  # Be sure to have absolute directory names.
1245  case $ac_val in
1246    [\\/$]* | ?:[\\/]* )  continue;;
1247    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248  esac
1249  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250done
1251
1252# There might be people who depend on the old broken behavior: `$host'
1253# used to hold the argument of --host etc.
1254# FIXME: To remove some day.
1255build=$build_alias
1256host=$host_alias
1257target=$target_alias
1258
1259# FIXME: To remove some day.
1260if test "x$host_alias" != x; then
1261  if test "x$build_alias" = x; then
1262    cross_compiling=maybe
1263  elif test "x$build_alias" != "x$host_alias"; then
1264    cross_compiling=yes
1265  fi
1266fi
1267
1268ac_tool_prefix=
1269test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271test "$silent" = yes && exec 6>/dev/null
1272
1273
1274ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275ac_ls_di=`ls -di .` &&
1276ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277  as_fn_error $? "working directory cannot be determined"
1278test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279  as_fn_error $? "pwd does not report name of working directory"
1280
1281
1282# Find the source files, if location was not specified.
1283if test -z "$srcdir"; then
1284  ac_srcdir_defaulted=yes
1285  # Try the directory containing this script, then the parent directory.
1286  ac_confdir=`$as_dirname -- "$as_myself" ||
1287$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288	 X"$as_myself" : 'X\(//\)[^/]' \| \
1289	 X"$as_myself" : 'X\(//\)$' \| \
1290	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291$as_echo X"$as_myself" |
1292    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293	    s//\1/
1294	    q
1295	  }
1296	  /^X\(\/\/\)[^/].*/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)$/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\).*/{
1305	    s//\1/
1306	    q
1307	  }
1308	  s/.*/./; q'`
1309  srcdir=$ac_confdir
1310  if test ! -r "$srcdir/$ac_unique_file"; then
1311    srcdir=..
1312  fi
1313else
1314  ac_srcdir_defaulted=no
1315fi
1316if test ! -r "$srcdir/$ac_unique_file"; then
1317  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319fi
1320ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321ac_abs_confdir=`(
1322	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323	pwd)`
1324# When building in place, set srcdir=.
1325if test "$ac_abs_confdir" = "$ac_pwd"; then
1326  srcdir=.
1327fi
1328# Remove unnecessary trailing slashes from srcdir.
1329# Double slashes in file names in object file debugging info
1330# mess up M-x gdb in Emacs.
1331case $srcdir in
1332*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333esac
1334for ac_var in $ac_precious_vars; do
1335  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336  eval ac_env_${ac_var}_value=\$${ac_var}
1337  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339done
1340
1341#
1342# Report the --help message.
1343#
1344if test "$ac_init_help" = "long"; then
1345  # Omit some internal or obsolete options to make the list less imposing.
1346  # This message is too long to be a string in the A/UX 3.1 sh.
1347  cat <<_ACEOF
1348\`configure' configures ppcg 0.04 to adapt to many kinds of systems.
1349
1350Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353VAR=VALUE.  See below for descriptions of some of the useful variables.
1354
1355Defaults for the options are specified in brackets.
1356
1357Configuration:
1358  -h, --help              display this help and exit
1359      --help=short        display options specific to this package
1360      --help=recursive    display the short help of all the included packages
1361  -V, --version           display version information and exit
1362  -q, --quiet, --silent   do not print \`checking ...' messages
1363      --cache-file=FILE   cache test results in FILE [disabled]
1364  -C, --config-cache      alias for \`--cache-file=config.cache'
1365  -n, --no-create         do not create output files
1366      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1367
1368Installation directories:
1369  --prefix=PREFIX         install architecture-independent files in PREFIX
1370                          [$ac_default_prefix]
1371  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1372                          [PREFIX]
1373
1374By default, \`make install' will install all the files in
1375\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1376an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377for instance \`--prefix=\$HOME'.
1378
1379For better control, use the options below.
1380
1381Fine tuning of the installation directories:
1382  --bindir=DIR            user executables [EPREFIX/bin]
1383  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1384  --libexecdir=DIR        program executables [EPREFIX/libexec]
1385  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1386  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1387  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1388  --libdir=DIR            object code libraries [EPREFIX/lib]
1389  --includedir=DIR        C header files [PREFIX/include]
1390  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1391  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1392  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1393  --infodir=DIR           info documentation [DATAROOTDIR/info]
1394  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1395  --mandir=DIR            man documentation [DATAROOTDIR/man]
1396  --docdir=DIR            documentation root [DATAROOTDIR/doc/ppcg]
1397  --htmldir=DIR           html documentation [DOCDIR]
1398  --dvidir=DIR            dvi documentation [DOCDIR]
1399  --pdfdir=DIR            pdf documentation [DOCDIR]
1400  --psdir=DIR             ps documentation [DOCDIR]
1401_ACEOF
1402
1403  cat <<\_ACEOF
1404
1405Program names:
1406  --program-prefix=PREFIX            prepend PREFIX to installed program names
1407  --program-suffix=SUFFIX            append SUFFIX to installed program names
1408  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1409
1410System types:
1411  --build=BUILD     configure for building on BUILD [guessed]
1412  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1413_ACEOF
1414fi
1415
1416if test -n "$ac_init_help"; then
1417  case $ac_init_help in
1418     short | recursive ) echo "Configuration of ppcg 0.04:";;
1419   esac
1420  cat <<\_ACEOF
1421
1422Optional Features:
1423  --disable-option-checking  ignore unrecognized --enable/--with options
1424  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1425  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1426  --enable-silent-rules   less verbose build output (undo: "make V=1")
1427  --disable-silent-rules  verbose build output (undo: "make V=0")
1428  --enable-dependency-tracking
1429                          do not reject slow dependency extractors
1430  --disable-dependency-tracking
1431                          speeds up one-time build
1432  --enable-shared[=PKGS]  build shared libraries [default=yes]
1433  --enable-static[=PKGS]  build static libraries [default=yes]
1434  --enable-fast-install[=PKGS]
1435                          optimize for fast installation [default=yes]
1436  --disable-libtool-lock  avoid locking (might break parallel builds)
1437
1438Optional Packages:
1439  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1440  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1441  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1442                          both]
1443  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1444  --with-sysroot=DIR Search for dependent libraries within DIR
1445                        (or the compiler's sysroot if not specified).
1446  --with-isl=build|bundled|system
1447                          Which isl to use [default=bundled]
1448  --with-isl-prefix=DIR   Prefix of isl installation
1449  --with-isl-exec-prefix=DIR
1450                          Exec prefix of isl installation
1451  --with-isl-builddir=DIR Location of isl builddir
1452  --with-pet=bundled|system
1453                          Which pet to use [default=bundled]
1454  --with-pet-prefix=DIR   Prefix of pet installation
1455  --with-pet-exec-prefix=DIR
1456                          Exec prefix of pet installation
1457  --with-polybench=DIR    PolyBench location
1458
1459Some influential environment variables:
1460  CC          C compiler command
1461  CFLAGS      C compiler flags
1462  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1463              nonstandard directory <lib dir>
1464  LIBS        libraries to pass to the linker, e.g. -l<library>
1465  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466              you have headers in a nonstandard directory <include dir>
1467  CPP         C preprocessor
1468  PKG_CONFIG  path to pkg-config utility
1469  PKG_CONFIG_PATH
1470              directories to add to pkg-config's search path
1471  PKG_CONFIG_LIBDIR
1472              path overriding pkg-config's built-in search path
1473  ISL_CFLAGS  C compiler flags for ISL, overriding pkg-config
1474  ISL_LIBS    linker flags for ISL, overriding pkg-config
1475  PET_CFLAGS  C compiler flags for PET, overriding pkg-config
1476  PET_LIBS    linker flags for PET, overriding pkg-config
1477
1478Use these variables to override the choices made by `configure' or to help
1479it to find libraries and programs with nonstandard names/locations.
1480
1481Report bugs to <isl-development@googlegroups.com>.
1482_ACEOF
1483ac_status=$?
1484fi
1485
1486if test "$ac_init_help" = "recursive"; then
1487  # If there are subdirs, report their specific --help.
1488  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489    test -d "$ac_dir" ||
1490      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491      continue
1492    ac_builddir=.
1493
1494case "$ac_dir" in
1495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496*)
1497  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498  # A ".." for each directory in $ac_dir_suffix.
1499  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500  case $ac_top_builddir_sub in
1501  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503  esac ;;
1504esac
1505ac_abs_top_builddir=$ac_pwd
1506ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507# for backward compatibility:
1508ac_top_builddir=$ac_top_build_prefix
1509
1510case $srcdir in
1511  .)  # We are building in place.
1512    ac_srcdir=.
1513    ac_top_srcdir=$ac_top_builddir_sub
1514    ac_abs_top_srcdir=$ac_pwd ;;
1515  [\\/]* | ?:[\\/]* )  # Absolute name.
1516    ac_srcdir=$srcdir$ac_dir_suffix;
1517    ac_top_srcdir=$srcdir
1518    ac_abs_top_srcdir=$srcdir ;;
1519  *) # Relative name.
1520    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521    ac_top_srcdir=$ac_top_build_prefix$srcdir
1522    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523esac
1524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526    cd "$ac_dir" || { ac_status=$?; continue; }
1527    # Check for guested configure.
1528    if test -f "$ac_srcdir/configure.gnu"; then
1529      echo &&
1530      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531    elif test -f "$ac_srcdir/configure"; then
1532      echo &&
1533      $SHELL "$ac_srcdir/configure" --help=recursive
1534    else
1535      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536    fi || ac_status=$?
1537    cd "$ac_pwd" || { ac_status=$?; break; }
1538  done
1539fi
1540
1541test -n "$ac_init_help" && exit $ac_status
1542if $ac_init_version; then
1543  cat <<\_ACEOF
1544ppcg configure 0.04
1545generated by GNU Autoconf 2.69
1546
1547Copyright (C) 2012 Free Software Foundation, Inc.
1548This configure script is free software; the Free Software Foundation
1549gives unlimited permission to copy, distribute and modify it.
1550_ACEOF
1551  exit
1552fi
1553
1554## ------------------------ ##
1555## Autoconf initialization. ##
1556## ------------------------ ##
1557
1558# ac_fn_c_try_compile LINENO
1559# --------------------------
1560# Try to compile conftest.$ac_ext, and return whether this succeeded.
1561ac_fn_c_try_compile ()
1562{
1563  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564  rm -f conftest.$ac_objext
1565  if { { ac_try="$ac_compile"
1566case "(($ac_try" in
1567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568  *) ac_try_echo=$ac_try;;
1569esac
1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571$as_echo "$ac_try_echo"; } >&5
1572  (eval "$ac_compile") 2>conftest.err
1573  ac_status=$?
1574  if test -s conftest.err; then
1575    grep -v '^ *+' conftest.err >conftest.er1
1576    cat conftest.er1 >&5
1577    mv -f conftest.er1 conftest.err
1578  fi
1579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580  test $ac_status = 0; } && {
1581	 test -z "$ac_c_werror_flag" ||
1582	 test ! -s conftest.err
1583       } && test -s conftest.$ac_objext; then :
1584  ac_retval=0
1585else
1586  $as_echo "$as_me: failed program was:" >&5
1587sed 's/^/| /' conftest.$ac_ext >&5
1588
1589	ac_retval=1
1590fi
1591  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592  as_fn_set_status $ac_retval
1593
1594} # ac_fn_c_try_compile
1595
1596# ac_fn_c_try_link LINENO
1597# -----------------------
1598# Try to link conftest.$ac_ext, and return whether this succeeded.
1599ac_fn_c_try_link ()
1600{
1601  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602  rm -f conftest.$ac_objext conftest$ac_exeext
1603  if { { ac_try="$ac_link"
1604case "(($ac_try" in
1605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606  *) ac_try_echo=$ac_try;;
1607esac
1608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609$as_echo "$ac_try_echo"; } >&5
1610  (eval "$ac_link") 2>conftest.err
1611  ac_status=$?
1612  if test -s conftest.err; then
1613    grep -v '^ *+' conftest.err >conftest.er1
1614    cat conftest.er1 >&5
1615    mv -f conftest.er1 conftest.err
1616  fi
1617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618  test $ac_status = 0; } && {
1619	 test -z "$ac_c_werror_flag" ||
1620	 test ! -s conftest.err
1621       } && test -s conftest$ac_exeext && {
1622	 test "$cross_compiling" = yes ||
1623	 test -x conftest$ac_exeext
1624       }; then :
1625  ac_retval=0
1626else
1627  $as_echo "$as_me: failed program was:" >&5
1628sed 's/^/| /' conftest.$ac_ext >&5
1629
1630	ac_retval=1
1631fi
1632  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1633  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1634  # interfere with the next link command; also delete a directory that is
1635  # left behind by Apple's compiler.  We do this before executing the actions.
1636  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638  as_fn_set_status $ac_retval
1639
1640} # ac_fn_c_try_link
1641
1642# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1643# -------------------------------------------------------
1644# Tests whether HEADER exists and can be compiled using the include files in
1645# INCLUDES, setting the cache variable VAR accordingly.
1646ac_fn_c_check_header_compile ()
1647{
1648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650$as_echo_n "checking for $2... " >&6; }
1651if eval \${$3+:} false; then :
1652  $as_echo_n "(cached) " >&6
1653else
1654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655/* end confdefs.h.  */
1656$4
1657#include <$2>
1658_ACEOF
1659if ac_fn_c_try_compile "$LINENO"; then :
1660  eval "$3=yes"
1661else
1662  eval "$3=no"
1663fi
1664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665fi
1666eval ac_res=\$$3
1667	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668$as_echo "$ac_res" >&6; }
1669  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671} # ac_fn_c_check_header_compile
1672
1673# ac_fn_c_try_cpp LINENO
1674# ----------------------
1675# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_c_try_cpp ()
1677{
1678  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679  if { { ac_try="$ac_cpp conftest.$ac_ext"
1680case "(($ac_try" in
1681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682  *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687  ac_status=$?
1688  if test -s conftest.err; then
1689    grep -v '^ *+' conftest.err >conftest.er1
1690    cat conftest.er1 >&5
1691    mv -f conftest.er1 conftest.err
1692  fi
1693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694  test $ac_status = 0; } > conftest.i && {
1695	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696	 test ! -s conftest.err
1697       }; then :
1698  ac_retval=0
1699else
1700  $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703    ac_retval=1
1704fi
1705  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706  as_fn_set_status $ac_retval
1707
1708} # ac_fn_c_try_cpp
1709
1710# ac_fn_c_try_run LINENO
1711# ----------------------
1712# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713# that executables *can* be run.
1714ac_fn_c_try_run ()
1715{
1716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717  if { { ac_try="$ac_link"
1718case "(($ac_try" in
1719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720  *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724  (eval "$ac_link") 2>&5
1725  ac_status=$?
1726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728  { { case "(($ac_try" in
1729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730  *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734  (eval "$ac_try") 2>&5
1735  ac_status=$?
1736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737  test $ac_status = 0; }; }; then :
1738  ac_retval=0
1739else
1740  $as_echo "$as_me: program exited with status $ac_status" >&5
1741       $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744       ac_retval=$ac_status
1745fi
1746  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748  as_fn_set_status $ac_retval
1749
1750} # ac_fn_c_try_run
1751
1752# ac_fn_c_check_func LINENO FUNC VAR
1753# ----------------------------------
1754# Tests whether FUNC exists, setting the cache variable VAR accordingly
1755ac_fn_c_check_func ()
1756{
1757  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759$as_echo_n "checking for $2... " >&6; }
1760if eval \${$3+:} false; then :
1761  $as_echo_n "(cached) " >&6
1762else
1763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h.  */
1765/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1766   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1767#define $2 innocuous_$2
1768
1769/* System header to define __stub macros and hopefully few prototypes,
1770    which can conflict with char $2 (); below.
1771    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1772    <limits.h> exists even on freestanding compilers.  */
1773
1774#ifdef __STDC__
1775# include <limits.h>
1776#else
1777# include <assert.h>
1778#endif
1779
1780#undef $2
1781
1782/* Override any GCC internal prototype to avoid an error.
1783   Use char because int might match the return type of a GCC
1784   builtin and then its argument prototype would still apply.  */
1785#ifdef __cplusplus
1786extern "C"
1787#endif
1788char $2 ();
1789/* The GNU C library defines this for functions which it implements
1790    to always fail with ENOSYS.  Some functions are actually named
1791    something starting with __ and the normal name is an alias.  */
1792#if defined __stub_$2 || defined __stub___$2
1793choke me
1794#endif
1795
1796int
1797main ()
1798{
1799return $2 ();
1800  ;
1801  return 0;
1802}
1803_ACEOF
1804if ac_fn_c_try_link "$LINENO"; then :
1805  eval "$3=yes"
1806else
1807  eval "$3=no"
1808fi
1809rm -f core conftest.err conftest.$ac_objext \
1810    conftest$ac_exeext conftest.$ac_ext
1811fi
1812eval ac_res=\$$3
1813	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814$as_echo "$ac_res" >&6; }
1815  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817} # ac_fn_c_check_func
1818
1819# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1820# -------------------------------------------------------
1821# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1822# the include files in INCLUDES and setting the cache variable VAR
1823# accordingly.
1824ac_fn_c_check_header_mongrel ()
1825{
1826  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827  if eval \${$3+:} false; then :
1828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829$as_echo_n "checking for $2... " >&6; }
1830if eval \${$3+:} false; then :
1831  $as_echo_n "(cached) " >&6
1832fi
1833eval ac_res=\$$3
1834	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835$as_echo "$ac_res" >&6; }
1836else
1837  # Is the header compilable?
1838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1839$as_echo_n "checking $2 usability... " >&6; }
1840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841/* end confdefs.h.  */
1842$4
1843#include <$2>
1844_ACEOF
1845if ac_fn_c_try_compile "$LINENO"; then :
1846  ac_header_compiler=yes
1847else
1848  ac_header_compiler=no
1849fi
1850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1852$as_echo "$ac_header_compiler" >&6; }
1853
1854# Is the header present?
1855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1856$as_echo_n "checking $2 presence... " >&6; }
1857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858/* end confdefs.h.  */
1859#include <$2>
1860_ACEOF
1861if ac_fn_c_try_cpp "$LINENO"; then :
1862  ac_header_preproc=yes
1863else
1864  ac_header_preproc=no
1865fi
1866rm -f conftest.err conftest.i conftest.$ac_ext
1867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1868$as_echo "$ac_header_preproc" >&6; }
1869
1870# So?  What about this header?
1871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1872  yes:no: )
1873    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1874$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1875    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1876$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1877    ;;
1878  no:yes:* )
1879    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1880$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1881    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1882$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1883    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1884$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1885    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1886$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1887    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1888$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1889( $as_echo "## ----------------------------------------------- ##
1890## Report this to isl-development@googlegroups.com ##
1891## ----------------------------------------------- ##"
1892     ) | sed "s/^/$as_me: WARNING:     /" >&2
1893    ;;
1894esac
1895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896$as_echo_n "checking for $2... " >&6; }
1897if eval \${$3+:} false; then :
1898  $as_echo_n "(cached) " >&6
1899else
1900  eval "$3=\$ac_header_compiler"
1901fi
1902eval ac_res=\$$3
1903	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904$as_echo "$ac_res" >&6; }
1905fi
1906  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908} # ac_fn_c_check_header_mongrel
1909cat >config.log <<_ACEOF
1910This file contains any messages produced by compilers while
1911running configure, to aid debugging if configure makes a mistake.
1912
1913It was created by ppcg $as_me 0.04, which was
1914generated by GNU Autoconf 2.69.  Invocation command line was
1915
1916  $ $0 $@
1917
1918_ACEOF
1919exec 5>>config.log
1920{
1921cat <<_ASUNAME
1922## --------- ##
1923## Platform. ##
1924## --------- ##
1925
1926hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1927uname -m = `(uname -m) 2>/dev/null || echo unknown`
1928uname -r = `(uname -r) 2>/dev/null || echo unknown`
1929uname -s = `(uname -s) 2>/dev/null || echo unknown`
1930uname -v = `(uname -v) 2>/dev/null || echo unknown`
1931
1932/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1933/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1934
1935/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1936/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1937/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1938/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1939/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1940/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1941/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1942
1943_ASUNAME
1944
1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946for as_dir in $PATH
1947do
1948  IFS=$as_save_IFS
1949  test -z "$as_dir" && as_dir=.
1950    $as_echo "PATH: $as_dir"
1951  done
1952IFS=$as_save_IFS
1953
1954} >&5
1955
1956cat >&5 <<_ACEOF
1957
1958
1959## ----------- ##
1960## Core tests. ##
1961## ----------- ##
1962
1963_ACEOF
1964
1965
1966# Keep a trace of the command line.
1967# Strip out --no-create and --no-recursion so they do not pile up.
1968# Strip out --silent because we don't want to record it for future runs.
1969# Also quote any args containing shell meta-characters.
1970# Make two passes to allow for proper duplicate-argument suppression.
1971ac_configure_args=
1972ac_configure_args0=
1973ac_configure_args1=
1974ac_must_keep_next=false
1975for ac_pass in 1 2
1976do
1977  for ac_arg
1978  do
1979    case $ac_arg in
1980    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1981    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1982    | -silent | --silent | --silen | --sile | --sil)
1983      continue ;;
1984    *\'*)
1985      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1986    esac
1987    case $ac_pass in
1988    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1989    2)
1990      as_fn_append ac_configure_args1 " '$ac_arg'"
1991      if test $ac_must_keep_next = true; then
1992	ac_must_keep_next=false # Got value, back to normal.
1993      else
1994	case $ac_arg in
1995	  *=* | --config-cache | -C | -disable-* | --disable-* \
1996	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1997	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1998	  | -with-* | --with-* | -without-* | --without-* | --x)
1999	    case "$ac_configure_args0 " in
2000	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2001	    esac
2002	    ;;
2003	  -* ) ac_must_keep_next=true ;;
2004	esac
2005      fi
2006      as_fn_append ac_configure_args " '$ac_arg'"
2007      ;;
2008    esac
2009  done
2010done
2011{ ac_configure_args0=; unset ac_configure_args0;}
2012{ ac_configure_args1=; unset ac_configure_args1;}
2013
2014# When interrupted or exit'd, cleanup temporary files, and complete
2015# config.log.  We remove comments because anyway the quotes in there
2016# would cause problems or look ugly.
2017# WARNING: Use '\'' to represent an apostrophe within the trap.
2018# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2019trap 'exit_status=$?
2020  # Save into config.log some information that might help in debugging.
2021  {
2022    echo
2023
2024    $as_echo "## ---------------- ##
2025## Cache variables. ##
2026## ---------------- ##"
2027    echo
2028    # The following way of writing the cache mishandles newlines in values,
2029(
2030  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2031    eval ac_val=\$$ac_var
2032    case $ac_val in #(
2033    *${as_nl}*)
2034      case $ac_var in #(
2035      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2037      esac
2038      case $ac_var in #(
2039      _ | IFS | as_nl) ;; #(
2040      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2041      *) { eval $ac_var=; unset $ac_var;} ;;
2042      esac ;;
2043    esac
2044  done
2045  (set) 2>&1 |
2046    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2047    *${as_nl}ac_space=\ *)
2048      sed -n \
2049	"s/'\''/'\''\\\\'\'''\''/g;
2050	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2051      ;; #(
2052    *)
2053      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2054      ;;
2055    esac |
2056    sort
2057)
2058    echo
2059
2060    $as_echo "## ----------------- ##
2061## Output variables. ##
2062## ----------------- ##"
2063    echo
2064    for ac_var in $ac_subst_vars
2065    do
2066      eval ac_val=\$$ac_var
2067      case $ac_val in
2068      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069      esac
2070      $as_echo "$ac_var='\''$ac_val'\''"
2071    done | sort
2072    echo
2073
2074    if test -n "$ac_subst_files"; then
2075      $as_echo "## ------------------- ##
2076## File substitutions. ##
2077## ------------------- ##"
2078      echo
2079      for ac_var in $ac_subst_files
2080      do
2081	eval ac_val=\$$ac_var
2082	case $ac_val in
2083	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084	esac
2085	$as_echo "$ac_var='\''$ac_val'\''"
2086      done | sort
2087      echo
2088    fi
2089
2090    if test -s confdefs.h; then
2091      $as_echo "## ----------- ##
2092## confdefs.h. ##
2093## ----------- ##"
2094      echo
2095      cat confdefs.h
2096      echo
2097    fi
2098    test "$ac_signal" != 0 &&
2099      $as_echo "$as_me: caught signal $ac_signal"
2100    $as_echo "$as_me: exit $exit_status"
2101  } >&5
2102  rm -f core *.core core.conftest.* &&
2103    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2104    exit $exit_status
2105' 0
2106for ac_signal in 1 2 13 15; do
2107  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2108done
2109ac_signal=0
2110
2111# confdefs.h avoids OS command line length limits that DEFS can exceed.
2112rm -f -r conftest* confdefs.h
2113
2114$as_echo "/* confdefs.h */" > confdefs.h
2115
2116# Predefined preprocessor variables.
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_NAME "$PACKAGE_NAME"
2120_ACEOF
2121
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2124_ACEOF
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_VERSION "$PACKAGE_VERSION"
2128_ACEOF
2129
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_STRING "$PACKAGE_STRING"
2132_ACEOF
2133
2134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2136_ACEOF
2137
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_URL "$PACKAGE_URL"
2140_ACEOF
2141
2142
2143# Let the site file select an alternate cache file if it wants to.
2144# Prefer an explicitly selected file to automatically selected ones.
2145ac_site_file1=NONE
2146ac_site_file2=NONE
2147if test -n "$CONFIG_SITE"; then
2148  # We do not want a PATH search for config.site.
2149  case $CONFIG_SITE in #((
2150    -*)  ac_site_file1=./$CONFIG_SITE;;
2151    */*) ac_site_file1=$CONFIG_SITE;;
2152    *)   ac_site_file1=./$CONFIG_SITE;;
2153  esac
2154elif test "x$prefix" != xNONE; then
2155  ac_site_file1=$prefix/share/config.site
2156  ac_site_file2=$prefix/etc/config.site
2157else
2158  ac_site_file1=$ac_default_prefix/share/config.site
2159  ac_site_file2=$ac_default_prefix/etc/config.site
2160fi
2161for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162do
2163  test "x$ac_site_file" = xNONE && continue
2164  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2165    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2167    sed 's/^/| /' "$ac_site_file" >&5
2168    . "$ac_site_file" \
2169      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2171as_fn_error $? "failed to load site script $ac_site_file
2172See \`config.log' for more details" "$LINENO" 5; }
2173  fi
2174done
2175
2176if test -r "$cache_file"; then
2177  # Some versions of bash will fail to source /dev/null (special files
2178  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2179  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2180    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2181$as_echo "$as_me: loading cache $cache_file" >&6;}
2182    case $cache_file in
2183      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2184      *)                      . "./$cache_file";;
2185    esac
2186  fi
2187else
2188  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2189$as_echo "$as_me: creating cache $cache_file" >&6;}
2190  >$cache_file
2191fi
2192
2193# Check that the precious variables saved in the cache have kept the same
2194# value.
2195ac_cache_corrupted=false
2196for ac_var in $ac_precious_vars; do
2197  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2198  eval ac_new_set=\$ac_env_${ac_var}_set
2199  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2200  eval ac_new_val=\$ac_env_${ac_var}_value
2201  case $ac_old_set,$ac_new_set in
2202    set,)
2203      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2204$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2205      ac_cache_corrupted=: ;;
2206    ,set)
2207      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2208$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2209      ac_cache_corrupted=: ;;
2210    ,);;
2211    *)
2212      if test "x$ac_old_val" != "x$ac_new_val"; then
2213	# differences in whitespace do not lead to failure.
2214	ac_old_val_w=`echo x $ac_old_val`
2215	ac_new_val_w=`echo x $ac_new_val`
2216	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2217	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2218$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2219	  ac_cache_corrupted=:
2220	else
2221	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2222$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2223	  eval $ac_var=\$ac_old_val
2224	fi
2225	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2226$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2227	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2228$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2229      fi;;
2230  esac
2231  # Pass precious variables to config.status.
2232  if test "$ac_new_set" = set; then
2233    case $ac_new_val in
2234    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2235    *) ac_arg=$ac_var=$ac_new_val ;;
2236    esac
2237    case " $ac_configure_args " in
2238      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2239      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2240    esac
2241  fi
2242done
2243if $ac_cache_corrupted; then
2244  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2247$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2248  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2249fi
2250## -------------------- ##
2251## Main body of script. ##
2252## -------------------- ##
2253
2254ac_ext=c
2255ac_cpp='$CPP $CPPFLAGS'
2256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259
2260
2261ac_aux_dir=
2262for ac_dir in . "$srcdir"/.; do
2263  if test -f "$ac_dir/install-sh"; then
2264    ac_aux_dir=$ac_dir
2265    ac_install_sh="$ac_aux_dir/install-sh -c"
2266    break
2267  elif test -f "$ac_dir/install.sh"; then
2268    ac_aux_dir=$ac_dir
2269    ac_install_sh="$ac_aux_dir/install.sh -c"
2270    break
2271  elif test -f "$ac_dir/shtool"; then
2272    ac_aux_dir=$ac_dir
2273    ac_install_sh="$ac_aux_dir/shtool install -c"
2274    break
2275  fi
2276done
2277if test -z "$ac_aux_dir"; then
2278  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2279fi
2280
2281# These three variables are undocumented and unsupported,
2282# and are intended to be withdrawn in a future Autoconf release.
2283# They can cause serious problems if a builder's source tree is in a directory
2284# whose full name contains unusual characters.
2285ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2286ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2287ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2288
2289
2290
2291am__api_version='1.15'
2292
2293# Find a good install program.  We prefer a C program (faster),
2294# so one script is as good as another.  But avoid the broken or
2295# incompatible versions:
2296# SysV /etc/install, /usr/sbin/install
2297# SunOS /usr/etc/install
2298# IRIX /sbin/install
2299# AIX /bin/install
2300# AmigaOS /C/install, which installs bootblocks on floppy discs
2301# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2302# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2303# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2304# OS/2's system install, which has a completely different semantic
2305# ./install, which can be erroneously created by make from ./install.sh.
2306# Reject install programs that cannot install multiple files.
2307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2308$as_echo_n "checking for a BSD-compatible install... " >&6; }
2309if test -z "$INSTALL"; then
2310if ${ac_cv_path_install+:} false; then :
2311  $as_echo_n "(cached) " >&6
2312else
2313  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314for as_dir in $PATH
2315do
2316  IFS=$as_save_IFS
2317  test -z "$as_dir" && as_dir=.
2318    # Account for people who put trailing slashes in PATH elements.
2319case $as_dir/ in #((
2320  ./ | .// | /[cC]/* | \
2321  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2322  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2323  /usr/ucb/* ) ;;
2324  *)
2325    # OSF1 and SCO ODT 3.0 have their own names for install.
2326    # Don't use installbsd from OSF since it installs stuff as root
2327    # by default.
2328    for ac_prog in ginstall scoinst install; do
2329      for ac_exec_ext in '' $ac_executable_extensions; do
2330	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2331	  if test $ac_prog = install &&
2332	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2333	    # AIX install.  It has an incompatible calling convention.
2334	    :
2335	  elif test $ac_prog = install &&
2336	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2337	    # program-specific install script used by HP pwplus--don't use.
2338	    :
2339	  else
2340	    rm -rf conftest.one conftest.two conftest.dir
2341	    echo one > conftest.one
2342	    echo two > conftest.two
2343	    mkdir conftest.dir
2344	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2345	      test -s conftest.one && test -s conftest.two &&
2346	      test -s conftest.dir/conftest.one &&
2347	      test -s conftest.dir/conftest.two
2348	    then
2349	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2350	      break 3
2351	    fi
2352	  fi
2353	fi
2354      done
2355    done
2356    ;;
2357esac
2358
2359  done
2360IFS=$as_save_IFS
2361
2362rm -rf conftest.one conftest.two conftest.dir
2363
2364fi
2365  if test "${ac_cv_path_install+set}" = set; then
2366    INSTALL=$ac_cv_path_install
2367  else
2368    # As a last resort, use the slow shell script.  Don't cache a
2369    # value for INSTALL within a source directory, because that will
2370    # break other packages using the cache if that directory is
2371    # removed, or if the value is a relative name.
2372    INSTALL=$ac_install_sh
2373  fi
2374fi
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2376$as_echo "$INSTALL" >&6; }
2377
2378# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2379# It thinks the first close brace ends the variable substitution.
2380test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2381
2382test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2383
2384test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2385
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2387$as_echo_n "checking whether build environment is sane... " >&6; }
2388# Reject unsafe characters in $srcdir or the absolute working directory
2389# name.  Accept space and tab only in the latter.
2390am_lf='
2391'
2392case `pwd` in
2393  *[\\\"\#\$\&\'\`$am_lf]*)
2394    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2395esac
2396case $srcdir in
2397  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2398    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2399esac
2400
2401# Do 'set' in a subshell so we don't clobber the current shell's
2402# arguments.  Must try -L first in case configure is actually a
2403# symlink; some systems play weird games with the mod time of symlinks
2404# (eg FreeBSD returns the mod time of the symlink's containing
2405# directory).
2406if (
2407   am_has_slept=no
2408   for am_try in 1 2; do
2409     echo "timestamp, slept: $am_has_slept" > conftest.file
2410     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2411     if test "$*" = "X"; then
2412	# -L didn't work.
2413	set X `ls -t "$srcdir/configure" conftest.file`
2414     fi
2415     if test "$*" != "X $srcdir/configure conftest.file" \
2416	&& test "$*" != "X conftest.file $srcdir/configure"; then
2417
2418	# If neither matched, then we have a broken ls.  This can happen
2419	# if, for instance, CONFIG_SHELL is bash and it inherits a
2420	# broken ls alias from the environment.  This has actually
2421	# happened.  Such a system could not be considered "sane".
2422	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2423  alias in your environment" "$LINENO" 5
2424     fi
2425     if test "$2" = conftest.file || test $am_try -eq 2; then
2426       break
2427     fi
2428     # Just in case.
2429     sleep 1
2430     am_has_slept=yes
2431   done
2432   test "$2" = conftest.file
2433   )
2434then
2435   # Ok.
2436   :
2437else
2438   as_fn_error $? "newly created file is older than distributed files!
2439Check your system clock" "$LINENO" 5
2440fi
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2442$as_echo "yes" >&6; }
2443# If we didn't sleep, we still need to ensure time stamps of config.status and
2444# generated files are strictly newer.
2445am_sleep_pid=
2446if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2447  ( sleep 1 ) &
2448  am_sleep_pid=$!
2449fi
2450
2451rm -f conftest.file
2452
2453test "$program_prefix" != NONE &&
2454  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2455# Use a double $ so make ignores it.
2456test "$program_suffix" != NONE &&
2457  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2458# Double any \ or $.
2459# By default was `s,x,x', remove it if useless.
2460ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2461program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2462
2463# Expand $ac_aux_dir to an absolute path.
2464am_aux_dir=`cd "$ac_aux_dir" && pwd`
2465
2466if test x"${MISSING+set}" != xset; then
2467  case $am_aux_dir in
2468  *\ * | *\	*)
2469    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2470  *)
2471    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2472  esac
2473fi
2474# Use eval to expand $SHELL
2475if eval "$MISSING --is-lightweight"; then
2476  am_missing_run="$MISSING "
2477else
2478  am_missing_run=
2479  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2480$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2481fi
2482
2483if test x"${install_sh+set}" != xset; then
2484  case $am_aux_dir in
2485  *\ * | *\	*)
2486    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2487  *)
2488    install_sh="\${SHELL} $am_aux_dir/install-sh"
2489  esac
2490fi
2491
2492# Installed binaries are usually stripped using 'strip' when the user
2493# run "make install-strip".  However 'strip' might not be the right
2494# tool to use in cross-compilation environments, therefore Automake
2495# will honor the 'STRIP' environment variable to overrule this program.
2496if test "$cross_compiling" != no; then
2497  if test -n "$ac_tool_prefix"; then
2498  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2499set dummy ${ac_tool_prefix}strip; ac_word=$2
2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501$as_echo_n "checking for $ac_word... " >&6; }
2502if ${ac_cv_prog_STRIP+:} false; then :
2503  $as_echo_n "(cached) " >&6
2504else
2505  if test -n "$STRIP"; then
2506  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2507else
2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511  IFS=$as_save_IFS
2512  test -z "$as_dir" && as_dir=.
2513    for ac_exec_ext in '' $ac_executable_extensions; do
2514  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517    break 2
2518  fi
2519done
2520  done
2521IFS=$as_save_IFS
2522
2523fi
2524fi
2525STRIP=$ac_cv_prog_STRIP
2526if test -n "$STRIP"; then
2527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2528$as_echo "$STRIP" >&6; }
2529else
2530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531$as_echo "no" >&6; }
2532fi
2533
2534
2535fi
2536if test -z "$ac_cv_prog_STRIP"; then
2537  ac_ct_STRIP=$STRIP
2538  # Extract the first word of "strip", so it can be a program name with args.
2539set dummy strip; ac_word=$2
2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541$as_echo_n "checking for $ac_word... " >&6; }
2542if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2543  $as_echo_n "(cached) " >&6
2544else
2545  if test -n "$ac_ct_STRIP"; then
2546  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2547else
2548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549for as_dir in $PATH
2550do
2551  IFS=$as_save_IFS
2552  test -z "$as_dir" && as_dir=.
2553    for ac_exec_ext in '' $ac_executable_extensions; do
2554  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555    ac_cv_prog_ac_ct_STRIP="strip"
2556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557    break 2
2558  fi
2559done
2560  done
2561IFS=$as_save_IFS
2562
2563fi
2564fi
2565ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2566if test -n "$ac_ct_STRIP"; then
2567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2568$as_echo "$ac_ct_STRIP" >&6; }
2569else
2570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571$as_echo "no" >&6; }
2572fi
2573
2574  if test "x$ac_ct_STRIP" = x; then
2575    STRIP=":"
2576  else
2577    case $cross_compiling:$ac_tool_warned in
2578yes:)
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2581ac_tool_warned=yes ;;
2582esac
2583    STRIP=$ac_ct_STRIP
2584  fi
2585else
2586  STRIP="$ac_cv_prog_STRIP"
2587fi
2588
2589fi
2590INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2591
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2593$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2594if test -z "$MKDIR_P"; then
2595  if ${ac_cv_path_mkdir+:} false; then :
2596  $as_echo_n "(cached) " >&6
2597else
2598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2600do
2601  IFS=$as_save_IFS
2602  test -z "$as_dir" && as_dir=.
2603    for ac_prog in mkdir gmkdir; do
2604	 for ac_exec_ext in '' $ac_executable_extensions; do
2605	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2606	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2607	     'mkdir (GNU coreutils) '* | \
2608	     'mkdir (coreutils) '* | \
2609	     'mkdir (fileutils) '4.1*)
2610	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2611	       break 3;;
2612	   esac
2613	 done
2614       done
2615  done
2616IFS=$as_save_IFS
2617
2618fi
2619
2620  test -d ./--version && rmdir ./--version
2621  if test "${ac_cv_path_mkdir+set}" = set; then
2622    MKDIR_P="$ac_cv_path_mkdir -p"
2623  else
2624    # As a last resort, use the slow shell script.  Don't cache a
2625    # value for MKDIR_P within a source directory, because that will
2626    # break other packages using the cache if that directory is
2627    # removed, or if the value is a relative name.
2628    MKDIR_P="$ac_install_sh -d"
2629  fi
2630fi
2631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2632$as_echo "$MKDIR_P" >&6; }
2633
2634for ac_prog in gawk mawk nawk awk
2635do
2636  # Extract the first word of "$ac_prog", so it can be a program name with args.
2637set dummy $ac_prog; ac_word=$2
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639$as_echo_n "checking for $ac_word... " >&6; }
2640if ${ac_cv_prog_AWK+:} false; then :
2641  $as_echo_n "(cached) " >&6
2642else
2643  if test -n "$AWK"; then
2644  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649  IFS=$as_save_IFS
2650  test -z "$as_dir" && as_dir=.
2651    for ac_exec_ext in '' $ac_executable_extensions; do
2652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653    ac_cv_prog_AWK="$ac_prog"
2654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655    break 2
2656  fi
2657done
2658  done
2659IFS=$as_save_IFS
2660
2661fi
2662fi
2663AWK=$ac_cv_prog_AWK
2664if test -n "$AWK"; then
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2666$as_echo "$AWK" >&6; }
2667else
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670fi
2671
2672
2673  test -n "$AWK" && break
2674done
2675
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2677$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2678set x ${MAKE-make}
2679ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2680if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2681  $as_echo_n "(cached) " >&6
2682else
2683  cat >conftest.make <<\_ACEOF
2684SHELL = /bin/sh
2685all:
2686	@echo '@@@%%%=$(MAKE)=@@@%%%'
2687_ACEOF
2688# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2689case `${MAKE-make} -f conftest.make 2>/dev/null` in
2690  *@@@%%%=?*=@@@%%%*)
2691    eval ac_cv_prog_make_${ac_make}_set=yes;;
2692  *)
2693    eval ac_cv_prog_make_${ac_make}_set=no;;
2694esac
2695rm -f conftest.make
2696fi
2697if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2699$as_echo "yes" >&6; }
2700  SET_MAKE=
2701else
2702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703$as_echo "no" >&6; }
2704  SET_MAKE="MAKE=${MAKE-make}"
2705fi
2706
2707rm -rf .tst 2>/dev/null
2708mkdir .tst 2>/dev/null
2709if test -d .tst; then
2710  am__leading_dot=.
2711else
2712  am__leading_dot=_
2713fi
2714rmdir .tst 2>/dev/null
2715
2716# Check whether --enable-silent-rules was given.
2717if test "${enable_silent_rules+set}" = set; then :
2718  enableval=$enable_silent_rules;
2719fi
2720
2721case $enable_silent_rules in # (((
2722  yes) AM_DEFAULT_VERBOSITY=0;;
2723   no) AM_DEFAULT_VERBOSITY=1;;
2724    *) AM_DEFAULT_VERBOSITY=1;;
2725esac
2726am_make=${MAKE-make}
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2728$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2729if ${am_cv_make_support_nested_variables+:} false; then :
2730  $as_echo_n "(cached) " >&6
2731else
2732  if $as_echo 'TRUE=$(BAR$(V))
2733BAR0=false
2734BAR1=true
2735V=1
2736am__doit:
2737	@$(TRUE)
2738.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2739  am_cv_make_support_nested_variables=yes
2740else
2741  am_cv_make_support_nested_variables=no
2742fi
2743fi
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2745$as_echo "$am_cv_make_support_nested_variables" >&6; }
2746if test $am_cv_make_support_nested_variables = yes; then
2747    AM_V='$(V)'
2748  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2749else
2750  AM_V=$AM_DEFAULT_VERBOSITY
2751  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2752fi
2753AM_BACKSLASH='\'
2754
2755if test "`cd $srcdir && pwd`" != "`pwd`"; then
2756  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2757  # is not polluted with repeated "-I."
2758  am__isrc=' -I$(srcdir)'
2759  # test to see if srcdir already configured
2760  if test -f $srcdir/config.status; then
2761    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2762  fi
2763fi
2764
2765# test whether we have cygpath
2766if test -z "$CYGPATH_W"; then
2767  if (cygpath --version) >/dev/null 2>/dev/null; then
2768    CYGPATH_W='cygpath -w'
2769  else
2770    CYGPATH_W=echo
2771  fi
2772fi
2773
2774
2775# Define the identity of the package.
2776 PACKAGE='ppcg'
2777 VERSION='0.04'
2778
2779
2780cat >>confdefs.h <<_ACEOF
2781#define PACKAGE "$PACKAGE"
2782_ACEOF
2783
2784
2785cat >>confdefs.h <<_ACEOF
2786#define VERSION "$VERSION"
2787_ACEOF
2788
2789# Some tools Automake needs.
2790
2791ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2792
2793
2794AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2795
2796
2797AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2798
2799
2800AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2801
2802
2803MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2804
2805# For better backward compatibility.  To be removed once Automake 1.9.x
2806# dies out for good.  For more background, see:
2807# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2808# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2809mkdir_p='$(MKDIR_P)'
2810
2811# We need awk for the "check" target (and possibly the TAP driver).  The
2812# system "awk" is bad on some platforms.
2813# Always define AMTAR for backward compatibility.  Yes, it's still used
2814# in the wild :-(  We should find a proper way to deprecate it ...
2815AMTAR='$${TAR-tar}'
2816
2817
2818# We'll loop over all known methods to create a tar archive until one works.
2819_am_tools='gnutar  pax cpio none'
2820
2821am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2822
2823
2824
2825
2826
2827
2828# POSIX will say in a future version that running "rm -f" with no argument
2829# is OK; and we want to be able to make that assumption in our Makefile
2830# recipes.  So use an aggressive probe to check that the usage we want is
2831# actually supported "in the wild" to an acceptable degree.
2832# See automake bug#10828.
2833# To make any issue more visible, cause the running configure to be aborted
2834# by default if the 'rm' program in use doesn't match our expectations; the
2835# user can still override this though.
2836if rm -f && rm -fr && rm -rf; then : OK; else
2837  cat >&2 <<'END'
2838Oops!
2839
2840Your 'rm' program seems unable to run without file operands specified
2841on the command line, even when the '-f' option is present.  This is contrary
2842to the behaviour of most rm programs out there, and not conforming with
2843the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2844
2845Please tell bug-automake@gnu.org about your system, including the value
2846of your $PATH and any error possibly output before this message.  This
2847can help us improve future automake versions.
2848
2849END
2850  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2851    echo 'Configuration will proceed anyway, since you have set the' >&2
2852    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2853    echo >&2
2854  else
2855    cat >&2 <<'END'
2856Aborting the configuration process, to ensure you take notice of the issue.
2857
2858You can download and install GNU coreutils to get an 'rm' implementation
2859that behaves properly: <http://www.gnu.org/software/coreutils/>.
2860
2861If you want to complete the configuration process using your problematic
2862'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2863to "yes", and re-run configure.
2864
2865END
2866    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2867  fi
2868fi
2869
2870# Check whether --enable-silent-rules was given.
2871if test "${enable_silent_rules+set}" = set; then :
2872  enableval=$enable_silent_rules;
2873fi
2874
2875case $enable_silent_rules in # (((
2876  yes) AM_DEFAULT_VERBOSITY=0;;
2877   no) AM_DEFAULT_VERBOSITY=1;;
2878    *) AM_DEFAULT_VERBOSITY=0;;
2879esac
2880am_make=${MAKE-make}
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2882$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2883if ${am_cv_make_support_nested_variables+:} false; then :
2884  $as_echo_n "(cached) " >&6
2885else
2886  if $as_echo 'TRUE=$(BAR$(V))
2887BAR0=false
2888BAR1=true
2889V=1
2890am__doit:
2891	@$(TRUE)
2892.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2893  am_cv_make_support_nested_variables=yes
2894else
2895  am_cv_make_support_nested_variables=no
2896fi
2897fi
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2899$as_echo "$am_cv_make_support_nested_variables" >&6; }
2900if test $am_cv_make_support_nested_variables = yes; then
2901    AM_V='$(V)'
2902  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2903else
2904  AM_V=$AM_DEFAULT_VERBOSITY
2905  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2906fi
2907AM_BACKSLASH='\'
2908
2909
2910ac_ext=c
2911ac_cpp='$CPP $CPPFLAGS'
2912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2914ac_compiler_gnu=$ac_cv_c_compiler_gnu
2915if test -n "$ac_tool_prefix"; then
2916  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2917set dummy ${ac_tool_prefix}gcc; ac_word=$2
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919$as_echo_n "checking for $ac_word... " >&6; }
2920if ${ac_cv_prog_CC+:} false; then :
2921  $as_echo_n "(cached) " >&6
2922else
2923  if test -n "$CC"; then
2924  ac_cv_prog_CC="$CC" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929  IFS=$as_save_IFS
2930  test -z "$as_dir" && as_dir=.
2931    for ac_exec_ext in '' $ac_executable_extensions; do
2932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935    break 2
2936  fi
2937done
2938  done
2939IFS=$as_save_IFS
2940
2941fi
2942fi
2943CC=$ac_cv_prog_CC
2944if test -n "$CC"; then
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946$as_echo "$CC" >&6; }
2947else
2948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949$as_echo "no" >&6; }
2950fi
2951
2952
2953fi
2954if test -z "$ac_cv_prog_CC"; then
2955  ac_ct_CC=$CC
2956  # Extract the first word of "gcc", so it can be a program name with args.
2957set dummy gcc; ac_word=$2
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959$as_echo_n "checking for $ac_word... " >&6; }
2960if ${ac_cv_prog_ac_ct_CC+:} false; then :
2961  $as_echo_n "(cached) " >&6
2962else
2963  if test -n "$ac_ct_CC"; then
2964  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2965else
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969  IFS=$as_save_IFS
2970  test -z "$as_dir" && as_dir=.
2971    for ac_exec_ext in '' $ac_executable_extensions; do
2972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973    ac_cv_prog_ac_ct_CC="gcc"
2974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975    break 2
2976  fi
2977done
2978  done
2979IFS=$as_save_IFS
2980
2981fi
2982fi
2983ac_ct_CC=$ac_cv_prog_ac_ct_CC
2984if test -n "$ac_ct_CC"; then
2985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2986$as_echo "$ac_ct_CC" >&6; }
2987else
2988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989$as_echo "no" >&6; }
2990fi
2991
2992  if test "x$ac_ct_CC" = x; then
2993    CC=""
2994  else
2995    case $cross_compiling:$ac_tool_warned in
2996yes:)
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2999ac_tool_warned=yes ;;
3000esac
3001    CC=$ac_ct_CC
3002  fi
3003else
3004  CC="$ac_cv_prog_CC"
3005fi
3006
3007if test -z "$CC"; then
3008          if test -n "$ac_tool_prefix"; then
3009    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3010set dummy ${ac_tool_prefix}cc; ac_word=$2
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012$as_echo_n "checking for $ac_word... " >&6; }
3013if ${ac_cv_prog_CC+:} false; then :
3014  $as_echo_n "(cached) " >&6
3015else
3016  if test -n "$CC"; then
3017  ac_cv_prog_CC="$CC" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022  IFS=$as_save_IFS
3023  test -z "$as_dir" && as_dir=.
3024    for ac_exec_ext in '' $ac_executable_extensions; do
3025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026    ac_cv_prog_CC="${ac_tool_prefix}cc"
3027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028    break 2
3029  fi
3030done
3031  done
3032IFS=$as_save_IFS
3033
3034fi
3035fi
3036CC=$ac_cv_prog_CC
3037if test -n "$CC"; then
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039$as_echo "$CC" >&6; }
3040else
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042$as_echo "no" >&6; }
3043fi
3044
3045
3046  fi
3047fi
3048if test -z "$CC"; then
3049  # Extract the first word of "cc", so it can be a program name with args.
3050set dummy cc; ac_word=$2
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052$as_echo_n "checking for $ac_word... " >&6; }
3053if ${ac_cv_prog_CC+:} false; then :
3054  $as_echo_n "(cached) " >&6
3055else
3056  if test -n "$CC"; then
3057  ac_cv_prog_CC="$CC" # Let the user override the test.
3058else
3059  ac_prog_rejected=no
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063  IFS=$as_save_IFS
3064  test -z "$as_dir" && as_dir=.
3065    for ac_exec_ext in '' $ac_executable_extensions; do
3066  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3068       ac_prog_rejected=yes
3069       continue
3070     fi
3071    ac_cv_prog_CC="cc"
3072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079if test $ac_prog_rejected = yes; then
3080  # We found a bogon in the path, so make sure we never use it.
3081  set dummy $ac_cv_prog_CC
3082  shift
3083  if test $# != 0; then
3084    # We chose a different compiler from the bogus one.
3085    # However, it has the same basename, so the bogon will be chosen
3086    # first if we set CC to just the basename; use the full file name.
3087    shift
3088    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3089  fi
3090fi
3091fi
3092fi
3093CC=$ac_cv_prog_CC
3094if test -n "$CC"; then
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096$as_echo "$CC" >&6; }
3097else
3098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099$as_echo "no" >&6; }
3100fi
3101
3102
3103fi
3104if test -z "$CC"; then
3105  if test -n "$ac_tool_prefix"; then
3106  for ac_prog in cl.exe
3107  do
3108    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111$as_echo_n "checking for $ac_word... " >&6; }
3112if ${ac_cv_prog_CC+:} false; then :
3113  $as_echo_n "(cached) " >&6
3114else
3115  if test -n "$CC"; then
3116  ac_cv_prog_CC="$CC" # Let the user override the test.
3117else
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121  IFS=$as_save_IFS
3122  test -z "$as_dir" && as_dir=.
3123    for ac_exec_ext in '' $ac_executable_extensions; do
3124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127    break 2
3128  fi
3129done
3130  done
3131IFS=$as_save_IFS
3132
3133fi
3134fi
3135CC=$ac_cv_prog_CC
3136if test -n "$CC"; then
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138$as_echo "$CC" >&6; }
3139else
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
3142fi
3143
3144
3145    test -n "$CC" && break
3146  done
3147fi
3148if test -z "$CC"; then
3149  ac_ct_CC=$CC
3150  for ac_prog in cl.exe
3151do
3152  # Extract the first word of "$ac_prog", so it can be a program name with args.
3153set dummy $ac_prog; ac_word=$2
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
3156if ${ac_cv_prog_ac_ct_CC+:} false; then :
3157  $as_echo_n "(cached) " >&6
3158else
3159  if test -n "$ac_ct_CC"; then
3160  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165  IFS=$as_save_IFS
3166  test -z "$as_dir" && as_dir=.
3167    for ac_exec_ext in '' $ac_executable_extensions; do
3168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169    ac_cv_prog_ac_ct_CC="$ac_prog"
3170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171    break 2
3172  fi
3173done
3174  done
3175IFS=$as_save_IFS
3176
3177fi
3178fi
3179ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180if test -n "$ac_ct_CC"; then
3181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3182$as_echo "$ac_ct_CC" >&6; }
3183else
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186fi
3187
3188
3189  test -n "$ac_ct_CC" && break
3190done
3191
3192  if test "x$ac_ct_CC" = x; then
3193    CC=""
3194  else
3195    case $cross_compiling:$ac_tool_warned in
3196yes:)
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3199ac_tool_warned=yes ;;
3200esac
3201    CC=$ac_ct_CC
3202  fi
3203fi
3204
3205fi
3206
3207
3208test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210as_fn_error $? "no acceptable C compiler found in \$PATH
3211See \`config.log' for more details" "$LINENO" 5; }
3212
3213# Provide some information about the compiler.
3214$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3215set X $ac_compile
3216ac_compiler=$2
3217for ac_option in --version -v -V -qversion; do
3218  { { ac_try="$ac_compiler $ac_option >&5"
3219case "(($ac_try" in
3220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221  *) ac_try_echo=$ac_try;;
3222esac
3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
3225  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3226  ac_status=$?
3227  if test -s conftest.err; then
3228    sed '10a\
3229... rest of stderr output deleted ...
3230         10q' conftest.err >conftest.er1
3231    cat conftest.er1 >&5
3232  fi
3233  rm -f conftest.er1 conftest.err
3234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235  test $ac_status = 0; }
3236done
3237
3238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239/* end confdefs.h.  */
3240
3241int
3242main ()
3243{
3244
3245  ;
3246  return 0;
3247}
3248_ACEOF
3249ac_clean_files_save=$ac_clean_files
3250ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3251# Try to create an executable without -o first, disregard a.out.
3252# It will help us diagnose broken compilers, and finding out an intuition
3253# of exeext.
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3255$as_echo_n "checking whether the C compiler works... " >&6; }
3256ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3257
3258# The possible output files:
3259ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3260
3261ac_rmfiles=
3262for ac_file in $ac_files
3263do
3264  case $ac_file in
3265    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3266    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3267  esac
3268done
3269rm -f $ac_rmfiles
3270
3271if { { ac_try="$ac_link_default"
3272case "(($ac_try" in
3273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274  *) ac_try_echo=$ac_try;;
3275esac
3276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277$as_echo "$ac_try_echo"; } >&5
3278  (eval "$ac_link_default") 2>&5
3279  ac_status=$?
3280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281  test $ac_status = 0; }; then :
3282  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3283# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3284# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3285# so that the user can short-circuit this test for compilers unknown to
3286# Autoconf.
3287for ac_file in $ac_files ''
3288do
3289  test -f "$ac_file" || continue
3290  case $ac_file in
3291    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3292	;;
3293    [ab].out )
3294	# We found the default executable, but exeext='' is most
3295	# certainly right.
3296	break;;
3297    *.* )
3298	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3299	then :; else
3300	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3301	fi
3302	# We set ac_cv_exeext here because the later test for it is not
3303	# safe: cross compilers may not add the suffix if given an `-o'
3304	# argument, so we may need to know it at that point already.
3305	# Even if this section looks crufty: it has the advantage of
3306	# actually working.
3307	break;;
3308    * )
3309	break;;
3310  esac
3311done
3312test "$ac_cv_exeext" = no && ac_cv_exeext=
3313
3314else
3315  ac_file=''
3316fi
3317if test -z "$ac_file"; then :
3318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319$as_echo "no" >&6; }
3320$as_echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325as_fn_error 77 "C compiler cannot create executables
3326See \`config.log' for more details" "$LINENO" 5; }
3327else
3328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329$as_echo "yes" >&6; }
3330fi
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3332$as_echo_n "checking for C compiler default output file name... " >&6; }
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3334$as_echo "$ac_file" >&6; }
3335ac_exeext=$ac_cv_exeext
3336
3337rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3338ac_clean_files=$ac_clean_files_save
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3340$as_echo_n "checking for suffix of executables... " >&6; }
3341if { { ac_try="$ac_link"
3342case "(($ac_try" in
3343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344  *) ac_try_echo=$ac_try;;
3345esac
3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347$as_echo "$ac_try_echo"; } >&5
3348  (eval "$ac_link") 2>&5
3349  ac_status=$?
3350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351  test $ac_status = 0; }; then :
3352  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3353# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3354# work properly (i.e., refer to `conftest.exe'), while it won't with
3355# `rm'.
3356for ac_file in conftest.exe conftest conftest.*; do
3357  test -f "$ac_file" || continue
3358  case $ac_file in
3359    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3360    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3361	  break;;
3362    * ) break;;
3363  esac
3364done
3365else
3366  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3369See \`config.log' for more details" "$LINENO" 5; }
3370fi
3371rm -f conftest conftest$ac_cv_exeext
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3373$as_echo "$ac_cv_exeext" >&6; }
3374
3375rm -f conftest.$ac_ext
3376EXEEXT=$ac_cv_exeext
3377ac_exeext=$EXEEXT
3378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379/* end confdefs.h.  */
3380#include <stdio.h>
3381int
3382main ()
3383{
3384FILE *f = fopen ("conftest.out", "w");
3385 return ferror (f) || fclose (f) != 0;
3386
3387  ;
3388  return 0;
3389}
3390_ACEOF
3391ac_clean_files="$ac_clean_files conftest.out"
3392# Check that the compiler produces executables we can run.  If not, either
3393# the compiler is broken, or we cross compile.
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3395$as_echo_n "checking whether we are cross compiling... " >&6; }
3396if test "$cross_compiling" != yes; then
3397  { { ac_try="$ac_link"
3398case "(($ac_try" in
3399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400  *) ac_try_echo=$ac_try;;
3401esac
3402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403$as_echo "$ac_try_echo"; } >&5
3404  (eval "$ac_link") 2>&5
3405  ac_status=$?
3406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407  test $ac_status = 0; }
3408  if { ac_try='./conftest$ac_cv_exeext'
3409  { { case "(($ac_try" in
3410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411  *) ac_try_echo=$ac_try;;
3412esac
3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414$as_echo "$ac_try_echo"; } >&5
3415  (eval "$ac_try") 2>&5
3416  ac_status=$?
3417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418  test $ac_status = 0; }; }; then
3419    cross_compiling=no
3420  else
3421    if test "$cross_compiling" = maybe; then
3422	cross_compiling=yes
3423    else
3424	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426as_fn_error $? "cannot run C compiled programs.
3427If you meant to cross compile, use \`--host'.
3428See \`config.log' for more details" "$LINENO" 5; }
3429    fi
3430  fi
3431fi
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3433$as_echo "$cross_compiling" >&6; }
3434
3435rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3436ac_clean_files=$ac_clean_files_save
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3438$as_echo_n "checking for suffix of object files... " >&6; }
3439if ${ac_cv_objext+:} false; then :
3440  $as_echo_n "(cached) " >&6
3441else
3442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443/* end confdefs.h.  */
3444
3445int
3446main ()
3447{
3448
3449  ;
3450  return 0;
3451}
3452_ACEOF
3453rm -f conftest.o conftest.obj
3454if { { ac_try="$ac_compile"
3455case "(($ac_try" in
3456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457  *) ac_try_echo=$ac_try;;
3458esac
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
3461  (eval "$ac_compile") 2>&5
3462  ac_status=$?
3463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464  test $ac_status = 0; }; then :
3465  for ac_file in conftest.o conftest.obj conftest.*; do
3466  test -f "$ac_file" || continue;
3467  case $ac_file in
3468    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3469    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3470       break;;
3471  esac
3472done
3473else
3474  $as_echo "$as_me: failed program was:" >&5
3475sed 's/^/| /' conftest.$ac_ext >&5
3476
3477{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479as_fn_error $? "cannot compute suffix of object files: cannot compile
3480See \`config.log' for more details" "$LINENO" 5; }
3481fi
3482rm -f conftest.$ac_cv_objext conftest.$ac_ext
3483fi
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3485$as_echo "$ac_cv_objext" >&6; }
3486OBJEXT=$ac_cv_objext
3487ac_objext=$OBJEXT
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3489$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3490if ${ac_cv_c_compiler_gnu+:} false; then :
3491  $as_echo_n "(cached) " >&6
3492else
3493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h.  */
3495
3496int
3497main ()
3498{
3499#ifndef __GNUC__
3500       choke me
3501#endif
3502
3503  ;
3504  return 0;
3505}
3506_ACEOF
3507if ac_fn_c_try_compile "$LINENO"; then :
3508  ac_compiler_gnu=yes
3509else
3510  ac_compiler_gnu=no
3511fi
3512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513ac_cv_c_compiler_gnu=$ac_compiler_gnu
3514
3515fi
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3517$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3518if test $ac_compiler_gnu = yes; then
3519  GCC=yes
3520else
3521  GCC=
3522fi
3523ac_test_CFLAGS=${CFLAGS+set}
3524ac_save_CFLAGS=$CFLAGS
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3526$as_echo_n "checking whether $CC accepts -g... " >&6; }
3527if ${ac_cv_prog_cc_g+:} false; then :
3528  $as_echo_n "(cached) " >&6
3529else
3530  ac_save_c_werror_flag=$ac_c_werror_flag
3531   ac_c_werror_flag=yes
3532   ac_cv_prog_cc_g=no
3533   CFLAGS="-g"
3534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535/* end confdefs.h.  */
3536
3537int
3538main ()
3539{
3540
3541  ;
3542  return 0;
3543}
3544_ACEOF
3545if ac_fn_c_try_compile "$LINENO"; then :
3546  ac_cv_prog_cc_g=yes
3547else
3548  CFLAGS=""
3549      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h.  */
3551
3552int
3553main ()
3554{
3555
3556  ;
3557  return 0;
3558}
3559_ACEOF
3560if ac_fn_c_try_compile "$LINENO"; then :
3561
3562else
3563  ac_c_werror_flag=$ac_save_c_werror_flag
3564	 CFLAGS="-g"
3565	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h.  */
3567
3568int
3569main ()
3570{
3571
3572  ;
3573  return 0;
3574}
3575_ACEOF
3576if ac_fn_c_try_compile "$LINENO"; then :
3577  ac_cv_prog_cc_g=yes
3578fi
3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580fi
3581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582fi
3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584   ac_c_werror_flag=$ac_save_c_werror_flag
3585fi
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3587$as_echo "$ac_cv_prog_cc_g" >&6; }
3588if test "$ac_test_CFLAGS" = set; then
3589  CFLAGS=$ac_save_CFLAGS
3590elif test $ac_cv_prog_cc_g = yes; then
3591  if test "$GCC" = yes; then
3592    CFLAGS="-g -O2"
3593  else
3594    CFLAGS="-g"
3595  fi
3596else
3597  if test "$GCC" = yes; then
3598    CFLAGS="-O2"
3599  else
3600    CFLAGS=
3601  fi
3602fi
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3604$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3605if ${ac_cv_prog_cc_c89+:} false; then :
3606  $as_echo_n "(cached) " >&6
3607else
3608  ac_cv_prog_cc_c89=no
3609ac_save_CC=$CC
3610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611/* end confdefs.h.  */
3612#include <stdarg.h>
3613#include <stdio.h>
3614struct stat;
3615/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3616struct buf { int x; };
3617FILE * (*rcsopen) (struct buf *, struct stat *, int);
3618static char *e (p, i)
3619     char **p;
3620     int i;
3621{
3622  return p[i];
3623}
3624static char *f (char * (*g) (char **, int), char **p, ...)
3625{
3626  char *s;
3627  va_list v;
3628  va_start (v,p);
3629  s = g (p, va_arg (v,int));
3630  va_end (v);
3631  return s;
3632}
3633
3634/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3635   function prototypes and stuff, but not '\xHH' hex character constants.
3636   These don't provoke an error unfortunately, instead are silently treated
3637   as 'x'.  The following induces an error, until -std is added to get
3638   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3639   array size at least.  It's necessary to write '\x00'==0 to get something
3640   that's true only with -std.  */
3641int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3642
3643/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3644   inside strings and character constants.  */
3645#define FOO(x) 'x'
3646int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3647
3648int test (int i, double x);
3649struct s1 {int (*f) (int a);};
3650struct s2 {int (*f) (double a);};
3651int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3652int argc;
3653char **argv;
3654int
3655main ()
3656{
3657return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3663	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3664do
3665  CC="$ac_save_CC $ac_arg"
3666  if ac_fn_c_try_compile "$LINENO"; then :
3667  ac_cv_prog_cc_c89=$ac_arg
3668fi
3669rm -f core conftest.err conftest.$ac_objext
3670  test "x$ac_cv_prog_cc_c89" != "xno" && break
3671done
3672rm -f conftest.$ac_ext
3673CC=$ac_save_CC
3674
3675fi
3676# AC_CACHE_VAL
3677case "x$ac_cv_prog_cc_c89" in
3678  x)
3679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3680$as_echo "none needed" >&6; } ;;
3681  xno)
3682    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3683$as_echo "unsupported" >&6; } ;;
3684  *)
3685    CC="$CC $ac_cv_prog_cc_c89"
3686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3687$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3688esac
3689if test "x$ac_cv_prog_cc_c89" != xno; then :
3690
3691fi
3692
3693ac_ext=c
3694ac_cpp='$CPP $CPPFLAGS'
3695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698
3699ac_ext=c
3700ac_cpp='$CPP $CPPFLAGS'
3701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3705$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3706if ${am_cv_prog_cc_c_o+:} false; then :
3707  $as_echo_n "(cached) " >&6
3708else
3709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710/* end confdefs.h.  */
3711
3712int
3713main ()
3714{
3715
3716  ;
3717  return 0;
3718}
3719_ACEOF
3720  # Make sure it works both with $CC and with simple cc.
3721  # Following AC_PROG_CC_C_O, we do the test twice because some
3722  # compilers refuse to overwrite an existing .o file with -o,
3723  # though they will create one.
3724  am_cv_prog_cc_c_o=yes
3725  for am_i in 1 2; do
3726    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3727   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3728   ac_status=$?
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); } \
3731         && test -f conftest2.$ac_objext; then
3732      : OK
3733    else
3734      am_cv_prog_cc_c_o=no
3735      break
3736    fi
3737  done
3738  rm -f core conftest*
3739  unset am_i
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3742$as_echo "$am_cv_prog_cc_c_o" >&6; }
3743if test "$am_cv_prog_cc_c_o" != yes; then
3744   # Losing compiler, so override with the script.
3745   # FIXME: It is wrong to rewrite CC.
3746   # But if we don't then we get into trouble of one sort or another.
3747   # A longer-term fix would be to have automake use am__CC in this case,
3748   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3749   CC="$am_aux_dir/compile $CC"
3750fi
3751ac_ext=c
3752ac_cpp='$CPP $CPPFLAGS'
3753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756
3757DEPDIR="${am__leading_dot}deps"
3758
3759ac_config_commands="$ac_config_commands depfiles"
3760
3761
3762am_make=${MAKE-make}
3763cat > confinc << 'END'
3764am__doit:
3765	@echo this is the am__doit target
3766.PHONY: am__doit
3767END
3768# If we don't find an include directive, just comment out the code.
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3770$as_echo_n "checking for style of include used by $am_make... " >&6; }
3771am__include="#"
3772am__quote=
3773_am_result=none
3774# First try GNU make style include.
3775echo "include confinc" > confmf
3776# Ignore all kinds of additional output from 'make'.
3777case `$am_make -s -f confmf 2> /dev/null` in #(
3778*the\ am__doit\ target*)
3779  am__include=include
3780  am__quote=
3781  _am_result=GNU
3782  ;;
3783esac
3784# Now try BSD make style include.
3785if test "$am__include" = "#"; then
3786   echo '.include "confinc"' > confmf
3787   case `$am_make -s -f confmf 2> /dev/null` in #(
3788   *the\ am__doit\ target*)
3789     am__include=.include
3790     am__quote="\""
3791     _am_result=BSD
3792     ;;
3793   esac
3794fi
3795
3796
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3798$as_echo "$_am_result" >&6; }
3799rm -f confinc confmf
3800
3801# Check whether --enable-dependency-tracking was given.
3802if test "${enable_dependency_tracking+set}" = set; then :
3803  enableval=$enable_dependency_tracking;
3804fi
3805
3806if test "x$enable_dependency_tracking" != xno; then
3807  am_depcomp="$ac_aux_dir/depcomp"
3808  AMDEPBACKSLASH='\'
3809  am__nodep='_no'
3810fi
3811 if test "x$enable_dependency_tracking" != xno; then
3812  AMDEP_TRUE=
3813  AMDEP_FALSE='#'
3814else
3815  AMDEP_TRUE='#'
3816  AMDEP_FALSE=
3817fi
3818
3819
3820
3821depcc="$CC"   am_compiler_list=
3822
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3824$as_echo_n "checking dependency style of $depcc... " >&6; }
3825if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3826  $as_echo_n "(cached) " >&6
3827else
3828  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3829  # We make a subdir and do the tests there.  Otherwise we can end up
3830  # making bogus files that we don't know about and never remove.  For
3831  # instance it was reported that on HP-UX the gcc test will end up
3832  # making a dummy file named 'D' -- because '-MD' means "put the output
3833  # in D".
3834  rm -rf conftest.dir
3835  mkdir conftest.dir
3836  # Copy depcomp to subdir because otherwise we won't find it if we're
3837  # using a relative directory.
3838  cp "$am_depcomp" conftest.dir
3839  cd conftest.dir
3840  # We will build objects and dependencies in a subdirectory because
3841  # it helps to detect inapplicable dependency modes.  For instance
3842  # both Tru64's cc and ICC support -MD to output dependencies as a
3843  # side effect of compilation, but ICC will put the dependencies in
3844  # the current directory while Tru64 will put them in the object
3845  # directory.
3846  mkdir sub
3847
3848  am_cv_CC_dependencies_compiler_type=none
3849  if test "$am_compiler_list" = ""; then
3850     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3851  fi
3852  am__universal=false
3853  case " $depcc " in #(
3854     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3855     esac
3856
3857  for depmode in $am_compiler_list; do
3858    # Setup a source with many dependencies, because some compilers
3859    # like to wrap large dependency lists on column 80 (with \), and
3860    # we should not choose a depcomp mode which is confused by this.
3861    #
3862    # We need to recreate these files for each test, as the compiler may
3863    # overwrite some of them when testing with obscure command lines.
3864    # This happens at least with the AIX C compiler.
3865    : > sub/conftest.c
3866    for i in 1 2 3 4 5 6; do
3867      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3868      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3869      # Solaris 10 /bin/sh.
3870      echo '/* dummy */' > sub/conftst$i.h
3871    done
3872    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3873
3874    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3875    # mode.  It turns out that the SunPro C++ compiler does not properly
3876    # handle '-M -o', and we need to detect this.  Also, some Intel
3877    # versions had trouble with output in subdirs.
3878    am__obj=sub/conftest.${OBJEXT-o}
3879    am__minus_obj="-o $am__obj"
3880    case $depmode in
3881    gcc)
3882      # This depmode causes a compiler race in universal mode.
3883      test "$am__universal" = false || continue
3884      ;;
3885    nosideeffect)
3886      # After this tag, mechanisms are not by side-effect, so they'll
3887      # only be used when explicitly requested.
3888      if test "x$enable_dependency_tracking" = xyes; then
3889	continue
3890      else
3891	break
3892      fi
3893      ;;
3894    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3895      # This compiler won't grok '-c -o', but also, the minuso test has
3896      # not run yet.  These depmodes are late enough in the game, and
3897      # so weak that their functioning should not be impacted.
3898      am__obj=conftest.${OBJEXT-o}
3899      am__minus_obj=
3900      ;;
3901    none) break ;;
3902    esac
3903    if depmode=$depmode \
3904       source=sub/conftest.c object=$am__obj \
3905       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3906       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3907         >/dev/null 2>conftest.err &&
3908       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3909       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3910       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3911       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3912      # icc doesn't choke on unknown options, it will just issue warnings
3913      # or remarks (even with -Werror).  So we grep stderr for any message
3914      # that says an option was ignored or not supported.
3915      # When given -MP, icc 7.0 and 7.1 complain thusly:
3916      #   icc: Command line warning: ignoring option '-M'; no argument required
3917      # The diagnosis changed in icc 8.0:
3918      #   icc: Command line remark: option '-MP' not supported
3919      if (grep 'ignoring option' conftest.err ||
3920          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3921        am_cv_CC_dependencies_compiler_type=$depmode
3922        break
3923      fi
3924    fi
3925  done
3926
3927  cd ..
3928  rm -rf conftest.dir
3929else
3930  am_cv_CC_dependencies_compiler_type=none
3931fi
3932
3933fi
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3935$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3936CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3937
3938 if
3939  test "x$enable_dependency_tracking" != xno \
3940  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3941  am__fastdepCC_TRUE=
3942  am__fastdepCC_FALSE='#'
3943else
3944  am__fastdepCC_TRUE='#'
3945  am__fastdepCC_FALSE=
3946fi
3947
3948
3949case `pwd` in
3950  *\ * | *\	*)
3951    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3952$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3953esac
3954
3955
3956
3957macro_version='2.4.2'
3958macro_revision='1.3337'
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972ltmain="$ac_aux_dir/ltmain.sh"
3973
3974# Make sure we can run config.sub.
3975$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3976  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3977
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3979$as_echo_n "checking build system type... " >&6; }
3980if ${ac_cv_build+:} false; then :
3981  $as_echo_n "(cached) " >&6
3982else
3983  ac_build_alias=$build_alias
3984test "x$ac_build_alias" = x &&
3985  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3986test "x$ac_build_alias" = x &&
3987  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3988ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3989  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3990
3991fi
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3993$as_echo "$ac_cv_build" >&6; }
3994case $ac_cv_build in
3995*-*-*) ;;
3996*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3997esac
3998build=$ac_cv_build
3999ac_save_IFS=$IFS; IFS='-'
4000set x $ac_cv_build
4001shift
4002build_cpu=$1
4003build_vendor=$2
4004shift; shift
4005# Remember, the first character of IFS is used to create $*,
4006# except with old shells:
4007build_os=$*
4008IFS=$ac_save_IFS
4009case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4010
4011
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4013$as_echo_n "checking host system type... " >&6; }
4014if ${ac_cv_host+:} false; then :
4015  $as_echo_n "(cached) " >&6
4016else
4017  if test "x$host_alias" = x; then
4018  ac_cv_host=$ac_cv_build
4019else
4020  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4021    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4022fi
4023
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4026$as_echo "$ac_cv_host" >&6; }
4027case $ac_cv_host in
4028*-*-*) ;;
4029*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4030esac
4031host=$ac_cv_host
4032ac_save_IFS=$IFS; IFS='-'
4033set x $ac_cv_host
4034shift
4035host_cpu=$1
4036host_vendor=$2
4037shift; shift
4038# Remember, the first character of IFS is used to create $*,
4039# except with old shells:
4040host_os=$*
4041IFS=$ac_save_IFS
4042case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4043
4044
4045# Backslashify metacharacters that are still active within
4046# double-quoted strings.
4047sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4048
4049# Same as above, but do not quote variable references.
4050double_quote_subst='s/\(["`\\]\)/\\\1/g'
4051
4052# Sed substitution to delay expansion of an escaped shell variable in a
4053# double_quote_subst'ed string.
4054delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4055
4056# Sed substitution to delay expansion of an escaped single quote.
4057delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4058
4059# Sed substitution to avoid accidental globbing in evaled expressions
4060no_glob_subst='s/\*/\\\*/g'
4061
4062ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4063ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4064ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4065
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4067$as_echo_n "checking how to print strings... " >&6; }
4068# Test print first, because it will be a builtin if present.
4069if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4070   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4071  ECHO='print -r --'
4072elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4073  ECHO='printf %s\n'
4074else
4075  # Use this function as a fallback that always works.
4076  func_fallback_echo ()
4077  {
4078    eval 'cat <<_LTECHO_EOF
4079$1
4080_LTECHO_EOF'
4081  }
4082  ECHO='func_fallback_echo'
4083fi
4084
4085# func_echo_all arg...
4086# Invoke $ECHO with all args, space-separated.
4087func_echo_all ()
4088{
4089    $ECHO ""
4090}
4091
4092case "$ECHO" in
4093  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4094$as_echo "printf" >&6; } ;;
4095  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4096$as_echo "print -r" >&6; } ;;
4097  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4098$as_echo "cat" >&6; } ;;
4099esac
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4115$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4116if ${ac_cv_path_SED+:} false; then :
4117  $as_echo_n "(cached) " >&6
4118else
4119            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4120     for ac_i in 1 2 3 4 5 6 7; do
4121       ac_script="$ac_script$as_nl$ac_script"
4122     done
4123     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4124     { ac_script=; unset ac_script;}
4125     if test -z "$SED"; then
4126  ac_path_SED_found=false
4127  # Loop through the user's path and test for each of PROGNAME-LIST
4128  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131  IFS=$as_save_IFS
4132  test -z "$as_dir" && as_dir=.
4133    for ac_prog in sed gsed; do
4134    for ac_exec_ext in '' $ac_executable_extensions; do
4135      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4136      as_fn_executable_p "$ac_path_SED" || continue
4137# Check for GNU ac_path_SED and select it if it is found.
4138  # Check for GNU $ac_path_SED
4139case `"$ac_path_SED" --version 2>&1` in
4140*GNU*)
4141  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4142*)
4143  ac_count=0
4144  $as_echo_n 0123456789 >"conftest.in"
4145  while :
4146  do
4147    cat "conftest.in" "conftest.in" >"conftest.tmp"
4148    mv "conftest.tmp" "conftest.in"
4149    cp "conftest.in" "conftest.nl"
4150    $as_echo '' >> "conftest.nl"
4151    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4152    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4153    as_fn_arith $ac_count + 1 && ac_count=$as_val
4154    if test $ac_count -gt ${ac_path_SED_max-0}; then
4155      # Best one so far, save it but keep looking for a better one
4156      ac_cv_path_SED="$ac_path_SED"
4157      ac_path_SED_max=$ac_count
4158    fi
4159    # 10*(2^10) chars as input seems more than enough
4160    test $ac_count -gt 10 && break
4161  done
4162  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4163esac
4164
4165      $ac_path_SED_found && break 3
4166    done
4167  done
4168  done
4169IFS=$as_save_IFS
4170  if test -z "$ac_cv_path_SED"; then
4171    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4172  fi
4173else
4174  ac_cv_path_SED=$SED
4175fi
4176
4177fi
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4179$as_echo "$ac_cv_path_SED" >&6; }
4180 SED="$ac_cv_path_SED"
4181  rm -f conftest.sed
4182
4183test -z "$SED" && SED=sed
4184Xsed="$SED -e 1s/^X//"
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4197$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4198if ${ac_cv_path_GREP+:} false; then :
4199  $as_echo_n "(cached) " >&6
4200else
4201  if test -z "$GREP"; then
4202  ac_path_GREP_found=false
4203  # Loop through the user's path and test for each of PROGNAME-LIST
4204  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4206do
4207  IFS=$as_save_IFS
4208  test -z "$as_dir" && as_dir=.
4209    for ac_prog in grep ggrep; do
4210    for ac_exec_ext in '' $ac_executable_extensions; do
4211      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4212      as_fn_executable_p "$ac_path_GREP" || continue
4213# Check for GNU ac_path_GREP and select it if it is found.
4214  # Check for GNU $ac_path_GREP
4215case `"$ac_path_GREP" --version 2>&1` in
4216*GNU*)
4217  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4218*)
4219  ac_count=0
4220  $as_echo_n 0123456789 >"conftest.in"
4221  while :
4222  do
4223    cat "conftest.in" "conftest.in" >"conftest.tmp"
4224    mv "conftest.tmp" "conftest.in"
4225    cp "conftest.in" "conftest.nl"
4226    $as_echo 'GREP' >> "conftest.nl"
4227    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4228    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4229    as_fn_arith $ac_count + 1 && ac_count=$as_val
4230    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4231      # Best one so far, save it but keep looking for a better one
4232      ac_cv_path_GREP="$ac_path_GREP"
4233      ac_path_GREP_max=$ac_count
4234    fi
4235    # 10*(2^10) chars as input seems more than enough
4236    test $ac_count -gt 10 && break
4237  done
4238  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4239esac
4240
4241      $ac_path_GREP_found && break 3
4242    done
4243  done
4244  done
4245IFS=$as_save_IFS
4246  if test -z "$ac_cv_path_GREP"; then
4247    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4248  fi
4249else
4250  ac_cv_path_GREP=$GREP
4251fi
4252
4253fi
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4255$as_echo "$ac_cv_path_GREP" >&6; }
4256 GREP="$ac_cv_path_GREP"
4257
4258
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4260$as_echo_n "checking for egrep... " >&6; }
4261if ${ac_cv_path_EGREP+:} false; then :
4262  $as_echo_n "(cached) " >&6
4263else
4264  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4265   then ac_cv_path_EGREP="$GREP -E"
4266   else
4267     if test -z "$EGREP"; then
4268  ac_path_EGREP_found=false
4269  # Loop through the user's path and test for each of PROGNAME-LIST
4270  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4272do
4273  IFS=$as_save_IFS
4274  test -z "$as_dir" && as_dir=.
4275    for ac_prog in egrep; do
4276    for ac_exec_ext in '' $ac_executable_extensions; do
4277      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4278      as_fn_executable_p "$ac_path_EGREP" || continue
4279# Check for GNU ac_path_EGREP and select it if it is found.
4280  # Check for GNU $ac_path_EGREP
4281case `"$ac_path_EGREP" --version 2>&1` in
4282*GNU*)
4283  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4284*)
4285  ac_count=0
4286  $as_echo_n 0123456789 >"conftest.in"
4287  while :
4288  do
4289    cat "conftest.in" "conftest.in" >"conftest.tmp"
4290    mv "conftest.tmp" "conftest.in"
4291    cp "conftest.in" "conftest.nl"
4292    $as_echo 'EGREP' >> "conftest.nl"
4293    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4294    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4295    as_fn_arith $ac_count + 1 && ac_count=$as_val
4296    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4297      # Best one so far, save it but keep looking for a better one
4298      ac_cv_path_EGREP="$ac_path_EGREP"
4299      ac_path_EGREP_max=$ac_count
4300    fi
4301    # 10*(2^10) chars as input seems more than enough
4302    test $ac_count -gt 10 && break
4303  done
4304  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4305esac
4306
4307      $ac_path_EGREP_found && break 3
4308    done
4309  done
4310  done
4311IFS=$as_save_IFS
4312  if test -z "$ac_cv_path_EGREP"; then
4313    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4314  fi
4315else
4316  ac_cv_path_EGREP=$EGREP
4317fi
4318
4319   fi
4320fi
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4322$as_echo "$ac_cv_path_EGREP" >&6; }
4323 EGREP="$ac_cv_path_EGREP"
4324
4325
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4327$as_echo_n "checking for fgrep... " >&6; }
4328if ${ac_cv_path_FGREP+:} false; then :
4329  $as_echo_n "(cached) " >&6
4330else
4331  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4332   then ac_cv_path_FGREP="$GREP -F"
4333   else
4334     if test -z "$FGREP"; then
4335  ac_path_FGREP_found=false
4336  # Loop through the user's path and test for each of PROGNAME-LIST
4337  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4339do
4340  IFS=$as_save_IFS
4341  test -z "$as_dir" && as_dir=.
4342    for ac_prog in fgrep; do
4343    for ac_exec_ext in '' $ac_executable_extensions; do
4344      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4345      as_fn_executable_p "$ac_path_FGREP" || continue
4346# Check for GNU ac_path_FGREP and select it if it is found.
4347  # Check for GNU $ac_path_FGREP
4348case `"$ac_path_FGREP" --version 2>&1` in
4349*GNU*)
4350  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4351*)
4352  ac_count=0
4353  $as_echo_n 0123456789 >"conftest.in"
4354  while :
4355  do
4356    cat "conftest.in" "conftest.in" >"conftest.tmp"
4357    mv "conftest.tmp" "conftest.in"
4358    cp "conftest.in" "conftest.nl"
4359    $as_echo 'FGREP' >> "conftest.nl"
4360    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4361    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4362    as_fn_arith $ac_count + 1 && ac_count=$as_val
4363    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4364      # Best one so far, save it but keep looking for a better one
4365      ac_cv_path_FGREP="$ac_path_FGREP"
4366      ac_path_FGREP_max=$ac_count
4367    fi
4368    # 10*(2^10) chars as input seems more than enough
4369    test $ac_count -gt 10 && break
4370  done
4371  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4372esac
4373
4374      $ac_path_FGREP_found && break 3
4375    done
4376  done
4377  done
4378IFS=$as_save_IFS
4379  if test -z "$ac_cv_path_FGREP"; then
4380    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4381  fi
4382else
4383  ac_cv_path_FGREP=$FGREP
4384fi
4385
4386   fi
4387fi
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4389$as_echo "$ac_cv_path_FGREP" >&6; }
4390 FGREP="$ac_cv_path_FGREP"
4391
4392
4393test -z "$GREP" && GREP=grep
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413# Check whether --with-gnu-ld was given.
4414if test "${with_gnu_ld+set}" = set; then :
4415  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4416else
4417  with_gnu_ld=no
4418fi
4419
4420ac_prog=ld
4421if test "$GCC" = yes; then
4422  # Check if gcc -print-prog-name=ld gives a path.
4423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4424$as_echo_n "checking for ld used by $CC... " >&6; }
4425  case $host in
4426  *-*-mingw*)
4427    # gcc leaves a trailing carriage return which upsets mingw
4428    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4429  *)
4430    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4431  esac
4432  case $ac_prog in
4433    # Accept absolute paths.
4434    [\\/]* | ?:[\\/]*)
4435      re_direlt='/[^/][^/]*/\.\./'
4436      # Canonicalize the pathname of ld
4437      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4438      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4439	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4440      done
4441      test -z "$LD" && LD="$ac_prog"
4442      ;;
4443  "")
4444    # If it fails, then pretend we aren't using GCC.
4445    ac_prog=ld
4446    ;;
4447  *)
4448    # If it is relative, then search for the first ld in PATH.
4449    with_gnu_ld=unknown
4450    ;;
4451  esac
4452elif test "$with_gnu_ld" = yes; then
4453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4454$as_echo_n "checking for GNU ld... " >&6; }
4455else
4456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4457$as_echo_n "checking for non-GNU ld... " >&6; }
4458fi
4459if ${lt_cv_path_LD+:} false; then :
4460  $as_echo_n "(cached) " >&6
4461else
4462  if test -z "$LD"; then
4463  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4464  for ac_dir in $PATH; do
4465    IFS="$lt_save_ifs"
4466    test -z "$ac_dir" && ac_dir=.
4467    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4468      lt_cv_path_LD="$ac_dir/$ac_prog"
4469      # Check to see if the program is GNU ld.  I'd rather use --version,
4470      # but apparently some variants of GNU ld only accept -v.
4471      # Break only if it was the GNU/non-GNU ld that we prefer.
4472      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4473      *GNU* | *'with BFD'*)
4474	test "$with_gnu_ld" != no && break
4475	;;
4476      *)
4477	test "$with_gnu_ld" != yes && break
4478	;;
4479      esac
4480    fi
4481  done
4482  IFS="$lt_save_ifs"
4483else
4484  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4485fi
4486fi
4487
4488LD="$lt_cv_path_LD"
4489if test -n "$LD"; then
4490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4491$as_echo "$LD" >&6; }
4492else
4493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494$as_echo "no" >&6; }
4495fi
4496test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4498$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4499if ${lt_cv_prog_gnu_ld+:} false; then :
4500  $as_echo_n "(cached) " >&6
4501else
4502  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4503case `$LD -v 2>&1 </dev/null` in
4504*GNU* | *'with BFD'*)
4505  lt_cv_prog_gnu_ld=yes
4506  ;;
4507*)
4508  lt_cv_prog_gnu_ld=no
4509  ;;
4510esac
4511fi
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4513$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4514with_gnu_ld=$lt_cv_prog_gnu_ld
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4525$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4526if ${lt_cv_path_NM+:} false; then :
4527  $as_echo_n "(cached) " >&6
4528else
4529  if test -n "$NM"; then
4530  # Let the user override the test.
4531  lt_cv_path_NM="$NM"
4532else
4533  lt_nm_to_check="${ac_tool_prefix}nm"
4534  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4535    lt_nm_to_check="$lt_nm_to_check nm"
4536  fi
4537  for lt_tmp_nm in $lt_nm_to_check; do
4538    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4539    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4540      IFS="$lt_save_ifs"
4541      test -z "$ac_dir" && ac_dir=.
4542      tmp_nm="$ac_dir/$lt_tmp_nm"
4543      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4544	# Check to see if the nm accepts a BSD-compat flag.
4545	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4546	#   nm: unknown option "B" ignored
4547	# Tru64's nm complains that /dev/null is an invalid object file
4548	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4549	*/dev/null* | *'Invalid file or object type'*)
4550	  lt_cv_path_NM="$tmp_nm -B"
4551	  break
4552	  ;;
4553	*)
4554	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4555	  */dev/null*)
4556	    lt_cv_path_NM="$tmp_nm -p"
4557	    break
4558	    ;;
4559	  *)
4560	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4561	    continue # so that we can try to find one that supports BSD flags
4562	    ;;
4563	  esac
4564	  ;;
4565	esac
4566      fi
4567    done
4568    IFS="$lt_save_ifs"
4569  done
4570  : ${lt_cv_path_NM=no}
4571fi
4572fi
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4574$as_echo "$lt_cv_path_NM" >&6; }
4575if test "$lt_cv_path_NM" != "no"; then
4576  NM="$lt_cv_path_NM"
4577else
4578  # Didn't find any BSD compatible name lister, look for dumpbin.
4579  if test -n "$DUMPBIN"; then :
4580    # Let the user override the test.
4581  else
4582    if test -n "$ac_tool_prefix"; then
4583  for ac_prog in dumpbin "link -dump"
4584  do
4585    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4586set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588$as_echo_n "checking for $ac_word... " >&6; }
4589if ${ac_cv_prog_DUMPBIN+:} false; then :
4590  $as_echo_n "(cached) " >&6
4591else
4592  if test -n "$DUMPBIN"; then
4593  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4594else
4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598  IFS=$as_save_IFS
4599  test -z "$as_dir" && as_dir=.
4600    for ac_exec_ext in '' $ac_executable_extensions; do
4601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604    break 2
4605  fi
4606done
4607  done
4608IFS=$as_save_IFS
4609
4610fi
4611fi
4612DUMPBIN=$ac_cv_prog_DUMPBIN
4613if test -n "$DUMPBIN"; then
4614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4615$as_echo "$DUMPBIN" >&6; }
4616else
4617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618$as_echo "no" >&6; }
4619fi
4620
4621
4622    test -n "$DUMPBIN" && break
4623  done
4624fi
4625if test -z "$DUMPBIN"; then
4626  ac_ct_DUMPBIN=$DUMPBIN
4627  for ac_prog in dumpbin "link -dump"
4628do
4629  # Extract the first word of "$ac_prog", so it can be a program name with args.
4630set dummy $ac_prog; ac_word=$2
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632$as_echo_n "checking for $ac_word... " >&6; }
4633if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4634  $as_echo_n "(cached) " >&6
4635else
4636  if test -n "$ac_ct_DUMPBIN"; then
4637  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4638else
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642  IFS=$as_save_IFS
4643  test -z "$as_dir" && as_dir=.
4644    for ac_exec_ext in '' $ac_executable_extensions; do
4645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648    break 2
4649  fi
4650done
4651  done
4652IFS=$as_save_IFS
4653
4654fi
4655fi
4656ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4657if test -n "$ac_ct_DUMPBIN"; then
4658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4659$as_echo "$ac_ct_DUMPBIN" >&6; }
4660else
4661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662$as_echo "no" >&6; }
4663fi
4664
4665
4666  test -n "$ac_ct_DUMPBIN" && break
4667done
4668
4669  if test "x$ac_ct_DUMPBIN" = x; then
4670    DUMPBIN=":"
4671  else
4672    case $cross_compiling:$ac_tool_warned in
4673yes:)
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4676ac_tool_warned=yes ;;
4677esac
4678    DUMPBIN=$ac_ct_DUMPBIN
4679  fi
4680fi
4681
4682    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4683    *COFF*)
4684      DUMPBIN="$DUMPBIN -symbols"
4685      ;;
4686    *)
4687      DUMPBIN=:
4688      ;;
4689    esac
4690  fi
4691
4692  if test "$DUMPBIN" != ":"; then
4693    NM="$DUMPBIN"
4694  fi
4695fi
4696test -z "$NM" && NM=nm
4697
4698
4699
4700
4701
4702
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4704$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4705if ${lt_cv_nm_interface+:} false; then :
4706  $as_echo_n "(cached) " >&6
4707else
4708  lt_cv_nm_interface="BSD nm"
4709  echo "int some_variable = 0;" > conftest.$ac_ext
4710  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4711  (eval "$ac_compile" 2>conftest.err)
4712  cat conftest.err >&5
4713  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4714  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4715  cat conftest.err >&5
4716  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4717  cat conftest.out >&5
4718  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4719    lt_cv_nm_interface="MS dumpbin"
4720  fi
4721  rm -f conftest*
4722fi
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4724$as_echo "$lt_cv_nm_interface" >&6; }
4725
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4727$as_echo_n "checking whether ln -s works... " >&6; }
4728LN_S=$as_ln_s
4729if test "$LN_S" = "ln -s"; then
4730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4731$as_echo "yes" >&6; }
4732else
4733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4734$as_echo "no, using $LN_S" >&6; }
4735fi
4736
4737# find the maximum length of command line arguments
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4739$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4740if ${lt_cv_sys_max_cmd_len+:} false; then :
4741  $as_echo_n "(cached) " >&6
4742else
4743    i=0
4744  teststring="ABCD"
4745
4746  case $build_os in
4747  msdosdjgpp*)
4748    # On DJGPP, this test can blow up pretty badly due to problems in libc
4749    # (any single argument exceeding 2000 bytes causes a buffer overrun
4750    # during glob expansion).  Even if it were fixed, the result of this
4751    # check would be larger than it should be.
4752    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4753    ;;
4754
4755  gnu*)
4756    # Under GNU Hurd, this test is not required because there is
4757    # no limit to the length of command line arguments.
4758    # Libtool will interpret -1 as no limit whatsoever
4759    lt_cv_sys_max_cmd_len=-1;
4760    ;;
4761
4762  cygwin* | mingw* | cegcc*)
4763    # On Win9x/ME, this test blows up -- it succeeds, but takes
4764    # about 5 minutes as the teststring grows exponentially.
4765    # Worse, since 9x/ME are not pre-emptively multitasking,
4766    # you end up with a "frozen" computer, even though with patience
4767    # the test eventually succeeds (with a max line length of 256k).
4768    # Instead, let's just punt: use the minimum linelength reported by
4769    # all of the supported platforms: 8192 (on NT/2K/XP).
4770    lt_cv_sys_max_cmd_len=8192;
4771    ;;
4772
4773  mint*)
4774    # On MiNT this can take a long time and run out of memory.
4775    lt_cv_sys_max_cmd_len=8192;
4776    ;;
4777
4778  amigaos*)
4779    # On AmigaOS with pdksh, this test takes hours, literally.
4780    # So we just punt and use a minimum line length of 8192.
4781    lt_cv_sys_max_cmd_len=8192;
4782    ;;
4783
4784  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4785    # This has been around since 386BSD, at least.  Likely further.
4786    if test -x /sbin/sysctl; then
4787      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4788    elif test -x /usr/sbin/sysctl; then
4789      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4790    else
4791      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4792    fi
4793    # And add a safety zone
4794    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4795    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4796    ;;
4797
4798  interix*)
4799    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4800    lt_cv_sys_max_cmd_len=196608
4801    ;;
4802
4803  os2*)
4804    # The test takes a long time on OS/2.
4805    lt_cv_sys_max_cmd_len=8192
4806    ;;
4807
4808  osf*)
4809    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4810    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4811    # nice to cause kernel panics so lets avoid the loop below.
4812    # First set a reasonable default.
4813    lt_cv_sys_max_cmd_len=16384
4814    #
4815    if test -x /sbin/sysconfig; then
4816      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4817        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4818      esac
4819    fi
4820    ;;
4821  sco3.2v5*)
4822    lt_cv_sys_max_cmd_len=102400
4823    ;;
4824  sysv5* | sco5v6* | sysv4.2uw2*)
4825    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4826    if test -n "$kargmax"; then
4827      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4828    else
4829      lt_cv_sys_max_cmd_len=32768
4830    fi
4831    ;;
4832  *)
4833    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4834    if test -n "$lt_cv_sys_max_cmd_len" && \
4835	test undefined != "$lt_cv_sys_max_cmd_len"; then
4836      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4837      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4838    else
4839      # Make teststring a little bigger before we do anything with it.
4840      # a 1K string should be a reasonable start.
4841      for i in 1 2 3 4 5 6 7 8 ; do
4842        teststring=$teststring$teststring
4843      done
4844      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4845      # If test is not a shell built-in, we'll probably end up computing a
4846      # maximum length that is only half of the actual maximum length, but
4847      # we can't tell.
4848      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4849	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4850	      test $i != 17 # 1/2 MB should be enough
4851      do
4852        i=`expr $i + 1`
4853        teststring=$teststring$teststring
4854      done
4855      # Only check the string length outside the loop.
4856      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4857      teststring=
4858      # Add a significant safety factor because C++ compilers can tack on
4859      # massive amounts of additional arguments before passing them to the
4860      # linker.  It appears as though 1/2 is a usable value.
4861      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4862    fi
4863    ;;
4864  esac
4865
4866fi
4867
4868if test -n $lt_cv_sys_max_cmd_len ; then
4869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4870$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4871else
4872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4873$as_echo "none" >&6; }
4874fi
4875max_cmd_len=$lt_cv_sys_max_cmd_len
4876
4877
4878
4879
4880
4881
4882: ${CP="cp -f"}
4883: ${MV="mv -f"}
4884: ${RM="rm -f"}
4885
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4887$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4888# Try some XSI features
4889xsi_shell=no
4890( _lt_dummy="a/b/c"
4891  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4892      = c,a/b,b/c, \
4893    && eval 'test $(( 1 + 1 )) -eq 2 \
4894    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4895  && xsi_shell=yes
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4897$as_echo "$xsi_shell" >&6; }
4898
4899
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4901$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4902lt_shell_append=no
4903( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4904    >/dev/null 2>&1 \
4905  && lt_shell_append=yes
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4907$as_echo "$lt_shell_append" >&6; }
4908
4909
4910if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4911  lt_unset=unset
4912else
4913  lt_unset=false
4914fi
4915
4916
4917
4918
4919
4920# test EBCDIC or ASCII
4921case `echo X|tr X '\101'` in
4922 A) # ASCII based system
4923    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4924  lt_SP2NL='tr \040 \012'
4925  lt_NL2SP='tr \015\012 \040\040'
4926  ;;
4927 *) # EBCDIC based system
4928  lt_SP2NL='tr \100 \n'
4929  lt_NL2SP='tr \r\n \100\100'
4930  ;;
4931esac
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4942$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4943if ${lt_cv_to_host_file_cmd+:} false; then :
4944  $as_echo_n "(cached) " >&6
4945else
4946  case $host in
4947  *-*-mingw* )
4948    case $build in
4949      *-*-mingw* ) # actually msys
4950        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4951        ;;
4952      *-*-cygwin* )
4953        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4954        ;;
4955      * ) # otherwise, assume *nix
4956        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4957        ;;
4958    esac
4959    ;;
4960  *-*-cygwin* )
4961    case $build in
4962      *-*-mingw* ) # actually msys
4963        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4964        ;;
4965      *-*-cygwin* )
4966        lt_cv_to_host_file_cmd=func_convert_file_noop
4967        ;;
4968      * ) # otherwise, assume *nix
4969        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4970        ;;
4971    esac
4972    ;;
4973  * ) # unhandled hosts (and "normal" native builds)
4974    lt_cv_to_host_file_cmd=func_convert_file_noop
4975    ;;
4976esac
4977
4978fi
4979
4980to_host_file_cmd=$lt_cv_to_host_file_cmd
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4982$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4983
4984
4985
4986
4987
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4989$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4990if ${lt_cv_to_tool_file_cmd+:} false; then :
4991  $as_echo_n "(cached) " >&6
4992else
4993  #assume ordinary cross tools, or native build.
4994lt_cv_to_tool_file_cmd=func_convert_file_noop
4995case $host in
4996  *-*-mingw* )
4997    case $build in
4998      *-*-mingw* ) # actually msys
4999        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5000        ;;
5001    esac
5002    ;;
5003esac
5004
5005fi
5006
5007to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5009$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5010
5011
5012
5013
5014
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5016$as_echo_n "checking for $LD option to reload object files... " >&6; }
5017if ${lt_cv_ld_reload_flag+:} false; then :
5018  $as_echo_n "(cached) " >&6
5019else
5020  lt_cv_ld_reload_flag='-r'
5021fi
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5023$as_echo "$lt_cv_ld_reload_flag" >&6; }
5024reload_flag=$lt_cv_ld_reload_flag
5025case $reload_flag in
5026"" | " "*) ;;
5027*) reload_flag=" $reload_flag" ;;
5028esac
5029reload_cmds='$LD$reload_flag -o $output$reload_objs'
5030case $host_os in
5031  cygwin* | mingw* | pw32* | cegcc*)
5032    if test "$GCC" != yes; then
5033      reload_cmds=false
5034    fi
5035    ;;
5036  darwin*)
5037    if test "$GCC" = yes; then
5038      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5039    else
5040      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5041    fi
5042    ;;
5043esac
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053if test -n "$ac_tool_prefix"; then
5054  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5055set dummy ${ac_tool_prefix}objdump; ac_word=$2
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057$as_echo_n "checking for $ac_word... " >&6; }
5058if ${ac_cv_prog_OBJDUMP+:} false; then :
5059  $as_echo_n "(cached) " >&6
5060else
5061  if test -n "$OBJDUMP"; then
5062  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5063else
5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067  IFS=$as_save_IFS
5068  test -z "$as_dir" && as_dir=.
5069    for ac_exec_ext in '' $ac_executable_extensions; do
5070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073    break 2
5074  fi
5075done
5076  done
5077IFS=$as_save_IFS
5078
5079fi
5080fi
5081OBJDUMP=$ac_cv_prog_OBJDUMP
5082if test -n "$OBJDUMP"; then
5083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5084$as_echo "$OBJDUMP" >&6; }
5085else
5086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087$as_echo "no" >&6; }
5088fi
5089
5090
5091fi
5092if test -z "$ac_cv_prog_OBJDUMP"; then
5093  ac_ct_OBJDUMP=$OBJDUMP
5094  # Extract the first word of "objdump", so it can be a program name with args.
5095set dummy objdump; ac_word=$2
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097$as_echo_n "checking for $ac_word... " >&6; }
5098if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5099  $as_echo_n "(cached) " >&6
5100else
5101  if test -n "$ac_ct_OBJDUMP"; then
5102  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5103else
5104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105for as_dir in $PATH
5106do
5107  IFS=$as_save_IFS
5108  test -z "$as_dir" && as_dir=.
5109    for ac_exec_ext in '' $ac_executable_extensions; do
5110  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113    break 2
5114  fi
5115done
5116  done
5117IFS=$as_save_IFS
5118
5119fi
5120fi
5121ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5122if test -n "$ac_ct_OBJDUMP"; then
5123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5124$as_echo "$ac_ct_OBJDUMP" >&6; }
5125else
5126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127$as_echo "no" >&6; }
5128fi
5129
5130  if test "x$ac_ct_OBJDUMP" = x; then
5131    OBJDUMP="false"
5132  else
5133    case $cross_compiling:$ac_tool_warned in
5134yes:)
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137ac_tool_warned=yes ;;
5138esac
5139    OBJDUMP=$ac_ct_OBJDUMP
5140  fi
5141else
5142  OBJDUMP="$ac_cv_prog_OBJDUMP"
5143fi
5144
5145test -z "$OBJDUMP" && OBJDUMP=objdump
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5156$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5157if ${lt_cv_deplibs_check_method+:} false; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160  lt_cv_file_magic_cmd='$MAGIC_CMD'
5161lt_cv_file_magic_test_file=
5162lt_cv_deplibs_check_method='unknown'
5163# Need to set the preceding variable on all platforms that support
5164# interlibrary dependencies.
5165# 'none' -- dependencies not supported.
5166# `unknown' -- same as none, but documents that we really don't know.
5167# 'pass_all' -- all dependencies passed with no checks.
5168# 'test_compile' -- check by making test program.
5169# 'file_magic [[regex]]' -- check by looking for files in library path
5170# which responds to the $file_magic_cmd with a given extended regex.
5171# If you have `file' or equivalent on your system and you're not sure
5172# whether `pass_all' will *always* work, you probably want this one.
5173
5174case $host_os in
5175aix[4-9]*)
5176  lt_cv_deplibs_check_method=pass_all
5177  ;;
5178
5179beos*)
5180  lt_cv_deplibs_check_method=pass_all
5181  ;;
5182
5183bsdi[45]*)
5184  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5185  lt_cv_file_magic_cmd='/usr/bin/file -L'
5186  lt_cv_file_magic_test_file=/shlib/libc.so
5187  ;;
5188
5189cygwin*)
5190  # func_win32_libid is a shell function defined in ltmain.sh
5191  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5192  lt_cv_file_magic_cmd='func_win32_libid'
5193  ;;
5194
5195mingw* | pw32*)
5196  # Base MSYS/MinGW do not provide the 'file' command needed by
5197  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5198  # unless we find 'file', for example because we are cross-compiling.
5199  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5200  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5201    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5202    lt_cv_file_magic_cmd='func_win32_libid'
5203  else
5204    # Keep this pattern in sync with the one in func_win32_libid.
5205    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5206    lt_cv_file_magic_cmd='$OBJDUMP -f'
5207  fi
5208  ;;
5209
5210cegcc*)
5211  # use the weaker test based on 'objdump'. See mingw*.
5212  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5213  lt_cv_file_magic_cmd='$OBJDUMP -f'
5214  ;;
5215
5216darwin* | rhapsody*)
5217  lt_cv_deplibs_check_method=pass_all
5218  ;;
5219
5220freebsd* | dragonfly*)
5221  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5222    case $host_cpu in
5223    i*86 )
5224      # Not sure whether the presence of OpenBSD here was a mistake.
5225      # Let's accept both of them until this is cleared up.
5226      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5227      lt_cv_file_magic_cmd=/usr/bin/file
5228      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5229      ;;
5230    esac
5231  else
5232    lt_cv_deplibs_check_method=pass_all
5233  fi
5234  ;;
5235
5236haiku*)
5237  lt_cv_deplibs_check_method=pass_all
5238  ;;
5239
5240hpux10.20* | hpux11*)
5241  lt_cv_file_magic_cmd=/usr/bin/file
5242  case $host_cpu in
5243  ia64*)
5244    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5245    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5246    ;;
5247  hppa*64*)
5248    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]'
5249    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5250    ;;
5251  *)
5252    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5253    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5254    ;;
5255  esac
5256  ;;
5257
5258interix[3-9]*)
5259  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5260  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5261  ;;
5262
5263irix5* | irix6* | nonstopux*)
5264  case $LD in
5265  *-32|*"-32 ") libmagic=32-bit;;
5266  *-n32|*"-n32 ") libmagic=N32;;
5267  *-64|*"-64 ") libmagic=64-bit;;
5268  *) libmagic=never-match;;
5269  esac
5270  lt_cv_deplibs_check_method=pass_all
5271  ;;
5272
5273# This must be glibc/ELF.
5274linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5275  lt_cv_deplibs_check_method=pass_all
5276  ;;
5277
5278netbsd* | netbsdelf*-gnu)
5279  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5280    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5281  else
5282    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5283  fi
5284  ;;
5285
5286newos6*)
5287  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5288  lt_cv_file_magic_cmd=/usr/bin/file
5289  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5290  ;;
5291
5292*nto* | *qnx*)
5293  lt_cv_deplibs_check_method=pass_all
5294  ;;
5295
5296openbsd*)
5297  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5298    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5299  else
5300    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5301  fi
5302  ;;
5303
5304osf3* | osf4* | osf5*)
5305  lt_cv_deplibs_check_method=pass_all
5306  ;;
5307
5308rdos*)
5309  lt_cv_deplibs_check_method=pass_all
5310  ;;
5311
5312solaris*)
5313  lt_cv_deplibs_check_method=pass_all
5314  ;;
5315
5316sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5317  lt_cv_deplibs_check_method=pass_all
5318  ;;
5319
5320sysv4 | sysv4.3*)
5321  case $host_vendor in
5322  motorola)
5323    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]'
5324    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5325    ;;
5326  ncr)
5327    lt_cv_deplibs_check_method=pass_all
5328    ;;
5329  sequent)
5330    lt_cv_file_magic_cmd='/bin/file'
5331    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5332    ;;
5333  sni)
5334    lt_cv_file_magic_cmd='/bin/file'
5335    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5336    lt_cv_file_magic_test_file=/lib/libc.so
5337    ;;
5338  siemens)
5339    lt_cv_deplibs_check_method=pass_all
5340    ;;
5341  pc)
5342    lt_cv_deplibs_check_method=pass_all
5343    ;;
5344  esac
5345  ;;
5346
5347tpf*)
5348  lt_cv_deplibs_check_method=pass_all
5349  ;;
5350esac
5351
5352fi
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5354$as_echo "$lt_cv_deplibs_check_method" >&6; }
5355
5356file_magic_glob=
5357want_nocaseglob=no
5358if test "$build" = "$host"; then
5359  case $host_os in
5360  mingw* | pw32*)
5361    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5362      want_nocaseglob=yes
5363    else
5364      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5365    fi
5366    ;;
5367  esac
5368fi
5369
5370file_magic_cmd=$lt_cv_file_magic_cmd
5371deplibs_check_method=$lt_cv_deplibs_check_method
5372test -z "$deplibs_check_method" && deplibs_check_method=unknown
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395if test -n "$ac_tool_prefix"; then
5396  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5397set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399$as_echo_n "checking for $ac_word... " >&6; }
5400if ${ac_cv_prog_DLLTOOL+:} false; then :
5401  $as_echo_n "(cached) " >&6
5402else
5403  if test -n "$DLLTOOL"; then
5404  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5405else
5406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409  IFS=$as_save_IFS
5410  test -z "$as_dir" && as_dir=.
5411    for ac_exec_ext in '' $ac_executable_extensions; do
5412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415    break 2
5416  fi
5417done
5418  done
5419IFS=$as_save_IFS
5420
5421fi
5422fi
5423DLLTOOL=$ac_cv_prog_DLLTOOL
5424if test -n "$DLLTOOL"; then
5425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5426$as_echo "$DLLTOOL" >&6; }
5427else
5428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429$as_echo "no" >&6; }
5430fi
5431
5432
5433fi
5434if test -z "$ac_cv_prog_DLLTOOL"; then
5435  ac_ct_DLLTOOL=$DLLTOOL
5436  # Extract the first word of "dlltool", so it can be a program name with args.
5437set dummy dlltool; ac_word=$2
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439$as_echo_n "checking for $ac_word... " >&6; }
5440if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5441  $as_echo_n "(cached) " >&6
5442else
5443  if test -n "$ac_ct_DLLTOOL"; then
5444  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5445else
5446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447for as_dir in $PATH
5448do
5449  IFS=$as_save_IFS
5450  test -z "$as_dir" && as_dir=.
5451    for ac_exec_ext in '' $ac_executable_extensions; do
5452  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455    break 2
5456  fi
5457done
5458  done
5459IFS=$as_save_IFS
5460
5461fi
5462fi
5463ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5464if test -n "$ac_ct_DLLTOOL"; then
5465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5466$as_echo "$ac_ct_DLLTOOL" >&6; }
5467else
5468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469$as_echo "no" >&6; }
5470fi
5471
5472  if test "x$ac_ct_DLLTOOL" = x; then
5473    DLLTOOL="false"
5474  else
5475    case $cross_compiling:$ac_tool_warned in
5476yes:)
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5479ac_tool_warned=yes ;;
5480esac
5481    DLLTOOL=$ac_ct_DLLTOOL
5482  fi
5483else
5484  DLLTOOL="$ac_cv_prog_DLLTOOL"
5485fi
5486
5487test -z "$DLLTOOL" && DLLTOOL=dlltool
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5499$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5500if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5501  $as_echo_n "(cached) " >&6
5502else
5503  lt_cv_sharedlib_from_linklib_cmd='unknown'
5504
5505case $host_os in
5506cygwin* | mingw* | pw32* | cegcc*)
5507  # two different shell functions defined in ltmain.sh
5508  # decide which to use based on capabilities of $DLLTOOL
5509  case `$DLLTOOL --help 2>&1` in
5510  *--identify-strict*)
5511    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5512    ;;
5513  *)
5514    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5515    ;;
5516  esac
5517  ;;
5518*)
5519  # fallback: assume linklib IS sharedlib
5520  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5521  ;;
5522esac
5523
5524fi
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5526$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5527sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5528test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5529
5530
5531
5532
5533
5534
5535
5536
5537if test -n "$ac_tool_prefix"; then
5538  for ac_prog in ar
5539  do
5540    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5541set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543$as_echo_n "checking for $ac_word... " >&6; }
5544if ${ac_cv_prog_AR+:} false; then :
5545  $as_echo_n "(cached) " >&6
5546else
5547  if test -n "$AR"; then
5548  ac_cv_prog_AR="$AR" # Let the user override the test.
5549else
5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551for as_dir in $PATH
5552do
5553  IFS=$as_save_IFS
5554  test -z "$as_dir" && as_dir=.
5555    for ac_exec_ext in '' $ac_executable_extensions; do
5556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559    break 2
5560  fi
5561done
5562  done
5563IFS=$as_save_IFS
5564
5565fi
5566fi
5567AR=$ac_cv_prog_AR
5568if test -n "$AR"; then
5569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5570$as_echo "$AR" >&6; }
5571else
5572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573$as_echo "no" >&6; }
5574fi
5575
5576
5577    test -n "$AR" && break
5578  done
5579fi
5580if test -z "$AR"; then
5581  ac_ct_AR=$AR
5582  for ac_prog in ar
5583do
5584  # Extract the first word of "$ac_prog", so it can be a program name with args.
5585set dummy $ac_prog; ac_word=$2
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587$as_echo_n "checking for $ac_word... " >&6; }
5588if ${ac_cv_prog_ac_ct_AR+:} false; then :
5589  $as_echo_n "(cached) " >&6
5590else
5591  if test -n "$ac_ct_AR"; then
5592  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5593else
5594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595for as_dir in $PATH
5596do
5597  IFS=$as_save_IFS
5598  test -z "$as_dir" && as_dir=.
5599    for ac_exec_ext in '' $ac_executable_extensions; do
5600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601    ac_cv_prog_ac_ct_AR="$ac_prog"
5602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603    break 2
5604  fi
5605done
5606  done
5607IFS=$as_save_IFS
5608
5609fi
5610fi
5611ac_ct_AR=$ac_cv_prog_ac_ct_AR
5612if test -n "$ac_ct_AR"; then
5613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5614$as_echo "$ac_ct_AR" >&6; }
5615else
5616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617$as_echo "no" >&6; }
5618fi
5619
5620
5621  test -n "$ac_ct_AR" && break
5622done
5623
5624  if test "x$ac_ct_AR" = x; then
5625    AR="false"
5626  else
5627    case $cross_compiling:$ac_tool_warned in
5628yes:)
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5631ac_tool_warned=yes ;;
5632esac
5633    AR=$ac_ct_AR
5634  fi
5635fi
5636
5637: ${AR=ar}
5638: ${AR_FLAGS=cru}
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5651$as_echo_n "checking for archiver @FILE support... " >&6; }
5652if ${lt_cv_ar_at_file+:} false; then :
5653  $as_echo_n "(cached) " >&6
5654else
5655  lt_cv_ar_at_file=no
5656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657/* end confdefs.h.  */
5658
5659int
5660main ()
5661{
5662
5663  ;
5664  return 0;
5665}
5666_ACEOF
5667if ac_fn_c_try_compile "$LINENO"; then :
5668  echo conftest.$ac_objext > conftest.lst
5669      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5670      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5671  (eval $lt_ar_try) 2>&5
5672  ac_status=$?
5673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674  test $ac_status = 0; }
5675      if test "$ac_status" -eq 0; then
5676	# Ensure the archiver fails upon bogus file names.
5677	rm -f conftest.$ac_objext libconftest.a
5678	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5679  (eval $lt_ar_try) 2>&5
5680  ac_status=$?
5681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682  test $ac_status = 0; }
5683	if test "$ac_status" -ne 0; then
5684          lt_cv_ar_at_file=@
5685        fi
5686      fi
5687      rm -f conftest.* libconftest.a
5688
5689fi
5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691
5692fi
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5694$as_echo "$lt_cv_ar_at_file" >&6; }
5695
5696if test "x$lt_cv_ar_at_file" = xno; then
5697  archiver_list_spec=
5698else
5699  archiver_list_spec=$lt_cv_ar_at_file
5700fi
5701
5702
5703
5704
5705
5706
5707
5708if test -n "$ac_tool_prefix"; then
5709  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5710set dummy ${ac_tool_prefix}strip; ac_word=$2
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712$as_echo_n "checking for $ac_word... " >&6; }
5713if ${ac_cv_prog_STRIP+:} false; then :
5714  $as_echo_n "(cached) " >&6
5715else
5716  if test -n "$STRIP"; then
5717  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722  IFS=$as_save_IFS
5723  test -z "$as_dir" && as_dir=.
5724    for ac_exec_ext in '' $ac_executable_extensions; do
5725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728    break 2
5729  fi
5730done
5731  done
5732IFS=$as_save_IFS
5733
5734fi
5735fi
5736STRIP=$ac_cv_prog_STRIP
5737if test -n "$STRIP"; then
5738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5739$as_echo "$STRIP" >&6; }
5740else
5741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742$as_echo "no" >&6; }
5743fi
5744
5745
5746fi
5747if test -z "$ac_cv_prog_STRIP"; then
5748  ac_ct_STRIP=$STRIP
5749  # Extract the first word of "strip", so it can be a program name with args.
5750set dummy strip; ac_word=$2
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752$as_echo_n "checking for $ac_word... " >&6; }
5753if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5754  $as_echo_n "(cached) " >&6
5755else
5756  if test -n "$ac_ct_STRIP"; then
5757  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5758else
5759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760for as_dir in $PATH
5761do
5762  IFS=$as_save_IFS
5763  test -z "$as_dir" && as_dir=.
5764    for ac_exec_ext in '' $ac_executable_extensions; do
5765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5766    ac_cv_prog_ac_ct_STRIP="strip"
5767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768    break 2
5769  fi
5770done
5771  done
5772IFS=$as_save_IFS
5773
5774fi
5775fi
5776ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5777if test -n "$ac_ct_STRIP"; then
5778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5779$as_echo "$ac_ct_STRIP" >&6; }
5780else
5781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782$as_echo "no" >&6; }
5783fi
5784
5785  if test "x$ac_ct_STRIP" = x; then
5786    STRIP=":"
5787  else
5788    case $cross_compiling:$ac_tool_warned in
5789yes:)
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5792ac_tool_warned=yes ;;
5793esac
5794    STRIP=$ac_ct_STRIP
5795  fi
5796else
5797  STRIP="$ac_cv_prog_STRIP"
5798fi
5799
5800test -z "$STRIP" && STRIP=:
5801
5802
5803
5804
5805
5806
5807if test -n "$ac_tool_prefix"; then
5808  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5809set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811$as_echo_n "checking for $ac_word... " >&6; }
5812if ${ac_cv_prog_RANLIB+:} false; then :
5813  $as_echo_n "(cached) " >&6
5814else
5815  if test -n "$RANLIB"; then
5816  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5817else
5818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in $PATH
5820do
5821  IFS=$as_save_IFS
5822  test -z "$as_dir" && as_dir=.
5823    for ac_exec_ext in '' $ac_executable_extensions; do
5824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827    break 2
5828  fi
5829done
5830  done
5831IFS=$as_save_IFS
5832
5833fi
5834fi
5835RANLIB=$ac_cv_prog_RANLIB
5836if test -n "$RANLIB"; then
5837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5838$as_echo "$RANLIB" >&6; }
5839else
5840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841$as_echo "no" >&6; }
5842fi
5843
5844
5845fi
5846if test -z "$ac_cv_prog_RANLIB"; then
5847  ac_ct_RANLIB=$RANLIB
5848  # Extract the first word of "ranlib", so it can be a program name with args.
5849set dummy ranlib; ac_word=$2
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851$as_echo_n "checking for $ac_word... " >&6; }
5852if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5853  $as_echo_n "(cached) " >&6
5854else
5855  if test -n "$ac_ct_RANLIB"; then
5856  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861  IFS=$as_save_IFS
5862  test -z "$as_dir" && as_dir=.
5863    for ac_exec_ext in '' $ac_executable_extensions; do
5864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865    ac_cv_prog_ac_ct_RANLIB="ranlib"
5866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867    break 2
5868  fi
5869done
5870  done
5871IFS=$as_save_IFS
5872
5873fi
5874fi
5875ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5876if test -n "$ac_ct_RANLIB"; then
5877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5878$as_echo "$ac_ct_RANLIB" >&6; }
5879else
5880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881$as_echo "no" >&6; }
5882fi
5883
5884  if test "x$ac_ct_RANLIB" = x; then
5885    RANLIB=":"
5886  else
5887    case $cross_compiling:$ac_tool_warned in
5888yes:)
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891ac_tool_warned=yes ;;
5892esac
5893    RANLIB=$ac_ct_RANLIB
5894  fi
5895else
5896  RANLIB="$ac_cv_prog_RANLIB"
5897fi
5898
5899test -z "$RANLIB" && RANLIB=:
5900
5901
5902
5903
5904
5905
5906# Determine commands to create old-style static archives.
5907old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5908old_postinstall_cmds='chmod 644 $oldlib'
5909old_postuninstall_cmds=
5910
5911if test -n "$RANLIB"; then
5912  case $host_os in
5913  openbsd*)
5914    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5915    ;;
5916  *)
5917    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5918    ;;
5919  esac
5920  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5921fi
5922
5923case $host_os in
5924  darwin*)
5925    lock_old_archive_extraction=yes ;;
5926  *)
5927    lock_old_archive_extraction=no ;;
5928esac
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968# If no C compiler was specified, use CC.
5969LTCC=${LTCC-"$CC"}
5970
5971# If no C compiler flags were specified, use CFLAGS.
5972LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5973
5974# Allow CC to be a program name with arguments.
5975compiler=$CC
5976
5977
5978# Check for command to grab the raw symbol name followed by C symbol from nm.
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5980$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5981if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5982  $as_echo_n "(cached) " >&6
5983else
5984
5985# These are sane defaults that work on at least a few old systems.
5986# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5987
5988# Character class describing NM global symbol codes.
5989symcode='[BCDEGRST]'
5990
5991# Regexp to match symbols that can be accessed directly from C.
5992sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5993
5994# Define system-specific variables.
5995case $host_os in
5996aix*)
5997  symcode='[BCDT]'
5998  ;;
5999cygwin* | mingw* | pw32* | cegcc*)
6000  symcode='[ABCDGISTW]'
6001  ;;
6002hpux*)
6003  if test "$host_cpu" = ia64; then
6004    symcode='[ABCDEGRST]'
6005  fi
6006  ;;
6007irix* | nonstopux*)
6008  symcode='[BCDEGRST]'
6009  ;;
6010osf*)
6011  symcode='[BCDEGQRST]'
6012  ;;
6013solaris*)
6014  symcode='[BDRT]'
6015  ;;
6016sco3.2v5*)
6017  symcode='[DT]'
6018  ;;
6019sysv4.2uw2*)
6020  symcode='[DT]'
6021  ;;
6022sysv5* | sco5v6* | unixware* | OpenUNIX*)
6023  symcode='[ABDT]'
6024  ;;
6025sysv4)
6026  symcode='[DFNSTU]'
6027  ;;
6028esac
6029
6030# If we're using GNU nm, then use its standard symbol codes.
6031case `$NM -V 2>&1` in
6032*GNU* | *'with BFD'*)
6033  symcode='[ABCDGIRSTW]' ;;
6034esac
6035
6036# Transform an extracted symbol line into a proper C declaration.
6037# Some systems (esp. on ia64) link data and code symbols differently,
6038# so use this general approach.
6039lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6040
6041# Transform an extracted symbol line into symbol name and symbol address
6042lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6043lt_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'"
6044
6045# Handle CRLF in mingw tool chain
6046opt_cr=
6047case $build_os in
6048mingw*)
6049  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6050  ;;
6051esac
6052
6053# Try without a prefix underscore, then with it.
6054for ac_symprfx in "" "_"; do
6055
6056  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6057  symxfrm="\\1 $ac_symprfx\\2 \\2"
6058
6059  # Write the raw and C identifiers.
6060  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6061    # Fake it for dumpbin and say T for any non-static function
6062    # and D for any global variable.
6063    # Also find C++ and __fastcall symbols from MSVC++,
6064    # which start with @ or ?.
6065    lt_cv_sys_global_symbol_pipe="$AWK '"\
6066"     {last_section=section; section=\$ 3};"\
6067"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6068"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6069"     \$ 0!~/External *\|/{next};"\
6070"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6071"     {if(hide[section]) next};"\
6072"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6073"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6074"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6075"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6076"     ' prfx=^$ac_symprfx"
6077  else
6078    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6079  fi
6080  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6081
6082  # Check to see that the pipe works correctly.
6083  pipe_works=no
6084
6085  rm -f conftest*
6086  cat > conftest.$ac_ext <<_LT_EOF
6087#ifdef __cplusplus
6088extern "C" {
6089#endif
6090char nm_test_var;
6091void nm_test_func(void);
6092void nm_test_func(void){}
6093#ifdef __cplusplus
6094}
6095#endif
6096int main(){nm_test_var='a';nm_test_func();return(0);}
6097_LT_EOF
6098
6099  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6100  (eval $ac_compile) 2>&5
6101  ac_status=$?
6102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6103  test $ac_status = 0; }; then
6104    # Now try to grab the symbols.
6105    nlist=conftest.nm
6106    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6107  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6108  ac_status=$?
6109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110  test $ac_status = 0; } && test -s "$nlist"; then
6111      # Try sorting and uniquifying the output.
6112      if sort "$nlist" | uniq > "$nlist"T; then
6113	mv -f "$nlist"T "$nlist"
6114      else
6115	rm -f "$nlist"T
6116      fi
6117
6118      # Make sure that we snagged all the symbols we need.
6119      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6120	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6121	  cat <<_LT_EOF > conftest.$ac_ext
6122/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6123#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6124/* DATA imports from DLLs on WIN32 con't be const, because runtime
6125   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6126# define LT_DLSYM_CONST
6127#elif defined(__osf__)
6128/* This system does not cope well with relocations in const data.  */
6129# define LT_DLSYM_CONST
6130#else
6131# define LT_DLSYM_CONST const
6132#endif
6133
6134#ifdef __cplusplus
6135extern "C" {
6136#endif
6137
6138_LT_EOF
6139	  # Now generate the symbol file.
6140	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6141
6142	  cat <<_LT_EOF >> conftest.$ac_ext
6143
6144/* The mapping between symbol names and symbols.  */
6145LT_DLSYM_CONST struct {
6146  const char *name;
6147  void       *address;
6148}
6149lt__PROGRAM__LTX_preloaded_symbols[] =
6150{
6151  { "@PROGRAM@", (void *) 0 },
6152_LT_EOF
6153	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6154	  cat <<\_LT_EOF >> conftest.$ac_ext
6155  {0, (void *) 0}
6156};
6157
6158/* This works around a problem in FreeBSD linker */
6159#ifdef FREEBSD_WORKAROUND
6160static const void *lt_preloaded_setup() {
6161  return lt__PROGRAM__LTX_preloaded_symbols;
6162}
6163#endif
6164
6165#ifdef __cplusplus
6166}
6167#endif
6168_LT_EOF
6169	  # Now try linking the two files.
6170	  mv conftest.$ac_objext conftstm.$ac_objext
6171	  lt_globsym_save_LIBS=$LIBS
6172	  lt_globsym_save_CFLAGS=$CFLAGS
6173	  LIBS="conftstm.$ac_objext"
6174	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6175	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6176  (eval $ac_link) 2>&5
6177  ac_status=$?
6178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6180	    pipe_works=yes
6181	  fi
6182	  LIBS=$lt_globsym_save_LIBS
6183	  CFLAGS=$lt_globsym_save_CFLAGS
6184	else
6185	  echo "cannot find nm_test_func in $nlist" >&5
6186	fi
6187      else
6188	echo "cannot find nm_test_var in $nlist" >&5
6189      fi
6190    else
6191      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6192    fi
6193  else
6194    echo "$progname: failed program was:" >&5
6195    cat conftest.$ac_ext >&5
6196  fi
6197  rm -rf conftest* conftst*
6198
6199  # Do not use the global_symbol_pipe unless it works.
6200  if test "$pipe_works" = yes; then
6201    break
6202  else
6203    lt_cv_sys_global_symbol_pipe=
6204  fi
6205done
6206
6207fi
6208
6209if test -z "$lt_cv_sys_global_symbol_pipe"; then
6210  lt_cv_sys_global_symbol_to_cdecl=
6211fi
6212if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6214$as_echo "failed" >&6; }
6215else
6216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6217$as_echo "ok" >&6; }
6218fi
6219
6220# Response file support.
6221if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6222  nm_file_list_spec='@'
6223elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6224  nm_file_list_spec='@'
6225fi
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6254$as_echo_n "checking for sysroot... " >&6; }
6255
6256# Check whether --with-sysroot was given.
6257if test "${with_sysroot+set}" = set; then :
6258  withval=$with_sysroot;
6259else
6260  with_sysroot=no
6261fi
6262
6263
6264lt_sysroot=
6265case ${with_sysroot} in #(
6266 yes)
6267   if test "$GCC" = yes; then
6268     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6269   fi
6270   ;; #(
6271 /*)
6272   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6273   ;; #(
6274 no|'')
6275   ;; #(
6276 *)
6277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6278$as_echo "${with_sysroot}" >&6; }
6279   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6280   ;;
6281esac
6282
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6284$as_echo "${lt_sysroot:-no}" >&6; }
6285
6286
6287
6288
6289
6290# Check whether --enable-libtool-lock was given.
6291if test "${enable_libtool_lock+set}" = set; then :
6292  enableval=$enable_libtool_lock;
6293fi
6294
6295test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6296
6297# Some flags need to be propagated to the compiler or linker for good
6298# libtool support.
6299case $host in
6300ia64-*-hpux*)
6301  # Find out which ABI we are using.
6302  echo 'int i;' > conftest.$ac_ext
6303  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6304  (eval $ac_compile) 2>&5
6305  ac_status=$?
6306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307  test $ac_status = 0; }; then
6308    case `/usr/bin/file conftest.$ac_objext` in
6309      *ELF-32*)
6310	HPUX_IA64_MODE="32"
6311	;;
6312      *ELF-64*)
6313	HPUX_IA64_MODE="64"
6314	;;
6315    esac
6316  fi
6317  rm -rf conftest*
6318  ;;
6319*-*-irix6*)
6320  # Find out which ABI we are using.
6321  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6322  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6323  (eval $ac_compile) 2>&5
6324  ac_status=$?
6325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6326  test $ac_status = 0; }; then
6327    if test "$lt_cv_prog_gnu_ld" = yes; then
6328      case `/usr/bin/file conftest.$ac_objext` in
6329	*32-bit*)
6330	  LD="${LD-ld} -melf32bsmip"
6331	  ;;
6332	*N32*)
6333	  LD="${LD-ld} -melf32bmipn32"
6334	  ;;
6335	*64-bit*)
6336	  LD="${LD-ld} -melf64bmip"
6337	;;
6338      esac
6339    else
6340      case `/usr/bin/file conftest.$ac_objext` in
6341	*32-bit*)
6342	  LD="${LD-ld} -32"
6343	  ;;
6344	*N32*)
6345	  LD="${LD-ld} -n32"
6346	  ;;
6347	*64-bit*)
6348	  LD="${LD-ld} -64"
6349	  ;;
6350      esac
6351    fi
6352  fi
6353  rm -rf conftest*
6354  ;;
6355
6356x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6357s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6358  # Find out which ABI we are using.
6359  echo 'int i;' > conftest.$ac_ext
6360  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6361  (eval $ac_compile) 2>&5
6362  ac_status=$?
6363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6364  test $ac_status = 0; }; then
6365    case `/usr/bin/file conftest.o` in
6366      *32-bit*)
6367	case $host in
6368	  x86_64-*kfreebsd*-gnu)
6369	    LD="${LD-ld} -m elf_i386_fbsd"
6370	    ;;
6371	  x86_64-*linux*)
6372	    case `/usr/bin/file conftest.o` in
6373	      *x86-64*)
6374		LD="${LD-ld} -m elf32_x86_64"
6375		;;
6376	      *)
6377		LD="${LD-ld} -m elf_i386"
6378		;;
6379	    esac
6380	    ;;
6381	  ppc64-*linux*|powerpc64-*linux*)
6382	    LD="${LD-ld} -m elf32ppclinux"
6383	    ;;
6384	  s390x-*linux*)
6385	    LD="${LD-ld} -m elf_s390"
6386	    ;;
6387	  sparc64-*linux*)
6388	    LD="${LD-ld} -m elf32_sparc"
6389	    ;;
6390	esac
6391	;;
6392      *64-bit*)
6393	case $host in
6394	  x86_64-*kfreebsd*-gnu)
6395	    LD="${LD-ld} -m elf_x86_64_fbsd"
6396	    ;;
6397	  x86_64-*linux*)
6398	    LD="${LD-ld} -m elf_x86_64"
6399	    ;;
6400	  ppc*-*linux*|powerpc*-*linux*)
6401	    LD="${LD-ld} -m elf64ppc"
6402	    ;;
6403	  s390*-*linux*|s390*-*tpf*)
6404	    LD="${LD-ld} -m elf64_s390"
6405	    ;;
6406	  sparc*-*linux*)
6407	    LD="${LD-ld} -m elf64_sparc"
6408	    ;;
6409	esac
6410	;;
6411    esac
6412  fi
6413  rm -rf conftest*
6414  ;;
6415
6416*-*-sco3.2v5*)
6417  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6418  SAVE_CFLAGS="$CFLAGS"
6419  CFLAGS="$CFLAGS -belf"
6420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6421$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6422if ${lt_cv_cc_needs_belf+:} false; then :
6423  $as_echo_n "(cached) " >&6
6424else
6425  ac_ext=c
6426ac_cpp='$CPP $CPPFLAGS'
6427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6429ac_compiler_gnu=$ac_cv_c_compiler_gnu
6430
6431     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432/* end confdefs.h.  */
6433
6434int
6435main ()
6436{
6437
6438  ;
6439  return 0;
6440}
6441_ACEOF
6442if ac_fn_c_try_link "$LINENO"; then :
6443  lt_cv_cc_needs_belf=yes
6444else
6445  lt_cv_cc_needs_belf=no
6446fi
6447rm -f core conftest.err conftest.$ac_objext \
6448    conftest$ac_exeext conftest.$ac_ext
6449     ac_ext=c
6450ac_cpp='$CPP $CPPFLAGS'
6451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6453ac_compiler_gnu=$ac_cv_c_compiler_gnu
6454
6455fi
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6457$as_echo "$lt_cv_cc_needs_belf" >&6; }
6458  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6459    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6460    CFLAGS="$SAVE_CFLAGS"
6461  fi
6462  ;;
6463*-*solaris*)
6464  # Find out which ABI we are using.
6465  echo 'int i;' > conftest.$ac_ext
6466  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6467  (eval $ac_compile) 2>&5
6468  ac_status=$?
6469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470  test $ac_status = 0; }; then
6471    case `/usr/bin/file conftest.o` in
6472    *64-bit*)
6473      case $lt_cv_prog_gnu_ld in
6474      yes*)
6475        case $host in
6476        i?86-*-solaris*)
6477          LD="${LD-ld} -m elf_x86_64"
6478          ;;
6479        sparc*-*-solaris*)
6480          LD="${LD-ld} -m elf64_sparc"
6481          ;;
6482        esac
6483        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6484        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6485          LD="${LD-ld}_sol2"
6486        fi
6487        ;;
6488      *)
6489	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6490	  LD="${LD-ld} -64"
6491	fi
6492	;;
6493      esac
6494      ;;
6495    esac
6496  fi
6497  rm -rf conftest*
6498  ;;
6499esac
6500
6501need_locks="$enable_libtool_lock"
6502
6503if test -n "$ac_tool_prefix"; then
6504  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6505set dummy ${ac_tool_prefix}mt; ac_word=$2
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507$as_echo_n "checking for $ac_word... " >&6; }
6508if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6509  $as_echo_n "(cached) " >&6
6510else
6511  if test -n "$MANIFEST_TOOL"; then
6512  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6513else
6514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515for as_dir in $PATH
6516do
6517  IFS=$as_save_IFS
6518  test -z "$as_dir" && as_dir=.
6519    for ac_exec_ext in '' $ac_executable_extensions; do
6520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6521    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523    break 2
6524  fi
6525done
6526  done
6527IFS=$as_save_IFS
6528
6529fi
6530fi
6531MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6532if test -n "$MANIFEST_TOOL"; then
6533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6534$as_echo "$MANIFEST_TOOL" >&6; }
6535else
6536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537$as_echo "no" >&6; }
6538fi
6539
6540
6541fi
6542if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6543  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6544  # Extract the first word of "mt", so it can be a program name with args.
6545set dummy mt; ac_word=$2
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547$as_echo_n "checking for $ac_word... " >&6; }
6548if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6549  $as_echo_n "(cached) " >&6
6550else
6551  if test -n "$ac_ct_MANIFEST_TOOL"; then
6552  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6553else
6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH
6556do
6557  IFS=$as_save_IFS
6558  test -z "$as_dir" && as_dir=.
6559    for ac_exec_ext in '' $ac_executable_extensions; do
6560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563    break 2
6564  fi
6565done
6566  done
6567IFS=$as_save_IFS
6568
6569fi
6570fi
6571ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6572if test -n "$ac_ct_MANIFEST_TOOL"; then
6573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6574$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6575else
6576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577$as_echo "no" >&6; }
6578fi
6579
6580  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6581    MANIFEST_TOOL=":"
6582  else
6583    case $cross_compiling:$ac_tool_warned in
6584yes:)
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587ac_tool_warned=yes ;;
6588esac
6589    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6590  fi
6591else
6592  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6593fi
6594
6595test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6597$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6598if ${lt_cv_path_mainfest_tool+:} false; then :
6599  $as_echo_n "(cached) " >&6
6600else
6601  lt_cv_path_mainfest_tool=no
6602  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6603  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6604  cat conftest.err >&5
6605  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6606    lt_cv_path_mainfest_tool=yes
6607  fi
6608  rm -f conftest*
6609fi
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6611$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6612if test "x$lt_cv_path_mainfest_tool" != xyes; then
6613  MANIFEST_TOOL=:
6614fi
6615
6616
6617
6618
6619
6620
6621  case $host_os in
6622    rhapsody* | darwin*)
6623    if test -n "$ac_tool_prefix"; then
6624  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6625set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627$as_echo_n "checking for $ac_word... " >&6; }
6628if ${ac_cv_prog_DSYMUTIL+:} false; then :
6629  $as_echo_n "(cached) " >&6
6630else
6631  if test -n "$DSYMUTIL"; then
6632  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6633else
6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637  IFS=$as_save_IFS
6638  test -z "$as_dir" && as_dir=.
6639    for ac_exec_ext in '' $ac_executable_extensions; do
6640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643    break 2
6644  fi
6645done
6646  done
6647IFS=$as_save_IFS
6648
6649fi
6650fi
6651DSYMUTIL=$ac_cv_prog_DSYMUTIL
6652if test -n "$DSYMUTIL"; then
6653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6654$as_echo "$DSYMUTIL" >&6; }
6655else
6656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657$as_echo "no" >&6; }
6658fi
6659
6660
6661fi
6662if test -z "$ac_cv_prog_DSYMUTIL"; then
6663  ac_ct_DSYMUTIL=$DSYMUTIL
6664  # Extract the first word of "dsymutil", so it can be a program name with args.
6665set dummy dsymutil; ac_word=$2
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667$as_echo_n "checking for $ac_word... " >&6; }
6668if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6669  $as_echo_n "(cached) " >&6
6670else
6671  if test -n "$ac_ct_DSYMUTIL"; then
6672  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6673else
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677  IFS=$as_save_IFS
6678  test -z "$as_dir" && as_dir=.
6679    for ac_exec_ext in '' $ac_executable_extensions; do
6680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683    break 2
6684  fi
6685done
6686  done
6687IFS=$as_save_IFS
6688
6689fi
6690fi
6691ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6692if test -n "$ac_ct_DSYMUTIL"; then
6693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6694$as_echo "$ac_ct_DSYMUTIL" >&6; }
6695else
6696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697$as_echo "no" >&6; }
6698fi
6699
6700  if test "x$ac_ct_DSYMUTIL" = x; then
6701    DSYMUTIL=":"
6702  else
6703    case $cross_compiling:$ac_tool_warned in
6704yes:)
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707ac_tool_warned=yes ;;
6708esac
6709    DSYMUTIL=$ac_ct_DSYMUTIL
6710  fi
6711else
6712  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6713fi
6714
6715    if test -n "$ac_tool_prefix"; then
6716  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6717set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
6720if ${ac_cv_prog_NMEDIT+:} false; then :
6721  $as_echo_n "(cached) " >&6
6722else
6723  if test -n "$NMEDIT"; then
6724  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729  IFS=$as_save_IFS
6730  test -z "$as_dir" && as_dir=.
6731    for ac_exec_ext in '' $ac_executable_extensions; do
6732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735    break 2
6736  fi
6737done
6738  done
6739IFS=$as_save_IFS
6740
6741fi
6742fi
6743NMEDIT=$ac_cv_prog_NMEDIT
6744if test -n "$NMEDIT"; then
6745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6746$as_echo "$NMEDIT" >&6; }
6747else
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749$as_echo "no" >&6; }
6750fi
6751
6752
6753fi
6754if test -z "$ac_cv_prog_NMEDIT"; then
6755  ac_ct_NMEDIT=$NMEDIT
6756  # Extract the first word of "nmedit", so it can be a program name with args.
6757set dummy nmedit; ac_word=$2
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759$as_echo_n "checking for $ac_word... " >&6; }
6760if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  if test -n "$ac_ct_NMEDIT"; then
6764  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769  IFS=$as_save_IFS
6770  test -z "$as_dir" && as_dir=.
6771    for ac_exec_ext in '' $ac_executable_extensions; do
6772  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775    break 2
6776  fi
6777done
6778  done
6779IFS=$as_save_IFS
6780
6781fi
6782fi
6783ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6784if test -n "$ac_ct_NMEDIT"; then
6785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6786$as_echo "$ac_ct_NMEDIT" >&6; }
6787else
6788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789$as_echo "no" >&6; }
6790fi
6791
6792  if test "x$ac_ct_NMEDIT" = x; then
6793    NMEDIT=":"
6794  else
6795    case $cross_compiling:$ac_tool_warned in
6796yes:)
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799ac_tool_warned=yes ;;
6800esac
6801    NMEDIT=$ac_ct_NMEDIT
6802  fi
6803else
6804  NMEDIT="$ac_cv_prog_NMEDIT"
6805fi
6806
6807    if test -n "$ac_tool_prefix"; then
6808  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6809set dummy ${ac_tool_prefix}lipo; ac_word=$2
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
6812if ${ac_cv_prog_LIPO+:} false; then :
6813  $as_echo_n "(cached) " >&6
6814else
6815  if test -n "$LIPO"; then
6816  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821  IFS=$as_save_IFS
6822  test -z "$as_dir" && as_dir=.
6823    for ac_exec_ext in '' $ac_executable_extensions; do
6824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827    break 2
6828  fi
6829done
6830  done
6831IFS=$as_save_IFS
6832
6833fi
6834fi
6835LIPO=$ac_cv_prog_LIPO
6836if test -n "$LIPO"; then
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6838$as_echo "$LIPO" >&6; }
6839else
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6842fi
6843
6844
6845fi
6846if test -z "$ac_cv_prog_LIPO"; then
6847  ac_ct_LIPO=$LIPO
6848  # Extract the first word of "lipo", so it can be a program name with args.
6849set dummy lipo; ac_word=$2
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851$as_echo_n "checking for $ac_word... " >&6; }
6852if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855  if test -n "$ac_ct_LIPO"; then
6856  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6857else
6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861  IFS=$as_save_IFS
6862  test -z "$as_dir" && as_dir=.
6863    for ac_exec_ext in '' $ac_executable_extensions; do
6864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6865    ac_cv_prog_ac_ct_LIPO="lipo"
6866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867    break 2
6868  fi
6869done
6870  done
6871IFS=$as_save_IFS
6872
6873fi
6874fi
6875ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6876if test -n "$ac_ct_LIPO"; then
6877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6878$as_echo "$ac_ct_LIPO" >&6; }
6879else
6880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881$as_echo "no" >&6; }
6882fi
6883
6884  if test "x$ac_ct_LIPO" = x; then
6885    LIPO=":"
6886  else
6887    case $cross_compiling:$ac_tool_warned in
6888yes:)
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891ac_tool_warned=yes ;;
6892esac
6893    LIPO=$ac_ct_LIPO
6894  fi
6895else
6896  LIPO="$ac_cv_prog_LIPO"
6897fi
6898
6899    if test -n "$ac_tool_prefix"; then
6900  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6901set dummy ${ac_tool_prefix}otool; ac_word=$2
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903$as_echo_n "checking for $ac_word... " >&6; }
6904if ${ac_cv_prog_OTOOL+:} false; then :
6905  $as_echo_n "(cached) " >&6
6906else
6907  if test -n "$OTOOL"; then
6908  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913  IFS=$as_save_IFS
6914  test -z "$as_dir" && as_dir=.
6915    for ac_exec_ext in '' $ac_executable_extensions; do
6916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919    break 2
6920  fi
6921done
6922  done
6923IFS=$as_save_IFS
6924
6925fi
6926fi
6927OTOOL=$ac_cv_prog_OTOOL
6928if test -n "$OTOOL"; then
6929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6930$as_echo "$OTOOL" >&6; }
6931else
6932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933$as_echo "no" >&6; }
6934fi
6935
6936
6937fi
6938if test -z "$ac_cv_prog_OTOOL"; then
6939  ac_ct_OTOOL=$OTOOL
6940  # Extract the first word of "otool", so it can be a program name with args.
6941set dummy otool; ac_word=$2
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943$as_echo_n "checking for $ac_word... " >&6; }
6944if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947  if test -n "$ac_ct_OTOOL"; then
6948  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953  IFS=$as_save_IFS
6954  test -z "$as_dir" && as_dir=.
6955    for ac_exec_ext in '' $ac_executable_extensions; do
6956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957    ac_cv_prog_ac_ct_OTOOL="otool"
6958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959    break 2
6960  fi
6961done
6962  done
6963IFS=$as_save_IFS
6964
6965fi
6966fi
6967ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6968if test -n "$ac_ct_OTOOL"; then
6969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6970$as_echo "$ac_ct_OTOOL" >&6; }
6971else
6972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973$as_echo "no" >&6; }
6974fi
6975
6976  if test "x$ac_ct_OTOOL" = x; then
6977    OTOOL=":"
6978  else
6979    case $cross_compiling:$ac_tool_warned in
6980yes:)
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983ac_tool_warned=yes ;;
6984esac
6985    OTOOL=$ac_ct_OTOOL
6986  fi
6987else
6988  OTOOL="$ac_cv_prog_OTOOL"
6989fi
6990
6991    if test -n "$ac_tool_prefix"; then
6992  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6993set dummy ${ac_tool_prefix}otool64; ac_word=$2
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995$as_echo_n "checking for $ac_word... " >&6; }
6996if ${ac_cv_prog_OTOOL64+:} false; then :
6997  $as_echo_n "(cached) " >&6
6998else
6999  if test -n "$OTOOL64"; then
7000  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005  IFS=$as_save_IFS
7006  test -z "$as_dir" && as_dir=.
7007    for ac_exec_ext in '' $ac_executable_extensions; do
7008  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011    break 2
7012  fi
7013done
7014  done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
7019OTOOL64=$ac_cv_prog_OTOOL64
7020if test -n "$OTOOL64"; then
7021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7022$as_echo "$OTOOL64" >&6; }
7023else
7024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025$as_echo "no" >&6; }
7026fi
7027
7028
7029fi
7030if test -z "$ac_cv_prog_OTOOL64"; then
7031  ac_ct_OTOOL64=$OTOOL64
7032  # Extract the first word of "otool64", so it can be a program name with args.
7033set dummy otool64; ac_word=$2
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035$as_echo_n "checking for $ac_word... " >&6; }
7036if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039  if test -n "$ac_ct_OTOOL64"; then
7040  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045  IFS=$as_save_IFS
7046  test -z "$as_dir" && as_dir=.
7047    for ac_exec_ext in '' $ac_executable_extensions; do
7048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049    ac_cv_prog_ac_ct_OTOOL64="otool64"
7050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051    break 2
7052  fi
7053done
7054  done
7055IFS=$as_save_IFS
7056
7057fi
7058fi
7059ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7060if test -n "$ac_ct_OTOOL64"; then
7061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7062$as_echo "$ac_ct_OTOOL64" >&6; }
7063else
7064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065$as_echo "no" >&6; }
7066fi
7067
7068  if test "x$ac_ct_OTOOL64" = x; then
7069    OTOOL64=":"
7070  else
7071    case $cross_compiling:$ac_tool_warned in
7072yes:)
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075ac_tool_warned=yes ;;
7076esac
7077    OTOOL64=$ac_ct_OTOOL64
7078  fi
7079else
7080  OTOOL64="$ac_cv_prog_OTOOL64"
7081fi
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7110$as_echo_n "checking for -single_module linker flag... " >&6; }
7111if ${lt_cv_apple_cc_single_mod+:} false; then :
7112  $as_echo_n "(cached) " >&6
7113else
7114  lt_cv_apple_cc_single_mod=no
7115      if test -z "${LT_MULTI_MODULE}"; then
7116	# By default we will add the -single_module flag. You can override
7117	# by either setting the environment variable LT_MULTI_MODULE
7118	# non-empty at configure time, or by adding -multi_module to the
7119	# link flags.
7120	rm -rf libconftest.dylib*
7121	echo "int foo(void){return 1;}" > conftest.c
7122	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7123-dynamiclib -Wl,-single_module conftest.c" >&5
7124	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7125	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7126        _lt_result=$?
7127	# If there is a non-empty error log, and "single_module"
7128	# appears in it, assume the flag caused a linker warning
7129        if test -s conftest.err && $GREP single_module conftest.err; then
7130	  cat conftest.err >&5
7131	# Otherwise, if the output was created with a 0 exit code from
7132	# the compiler, it worked.
7133	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7134	  lt_cv_apple_cc_single_mod=yes
7135	else
7136	  cat conftest.err >&5
7137	fi
7138	rm -rf libconftest.dylib*
7139	rm -f conftest.*
7140      fi
7141fi
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7143$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7144
7145    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7146$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7147if ${lt_cv_ld_exported_symbols_list+:} false; then :
7148  $as_echo_n "(cached) " >&6
7149else
7150  lt_cv_ld_exported_symbols_list=no
7151      save_LDFLAGS=$LDFLAGS
7152      echo "_main" > conftest.sym
7153      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7154      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155/* end confdefs.h.  */
7156
7157int
7158main ()
7159{
7160
7161  ;
7162  return 0;
7163}
7164_ACEOF
7165if ac_fn_c_try_link "$LINENO"; then :
7166  lt_cv_ld_exported_symbols_list=yes
7167else
7168  lt_cv_ld_exported_symbols_list=no
7169fi
7170rm -f core conftest.err conftest.$ac_objext \
7171    conftest$ac_exeext conftest.$ac_ext
7172	LDFLAGS="$save_LDFLAGS"
7173
7174fi
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7176$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7177
7178    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7179$as_echo_n "checking for -force_load linker flag... " >&6; }
7180if ${lt_cv_ld_force_load+:} false; then :
7181  $as_echo_n "(cached) " >&6
7182else
7183  lt_cv_ld_force_load=no
7184      cat > conftest.c << _LT_EOF
7185int forced_loaded() { return 2;}
7186_LT_EOF
7187      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7188      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7189      echo "$AR cru libconftest.a conftest.o" >&5
7190      $AR cru libconftest.a conftest.o 2>&5
7191      echo "$RANLIB libconftest.a" >&5
7192      $RANLIB libconftest.a 2>&5
7193      cat > conftest.c << _LT_EOF
7194int main() { return 0;}
7195_LT_EOF
7196      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7197      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7198      _lt_result=$?
7199      if test -s conftest.err && $GREP force_load conftest.err; then
7200	cat conftest.err >&5
7201      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7202	lt_cv_ld_force_load=yes
7203      else
7204	cat conftest.err >&5
7205      fi
7206        rm -f conftest.err libconftest.a conftest conftest.c
7207        rm -rf conftest.dSYM
7208
7209fi
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7211$as_echo "$lt_cv_ld_force_load" >&6; }
7212    case $host_os in
7213    rhapsody* | darwin1.[012])
7214      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7215    darwin1.*)
7216      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7217    darwin*) # darwin 5.x on
7218      # if running on 10.5 or later, the deployment target defaults
7219      # to the OS version, if on x86, and 10.4, the deployment
7220      # target defaults to 10.4. Don't you love it?
7221      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7222	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7223	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7224	10.[012]*)
7225	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7226	10.*)
7227	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7228      esac
7229    ;;
7230  esac
7231    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7232      _lt_dar_single_mod='$single_module'
7233    fi
7234    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7235      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7236    else
7237      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7238    fi
7239    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7240      _lt_dsymutil='~$DSYMUTIL $lib || :'
7241    else
7242      _lt_dsymutil=
7243    fi
7244    ;;
7245  esac
7246
7247ac_ext=c
7248ac_cpp='$CPP $CPPFLAGS'
7249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7253$as_echo_n "checking how to run the C preprocessor... " >&6; }
7254# On Suns, sometimes $CPP names a directory.
7255if test -n "$CPP" && test -d "$CPP"; then
7256  CPP=
7257fi
7258if test -z "$CPP"; then
7259  if ${ac_cv_prog_CPP+:} false; then :
7260  $as_echo_n "(cached) " >&6
7261else
7262      # Double quotes because CPP needs to be expanded
7263    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7264    do
7265      ac_preproc_ok=false
7266for ac_c_preproc_warn_flag in '' yes
7267do
7268  # Use a header file that comes with gcc, so configuring glibc
7269  # with a fresh cross-compiler works.
7270  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7271  # <limits.h> exists even on freestanding compilers.
7272  # On the NeXT, cc -E runs the code through the compiler's parser,
7273  # not just through cpp. "Syntax error" is here to catch this case.
7274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275/* end confdefs.h.  */
7276#ifdef __STDC__
7277# include <limits.h>
7278#else
7279# include <assert.h>
7280#endif
7281		     Syntax error
7282_ACEOF
7283if ac_fn_c_try_cpp "$LINENO"; then :
7284
7285else
7286  # Broken: fails on valid input.
7287continue
7288fi
7289rm -f conftest.err conftest.i conftest.$ac_ext
7290
7291  # OK, works on sane cases.  Now check whether nonexistent headers
7292  # can be detected and how.
7293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294/* end confdefs.h.  */
7295#include <ac_nonexistent.h>
7296_ACEOF
7297if ac_fn_c_try_cpp "$LINENO"; then :
7298  # Broken: success on invalid input.
7299continue
7300else
7301  # Passes both tests.
7302ac_preproc_ok=:
7303break
7304fi
7305rm -f conftest.err conftest.i conftest.$ac_ext
7306
7307done
7308# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7309rm -f conftest.i conftest.err conftest.$ac_ext
7310if $ac_preproc_ok; then :
7311  break
7312fi
7313
7314    done
7315    ac_cv_prog_CPP=$CPP
7316
7317fi
7318  CPP=$ac_cv_prog_CPP
7319else
7320  ac_cv_prog_CPP=$CPP
7321fi
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7323$as_echo "$CPP" >&6; }
7324ac_preproc_ok=false
7325for ac_c_preproc_warn_flag in '' yes
7326do
7327  # Use a header file that comes with gcc, so configuring glibc
7328  # with a fresh cross-compiler works.
7329  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7330  # <limits.h> exists even on freestanding compilers.
7331  # On the NeXT, cc -E runs the code through the compiler's parser,
7332  # not just through cpp. "Syntax error" is here to catch this case.
7333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334/* end confdefs.h.  */
7335#ifdef __STDC__
7336# include <limits.h>
7337#else
7338# include <assert.h>
7339#endif
7340		     Syntax error
7341_ACEOF
7342if ac_fn_c_try_cpp "$LINENO"; then :
7343
7344else
7345  # Broken: fails on valid input.
7346continue
7347fi
7348rm -f conftest.err conftest.i conftest.$ac_ext
7349
7350  # OK, works on sane cases.  Now check whether nonexistent headers
7351  # can be detected and how.
7352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353/* end confdefs.h.  */
7354#include <ac_nonexistent.h>
7355_ACEOF
7356if ac_fn_c_try_cpp "$LINENO"; then :
7357  # Broken: success on invalid input.
7358continue
7359else
7360  # Passes both tests.
7361ac_preproc_ok=:
7362break
7363fi
7364rm -f conftest.err conftest.i conftest.$ac_ext
7365
7366done
7367# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7368rm -f conftest.i conftest.err conftest.$ac_ext
7369if $ac_preproc_ok; then :
7370
7371else
7372  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7374as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7375See \`config.log' for more details" "$LINENO" 5; }
7376fi
7377
7378ac_ext=c
7379ac_cpp='$CPP $CPPFLAGS'
7380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7382ac_compiler_gnu=$ac_cv_c_compiler_gnu
7383
7384
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7386$as_echo_n "checking for ANSI C header files... " >&6; }
7387if ${ac_cv_header_stdc+:} false; then :
7388  $as_echo_n "(cached) " >&6
7389else
7390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391/* end confdefs.h.  */
7392#include <stdlib.h>
7393#include <stdarg.h>
7394#include <string.h>
7395#include <float.h>
7396
7397int
7398main ()
7399{
7400
7401  ;
7402  return 0;
7403}
7404_ACEOF
7405if ac_fn_c_try_compile "$LINENO"; then :
7406  ac_cv_header_stdc=yes
7407else
7408  ac_cv_header_stdc=no
7409fi
7410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411
7412if test $ac_cv_header_stdc = yes; then
7413  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415/* end confdefs.h.  */
7416#include <string.h>
7417
7418_ACEOF
7419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7420  $EGREP "memchr" >/dev/null 2>&1; then :
7421
7422else
7423  ac_cv_header_stdc=no
7424fi
7425rm -f conftest*
7426
7427fi
7428
7429if test $ac_cv_header_stdc = yes; then
7430  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432/* end confdefs.h.  */
7433#include <stdlib.h>
7434
7435_ACEOF
7436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7437  $EGREP "free" >/dev/null 2>&1; then :
7438
7439else
7440  ac_cv_header_stdc=no
7441fi
7442rm -f conftest*
7443
7444fi
7445
7446if test $ac_cv_header_stdc = yes; then
7447  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7448  if test "$cross_compiling" = yes; then :
7449  :
7450else
7451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452/* end confdefs.h.  */
7453#include <ctype.h>
7454#include <stdlib.h>
7455#if ((' ' & 0x0FF) == 0x020)
7456# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7457# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7458#else
7459# define ISLOWER(c) \
7460		   (('a' <= (c) && (c) <= 'i') \
7461		     || ('j' <= (c) && (c) <= 'r') \
7462		     || ('s' <= (c) && (c) <= 'z'))
7463# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7464#endif
7465
7466#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7467int
7468main ()
7469{
7470  int i;
7471  for (i = 0; i < 256; i++)
7472    if (XOR (islower (i), ISLOWER (i))
7473	|| toupper (i) != TOUPPER (i))
7474      return 2;
7475  return 0;
7476}
7477_ACEOF
7478if ac_fn_c_try_run "$LINENO"; then :
7479
7480else
7481  ac_cv_header_stdc=no
7482fi
7483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7484  conftest.$ac_objext conftest.beam conftest.$ac_ext
7485fi
7486
7487fi
7488fi
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7490$as_echo "$ac_cv_header_stdc" >&6; }
7491if test $ac_cv_header_stdc = yes; then
7492
7493$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7494
7495fi
7496
7497# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7498for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7499		  inttypes.h stdint.h unistd.h
7500do :
7501  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7502ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7503"
7504if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7505  cat >>confdefs.h <<_ACEOF
7506#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7507_ACEOF
7508
7509fi
7510
7511done
7512
7513
7514for ac_header in dlfcn.h
7515do :
7516  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7517"
7518if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7519  cat >>confdefs.h <<_ACEOF
7520#define HAVE_DLFCN_H 1
7521_ACEOF
7522
7523fi
7524
7525done
7526
7527
7528
7529
7530
7531# Set options
7532
7533
7534
7535        enable_dlopen=no
7536
7537
7538  enable_win32_dll=no
7539
7540
7541            # Check whether --enable-shared was given.
7542if test "${enable_shared+set}" = set; then :
7543  enableval=$enable_shared; p=${PACKAGE-default}
7544    case $enableval in
7545    yes) enable_shared=yes ;;
7546    no) enable_shared=no ;;
7547    *)
7548      enable_shared=no
7549      # Look at the argument we got.  We use all the common list separators.
7550      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7551      for pkg in $enableval; do
7552	IFS="$lt_save_ifs"
7553	if test "X$pkg" = "X$p"; then
7554	  enable_shared=yes
7555	fi
7556      done
7557      IFS="$lt_save_ifs"
7558      ;;
7559    esac
7560else
7561  enable_shared=yes
7562fi
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572  # Check whether --enable-static was given.
7573if test "${enable_static+set}" = set; then :
7574  enableval=$enable_static; p=${PACKAGE-default}
7575    case $enableval in
7576    yes) enable_static=yes ;;
7577    no) enable_static=no ;;
7578    *)
7579     enable_static=no
7580      # Look at the argument we got.  We use all the common list separators.
7581      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7582      for pkg in $enableval; do
7583	IFS="$lt_save_ifs"
7584	if test "X$pkg" = "X$p"; then
7585	  enable_static=yes
7586	fi
7587      done
7588      IFS="$lt_save_ifs"
7589      ;;
7590    esac
7591else
7592  enable_static=yes
7593fi
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604# Check whether --with-pic was given.
7605if test "${with_pic+set}" = set; then :
7606  withval=$with_pic; lt_p=${PACKAGE-default}
7607    case $withval in
7608    yes|no) pic_mode=$withval ;;
7609    *)
7610      pic_mode=default
7611      # Look at the argument we got.  We use all the common list separators.
7612      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7613      for lt_pkg in $withval; do
7614	IFS="$lt_save_ifs"
7615	if test "X$lt_pkg" = "X$lt_p"; then
7616	  pic_mode=yes
7617	fi
7618      done
7619      IFS="$lt_save_ifs"
7620      ;;
7621    esac
7622else
7623  pic_mode=default
7624fi
7625
7626
7627test -z "$pic_mode" && pic_mode=default
7628
7629
7630
7631
7632
7633
7634
7635  # Check whether --enable-fast-install was given.
7636if test "${enable_fast_install+set}" = set; then :
7637  enableval=$enable_fast_install; p=${PACKAGE-default}
7638    case $enableval in
7639    yes) enable_fast_install=yes ;;
7640    no) enable_fast_install=no ;;
7641    *)
7642      enable_fast_install=no
7643      # Look at the argument we got.  We use all the common list separators.
7644      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7645      for pkg in $enableval; do
7646	IFS="$lt_save_ifs"
7647	if test "X$pkg" = "X$p"; then
7648	  enable_fast_install=yes
7649	fi
7650      done
7651      IFS="$lt_save_ifs"
7652      ;;
7653    esac
7654else
7655  enable_fast_install=yes
7656fi
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668# This can be used to rebuild libtool when needed
7669LIBTOOL_DEPS="$ltmain"
7670
7671# Always use our own libtool.
7672LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703test -z "$LN_S" && LN_S="ln -s"
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718if test -n "${ZSH_VERSION+set}" ; then
7719   setopt NO_GLOB_SUBST
7720fi
7721
7722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7723$as_echo_n "checking for objdir... " >&6; }
7724if ${lt_cv_objdir+:} false; then :
7725  $as_echo_n "(cached) " >&6
7726else
7727  rm -f .libs 2>/dev/null
7728mkdir .libs 2>/dev/null
7729if test -d .libs; then
7730  lt_cv_objdir=.libs
7731else
7732  # MS-DOS does not allow filenames that begin with a dot.
7733  lt_cv_objdir=_libs
7734fi
7735rmdir .libs 2>/dev/null
7736fi
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7738$as_echo "$lt_cv_objdir" >&6; }
7739objdir=$lt_cv_objdir
7740
7741
7742
7743
7744
7745cat >>confdefs.h <<_ACEOF
7746#define LT_OBJDIR "$lt_cv_objdir/"
7747_ACEOF
7748
7749
7750
7751
7752case $host_os in
7753aix3*)
7754  # AIX sometimes has problems with the GCC collect2 program.  For some
7755  # reason, if we set the COLLECT_NAMES environment variable, the problems
7756  # vanish in a puff of smoke.
7757  if test "X${COLLECT_NAMES+set}" != Xset; then
7758    COLLECT_NAMES=
7759    export COLLECT_NAMES
7760  fi
7761  ;;
7762esac
7763
7764# Global variables:
7765ofile=libtool
7766can_build_shared=yes
7767
7768# All known linkers require a `.a' archive for static linking (except MSVC,
7769# which needs '.lib').
7770libext=a
7771
7772with_gnu_ld="$lt_cv_prog_gnu_ld"
7773
7774old_CC="$CC"
7775old_CFLAGS="$CFLAGS"
7776
7777# Set sane defaults for various variables
7778test -z "$CC" && CC=cc
7779test -z "$LTCC" && LTCC=$CC
7780test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7781test -z "$LD" && LD=ld
7782test -z "$ac_objext" && ac_objext=o
7783
7784for cc_temp in $compiler""; do
7785  case $cc_temp in
7786    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7787    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7788    \-*) ;;
7789    *) break;;
7790  esac
7791done
7792cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7793
7794
7795# Only perform the check for file, if the check method requires it
7796test -z "$MAGIC_CMD" && MAGIC_CMD=file
7797case $deplibs_check_method in
7798file_magic*)
7799  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7800    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7801$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7802if ${lt_cv_path_MAGIC_CMD+:} false; then :
7803  $as_echo_n "(cached) " >&6
7804else
7805  case $MAGIC_CMD in
7806[\\/*] |  ?:[\\/]*)
7807  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7808  ;;
7809*)
7810  lt_save_MAGIC_CMD="$MAGIC_CMD"
7811  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7812  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7813  for ac_dir in $ac_dummy; do
7814    IFS="$lt_save_ifs"
7815    test -z "$ac_dir" && ac_dir=.
7816    if test -f $ac_dir/${ac_tool_prefix}file; then
7817      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7818      if test -n "$file_magic_test_file"; then
7819	case $deplibs_check_method in
7820	"file_magic "*)
7821	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7822	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7823	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7824	    $EGREP "$file_magic_regex" > /dev/null; then
7825	    :
7826	  else
7827	    cat <<_LT_EOF 1>&2
7828
7829*** Warning: the command libtool uses to detect shared libraries,
7830*** $file_magic_cmd, produces output that libtool cannot recognize.
7831*** The result is that libtool may fail to recognize shared libraries
7832*** as such.  This will affect the creation of libtool libraries that
7833*** depend on shared libraries, but programs linked with such libtool
7834*** libraries will work regardless of this problem.  Nevertheless, you
7835*** may want to report the problem to your system manager and/or to
7836*** bug-libtool@gnu.org
7837
7838_LT_EOF
7839	  fi ;;
7840	esac
7841      fi
7842      break
7843    fi
7844  done
7845  IFS="$lt_save_ifs"
7846  MAGIC_CMD="$lt_save_MAGIC_CMD"
7847  ;;
7848esac
7849fi
7850
7851MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7852if test -n "$MAGIC_CMD"; then
7853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7854$as_echo "$MAGIC_CMD" >&6; }
7855else
7856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857$as_echo "no" >&6; }
7858fi
7859
7860
7861
7862
7863
7864if test -z "$lt_cv_path_MAGIC_CMD"; then
7865  if test -n "$ac_tool_prefix"; then
7866    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7867$as_echo_n "checking for file... " >&6; }
7868if ${lt_cv_path_MAGIC_CMD+:} false; then :
7869  $as_echo_n "(cached) " >&6
7870else
7871  case $MAGIC_CMD in
7872[\\/*] |  ?:[\\/]*)
7873  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7874  ;;
7875*)
7876  lt_save_MAGIC_CMD="$MAGIC_CMD"
7877  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7878  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7879  for ac_dir in $ac_dummy; do
7880    IFS="$lt_save_ifs"
7881    test -z "$ac_dir" && ac_dir=.
7882    if test -f $ac_dir/file; then
7883      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7884      if test -n "$file_magic_test_file"; then
7885	case $deplibs_check_method in
7886	"file_magic "*)
7887	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7888	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7889	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7890	    $EGREP "$file_magic_regex" > /dev/null; then
7891	    :
7892	  else
7893	    cat <<_LT_EOF 1>&2
7894
7895*** Warning: the command libtool uses to detect shared libraries,
7896*** $file_magic_cmd, produces output that libtool cannot recognize.
7897*** The result is that libtool may fail to recognize shared libraries
7898*** as such.  This will affect the creation of libtool libraries that
7899*** depend on shared libraries, but programs linked with such libtool
7900*** libraries will work regardless of this problem.  Nevertheless, you
7901*** may want to report the problem to your system manager and/or to
7902*** bug-libtool@gnu.org
7903
7904_LT_EOF
7905	  fi ;;
7906	esac
7907      fi
7908      break
7909    fi
7910  done
7911  IFS="$lt_save_ifs"
7912  MAGIC_CMD="$lt_save_MAGIC_CMD"
7913  ;;
7914esac
7915fi
7916
7917MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7918if test -n "$MAGIC_CMD"; then
7919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7920$as_echo "$MAGIC_CMD" >&6; }
7921else
7922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923$as_echo "no" >&6; }
7924fi
7925
7926
7927  else
7928    MAGIC_CMD=:
7929  fi
7930fi
7931
7932  fi
7933  ;;
7934esac
7935
7936# Use C for the default configuration in the libtool script
7937
7938lt_save_CC="$CC"
7939ac_ext=c
7940ac_cpp='$CPP $CPPFLAGS'
7941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7943ac_compiler_gnu=$ac_cv_c_compiler_gnu
7944
7945
7946# Source file extension for C test sources.
7947ac_ext=c
7948
7949# Object file extension for compiled C test sources.
7950objext=o
7951objext=$objext
7952
7953# Code to be used in simple compile tests
7954lt_simple_compile_test_code="int some_variable = 0;"
7955
7956# Code to be used in simple link tests
7957lt_simple_link_test_code='int main(){return(0);}'
7958
7959
7960
7961
7962
7963
7964
7965# If no C compiler was specified, use CC.
7966LTCC=${LTCC-"$CC"}
7967
7968# If no C compiler flags were specified, use CFLAGS.
7969LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7970
7971# Allow CC to be a program name with arguments.
7972compiler=$CC
7973
7974# Save the default compiler, since it gets overwritten when the other
7975# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7976compiler_DEFAULT=$CC
7977
7978# save warnings/boilerplate of simple test code
7979ac_outfile=conftest.$ac_objext
7980echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7981eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7982_lt_compiler_boilerplate=`cat conftest.err`
7983$RM conftest*
7984
7985ac_outfile=conftest.$ac_objext
7986echo "$lt_simple_link_test_code" >conftest.$ac_ext
7987eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7988_lt_linker_boilerplate=`cat conftest.err`
7989$RM -r conftest*
7990
7991
7992## CAVEAT EMPTOR:
7993## There is no encapsulation within the following macros, do not change
7994## the running order or otherwise move them around unless you know exactly
7995## what you are doing...
7996if test -n "$compiler"; then
7997
7998lt_prog_compiler_no_builtin_flag=
7999
8000if test "$GCC" = yes; then
8001  case $cc_basename in
8002  nvcc*)
8003    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8004  *)
8005    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8006  esac
8007
8008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8009$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8010if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8011  $as_echo_n "(cached) " >&6
8012else
8013  lt_cv_prog_compiler_rtti_exceptions=no
8014   ac_outfile=conftest.$ac_objext
8015   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8016   lt_compiler_flag="-fno-rtti -fno-exceptions"
8017   # Insert the option either (1) after the last *FLAGS variable, or
8018   # (2) before a word containing "conftest.", or (3) at the end.
8019   # Note that $ac_compile itself does not contain backslashes and begins
8020   # with a dollar sign (not a hyphen), so the echo should work correctly.
8021   # The option is referenced via a variable to avoid confusing sed.
8022   lt_compile=`echo "$ac_compile" | $SED \
8023   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8024   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8025   -e 's:$: $lt_compiler_flag:'`
8026   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8027   (eval "$lt_compile" 2>conftest.err)
8028   ac_status=$?
8029   cat conftest.err >&5
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   if (exit $ac_status) && test -s "$ac_outfile"; then
8032     # The compiler can only warn and ignore the option if not recognized
8033     # So say no if there are warnings other than the usual output.
8034     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8035     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8036     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8037       lt_cv_prog_compiler_rtti_exceptions=yes
8038     fi
8039   fi
8040   $RM conftest*
8041
8042fi
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8044$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8045
8046if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8047    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8048else
8049    :
8050fi
8051
8052fi
8053
8054
8055
8056
8057
8058
8059  lt_prog_compiler_wl=
8060lt_prog_compiler_pic=
8061lt_prog_compiler_static=
8062
8063
8064  if test "$GCC" = yes; then
8065    lt_prog_compiler_wl='-Wl,'
8066    lt_prog_compiler_static='-static'
8067
8068    case $host_os in
8069      aix*)
8070      # All AIX code is PIC.
8071      if test "$host_cpu" = ia64; then
8072	# AIX 5 now supports IA64 processor
8073	lt_prog_compiler_static='-Bstatic'
8074      fi
8075      ;;
8076
8077    amigaos*)
8078      case $host_cpu in
8079      powerpc)
8080            # see comment about AmigaOS4 .so support
8081            lt_prog_compiler_pic='-fPIC'
8082        ;;
8083      m68k)
8084            # FIXME: we need at least 68020 code to build shared libraries, but
8085            # adding the `-m68020' flag to GCC prevents building anything better,
8086            # like `-m68040'.
8087            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8088        ;;
8089      esac
8090      ;;
8091
8092    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8093      # PIC is the default for these OSes.
8094      ;;
8095
8096    mingw* | cygwin* | pw32* | os2* | cegcc*)
8097      # This hack is so that the source file can tell whether it is being
8098      # built for inclusion in a dll (and should export symbols for example).
8099      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8100      # (--disable-auto-import) libraries
8101      lt_prog_compiler_pic='-DDLL_EXPORT'
8102      ;;
8103
8104    darwin* | rhapsody*)
8105      # PIC is the default on this platform
8106      # Common symbols not allowed in MH_DYLIB files
8107      lt_prog_compiler_pic='-fno-common'
8108      ;;
8109
8110    haiku*)
8111      # PIC is the default for Haiku.
8112      # The "-static" flag exists, but is broken.
8113      lt_prog_compiler_static=
8114      ;;
8115
8116    hpux*)
8117      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8118      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8119      # sets the default TLS model and affects inlining.
8120      case $host_cpu in
8121      hppa*64*)
8122	# +Z the default
8123	;;
8124      *)
8125	lt_prog_compiler_pic='-fPIC'
8126	;;
8127      esac
8128      ;;
8129
8130    interix[3-9]*)
8131      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8132      # Instead, we relocate shared libraries at runtime.
8133      ;;
8134
8135    msdosdjgpp*)
8136      # Just because we use GCC doesn't mean we suddenly get shared libraries
8137      # on systems that don't support them.
8138      lt_prog_compiler_can_build_shared=no
8139      enable_shared=no
8140      ;;
8141
8142    *nto* | *qnx*)
8143      # QNX uses GNU C++, but need to define -shared option too, otherwise
8144      # it will coredump.
8145      lt_prog_compiler_pic='-fPIC -shared'
8146      ;;
8147
8148    sysv4*MP*)
8149      if test -d /usr/nec; then
8150	lt_prog_compiler_pic=-Kconform_pic
8151      fi
8152      ;;
8153
8154    *)
8155      lt_prog_compiler_pic='-fPIC'
8156      ;;
8157    esac
8158
8159    case $cc_basename in
8160    nvcc*) # Cuda Compiler Driver 2.2
8161      lt_prog_compiler_wl='-Xlinker '
8162      if test -n "$lt_prog_compiler_pic"; then
8163        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8164      fi
8165      ;;
8166    esac
8167  else
8168    # PORTME Check for flag to pass linker flags through the system compiler.
8169    case $host_os in
8170    aix*)
8171      lt_prog_compiler_wl='-Wl,'
8172      if test "$host_cpu" = ia64; then
8173	# AIX 5 now supports IA64 processor
8174	lt_prog_compiler_static='-Bstatic'
8175      else
8176	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8177      fi
8178      ;;
8179
8180    mingw* | cygwin* | pw32* | os2* | cegcc*)
8181      # This hack is so that the source file can tell whether it is being
8182      # built for inclusion in a dll (and should export symbols for example).
8183      lt_prog_compiler_pic='-DDLL_EXPORT'
8184      ;;
8185
8186    hpux9* | hpux10* | hpux11*)
8187      lt_prog_compiler_wl='-Wl,'
8188      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8189      # not for PA HP-UX.
8190      case $host_cpu in
8191      hppa*64*|ia64*)
8192	# +Z the default
8193	;;
8194      *)
8195	lt_prog_compiler_pic='+Z'
8196	;;
8197      esac
8198      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8199      lt_prog_compiler_static='${wl}-a ${wl}archive'
8200      ;;
8201
8202    irix5* | irix6* | nonstopux*)
8203      lt_prog_compiler_wl='-Wl,'
8204      # PIC (with -KPIC) is the default.
8205      lt_prog_compiler_static='-non_shared'
8206      ;;
8207
8208    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8209      case $cc_basename in
8210      # old Intel for x86_64 which still supported -KPIC.
8211      ecc*)
8212	lt_prog_compiler_wl='-Wl,'
8213	lt_prog_compiler_pic='-KPIC'
8214	lt_prog_compiler_static='-static'
8215        ;;
8216      # icc used to be incompatible with GCC.
8217      # ICC 10 doesn't accept -KPIC any more.
8218      icc* | ifort*)
8219	lt_prog_compiler_wl='-Wl,'
8220	lt_prog_compiler_pic='-fPIC'
8221	lt_prog_compiler_static='-static'
8222        ;;
8223      # Lahey Fortran 8.1.
8224      lf95*)
8225	lt_prog_compiler_wl='-Wl,'
8226	lt_prog_compiler_pic='--shared'
8227	lt_prog_compiler_static='--static'
8228	;;
8229      nagfor*)
8230	# NAG Fortran compiler
8231	lt_prog_compiler_wl='-Wl,-Wl,,'
8232	lt_prog_compiler_pic='-PIC'
8233	lt_prog_compiler_static='-Bstatic'
8234	;;
8235      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8236        # Portland Group compilers (*not* the Pentium gcc compiler,
8237	# which looks to be a dead project)
8238	lt_prog_compiler_wl='-Wl,'
8239	lt_prog_compiler_pic='-fpic'
8240	lt_prog_compiler_static='-Bstatic'
8241        ;;
8242      ccc*)
8243        lt_prog_compiler_wl='-Wl,'
8244        # All Alpha code is PIC.
8245        lt_prog_compiler_static='-non_shared'
8246        ;;
8247      xl* | bgxl* | bgf* | mpixl*)
8248	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8249	lt_prog_compiler_wl='-Wl,'
8250	lt_prog_compiler_pic='-qpic'
8251	lt_prog_compiler_static='-qstaticlink'
8252	;;
8253      *)
8254	case `$CC -V 2>&1 | sed 5q` in
8255	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8256	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8257	  lt_prog_compiler_pic='-KPIC'
8258	  lt_prog_compiler_static='-Bstatic'
8259	  lt_prog_compiler_wl=''
8260	  ;;
8261	*Sun\ F* | *Sun*Fortran*)
8262	  lt_prog_compiler_pic='-KPIC'
8263	  lt_prog_compiler_static='-Bstatic'
8264	  lt_prog_compiler_wl='-Qoption ld '
8265	  ;;
8266	*Sun\ C*)
8267	  # Sun C 5.9
8268	  lt_prog_compiler_pic='-KPIC'
8269	  lt_prog_compiler_static='-Bstatic'
8270	  lt_prog_compiler_wl='-Wl,'
8271	  ;;
8272        *Intel*\ [CF]*Compiler*)
8273	  lt_prog_compiler_wl='-Wl,'
8274	  lt_prog_compiler_pic='-fPIC'
8275	  lt_prog_compiler_static='-static'
8276	  ;;
8277	*Portland\ Group*)
8278	  lt_prog_compiler_wl='-Wl,'
8279	  lt_prog_compiler_pic='-fpic'
8280	  lt_prog_compiler_static='-Bstatic'
8281	  ;;
8282	esac
8283	;;
8284      esac
8285      ;;
8286
8287    newsos6)
8288      lt_prog_compiler_pic='-KPIC'
8289      lt_prog_compiler_static='-Bstatic'
8290      ;;
8291
8292    *nto* | *qnx*)
8293      # QNX uses GNU C++, but need to define -shared option too, otherwise
8294      # it will coredump.
8295      lt_prog_compiler_pic='-fPIC -shared'
8296      ;;
8297
8298    osf3* | osf4* | osf5*)
8299      lt_prog_compiler_wl='-Wl,'
8300      # All OSF/1 code is PIC.
8301      lt_prog_compiler_static='-non_shared'
8302      ;;
8303
8304    rdos*)
8305      lt_prog_compiler_static='-non_shared'
8306      ;;
8307
8308    solaris*)
8309      lt_prog_compiler_pic='-KPIC'
8310      lt_prog_compiler_static='-Bstatic'
8311      case $cc_basename in
8312      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8313	lt_prog_compiler_wl='-Qoption ld ';;
8314      *)
8315	lt_prog_compiler_wl='-Wl,';;
8316      esac
8317      ;;
8318
8319    sunos4*)
8320      lt_prog_compiler_wl='-Qoption ld '
8321      lt_prog_compiler_pic='-PIC'
8322      lt_prog_compiler_static='-Bstatic'
8323      ;;
8324
8325    sysv4 | sysv4.2uw2* | sysv4.3*)
8326      lt_prog_compiler_wl='-Wl,'
8327      lt_prog_compiler_pic='-KPIC'
8328      lt_prog_compiler_static='-Bstatic'
8329      ;;
8330
8331    sysv4*MP*)
8332      if test -d /usr/nec ;then
8333	lt_prog_compiler_pic='-Kconform_pic'
8334	lt_prog_compiler_static='-Bstatic'
8335      fi
8336      ;;
8337
8338    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8339      lt_prog_compiler_wl='-Wl,'
8340      lt_prog_compiler_pic='-KPIC'
8341      lt_prog_compiler_static='-Bstatic'
8342      ;;
8343
8344    unicos*)
8345      lt_prog_compiler_wl='-Wl,'
8346      lt_prog_compiler_can_build_shared=no
8347      ;;
8348
8349    uts4*)
8350      lt_prog_compiler_pic='-pic'
8351      lt_prog_compiler_static='-Bstatic'
8352      ;;
8353
8354    *)
8355      lt_prog_compiler_can_build_shared=no
8356      ;;
8357    esac
8358  fi
8359
8360case $host_os in
8361  # For platforms which do not support PIC, -DPIC is meaningless:
8362  *djgpp*)
8363    lt_prog_compiler_pic=
8364    ;;
8365  *)
8366    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8367    ;;
8368esac
8369
8370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8371$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8372if ${lt_cv_prog_compiler_pic+:} false; then :
8373  $as_echo_n "(cached) " >&6
8374else
8375  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8376fi
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8378$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8379lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8380
8381#
8382# Check to make sure the PIC flag actually works.
8383#
8384if test -n "$lt_prog_compiler_pic"; then
8385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8386$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8387if ${lt_cv_prog_compiler_pic_works+:} false; then :
8388  $as_echo_n "(cached) " >&6
8389else
8390  lt_cv_prog_compiler_pic_works=no
8391   ac_outfile=conftest.$ac_objext
8392   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8393   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8394   # Insert the option either (1) after the last *FLAGS variable, or
8395   # (2) before a word containing "conftest.", or (3) at the end.
8396   # Note that $ac_compile itself does not contain backslashes and begins
8397   # with a dollar sign (not a hyphen), so the echo should work correctly.
8398   # The option is referenced via a variable to avoid confusing sed.
8399   lt_compile=`echo "$ac_compile" | $SED \
8400   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8401   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8402   -e 's:$: $lt_compiler_flag:'`
8403   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8404   (eval "$lt_compile" 2>conftest.err)
8405   ac_status=$?
8406   cat conftest.err >&5
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   if (exit $ac_status) && test -s "$ac_outfile"; then
8409     # The compiler can only warn and ignore the option if not recognized
8410     # So say no if there are warnings other than the usual output.
8411     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8412     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8413     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8414       lt_cv_prog_compiler_pic_works=yes
8415     fi
8416   fi
8417   $RM conftest*
8418
8419fi
8420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8421$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8422
8423if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8424    case $lt_prog_compiler_pic in
8425     "" | " "*) ;;
8426     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8427     esac
8428else
8429    lt_prog_compiler_pic=
8430     lt_prog_compiler_can_build_shared=no
8431fi
8432
8433fi
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445#
8446# Check to make sure the static flag actually works.
8447#
8448wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8450$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8451if ${lt_cv_prog_compiler_static_works+:} false; then :
8452  $as_echo_n "(cached) " >&6
8453else
8454  lt_cv_prog_compiler_static_works=no
8455   save_LDFLAGS="$LDFLAGS"
8456   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8457   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8458   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8459     # The linker can only warn and ignore the option if not recognized
8460     # So say no if there are warnings
8461     if test -s conftest.err; then
8462       # Append any errors to the config.log.
8463       cat conftest.err 1>&5
8464       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8465       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8466       if diff conftest.exp conftest.er2 >/dev/null; then
8467         lt_cv_prog_compiler_static_works=yes
8468       fi
8469     else
8470       lt_cv_prog_compiler_static_works=yes
8471     fi
8472   fi
8473   $RM -r conftest*
8474   LDFLAGS="$save_LDFLAGS"
8475
8476fi
8477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8478$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8479
8480if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8481    :
8482else
8483    lt_prog_compiler_static=
8484fi
8485
8486
8487
8488
8489
8490
8491
8492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8493$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8494if ${lt_cv_prog_compiler_c_o+:} false; then :
8495  $as_echo_n "(cached) " >&6
8496else
8497  lt_cv_prog_compiler_c_o=no
8498   $RM -r conftest 2>/dev/null
8499   mkdir conftest
8500   cd conftest
8501   mkdir out
8502   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8503
8504   lt_compiler_flag="-o out/conftest2.$ac_objext"
8505   # Insert the option either (1) after the last *FLAGS variable, or
8506   # (2) before a word containing "conftest.", or (3) at the end.
8507   # Note that $ac_compile itself does not contain backslashes and begins
8508   # with a dollar sign (not a hyphen), so the echo should work correctly.
8509   lt_compile=`echo "$ac_compile" | $SED \
8510   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8511   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8512   -e 's:$: $lt_compiler_flag:'`
8513   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8514   (eval "$lt_compile" 2>out/conftest.err)
8515   ac_status=$?
8516   cat out/conftest.err >&5
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8519   then
8520     # The compiler can only warn and ignore the option if not recognized
8521     # So say no if there are warnings
8522     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8523     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8524     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8525       lt_cv_prog_compiler_c_o=yes
8526     fi
8527   fi
8528   chmod u+w . 2>&5
8529   $RM conftest*
8530   # SGI C++ compiler will create directory out/ii_files/ for
8531   # template instantiation
8532   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8533   $RM out/* && rmdir out
8534   cd ..
8535   $RM -r conftest
8536   $RM conftest*
8537
8538fi
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8540$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8541
8542
8543
8544
8545
8546
8547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8548$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8549if ${lt_cv_prog_compiler_c_o+:} false; then :
8550  $as_echo_n "(cached) " >&6
8551else
8552  lt_cv_prog_compiler_c_o=no
8553   $RM -r conftest 2>/dev/null
8554   mkdir conftest
8555   cd conftest
8556   mkdir out
8557   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8558
8559   lt_compiler_flag="-o out/conftest2.$ac_objext"
8560   # Insert the option either (1) after the last *FLAGS variable, or
8561   # (2) before a word containing "conftest.", or (3) at the end.
8562   # Note that $ac_compile itself does not contain backslashes and begins
8563   # with a dollar sign (not a hyphen), so the echo should work correctly.
8564   lt_compile=`echo "$ac_compile" | $SED \
8565   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8566   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8567   -e 's:$: $lt_compiler_flag:'`
8568   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8569   (eval "$lt_compile" 2>out/conftest.err)
8570   ac_status=$?
8571   cat out/conftest.err >&5
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8574   then
8575     # The compiler can only warn and ignore the option if not recognized
8576     # So say no if there are warnings
8577     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8578     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8579     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8580       lt_cv_prog_compiler_c_o=yes
8581     fi
8582   fi
8583   chmod u+w . 2>&5
8584   $RM conftest*
8585   # SGI C++ compiler will create directory out/ii_files/ for
8586   # template instantiation
8587   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8588   $RM out/* && rmdir out
8589   cd ..
8590   $RM -r conftest
8591   $RM conftest*
8592
8593fi
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8595$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8596
8597
8598
8599
8600hard_links="nottested"
8601if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8602  # do not overwrite the value of need_locks provided by the user
8603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8604$as_echo_n "checking if we can lock with hard links... " >&6; }
8605  hard_links=yes
8606  $RM conftest*
8607  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8608  touch conftest.a
8609  ln conftest.a conftest.b 2>&5 || hard_links=no
8610  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8612$as_echo "$hard_links" >&6; }
8613  if test "$hard_links" = no; then
8614    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8615$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8616    need_locks=warn
8617  fi
8618else
8619  need_locks=no
8620fi
8621
8622
8623
8624
8625
8626
8627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8628$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8629
8630  runpath_var=
8631  allow_undefined_flag=
8632  always_export_symbols=no
8633  archive_cmds=
8634  archive_expsym_cmds=
8635  compiler_needs_object=no
8636  enable_shared_with_static_runtimes=no
8637  export_dynamic_flag_spec=
8638  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8639  hardcode_automatic=no
8640  hardcode_direct=no
8641  hardcode_direct_absolute=no
8642  hardcode_libdir_flag_spec=
8643  hardcode_libdir_separator=
8644  hardcode_minus_L=no
8645  hardcode_shlibpath_var=unsupported
8646  inherit_rpath=no
8647  link_all_deplibs=unknown
8648  module_cmds=
8649  module_expsym_cmds=
8650  old_archive_from_new_cmds=
8651  old_archive_from_expsyms_cmds=
8652  thread_safe_flag_spec=
8653  whole_archive_flag_spec=
8654  # include_expsyms should be a list of space-separated symbols to be *always*
8655  # included in the symbol list
8656  include_expsyms=
8657  # exclude_expsyms can be an extended regexp of symbols to exclude
8658  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8659  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8660  # as well as any symbol that contains `d'.
8661  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8662  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8663  # platforms (ab)use it in PIC code, but their linkers get confused if
8664  # the symbol is explicitly referenced.  Since portable code cannot
8665  # rely on this symbol name, it's probably fine to never include it in
8666  # preloaded symbol tables.
8667  # Exclude shared library initialization/finalization symbols.
8668  extract_expsyms_cmds=
8669
8670  case $host_os in
8671  cygwin* | mingw* | pw32* | cegcc*)
8672    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8673    # When not using gcc, we currently assume that we are using
8674    # Microsoft Visual C++.
8675    if test "$GCC" != yes; then
8676      with_gnu_ld=no
8677    fi
8678    ;;
8679  interix*)
8680    # we just hope/assume this is gcc and not c89 (= MSVC++)
8681    with_gnu_ld=yes
8682    ;;
8683  openbsd*)
8684    with_gnu_ld=no
8685    ;;
8686  linux* | k*bsd*-gnu | gnu*)
8687    link_all_deplibs=no
8688    ;;
8689  esac
8690
8691  ld_shlibs=yes
8692
8693  # On some targets, GNU ld is compatible enough with the native linker
8694  # that we're better off using the native interface for both.
8695  lt_use_gnu_ld_interface=no
8696  if test "$with_gnu_ld" = yes; then
8697    case $host_os in
8698      aix*)
8699	# The AIX port of GNU ld has always aspired to compatibility
8700	# with the native linker.  However, as the warning in the GNU ld
8701	# block says, versions before 2.19.5* couldn't really create working
8702	# shared libraries, regardless of the interface used.
8703	case `$LD -v 2>&1` in
8704	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8705	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8706	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8707	  *)
8708	    lt_use_gnu_ld_interface=yes
8709	    ;;
8710	esac
8711	;;
8712      *)
8713	lt_use_gnu_ld_interface=yes
8714	;;
8715    esac
8716  fi
8717
8718  if test "$lt_use_gnu_ld_interface" = yes; then
8719    # If archive_cmds runs LD, not CC, wlarc should be empty
8720    wlarc='${wl}'
8721
8722    # Set some defaults for GNU ld with shared library support. These
8723    # are reset later if shared libraries are not supported. Putting them
8724    # here allows them to be overridden if necessary.
8725    runpath_var=LD_RUN_PATH
8726    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8727    export_dynamic_flag_spec='${wl}--export-dynamic'
8728    # ancient GNU ld didn't support --whole-archive et. al.
8729    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8730      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8731    else
8732      whole_archive_flag_spec=
8733    fi
8734    supports_anon_versioning=no
8735    case `$LD -v 2>&1` in
8736      *GNU\ gold*) supports_anon_versioning=yes ;;
8737      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8738      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8739      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8740      *\ 2.11.*) ;; # other 2.11 versions
8741      *) supports_anon_versioning=yes ;;
8742    esac
8743
8744    # See if GNU ld supports shared libraries.
8745    case $host_os in
8746    aix[3-9]*)
8747      # On AIX/PPC, the GNU linker is very broken
8748      if test "$host_cpu" != ia64; then
8749	ld_shlibs=no
8750	cat <<_LT_EOF 1>&2
8751
8752*** Warning: the GNU linker, at least up to release 2.19, is reported
8753*** to be unable to reliably create shared libraries on AIX.
8754*** Therefore, libtool is disabling shared libraries support.  If you
8755*** really care for shared libraries, you may want to install binutils
8756*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8757*** You will then need to restart the configuration process.
8758
8759_LT_EOF
8760      fi
8761      ;;
8762
8763    amigaos*)
8764      case $host_cpu in
8765      powerpc)
8766            # see comment about AmigaOS4 .so support
8767            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8768            archive_expsym_cmds=''
8769        ;;
8770      m68k)
8771            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)'
8772            hardcode_libdir_flag_spec='-L$libdir'
8773            hardcode_minus_L=yes
8774        ;;
8775      esac
8776      ;;
8777
8778    beos*)
8779      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8780	allow_undefined_flag=unsupported
8781	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8782	# support --undefined.  This deserves some investigation.  FIXME
8783	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784      else
8785	ld_shlibs=no
8786      fi
8787      ;;
8788
8789    cygwin* | mingw* | pw32* | cegcc*)
8790      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8791      # as there is no search path for DLLs.
8792      hardcode_libdir_flag_spec='-L$libdir'
8793      export_dynamic_flag_spec='${wl}--export-all-symbols'
8794      allow_undefined_flag=unsupported
8795      always_export_symbols=no
8796      enable_shared_with_static_runtimes=yes
8797      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'
8798      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8799
8800      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8801        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8802	# If the export-symbols file already is a .def file (1st line
8803	# is EXPORTS), use it as is; otherwise, prepend...
8804	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8805	  cp $export_symbols $output_objdir/$soname.def;
8806	else
8807	  echo EXPORTS > $output_objdir/$soname.def;
8808	  cat $export_symbols >> $output_objdir/$soname.def;
8809	fi~
8810	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8811      else
8812	ld_shlibs=no
8813      fi
8814      ;;
8815
8816    haiku*)
8817      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8818      link_all_deplibs=yes
8819      ;;
8820
8821    interix[3-9]*)
8822      hardcode_direct=no
8823      hardcode_shlibpath_var=no
8824      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8825      export_dynamic_flag_spec='${wl}-E'
8826      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8827      # Instead, shared libraries are loaded at an image base (0x10000000 by
8828      # default) and relocated if they conflict, which is a slow very memory
8829      # consuming and fragmenting process.  To avoid this, we pick a random,
8830      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8831      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8832      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8833      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'
8834      ;;
8835
8836    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8837      tmp_diet=no
8838      if test "$host_os" = linux-dietlibc; then
8839	case $cc_basename in
8840	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8841	esac
8842      fi
8843      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8844	 && test "$tmp_diet" = no
8845      then
8846	tmp_addflag=' $pic_flag'
8847	tmp_sharedflag='-shared'
8848	case $cc_basename,$host_cpu in
8849        pgcc*)				# Portland Group C compiler
8850	  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'
8851	  tmp_addflag=' $pic_flag'
8852	  ;;
8853	pgf77* | pgf90* | pgf95* | pgfortran*)
8854					# Portland Group f77 and f90 compilers
8855	  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'
8856	  tmp_addflag=' $pic_flag -Mnomain' ;;
8857	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8858	  tmp_addflag=' -i_dynamic' ;;
8859	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8860	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8861	ifc* | ifort*)			# Intel Fortran compiler
8862	  tmp_addflag=' -nofor_main' ;;
8863	lf95*)				# Lahey Fortran 8.1
8864	  whole_archive_flag_spec=
8865	  tmp_sharedflag='--shared' ;;
8866	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8867	  tmp_sharedflag='-qmkshrobj'
8868	  tmp_addflag= ;;
8869	nvcc*)	# Cuda Compiler Driver 2.2
8870	  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'
8871	  compiler_needs_object=yes
8872	  ;;
8873	esac
8874	case `$CC -V 2>&1 | sed 5q` in
8875	*Sun\ C*)			# Sun C 5.9
8876	  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'
8877	  compiler_needs_object=yes
8878	  tmp_sharedflag='-G' ;;
8879	*Sun\ F*)			# Sun Fortran 8.3
8880	  tmp_sharedflag='-G' ;;
8881	esac
8882	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8883
8884        if test "x$supports_anon_versioning" = xyes; then
8885          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8886	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8887	    echo "local: *; };" >> $output_objdir/$libname.ver~
8888	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8889        fi
8890
8891	case $cc_basename in
8892	xlf* | bgf* | bgxlf* | mpixlf*)
8893	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8894	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8895	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8896	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8897	  if test "x$supports_anon_versioning" = xyes; then
8898	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8899	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8900	      echo "local: *; };" >> $output_objdir/$libname.ver~
8901	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8902	  fi
8903	  ;;
8904	esac
8905      else
8906        ld_shlibs=no
8907      fi
8908      ;;
8909
8910    netbsd* | netbsdelf*-gnu)
8911      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8912	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8913	wlarc=
8914      else
8915	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8916	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8917      fi
8918      ;;
8919
8920    solaris*)
8921      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8922	ld_shlibs=no
8923	cat <<_LT_EOF 1>&2
8924
8925*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8926*** create shared libraries on Solaris systems.  Therefore, libtool
8927*** is disabling shared libraries support.  We urge you to upgrade GNU
8928*** binutils to release 2.9.1 or newer.  Another option is to modify
8929*** your PATH or compiler configuration so that the native linker is
8930*** used, and then restart.
8931
8932_LT_EOF
8933      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8934	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8935	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8936      else
8937	ld_shlibs=no
8938      fi
8939      ;;
8940
8941    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8942      case `$LD -v 2>&1` in
8943        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8944	ld_shlibs=no
8945	cat <<_LT_EOF 1>&2
8946
8947*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8948*** reliably create shared libraries on SCO systems.  Therefore, libtool
8949*** is disabling shared libraries support.  We urge you to upgrade GNU
8950*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8951*** your PATH or compiler configuration so that the native linker is
8952*** used, and then restart.
8953
8954_LT_EOF
8955	;;
8956	*)
8957	  # For security reasons, it is highly recommended that you always
8958	  # use absolute paths for naming shared libraries, and exclude the
8959	  # DT_RUNPATH tag from executables and libraries.  But doing so
8960	  # requires that you compile everything twice, which is a pain.
8961	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8962	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8963	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8964	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8965	  else
8966	    ld_shlibs=no
8967	  fi
8968	;;
8969      esac
8970      ;;
8971
8972    sunos4*)
8973      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8974      wlarc=
8975      hardcode_direct=yes
8976      hardcode_shlibpath_var=no
8977      ;;
8978
8979    *)
8980      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8981	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8983      else
8984	ld_shlibs=no
8985      fi
8986      ;;
8987    esac
8988
8989    if test "$ld_shlibs" = no; then
8990      runpath_var=
8991      hardcode_libdir_flag_spec=
8992      export_dynamic_flag_spec=
8993      whole_archive_flag_spec=
8994    fi
8995  else
8996    # PORTME fill in a description of your system's linker (not GNU ld)
8997    case $host_os in
8998    aix3*)
8999      allow_undefined_flag=unsupported
9000      always_export_symbols=yes
9001      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'
9002      # Note: this linker hardcodes the directories in LIBPATH if there
9003      # are no directories specified by -L.
9004      hardcode_minus_L=yes
9005      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9006	# Neither direct hardcoding nor static linking is supported with a
9007	# broken collect2.
9008	hardcode_direct=unsupported
9009      fi
9010      ;;
9011
9012    aix[4-9]*)
9013      if test "$host_cpu" = ia64; then
9014	# On IA64, the linker does run time linking by default, so we don't
9015	# have to do anything special.
9016	aix_use_runtimelinking=no
9017	exp_sym_flag='-Bexport'
9018	no_entry_flag=""
9019      else
9020	# If we're using GNU nm, then we don't want the "-C" option.
9021	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9022	# Also, AIX nm treats weak defined symbols like other global
9023	# defined symbols, whereas GNU nm marks them as "W".
9024	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9025	  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'
9026	else
9027	  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'
9028	fi
9029	aix_use_runtimelinking=no
9030
9031	# Test if we are trying to use run time linking or normal
9032	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9033	# need to do runtime linking.
9034	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9035	  for ld_flag in $LDFLAGS; do
9036	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9037	    aix_use_runtimelinking=yes
9038	    break
9039	  fi
9040	  done
9041	  ;;
9042	esac
9043
9044	exp_sym_flag='-bexport'
9045	no_entry_flag='-bnoentry'
9046      fi
9047
9048      # When large executables or shared objects are built, AIX ld can
9049      # have problems creating the table of contents.  If linking a library
9050      # or program results in "error TOC overflow" add -mminimal-toc to
9051      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9052      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9053
9054      archive_cmds=''
9055      hardcode_direct=yes
9056      hardcode_direct_absolute=yes
9057      hardcode_libdir_separator=':'
9058      link_all_deplibs=yes
9059      file_list_spec='${wl}-f,'
9060
9061      if test "$GCC" = yes; then
9062	case $host_os in aix4.[012]|aix4.[012].*)
9063	# We only want to do this on AIX 4.2 and lower, the check
9064	# below for broken collect2 doesn't work under 4.3+
9065	  collect2name=`${CC} -print-prog-name=collect2`
9066	  if test -f "$collect2name" &&
9067	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9068	  then
9069	  # We have reworked collect2
9070	  :
9071	  else
9072	  # We have old collect2
9073	  hardcode_direct=unsupported
9074	  # It fails to find uninstalled libraries when the uninstalled
9075	  # path is not listed in the libpath.  Setting hardcode_minus_L
9076	  # to unsupported forces relinking
9077	  hardcode_minus_L=yes
9078	  hardcode_libdir_flag_spec='-L$libdir'
9079	  hardcode_libdir_separator=
9080	  fi
9081	  ;;
9082	esac
9083	shared_flag='-shared'
9084	if test "$aix_use_runtimelinking" = yes; then
9085	  shared_flag="$shared_flag "'${wl}-G'
9086	fi
9087	link_all_deplibs=no
9088      else
9089	# not using gcc
9090	if test "$host_cpu" = ia64; then
9091	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9092	# chokes on -Wl,-G. The following line is correct:
9093	  shared_flag='-G'
9094	else
9095	  if test "$aix_use_runtimelinking" = yes; then
9096	    shared_flag='${wl}-G'
9097	  else
9098	    shared_flag='${wl}-bM:SRE'
9099	  fi
9100	fi
9101      fi
9102
9103      export_dynamic_flag_spec='${wl}-bexpall'
9104      # It seems that -bexpall does not export symbols beginning with
9105      # underscore (_), so it is better to generate a list of symbols to export.
9106      always_export_symbols=yes
9107      if test "$aix_use_runtimelinking" = yes; then
9108	# Warning - without using the other runtime loading flags (-brtl),
9109	# -berok will link without error, but may produce a broken library.
9110	allow_undefined_flag='-berok'
9111        # Determine the default libpath from the value encoded in an
9112        # empty executable.
9113        if test "${lt_cv_aix_libpath+set}" = set; then
9114  aix_libpath=$lt_cv_aix_libpath
9115else
9116  if ${lt_cv_aix_libpath_+:} false; then :
9117  $as_echo_n "(cached) " >&6
9118else
9119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120/* end confdefs.h.  */
9121
9122int
9123main ()
9124{
9125
9126  ;
9127  return 0;
9128}
9129_ACEOF
9130if ac_fn_c_try_link "$LINENO"; then :
9131
9132  lt_aix_libpath_sed='
9133      /Import File Strings/,/^$/ {
9134	  /^0/ {
9135	      s/^0  *\([^ ]*\) *$/\1/
9136	      p
9137	  }
9138      }'
9139  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9140  # Check for a 64-bit object if we didn't find anything.
9141  if test -z "$lt_cv_aix_libpath_"; then
9142    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9143  fi
9144fi
9145rm -f core conftest.err conftest.$ac_objext \
9146    conftest$ac_exeext conftest.$ac_ext
9147  if test -z "$lt_cv_aix_libpath_"; then
9148    lt_cv_aix_libpath_="/usr/lib:/lib"
9149  fi
9150
9151fi
9152
9153  aix_libpath=$lt_cv_aix_libpath_
9154fi
9155
9156        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9157        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"
9158      else
9159	if test "$host_cpu" = ia64; then
9160	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9161	  allow_undefined_flag="-z nodefs"
9162	  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"
9163	else
9164	 # Determine the default libpath from the value encoded in an
9165	 # empty executable.
9166	 if test "${lt_cv_aix_libpath+set}" = set; then
9167  aix_libpath=$lt_cv_aix_libpath
9168else
9169  if ${lt_cv_aix_libpath_+:} false; then :
9170  $as_echo_n "(cached) " >&6
9171else
9172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173/* end confdefs.h.  */
9174
9175int
9176main ()
9177{
9178
9179  ;
9180  return 0;
9181}
9182_ACEOF
9183if ac_fn_c_try_link "$LINENO"; then :
9184
9185  lt_aix_libpath_sed='
9186      /Import File Strings/,/^$/ {
9187	  /^0/ {
9188	      s/^0  *\([^ ]*\) *$/\1/
9189	      p
9190	  }
9191      }'
9192  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9193  # Check for a 64-bit object if we didn't find anything.
9194  if test -z "$lt_cv_aix_libpath_"; then
9195    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9196  fi
9197fi
9198rm -f core conftest.err conftest.$ac_objext \
9199    conftest$ac_exeext conftest.$ac_ext
9200  if test -z "$lt_cv_aix_libpath_"; then
9201    lt_cv_aix_libpath_="/usr/lib:/lib"
9202  fi
9203
9204fi
9205
9206  aix_libpath=$lt_cv_aix_libpath_
9207fi
9208
9209	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9210	  # Warning - without using the other run time loading flags,
9211	  # -berok will link without error, but may produce a broken library.
9212	  no_undefined_flag=' ${wl}-bernotok'
9213	  allow_undefined_flag=' ${wl}-berok'
9214	  if test "$with_gnu_ld" = yes; then
9215	    # We only use this code for GNU lds that support --whole-archive.
9216	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9217	  else
9218	    # Exported symbols can be pulled into shared objects from archives
9219	    whole_archive_flag_spec='$convenience'
9220	  fi
9221	  archive_cmds_need_lc=yes
9222	  # This is similar to how AIX traditionally builds its shared libraries.
9223	  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'
9224	fi
9225      fi
9226      ;;
9227
9228    amigaos*)
9229      case $host_cpu in
9230      powerpc)
9231            # see comment about AmigaOS4 .so support
9232            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9233            archive_expsym_cmds=''
9234        ;;
9235      m68k)
9236            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)'
9237            hardcode_libdir_flag_spec='-L$libdir'
9238            hardcode_minus_L=yes
9239        ;;
9240      esac
9241      ;;
9242
9243    bsdi[45]*)
9244      export_dynamic_flag_spec=-rdynamic
9245      ;;
9246
9247    cygwin* | mingw* | pw32* | cegcc*)
9248      # When not using gcc, we currently assume that we are using
9249      # Microsoft Visual C++.
9250      # hardcode_libdir_flag_spec is actually meaningless, as there is
9251      # no search path for DLLs.
9252      case $cc_basename in
9253      cl*)
9254	# Native MSVC
9255	hardcode_libdir_flag_spec=' '
9256	allow_undefined_flag=unsupported
9257	always_export_symbols=yes
9258	file_list_spec='@'
9259	# Tell ltmain to make .lib files, not .a files.
9260	libext=lib
9261	# Tell ltmain to make .dll files, not .so files.
9262	shrext_cmds=".dll"
9263	# FIXME: Setting linknames here is a bad hack.
9264	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9265	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9266	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9267	  else
9268	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9269	  fi~
9270	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9271	  linknames='
9272	# The linker will not automatically build a static lib if we build a DLL.
9273	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9274	enable_shared_with_static_runtimes=yes
9275	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9276	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9277	# Don't use ranlib
9278	old_postinstall_cmds='chmod 644 $oldlib'
9279	postlink_cmds='lt_outputfile="@OUTPUT@"~
9280	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9281	  case $lt_outputfile in
9282	    *.exe|*.EXE) ;;
9283	    *)
9284	      lt_outputfile="$lt_outputfile.exe"
9285	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9286	      ;;
9287	  esac~
9288	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9289	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9290	    $RM "$lt_outputfile.manifest";
9291	  fi'
9292	;;
9293      *)
9294	# Assume MSVC wrapper
9295	hardcode_libdir_flag_spec=' '
9296	allow_undefined_flag=unsupported
9297	# Tell ltmain to make .lib files, not .a files.
9298	libext=lib
9299	# Tell ltmain to make .dll files, not .so files.
9300	shrext_cmds=".dll"
9301	# FIXME: Setting linknames here is a bad hack.
9302	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9303	# The linker will automatically build a .lib file if we build a DLL.
9304	old_archive_from_new_cmds='true'
9305	# FIXME: Should let the user specify the lib program.
9306	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9307	enable_shared_with_static_runtimes=yes
9308	;;
9309      esac
9310      ;;
9311
9312    darwin* | rhapsody*)
9313
9314
9315  archive_cmds_need_lc=no
9316  hardcode_direct=no
9317  hardcode_automatic=yes
9318  hardcode_shlibpath_var=unsupported
9319  if test "$lt_cv_ld_force_load" = "yes"; then
9320    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\"`'
9321
9322  else
9323    whole_archive_flag_spec=''
9324  fi
9325  link_all_deplibs=yes
9326  allow_undefined_flag="$_lt_dar_allow_undefined"
9327  case $cc_basename in
9328     ifort*) _lt_dar_can_shared=yes ;;
9329     *) _lt_dar_can_shared=$GCC ;;
9330  esac
9331  if test "$_lt_dar_can_shared" = "yes"; then
9332    output_verbose_link_cmd=func_echo_all
9333    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9334    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9335    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}"
9336    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}"
9337
9338  else
9339  ld_shlibs=no
9340  fi
9341
9342      ;;
9343
9344    dgux*)
9345      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9346      hardcode_libdir_flag_spec='-L$libdir'
9347      hardcode_shlibpath_var=no
9348      ;;
9349
9350    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9351    # support.  Future versions do this automatically, but an explicit c++rt0.o
9352    # does not break anything, and helps significantly (at the cost of a little
9353    # extra space).
9354    freebsd2.2*)
9355      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9356      hardcode_libdir_flag_spec='-R$libdir'
9357      hardcode_direct=yes
9358      hardcode_shlibpath_var=no
9359      ;;
9360
9361    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9362    freebsd2.*)
9363      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9364      hardcode_direct=yes
9365      hardcode_minus_L=yes
9366      hardcode_shlibpath_var=no
9367      ;;
9368
9369    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9370    freebsd* | dragonfly*)
9371      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9372      hardcode_libdir_flag_spec='-R$libdir'
9373      hardcode_direct=yes
9374      hardcode_shlibpath_var=no
9375      ;;
9376
9377    hpux9*)
9378      if test "$GCC" = yes; then
9379	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'
9380      else
9381	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'
9382      fi
9383      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9384      hardcode_libdir_separator=:
9385      hardcode_direct=yes
9386
9387      # hardcode_minus_L: Not really in the search PATH,
9388      # but as the default location of the library.
9389      hardcode_minus_L=yes
9390      export_dynamic_flag_spec='${wl}-E'
9391      ;;
9392
9393    hpux10*)
9394      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9395	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9396      else
9397	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9398      fi
9399      if test "$with_gnu_ld" = no; then
9400	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9401	hardcode_libdir_separator=:
9402	hardcode_direct=yes
9403	hardcode_direct_absolute=yes
9404	export_dynamic_flag_spec='${wl}-E'
9405	# hardcode_minus_L: Not really in the search PATH,
9406	# but as the default location of the library.
9407	hardcode_minus_L=yes
9408      fi
9409      ;;
9410
9411    hpux11*)
9412      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9413	case $host_cpu in
9414	hppa*64*)
9415	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9416	  ;;
9417	ia64*)
9418	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9419	  ;;
9420	*)
9421	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9422	  ;;
9423	esac
9424      else
9425	case $host_cpu in
9426	hppa*64*)
9427	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9428	  ;;
9429	ia64*)
9430	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9431	  ;;
9432	*)
9433
9434	  # Older versions of the 11.00 compiler do not understand -b yet
9435	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9436	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9437$as_echo_n "checking if $CC understands -b... " >&6; }
9438if ${lt_cv_prog_compiler__b+:} false; then :
9439  $as_echo_n "(cached) " >&6
9440else
9441  lt_cv_prog_compiler__b=no
9442   save_LDFLAGS="$LDFLAGS"
9443   LDFLAGS="$LDFLAGS -b"
9444   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9445   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9446     # The linker can only warn and ignore the option if not recognized
9447     # So say no if there are warnings
9448     if test -s conftest.err; then
9449       # Append any errors to the config.log.
9450       cat conftest.err 1>&5
9451       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9452       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9453       if diff conftest.exp conftest.er2 >/dev/null; then
9454         lt_cv_prog_compiler__b=yes
9455       fi
9456     else
9457       lt_cv_prog_compiler__b=yes
9458     fi
9459   fi
9460   $RM -r conftest*
9461   LDFLAGS="$save_LDFLAGS"
9462
9463fi
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9465$as_echo "$lt_cv_prog_compiler__b" >&6; }
9466
9467if test x"$lt_cv_prog_compiler__b" = xyes; then
9468    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9469else
9470    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9471fi
9472
9473	  ;;
9474	esac
9475      fi
9476      if test "$with_gnu_ld" = no; then
9477	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9478	hardcode_libdir_separator=:
9479
9480	case $host_cpu in
9481	hppa*64*|ia64*)
9482	  hardcode_direct=no
9483	  hardcode_shlibpath_var=no
9484	  ;;
9485	*)
9486	  hardcode_direct=yes
9487	  hardcode_direct_absolute=yes
9488	  export_dynamic_flag_spec='${wl}-E'
9489
9490	  # hardcode_minus_L: Not really in the search PATH,
9491	  # but as the default location of the library.
9492	  hardcode_minus_L=yes
9493	  ;;
9494	esac
9495      fi
9496      ;;
9497
9498    irix5* | irix6* | nonstopux*)
9499      if test "$GCC" = yes; then
9500	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'
9501	# Try to use the -exported_symbol ld option, if it does not
9502	# work, assume that -exports_file does not work either and
9503	# implicitly export all symbols.
9504	# This should be the same for all languages, so no per-tag cache variable.
9505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9506$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9507if ${lt_cv_irix_exported_symbol+:} false; then :
9508  $as_echo_n "(cached) " >&6
9509else
9510  save_LDFLAGS="$LDFLAGS"
9511	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9512	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513/* end confdefs.h.  */
9514int foo (void) { return 0; }
9515_ACEOF
9516if ac_fn_c_try_link "$LINENO"; then :
9517  lt_cv_irix_exported_symbol=yes
9518else
9519  lt_cv_irix_exported_symbol=no
9520fi
9521rm -f core conftest.err conftest.$ac_objext \
9522    conftest$ac_exeext conftest.$ac_ext
9523           LDFLAGS="$save_LDFLAGS"
9524fi
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9526$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9527	if test "$lt_cv_irix_exported_symbol" = yes; then
9528          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'
9529	fi
9530      else
9531	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'
9532	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'
9533      fi
9534      archive_cmds_need_lc='no'
9535      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9536      hardcode_libdir_separator=:
9537      inherit_rpath=yes
9538      link_all_deplibs=yes
9539      ;;
9540
9541    netbsd* | netbsdelf*-gnu)
9542      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9543	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9544      else
9545	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9546      fi
9547      hardcode_libdir_flag_spec='-R$libdir'
9548      hardcode_direct=yes
9549      hardcode_shlibpath_var=no
9550      ;;
9551
9552    newsos6)
9553      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9554      hardcode_direct=yes
9555      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556      hardcode_libdir_separator=:
9557      hardcode_shlibpath_var=no
9558      ;;
9559
9560    *nto* | *qnx*)
9561      ;;
9562
9563    openbsd*)
9564      if test -f /usr/libexec/ld.so; then
9565	hardcode_direct=yes
9566	hardcode_shlibpath_var=no
9567	hardcode_direct_absolute=yes
9568	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9569	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9570	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9571	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9572	  export_dynamic_flag_spec='${wl}-E'
9573	else
9574	  case $host_os in
9575	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9576	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9577	     hardcode_libdir_flag_spec='-R$libdir'
9578	     ;;
9579	   *)
9580	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9581	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9582	     ;;
9583	  esac
9584	fi
9585      else
9586	ld_shlibs=no
9587      fi
9588      ;;
9589
9590    os2*)
9591      hardcode_libdir_flag_spec='-L$libdir'
9592      hardcode_minus_L=yes
9593      allow_undefined_flag=unsupported
9594      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'
9595      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9596      ;;
9597
9598    osf3*)
9599      if test "$GCC" = yes; then
9600	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9601	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'
9602      else
9603	allow_undefined_flag=' -expect_unresolved \*'
9604	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'
9605      fi
9606      archive_cmds_need_lc='no'
9607      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9608      hardcode_libdir_separator=:
9609      ;;
9610
9611    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9612      if test "$GCC" = yes; then
9613	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9614	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'
9615	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9616      else
9617	allow_undefined_flag=' -expect_unresolved \*'
9618	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'
9619	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~
9620	$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'
9621
9622	# Both c and cxx compiler support -rpath directly
9623	hardcode_libdir_flag_spec='-rpath $libdir'
9624      fi
9625      archive_cmds_need_lc='no'
9626      hardcode_libdir_separator=:
9627      ;;
9628
9629    solaris*)
9630      no_undefined_flag=' -z defs'
9631      if test "$GCC" = yes; then
9632	wlarc='${wl}'
9633	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9634	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9635	  $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'
9636      else
9637	case `$CC -V 2>&1` in
9638	*"Compilers 5.0"*)
9639	  wlarc=''
9640	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9642	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9643	  ;;
9644	*)
9645	  wlarc='${wl}'
9646	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9647	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9648	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9649	  ;;
9650	esac
9651      fi
9652      hardcode_libdir_flag_spec='-R$libdir'
9653      hardcode_shlibpath_var=no
9654      case $host_os in
9655      solaris2.[0-5] | solaris2.[0-5].*) ;;
9656      *)
9657	# The compiler driver will combine and reorder linker options,
9658	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9659	# but is careful enough not to reorder.
9660	# Supported since Solaris 2.6 (maybe 2.5.1?)
9661	if test "$GCC" = yes; then
9662	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9663	else
9664	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9665	fi
9666	;;
9667      esac
9668      link_all_deplibs=yes
9669      ;;
9670
9671    sunos4*)
9672      if test "x$host_vendor" = xsequent; then
9673	# Use $CC to link under sequent, because it throws in some extra .o
9674	# files that make .init and .fini sections work.
9675	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9676      else
9677	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9678      fi
9679      hardcode_libdir_flag_spec='-L$libdir'
9680      hardcode_direct=yes
9681      hardcode_minus_L=yes
9682      hardcode_shlibpath_var=no
9683      ;;
9684
9685    sysv4)
9686      case $host_vendor in
9687	sni)
9688	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689	  hardcode_direct=yes # is this really true???
9690	;;
9691	siemens)
9692	  ## LD is ld it makes a PLAMLIB
9693	  ## CC just makes a GrossModule.
9694	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9695	  reload_cmds='$CC -r -o $output$reload_objs'
9696	  hardcode_direct=no
9697        ;;
9698	motorola)
9699	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9700	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9701	;;
9702      esac
9703      runpath_var='LD_RUN_PATH'
9704      hardcode_shlibpath_var=no
9705      ;;
9706
9707    sysv4.3*)
9708      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709      hardcode_shlibpath_var=no
9710      export_dynamic_flag_spec='-Bexport'
9711      ;;
9712
9713    sysv4*MP*)
9714      if test -d /usr/nec; then
9715	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9716	hardcode_shlibpath_var=no
9717	runpath_var=LD_RUN_PATH
9718	hardcode_runpath_var=yes
9719	ld_shlibs=yes
9720      fi
9721      ;;
9722
9723    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9724      no_undefined_flag='${wl}-z,text'
9725      archive_cmds_need_lc=no
9726      hardcode_shlibpath_var=no
9727      runpath_var='LD_RUN_PATH'
9728
9729      if test "$GCC" = yes; then
9730	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732      else
9733	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9734	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735      fi
9736      ;;
9737
9738    sysv5* | sco3.2v5* | sco5v6*)
9739      # Note: We can NOT use -z defs as we might desire, because we do not
9740      # link with -lc, and that would cause any symbols used from libc to
9741      # always be unresolved, which means just about no library would
9742      # ever link correctly.  If we're not using GNU ld we use -z text
9743      # though, which does catch some bad symbols but isn't as heavy-handed
9744      # as -z defs.
9745      no_undefined_flag='${wl}-z,text'
9746      allow_undefined_flag='${wl}-z,nodefs'
9747      archive_cmds_need_lc=no
9748      hardcode_shlibpath_var=no
9749      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9750      hardcode_libdir_separator=':'
9751      link_all_deplibs=yes
9752      export_dynamic_flag_spec='${wl}-Bexport'
9753      runpath_var='LD_RUN_PATH'
9754
9755      if test "$GCC" = yes; then
9756	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9758      else
9759	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9760	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9761      fi
9762      ;;
9763
9764    uts4*)
9765      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766      hardcode_libdir_flag_spec='-L$libdir'
9767      hardcode_shlibpath_var=no
9768      ;;
9769
9770    *)
9771      ld_shlibs=no
9772      ;;
9773    esac
9774
9775    if test x$host_vendor = xsni; then
9776      case $host in
9777      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9778	export_dynamic_flag_spec='${wl}-Blargedynsym'
9779	;;
9780      esac
9781    fi
9782  fi
9783
9784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9785$as_echo "$ld_shlibs" >&6; }
9786test "$ld_shlibs" = no && can_build_shared=no
9787
9788with_gnu_ld=$with_gnu_ld
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804#
9805# Do we need to explicitly link libc?
9806#
9807case "x$archive_cmds_need_lc" in
9808x|xyes)
9809  # Assume -lc should be added
9810  archive_cmds_need_lc=yes
9811
9812  if test "$enable_shared" = yes && test "$GCC" = yes; then
9813    case $archive_cmds in
9814    *'~'*)
9815      # FIXME: we may have to deal with multi-command sequences.
9816      ;;
9817    '$CC '*)
9818      # Test whether the compiler implicitly links with -lc since on some
9819      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9820      # to ld, don't add -lc before -lgcc.
9821      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9822$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9823if ${lt_cv_archive_cmds_need_lc+:} false; then :
9824  $as_echo_n "(cached) " >&6
9825else
9826  $RM conftest*
9827	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9828
9829	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9830  (eval $ac_compile) 2>&5
9831  ac_status=$?
9832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9833  test $ac_status = 0; } 2>conftest.err; then
9834	  soname=conftest
9835	  lib=conftest
9836	  libobjs=conftest.$ac_objext
9837	  deplibs=
9838	  wl=$lt_prog_compiler_wl
9839	  pic_flag=$lt_prog_compiler_pic
9840	  compiler_flags=-v
9841	  linker_flags=-v
9842	  verstring=
9843	  output_objdir=.
9844	  libname=conftest
9845	  lt_save_allow_undefined_flag=$allow_undefined_flag
9846	  allow_undefined_flag=
9847	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9848  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9849  ac_status=$?
9850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9851  test $ac_status = 0; }
9852	  then
9853	    lt_cv_archive_cmds_need_lc=no
9854	  else
9855	    lt_cv_archive_cmds_need_lc=yes
9856	  fi
9857	  allow_undefined_flag=$lt_save_allow_undefined_flag
9858	else
9859	  cat conftest.err 1>&5
9860	fi
9861	$RM conftest*
9862
9863fi
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9865$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9866      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9867      ;;
9868    esac
9869  fi
9870  ;;
9871esac
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10025$as_echo_n "checking dynamic linker characteristics... " >&6; }
10026
10027if test "$GCC" = yes; then
10028  case $host_os in
10029    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10030    *) lt_awk_arg="/^libraries:/" ;;
10031  esac
10032  case $host_os in
10033    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10034    *) lt_sed_strip_eq="s,=/,/,g" ;;
10035  esac
10036  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10037  case $lt_search_path_spec in
10038  *\;*)
10039    # if the path contains ";" then we assume it to be the separator
10040    # otherwise default to the standard path separator (i.e. ":") - it is
10041    # assumed that no part of a normal pathname contains ";" but that should
10042    # okay in the real world where ";" in dirpaths is itself problematic.
10043    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10044    ;;
10045  *)
10046    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10047    ;;
10048  esac
10049  # Ok, now we have the path, separated by spaces, we can step through it
10050  # and add multilib dir if necessary.
10051  lt_tmp_lt_search_path_spec=
10052  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10053  for lt_sys_path in $lt_search_path_spec; do
10054    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10055      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10056    else
10057      test -d "$lt_sys_path" && \
10058	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10059    fi
10060  done
10061  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10062BEGIN {RS=" "; FS="/|\n";} {
10063  lt_foo="";
10064  lt_count=0;
10065  for (lt_i = NF; lt_i > 0; lt_i--) {
10066    if ($lt_i != "" && $lt_i != ".") {
10067      if ($lt_i == "..") {
10068        lt_count++;
10069      } else {
10070        if (lt_count == 0) {
10071          lt_foo="/" $lt_i lt_foo;
10072        } else {
10073          lt_count--;
10074        }
10075      }
10076    }
10077  }
10078  if (lt_foo != "") { lt_freq[lt_foo]++; }
10079  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10080}'`
10081  # AWK program above erroneously prepends '/' to C:/dos/paths
10082  # for these hosts.
10083  case $host_os in
10084    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10085      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10086  esac
10087  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10088else
10089  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10090fi
10091library_names_spec=
10092libname_spec='lib$name'
10093soname_spec=
10094shrext_cmds=".so"
10095postinstall_cmds=
10096postuninstall_cmds=
10097finish_cmds=
10098finish_eval=
10099shlibpath_var=
10100shlibpath_overrides_runpath=unknown
10101version_type=none
10102dynamic_linker="$host_os ld.so"
10103sys_lib_dlsearch_path_spec="/lib /usr/lib"
10104need_lib_prefix=unknown
10105hardcode_into_libs=no
10106
10107# when you set need_version to no, make sure it does not cause -set_version
10108# flags to be left without arguments
10109need_version=unknown
10110
10111case $host_os in
10112aix3*)
10113  version_type=linux # correct to gnu/linux during the next big refactor
10114  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10115  shlibpath_var=LIBPATH
10116
10117  # AIX 3 has no versioning support, so we append a major version to the name.
10118  soname_spec='${libname}${release}${shared_ext}$major'
10119  ;;
10120
10121aix[4-9]*)
10122  version_type=linux # correct to gnu/linux during the next big refactor
10123  need_lib_prefix=no
10124  need_version=no
10125  hardcode_into_libs=yes
10126  if test "$host_cpu" = ia64; then
10127    # AIX 5 supports IA64
10128    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10129    shlibpath_var=LD_LIBRARY_PATH
10130  else
10131    # With GCC up to 2.95.x, collect2 would create an import file
10132    # for dependence libraries.  The import file would start with
10133    # the line `#! .'.  This would cause the generated library to
10134    # depend on `.', always an invalid library.  This was fixed in
10135    # development snapshots of GCC prior to 3.0.
10136    case $host_os in
10137      aix4 | aix4.[01] | aix4.[01].*)
10138      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10139	   echo ' yes '
10140	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10141	:
10142      else
10143	can_build_shared=no
10144      fi
10145      ;;
10146    esac
10147    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10148    # soname into executable. Probably we can add versioning support to
10149    # collect2, so additional links can be useful in future.
10150    if test "$aix_use_runtimelinking" = yes; then
10151      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10152      # instead of lib<name>.a to let people know that these are not
10153      # typical AIX shared libraries.
10154      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155    else
10156      # We preserve .a as extension for shared libraries through AIX4.2
10157      # and later when we are not doing run time linking.
10158      library_names_spec='${libname}${release}.a $libname.a'
10159      soname_spec='${libname}${release}${shared_ext}$major'
10160    fi
10161    shlibpath_var=LIBPATH
10162  fi
10163  ;;
10164
10165amigaos*)
10166  case $host_cpu in
10167  powerpc)
10168    # Since July 2007 AmigaOS4 officially supports .so libraries.
10169    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10170    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171    ;;
10172  m68k)
10173    library_names_spec='$libname.ixlibrary $libname.a'
10174    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10175    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'
10176    ;;
10177  esac
10178  ;;
10179
10180beos*)
10181  library_names_spec='${libname}${shared_ext}'
10182  dynamic_linker="$host_os ld.so"
10183  shlibpath_var=LIBRARY_PATH
10184  ;;
10185
10186bsdi[45]*)
10187  version_type=linux # correct to gnu/linux during the next big refactor
10188  need_version=no
10189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10190  soname_spec='${libname}${release}${shared_ext}$major'
10191  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10192  shlibpath_var=LD_LIBRARY_PATH
10193  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10194  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10195  # the default ld.so.conf also contains /usr/contrib/lib and
10196  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10197  # libtool to hard-code these into programs
10198  ;;
10199
10200cygwin* | mingw* | pw32* | cegcc*)
10201  version_type=windows
10202  shrext_cmds=".dll"
10203  need_version=no
10204  need_lib_prefix=no
10205
10206  case $GCC,$cc_basename in
10207  yes,*)
10208    # gcc
10209    library_names_spec='$libname.dll.a'
10210    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10211    postinstall_cmds='base_file=`basename \${file}`~
10212      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10213      dldir=$destdir/`dirname \$dlpath`~
10214      test -d \$dldir || mkdir -p \$dldir~
10215      $install_prog $dir/$dlname \$dldir/$dlname~
10216      chmod a+x \$dldir/$dlname~
10217      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10218        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10219      fi'
10220    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10221      dlpath=$dir/\$dldll~
10222       $RM \$dlpath'
10223    shlibpath_overrides_runpath=yes
10224
10225    case $host_os in
10226    cygwin*)
10227      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10228      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10229
10230      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10231      ;;
10232    mingw* | cegcc*)
10233      # MinGW DLLs use traditional 'lib' prefix
10234      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10235      ;;
10236    pw32*)
10237      # pw32 DLLs use 'pw' prefix rather than 'lib'
10238      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10239      ;;
10240    esac
10241    dynamic_linker='Win32 ld.exe'
10242    ;;
10243
10244  *,cl*)
10245    # Native MSVC
10246    libname_spec='$name'
10247    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10248    library_names_spec='${libname}.dll.lib'
10249
10250    case $build_os in
10251    mingw*)
10252      sys_lib_search_path_spec=
10253      lt_save_ifs=$IFS
10254      IFS=';'
10255      for lt_path in $LIB
10256      do
10257        IFS=$lt_save_ifs
10258        # Let DOS variable expansion print the short 8.3 style file name.
10259        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10260        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10261      done
10262      IFS=$lt_save_ifs
10263      # Convert to MSYS style.
10264      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10265      ;;
10266    cygwin*)
10267      # Convert to unix form, then to dos form, then back to unix form
10268      # but this time dos style (no spaces!) so that the unix form looks
10269      # like /cygdrive/c/PROGRA~1:/cygdr...
10270      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10271      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10272      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10273      ;;
10274    *)
10275      sys_lib_search_path_spec="$LIB"
10276      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10277        # It is most probably a Windows format PATH.
10278        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10279      else
10280        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10281      fi
10282      # FIXME: find the short name or the path components, as spaces are
10283      # common. (e.g. "Program Files" -> "PROGRA~1")
10284      ;;
10285    esac
10286
10287    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10288    postinstall_cmds='base_file=`basename \${file}`~
10289      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10290      dldir=$destdir/`dirname \$dlpath`~
10291      test -d \$dldir || mkdir -p \$dldir~
10292      $install_prog $dir/$dlname \$dldir/$dlname'
10293    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10294      dlpath=$dir/\$dldll~
10295       $RM \$dlpath'
10296    shlibpath_overrides_runpath=yes
10297    dynamic_linker='Win32 link.exe'
10298    ;;
10299
10300  *)
10301    # Assume MSVC wrapper
10302    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10303    dynamic_linker='Win32 ld.exe'
10304    ;;
10305  esac
10306  # FIXME: first we should search . and the directory the executable is in
10307  shlibpath_var=PATH
10308  ;;
10309
10310darwin* | rhapsody*)
10311  dynamic_linker="$host_os dyld"
10312  version_type=darwin
10313  need_lib_prefix=no
10314  need_version=no
10315  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10316  soname_spec='${libname}${release}${major}$shared_ext'
10317  shlibpath_overrides_runpath=yes
10318  shlibpath_var=DYLD_LIBRARY_PATH
10319  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10320
10321  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10322  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10323  ;;
10324
10325dgux*)
10326  version_type=linux # correct to gnu/linux during the next big refactor
10327  need_lib_prefix=no
10328  need_version=no
10329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10330  soname_spec='${libname}${release}${shared_ext}$major'
10331  shlibpath_var=LD_LIBRARY_PATH
10332  ;;
10333
10334freebsd* | dragonfly*)
10335  # DragonFly does not have aout.  When/if they implement a new
10336  # versioning mechanism, adjust this.
10337  if test -x /usr/bin/objformat; then
10338    objformat=`/usr/bin/objformat`
10339  else
10340    case $host_os in
10341    freebsd[23].*) objformat=aout ;;
10342    *) objformat=elf ;;
10343    esac
10344  fi
10345  version_type=freebsd-$objformat
10346  case $version_type in
10347    freebsd-elf*)
10348      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10349      need_version=no
10350      need_lib_prefix=no
10351      ;;
10352    freebsd-*)
10353      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10354      need_version=yes
10355      ;;
10356  esac
10357  shlibpath_var=LD_LIBRARY_PATH
10358  case $host_os in
10359  freebsd2.*)
10360    shlibpath_overrides_runpath=yes
10361    ;;
10362  freebsd3.[01]* | freebsdelf3.[01]*)
10363    shlibpath_overrides_runpath=yes
10364    hardcode_into_libs=yes
10365    ;;
10366  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10367  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10368    shlibpath_overrides_runpath=no
10369    hardcode_into_libs=yes
10370    ;;
10371  *) # from 4.6 on, and DragonFly
10372    shlibpath_overrides_runpath=yes
10373    hardcode_into_libs=yes
10374    ;;
10375  esac
10376  ;;
10377
10378haiku*)
10379  version_type=linux # correct to gnu/linux during the next big refactor
10380  need_lib_prefix=no
10381  need_version=no
10382  dynamic_linker="$host_os runtime_loader"
10383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10384  soname_spec='${libname}${release}${shared_ext}$major'
10385  shlibpath_var=LIBRARY_PATH
10386  shlibpath_overrides_runpath=yes
10387  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10388  hardcode_into_libs=yes
10389  ;;
10390
10391hpux9* | hpux10* | hpux11*)
10392  # Give a soname corresponding to the major version so that dld.sl refuses to
10393  # link against other versions.
10394  version_type=sunos
10395  need_lib_prefix=no
10396  need_version=no
10397  case $host_cpu in
10398  ia64*)
10399    shrext_cmds='.so'
10400    hardcode_into_libs=yes
10401    dynamic_linker="$host_os dld.so"
10402    shlibpath_var=LD_LIBRARY_PATH
10403    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10404    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405    soname_spec='${libname}${release}${shared_ext}$major'
10406    if test "X$HPUX_IA64_MODE" = X32; then
10407      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10408    else
10409      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10410    fi
10411    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10412    ;;
10413  hppa*64*)
10414    shrext_cmds='.sl'
10415    hardcode_into_libs=yes
10416    dynamic_linker="$host_os dld.sl"
10417    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10418    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10419    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420    soname_spec='${libname}${release}${shared_ext}$major'
10421    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10422    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10423    ;;
10424  *)
10425    shrext_cmds='.sl'
10426    dynamic_linker="$host_os dld.sl"
10427    shlibpath_var=SHLIB_PATH
10428    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10429    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430    soname_spec='${libname}${release}${shared_ext}$major'
10431    ;;
10432  esac
10433  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10434  postinstall_cmds='chmod 555 $lib'
10435  # or fails outright, so override atomically:
10436  install_override_mode=555
10437  ;;
10438
10439interix[3-9]*)
10440  version_type=linux # correct to gnu/linux during the next big refactor
10441  need_lib_prefix=no
10442  need_version=no
10443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10444  soname_spec='${libname}${release}${shared_ext}$major'
10445  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10446  shlibpath_var=LD_LIBRARY_PATH
10447  shlibpath_overrides_runpath=no
10448  hardcode_into_libs=yes
10449  ;;
10450
10451irix5* | irix6* | nonstopux*)
10452  case $host_os in
10453    nonstopux*) version_type=nonstopux ;;
10454    *)
10455	if test "$lt_cv_prog_gnu_ld" = yes; then
10456		version_type=linux # correct to gnu/linux during the next big refactor
10457	else
10458		version_type=irix
10459	fi ;;
10460  esac
10461  need_lib_prefix=no
10462  need_version=no
10463  soname_spec='${libname}${release}${shared_ext}$major'
10464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10465  case $host_os in
10466  irix5* | nonstopux*)
10467    libsuff= shlibsuff=
10468    ;;
10469  *)
10470    case $LD in # libtool.m4 will add one of these switches to LD
10471    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10472      libsuff= shlibsuff= libmagic=32-bit;;
10473    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10474      libsuff=32 shlibsuff=N32 libmagic=N32;;
10475    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10476      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10477    *) libsuff= shlibsuff= libmagic=never-match;;
10478    esac
10479    ;;
10480  esac
10481  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10482  shlibpath_overrides_runpath=no
10483  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10484  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10485  hardcode_into_libs=yes
10486  ;;
10487
10488# No shared lib support for Linux oldld, aout, or coff.
10489linux*oldld* | linux*aout* | linux*coff*)
10490  dynamic_linker=no
10491  ;;
10492
10493# This must be glibc/ELF.
10494linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10495  version_type=linux # correct to gnu/linux during the next big refactor
10496  need_lib_prefix=no
10497  need_version=no
10498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499  soname_spec='${libname}${release}${shared_ext}$major'
10500  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10501  shlibpath_var=LD_LIBRARY_PATH
10502  shlibpath_overrides_runpath=no
10503
10504  # Some binutils ld are patched to set DT_RUNPATH
10505  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10506  $as_echo_n "(cached) " >&6
10507else
10508  lt_cv_shlibpath_overrides_runpath=no
10509    save_LDFLAGS=$LDFLAGS
10510    save_libdir=$libdir
10511    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10512	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10513    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514/* end confdefs.h.  */
10515
10516int
10517main ()
10518{
10519
10520  ;
10521  return 0;
10522}
10523_ACEOF
10524if ac_fn_c_try_link "$LINENO"; then :
10525  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10526  lt_cv_shlibpath_overrides_runpath=yes
10527fi
10528fi
10529rm -f core conftest.err conftest.$ac_objext \
10530    conftest$ac_exeext conftest.$ac_ext
10531    LDFLAGS=$save_LDFLAGS
10532    libdir=$save_libdir
10533
10534fi
10535
10536  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10537
10538  # This implies no fast_install, which is unacceptable.
10539  # Some rework will be needed to allow for fast_install
10540  # before this can be enabled.
10541  hardcode_into_libs=yes
10542
10543  # Append ld.so.conf contents to the search path
10544  if test -f /etc/ld.so.conf; then
10545    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' ' '`
10546    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10547  fi
10548
10549  # We used to test for /lib/ld.so.1 and disable shared libraries on
10550  # powerpc, because MkLinux only supported shared libraries with the
10551  # GNU dynamic linker.  Since this was broken with cross compilers,
10552  # most powerpc-linux boxes support dynamic linking these days and
10553  # people can always --disable-shared, the test was removed, and we
10554  # assume the GNU/Linux dynamic linker is in use.
10555  dynamic_linker='GNU/Linux ld.so'
10556  ;;
10557
10558netbsdelf*-gnu)
10559  version_type=linux
10560  need_lib_prefix=no
10561  need_version=no
10562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10563  soname_spec='${libname}${release}${shared_ext}$major'
10564  shlibpath_var=LD_LIBRARY_PATH
10565  shlibpath_overrides_runpath=no
10566  hardcode_into_libs=yes
10567  dynamic_linker='NetBSD ld.elf_so'
10568  ;;
10569
10570netbsd*)
10571  version_type=sunos
10572  need_lib_prefix=no
10573  need_version=no
10574  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10575    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10576    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10577    dynamic_linker='NetBSD (a.out) ld.so'
10578  else
10579    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10580    soname_spec='${libname}${release}${shared_ext}$major'
10581    dynamic_linker='NetBSD ld.elf_so'
10582  fi
10583  shlibpath_var=LD_LIBRARY_PATH
10584  shlibpath_overrides_runpath=yes
10585  hardcode_into_libs=yes
10586  ;;
10587
10588newsos6)
10589  version_type=linux # correct to gnu/linux during the next big refactor
10590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10591  shlibpath_var=LD_LIBRARY_PATH
10592  shlibpath_overrides_runpath=yes
10593  ;;
10594
10595*nto* | *qnx*)
10596  version_type=qnx
10597  need_lib_prefix=no
10598  need_version=no
10599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600  soname_spec='${libname}${release}${shared_ext}$major'
10601  shlibpath_var=LD_LIBRARY_PATH
10602  shlibpath_overrides_runpath=no
10603  hardcode_into_libs=yes
10604  dynamic_linker='ldqnx.so'
10605  ;;
10606
10607openbsd*)
10608  version_type=sunos
10609  sys_lib_dlsearch_path_spec="/usr/lib"
10610  need_lib_prefix=no
10611  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10612  case $host_os in
10613    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10614    *)				need_version=no  ;;
10615  esac
10616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10617  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10618  shlibpath_var=LD_LIBRARY_PATH
10619  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10620    case $host_os in
10621      openbsd2.[89] | openbsd2.[89].*)
10622	shlibpath_overrides_runpath=no
10623	;;
10624      *)
10625	shlibpath_overrides_runpath=yes
10626	;;
10627      esac
10628  else
10629    shlibpath_overrides_runpath=yes
10630  fi
10631  ;;
10632
10633os2*)
10634  libname_spec='$name'
10635  shrext_cmds=".dll"
10636  need_lib_prefix=no
10637  library_names_spec='$libname${shared_ext} $libname.a'
10638  dynamic_linker='OS/2 ld.exe'
10639  shlibpath_var=LIBPATH
10640  ;;
10641
10642osf3* | osf4* | osf5*)
10643  version_type=osf
10644  need_lib_prefix=no
10645  need_version=no
10646  soname_spec='${libname}${release}${shared_ext}$major'
10647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648  shlibpath_var=LD_LIBRARY_PATH
10649  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10650  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10651  ;;
10652
10653rdos*)
10654  dynamic_linker=no
10655  ;;
10656
10657solaris*)
10658  version_type=linux # correct to gnu/linux during the next big refactor
10659  need_lib_prefix=no
10660  need_version=no
10661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662  soname_spec='${libname}${release}${shared_ext}$major'
10663  shlibpath_var=LD_LIBRARY_PATH
10664  shlibpath_overrides_runpath=yes
10665  hardcode_into_libs=yes
10666  # ldd complains unless libraries are executable
10667  postinstall_cmds='chmod +x $lib'
10668  ;;
10669
10670sunos4*)
10671  version_type=sunos
10672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10673  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10674  shlibpath_var=LD_LIBRARY_PATH
10675  shlibpath_overrides_runpath=yes
10676  if test "$with_gnu_ld" = yes; then
10677    need_lib_prefix=no
10678  fi
10679  need_version=yes
10680  ;;
10681
10682sysv4 | sysv4.3*)
10683  version_type=linux # correct to gnu/linux during the next big refactor
10684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685  soname_spec='${libname}${release}${shared_ext}$major'
10686  shlibpath_var=LD_LIBRARY_PATH
10687  case $host_vendor in
10688    sni)
10689      shlibpath_overrides_runpath=no
10690      need_lib_prefix=no
10691      runpath_var=LD_RUN_PATH
10692      ;;
10693    siemens)
10694      need_lib_prefix=no
10695      ;;
10696    motorola)
10697      need_lib_prefix=no
10698      need_version=no
10699      shlibpath_overrides_runpath=no
10700      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10701      ;;
10702  esac
10703  ;;
10704
10705sysv4*MP*)
10706  if test -d /usr/nec ;then
10707    version_type=linux # correct to gnu/linux during the next big refactor
10708    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10709    soname_spec='$libname${shared_ext}.$major'
10710    shlibpath_var=LD_LIBRARY_PATH
10711  fi
10712  ;;
10713
10714sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10715  version_type=freebsd-elf
10716  need_lib_prefix=no
10717  need_version=no
10718  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10719  soname_spec='${libname}${release}${shared_ext}$major'
10720  shlibpath_var=LD_LIBRARY_PATH
10721  shlibpath_overrides_runpath=yes
10722  hardcode_into_libs=yes
10723  if test "$with_gnu_ld" = yes; then
10724    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10725  else
10726    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10727    case $host_os in
10728      sco3.2v5*)
10729        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10730	;;
10731    esac
10732  fi
10733  sys_lib_dlsearch_path_spec='/usr/lib'
10734  ;;
10735
10736tpf*)
10737  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10738  version_type=linux # correct to gnu/linux during the next big refactor
10739  need_lib_prefix=no
10740  need_version=no
10741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10742  shlibpath_var=LD_LIBRARY_PATH
10743  shlibpath_overrides_runpath=no
10744  hardcode_into_libs=yes
10745  ;;
10746
10747uts4*)
10748  version_type=linux # correct to gnu/linux during the next big refactor
10749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750  soname_spec='${libname}${release}${shared_ext}$major'
10751  shlibpath_var=LD_LIBRARY_PATH
10752  ;;
10753
10754*)
10755  dynamic_linker=no
10756  ;;
10757esac
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10759$as_echo "$dynamic_linker" >&6; }
10760test "$dynamic_linker" = no && can_build_shared=no
10761
10762variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10763if test "$GCC" = yes; then
10764  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10765fi
10766
10767if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10768  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10769fi
10770if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10771  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10772fi
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10866$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10867hardcode_action=
10868if test -n "$hardcode_libdir_flag_spec" ||
10869   test -n "$runpath_var" ||
10870   test "X$hardcode_automatic" = "Xyes" ; then
10871
10872  # We can hardcode non-existent directories.
10873  if test "$hardcode_direct" != no &&
10874     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10875     # have to relink, otherwise we might link with an installed library
10876     # when we should be linking with a yet-to-be-installed one
10877     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10878     test "$hardcode_minus_L" != no; then
10879    # Linking always hardcodes the temporary library directory.
10880    hardcode_action=relink
10881  else
10882    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10883    hardcode_action=immediate
10884  fi
10885else
10886  # We cannot hardcode anything, or else we can only hardcode existing
10887  # directories.
10888  hardcode_action=unsupported
10889fi
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10891$as_echo "$hardcode_action" >&6; }
10892
10893if test "$hardcode_action" = relink ||
10894   test "$inherit_rpath" = yes; then
10895  # Fast installation is not supported
10896  enable_fast_install=no
10897elif test "$shlibpath_overrides_runpath" = yes ||
10898     test "$enable_shared" = no; then
10899  # Fast installation is not necessary
10900  enable_fast_install=needless
10901fi
10902
10903
10904
10905
10906
10907
10908  if test "x$enable_dlopen" != xyes; then
10909  enable_dlopen=unknown
10910  enable_dlopen_self=unknown
10911  enable_dlopen_self_static=unknown
10912else
10913  lt_cv_dlopen=no
10914  lt_cv_dlopen_libs=
10915
10916  case $host_os in
10917  beos*)
10918    lt_cv_dlopen="load_add_on"
10919    lt_cv_dlopen_libs=
10920    lt_cv_dlopen_self=yes
10921    ;;
10922
10923  mingw* | pw32* | cegcc*)
10924    lt_cv_dlopen="LoadLibrary"
10925    lt_cv_dlopen_libs=
10926    ;;
10927
10928  cygwin*)
10929    lt_cv_dlopen="dlopen"
10930    lt_cv_dlopen_libs=
10931    ;;
10932
10933  darwin*)
10934  # if libdl is installed we need to link against it
10935    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10936$as_echo_n "checking for dlopen in -ldl... " >&6; }
10937if ${ac_cv_lib_dl_dlopen+:} false; then :
10938  $as_echo_n "(cached) " >&6
10939else
10940  ac_check_lib_save_LIBS=$LIBS
10941LIBS="-ldl  $LIBS"
10942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943/* end confdefs.h.  */
10944
10945/* Override any GCC internal prototype to avoid an error.
10946   Use char because int might match the return type of a GCC
10947   builtin and then its argument prototype would still apply.  */
10948#ifdef __cplusplus
10949extern "C"
10950#endif
10951char dlopen ();
10952int
10953main ()
10954{
10955return dlopen ();
10956  ;
10957  return 0;
10958}
10959_ACEOF
10960if ac_fn_c_try_link "$LINENO"; then :
10961  ac_cv_lib_dl_dlopen=yes
10962else
10963  ac_cv_lib_dl_dlopen=no
10964fi
10965rm -f core conftest.err conftest.$ac_objext \
10966    conftest$ac_exeext conftest.$ac_ext
10967LIBS=$ac_check_lib_save_LIBS
10968fi
10969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10970$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10971if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10972  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10973else
10974
10975    lt_cv_dlopen="dyld"
10976    lt_cv_dlopen_libs=
10977    lt_cv_dlopen_self=yes
10978
10979fi
10980
10981    ;;
10982
10983  *)
10984    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10985if test "x$ac_cv_func_shl_load" = xyes; then :
10986  lt_cv_dlopen="shl_load"
10987else
10988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10989$as_echo_n "checking for shl_load in -ldld... " >&6; }
10990if ${ac_cv_lib_dld_shl_load+:} false; then :
10991  $as_echo_n "(cached) " >&6
10992else
10993  ac_check_lib_save_LIBS=$LIBS
10994LIBS="-ldld  $LIBS"
10995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996/* end confdefs.h.  */
10997
10998/* Override any GCC internal prototype to avoid an error.
10999   Use char because int might match the return type of a GCC
11000   builtin and then its argument prototype would still apply.  */
11001#ifdef __cplusplus
11002extern "C"
11003#endif
11004char shl_load ();
11005int
11006main ()
11007{
11008return shl_load ();
11009  ;
11010  return 0;
11011}
11012_ACEOF
11013if ac_fn_c_try_link "$LINENO"; then :
11014  ac_cv_lib_dld_shl_load=yes
11015else
11016  ac_cv_lib_dld_shl_load=no
11017fi
11018rm -f core conftest.err conftest.$ac_objext \
11019    conftest$ac_exeext conftest.$ac_ext
11020LIBS=$ac_check_lib_save_LIBS
11021fi
11022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11023$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11024if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11025  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11026else
11027  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11028if test "x$ac_cv_func_dlopen" = xyes; then :
11029  lt_cv_dlopen="dlopen"
11030else
11031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11032$as_echo_n "checking for dlopen in -ldl... " >&6; }
11033if ${ac_cv_lib_dl_dlopen+:} false; then :
11034  $as_echo_n "(cached) " >&6
11035else
11036  ac_check_lib_save_LIBS=$LIBS
11037LIBS="-ldl  $LIBS"
11038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039/* end confdefs.h.  */
11040
11041/* Override any GCC internal prototype to avoid an error.
11042   Use char because int might match the return type of a GCC
11043   builtin and then its argument prototype would still apply.  */
11044#ifdef __cplusplus
11045extern "C"
11046#endif
11047char dlopen ();
11048int
11049main ()
11050{
11051return dlopen ();
11052  ;
11053  return 0;
11054}
11055_ACEOF
11056if ac_fn_c_try_link "$LINENO"; then :
11057  ac_cv_lib_dl_dlopen=yes
11058else
11059  ac_cv_lib_dl_dlopen=no
11060fi
11061rm -f core conftest.err conftest.$ac_objext \
11062    conftest$ac_exeext conftest.$ac_ext
11063LIBS=$ac_check_lib_save_LIBS
11064fi
11065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11066$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11067if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11068  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11069else
11070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11071$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11072if ${ac_cv_lib_svld_dlopen+:} false; then :
11073  $as_echo_n "(cached) " >&6
11074else
11075  ac_check_lib_save_LIBS=$LIBS
11076LIBS="-lsvld  $LIBS"
11077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078/* end confdefs.h.  */
11079
11080/* Override any GCC internal prototype to avoid an error.
11081   Use char because int might match the return type of a GCC
11082   builtin and then its argument prototype would still apply.  */
11083#ifdef __cplusplus
11084extern "C"
11085#endif
11086char dlopen ();
11087int
11088main ()
11089{
11090return dlopen ();
11091  ;
11092  return 0;
11093}
11094_ACEOF
11095if ac_fn_c_try_link "$LINENO"; then :
11096  ac_cv_lib_svld_dlopen=yes
11097else
11098  ac_cv_lib_svld_dlopen=no
11099fi
11100rm -f core conftest.err conftest.$ac_objext \
11101    conftest$ac_exeext conftest.$ac_ext
11102LIBS=$ac_check_lib_save_LIBS
11103fi
11104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11105$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11106if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11107  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11108else
11109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11110$as_echo_n "checking for dld_link in -ldld... " >&6; }
11111if ${ac_cv_lib_dld_dld_link+:} false; then :
11112  $as_echo_n "(cached) " >&6
11113else
11114  ac_check_lib_save_LIBS=$LIBS
11115LIBS="-ldld  $LIBS"
11116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117/* end confdefs.h.  */
11118
11119/* Override any GCC internal prototype to avoid an error.
11120   Use char because int might match the return type of a GCC
11121   builtin and then its argument prototype would still apply.  */
11122#ifdef __cplusplus
11123extern "C"
11124#endif
11125char dld_link ();
11126int
11127main ()
11128{
11129return dld_link ();
11130  ;
11131  return 0;
11132}
11133_ACEOF
11134if ac_fn_c_try_link "$LINENO"; then :
11135  ac_cv_lib_dld_dld_link=yes
11136else
11137  ac_cv_lib_dld_dld_link=no
11138fi
11139rm -f core conftest.err conftest.$ac_objext \
11140    conftest$ac_exeext conftest.$ac_ext
11141LIBS=$ac_check_lib_save_LIBS
11142fi
11143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11144$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11145if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11146  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11147fi
11148
11149
11150fi
11151
11152
11153fi
11154
11155
11156fi
11157
11158
11159fi
11160
11161
11162fi
11163
11164    ;;
11165  esac
11166
11167  if test "x$lt_cv_dlopen" != xno; then
11168    enable_dlopen=yes
11169  else
11170    enable_dlopen=no
11171  fi
11172
11173  case $lt_cv_dlopen in
11174  dlopen)
11175    save_CPPFLAGS="$CPPFLAGS"
11176    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11177
11178    save_LDFLAGS="$LDFLAGS"
11179    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11180
11181    save_LIBS="$LIBS"
11182    LIBS="$lt_cv_dlopen_libs $LIBS"
11183
11184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11185$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11186if ${lt_cv_dlopen_self+:} false; then :
11187  $as_echo_n "(cached) " >&6
11188else
11189  	  if test "$cross_compiling" = yes; then :
11190  lt_cv_dlopen_self=cross
11191else
11192  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11193  lt_status=$lt_dlunknown
11194  cat > conftest.$ac_ext <<_LT_EOF
11195#line $LINENO "configure"
11196#include "confdefs.h"
11197
11198#if HAVE_DLFCN_H
11199#include <dlfcn.h>
11200#endif
11201
11202#include <stdio.h>
11203
11204#ifdef RTLD_GLOBAL
11205#  define LT_DLGLOBAL		RTLD_GLOBAL
11206#else
11207#  ifdef DL_GLOBAL
11208#    define LT_DLGLOBAL		DL_GLOBAL
11209#  else
11210#    define LT_DLGLOBAL		0
11211#  endif
11212#endif
11213
11214/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11215   find out it does not work in some platform. */
11216#ifndef LT_DLLAZY_OR_NOW
11217#  ifdef RTLD_LAZY
11218#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11219#  else
11220#    ifdef DL_LAZY
11221#      define LT_DLLAZY_OR_NOW		DL_LAZY
11222#    else
11223#      ifdef RTLD_NOW
11224#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11225#      else
11226#        ifdef DL_NOW
11227#          define LT_DLLAZY_OR_NOW	DL_NOW
11228#        else
11229#          define LT_DLLAZY_OR_NOW	0
11230#        endif
11231#      endif
11232#    endif
11233#  endif
11234#endif
11235
11236/* When -fvisbility=hidden is used, assume the code has been annotated
11237   correspondingly for the symbols needed.  */
11238#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11239int fnord () __attribute__((visibility("default")));
11240#endif
11241
11242int fnord () { return 42; }
11243int main ()
11244{
11245  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11246  int status = $lt_dlunknown;
11247
11248  if (self)
11249    {
11250      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11251      else
11252        {
11253	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11254          else puts (dlerror ());
11255	}
11256      /* dlclose (self); */
11257    }
11258  else
11259    puts (dlerror ());
11260
11261  return status;
11262}
11263_LT_EOF
11264  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11265  (eval $ac_link) 2>&5
11266  ac_status=$?
11267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11268  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11269    (./conftest; exit; ) >&5 2>/dev/null
11270    lt_status=$?
11271    case x$lt_status in
11272      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11273      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11274      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11275    esac
11276  else :
11277    # compilation failed
11278    lt_cv_dlopen_self=no
11279  fi
11280fi
11281rm -fr conftest*
11282
11283
11284fi
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11286$as_echo "$lt_cv_dlopen_self" >&6; }
11287
11288    if test "x$lt_cv_dlopen_self" = xyes; then
11289      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11290      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11291$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11292if ${lt_cv_dlopen_self_static+:} false; then :
11293  $as_echo_n "(cached) " >&6
11294else
11295  	  if test "$cross_compiling" = yes; then :
11296  lt_cv_dlopen_self_static=cross
11297else
11298  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11299  lt_status=$lt_dlunknown
11300  cat > conftest.$ac_ext <<_LT_EOF
11301#line $LINENO "configure"
11302#include "confdefs.h"
11303
11304#if HAVE_DLFCN_H
11305#include <dlfcn.h>
11306#endif
11307
11308#include <stdio.h>
11309
11310#ifdef RTLD_GLOBAL
11311#  define LT_DLGLOBAL		RTLD_GLOBAL
11312#else
11313#  ifdef DL_GLOBAL
11314#    define LT_DLGLOBAL		DL_GLOBAL
11315#  else
11316#    define LT_DLGLOBAL		0
11317#  endif
11318#endif
11319
11320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11321   find out it does not work in some platform. */
11322#ifndef LT_DLLAZY_OR_NOW
11323#  ifdef RTLD_LAZY
11324#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11325#  else
11326#    ifdef DL_LAZY
11327#      define LT_DLLAZY_OR_NOW		DL_LAZY
11328#    else
11329#      ifdef RTLD_NOW
11330#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11331#      else
11332#        ifdef DL_NOW
11333#          define LT_DLLAZY_OR_NOW	DL_NOW
11334#        else
11335#          define LT_DLLAZY_OR_NOW	0
11336#        endif
11337#      endif
11338#    endif
11339#  endif
11340#endif
11341
11342/* When -fvisbility=hidden is used, assume the code has been annotated
11343   correspondingly for the symbols needed.  */
11344#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11345int fnord () __attribute__((visibility("default")));
11346#endif
11347
11348int fnord () { return 42; }
11349int main ()
11350{
11351  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11352  int status = $lt_dlunknown;
11353
11354  if (self)
11355    {
11356      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11357      else
11358        {
11359	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11360          else puts (dlerror ());
11361	}
11362      /* dlclose (self); */
11363    }
11364  else
11365    puts (dlerror ());
11366
11367  return status;
11368}
11369_LT_EOF
11370  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11371  (eval $ac_link) 2>&5
11372  ac_status=$?
11373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11374  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11375    (./conftest; exit; ) >&5 2>/dev/null
11376    lt_status=$?
11377    case x$lt_status in
11378      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11379      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11380      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11381    esac
11382  else :
11383    # compilation failed
11384    lt_cv_dlopen_self_static=no
11385  fi
11386fi
11387rm -fr conftest*
11388
11389
11390fi
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11392$as_echo "$lt_cv_dlopen_self_static" >&6; }
11393    fi
11394
11395    CPPFLAGS="$save_CPPFLAGS"
11396    LDFLAGS="$save_LDFLAGS"
11397    LIBS="$save_LIBS"
11398    ;;
11399  esac
11400
11401  case $lt_cv_dlopen_self in
11402  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11403  *) enable_dlopen_self=unknown ;;
11404  esac
11405
11406  case $lt_cv_dlopen_self_static in
11407  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11408  *) enable_dlopen_self_static=unknown ;;
11409  esac
11410fi
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428striplib=
11429old_striplib=
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11431$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11432if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11433  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11434  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11436$as_echo "yes" >&6; }
11437else
11438# FIXME - insert some real tests, host_os isn't really good enough
11439  case $host_os in
11440  darwin*)
11441    if test -n "$STRIP" ; then
11442      striplib="$STRIP -x"
11443      old_striplib="$STRIP -S"
11444      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11445$as_echo "yes" >&6; }
11446    else
11447      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448$as_echo "no" >&6; }
11449    fi
11450    ;;
11451  *)
11452    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453$as_echo "no" >&6; }
11454    ;;
11455  esac
11456fi
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469  # Report which library types will actually be built
11470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11471$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11473$as_echo "$can_build_shared" >&6; }
11474
11475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11476$as_echo_n "checking whether to build shared libraries... " >&6; }
11477  test "$can_build_shared" = "no" && enable_shared=no
11478
11479  # On AIX, shared libraries and static libraries use the same namespace, and
11480  # are all built from PIC.
11481  case $host_os in
11482  aix3*)
11483    test "$enable_shared" = yes && enable_static=no
11484    if test -n "$RANLIB"; then
11485      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11486      postinstall_cmds='$RANLIB $lib'
11487    fi
11488    ;;
11489
11490  aix[4-9]*)
11491    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11492      test "$enable_shared" = yes && enable_static=no
11493    fi
11494    ;;
11495  esac
11496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11497$as_echo "$enable_shared" >&6; }
11498
11499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11500$as_echo_n "checking whether to build static libraries... " >&6; }
11501  # Make sure either enable_shared or enable_static is yes.
11502  test "$enable_shared" = yes || enable_static=yes
11503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11504$as_echo "$enable_static" >&6; }
11505
11506
11507
11508
11509fi
11510ac_ext=c
11511ac_cpp='$CPP $CPPFLAGS'
11512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11514ac_compiler_gnu=$ac_cv_c_compiler_gnu
11515
11516CC="$lt_save_CC"
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532        ac_config_commands="$ac_config_commands libtool"
11533
11534
11535
11536
11537# Only expand once:
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11548	if test -n "$ac_tool_prefix"; then
11549  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11550set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11552$as_echo_n "checking for $ac_word... " >&6; }
11553if ${ac_cv_path_PKG_CONFIG+:} false; then :
11554  $as_echo_n "(cached) " >&6
11555else
11556  case $PKG_CONFIG in
11557  [\\/]* | ?:[\\/]*)
11558  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11559  ;;
11560  *)
11561  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11562for as_dir in $PATH
11563do
11564  IFS=$as_save_IFS
11565  test -z "$as_dir" && as_dir=.
11566    for ac_exec_ext in '' $ac_executable_extensions; do
11567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11568    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11570    break 2
11571  fi
11572done
11573  done
11574IFS=$as_save_IFS
11575
11576  ;;
11577esac
11578fi
11579PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11580if test -n "$PKG_CONFIG"; then
11581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11582$as_echo "$PKG_CONFIG" >&6; }
11583else
11584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585$as_echo "no" >&6; }
11586fi
11587
11588
11589fi
11590if test -z "$ac_cv_path_PKG_CONFIG"; then
11591  ac_pt_PKG_CONFIG=$PKG_CONFIG
11592  # Extract the first word of "pkg-config", so it can be a program name with args.
11593set dummy pkg-config; ac_word=$2
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11595$as_echo_n "checking for $ac_word... " >&6; }
11596if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11597  $as_echo_n "(cached) " >&6
11598else
11599  case $ac_pt_PKG_CONFIG in
11600  [\\/]* | ?:[\\/]*)
11601  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11602  ;;
11603  *)
11604  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605for as_dir in $PATH
11606do
11607  IFS=$as_save_IFS
11608  test -z "$as_dir" && as_dir=.
11609    for ac_exec_ext in '' $ac_executable_extensions; do
11610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11611    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11613    break 2
11614  fi
11615done
11616  done
11617IFS=$as_save_IFS
11618
11619  ;;
11620esac
11621fi
11622ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11623if test -n "$ac_pt_PKG_CONFIG"; then
11624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11625$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11626else
11627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628$as_echo "no" >&6; }
11629fi
11630
11631  if test "x$ac_pt_PKG_CONFIG" = x; then
11632    PKG_CONFIG=""
11633  else
11634    case $cross_compiling:$ac_tool_warned in
11635yes:)
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11638ac_tool_warned=yes ;;
11639esac
11640    PKG_CONFIG=$ac_pt_PKG_CONFIG
11641  fi
11642else
11643  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11644fi
11645
11646fi
11647if test -n "$PKG_CONFIG"; then
11648	_pkg_min_version=0.9.0
11649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11650$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11651	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11652		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11653$as_echo "yes" >&6; }
11654	else
11655		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656$as_echo "no" >&6; }
11657		PKG_CONFIG=""
11658	fi
11659fi
11660
11661
11662
11663	HAVE_OPENMP=no
11664	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP support by $CC" >&5
11665$as_echo_n "checking for OpenMP support by $CC... " >&6; }
11666	echo | $CC -x c - -fsyntax-only -fopenmp -Werror >/dev/null 2>/dev/null
11667	if test $? -eq 0; then
11668		HAVE_OPENMP=yes
11669	fi
11670
11671
11672
11673	HAVE_OPENCL=no
11674	ac_fn_c_check_header_mongrel "$LINENO" "CL/opencl.h" "ac_cv_header_CL_opencl_h" "$ac_includes_default"
11675if test "x$ac_cv_header_CL_opencl_h" = xyes; then :
11676
11677		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformIDs in -lOpenCL" >&5
11678$as_echo_n "checking for clGetPlatformIDs in -lOpenCL... " >&6; }
11679if ${ac_cv_lib_OpenCL_clGetPlatformIDs+:} false; then :
11680  $as_echo_n "(cached) " >&6
11681else
11682  ac_check_lib_save_LIBS=$LIBS
11683LIBS="-lOpenCL  $LIBS"
11684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11685/* end confdefs.h.  */
11686
11687/* Override any GCC internal prototype to avoid an error.
11688   Use char because int might match the return type of a GCC
11689   builtin and then its argument prototype would still apply.  */
11690#ifdef __cplusplus
11691extern "C"
11692#endif
11693char clGetPlatformIDs ();
11694int
11695main ()
11696{
11697return clGetPlatformIDs ();
11698  ;
11699  return 0;
11700}
11701_ACEOF
11702if ac_fn_c_try_link "$LINENO"; then :
11703  ac_cv_lib_OpenCL_clGetPlatformIDs=yes
11704else
11705  ac_cv_lib_OpenCL_clGetPlatformIDs=no
11706fi
11707rm -f core conftest.err conftest.$ac_objext \
11708    conftest$ac_exeext conftest.$ac_ext
11709LIBS=$ac_check_lib_save_LIBS
11710fi
11711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformIDs" >&5
11712$as_echo "$ac_cv_lib_OpenCL_clGetPlatformIDs" >&6; }
11713if test "x$ac_cv_lib_OpenCL_clGetPlatformIDs" = xyes; then :
11714
11715			SAVE_LIBS=$LIBS
11716			LIBS="$LIBS -lOpenCL"
11717			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL CPU device" >&5
11718$as_echo_n "checking for OpenCL CPU device... " >&6; }
11719			if test "$cross_compiling" = yes; then :
11720  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11722as_fn_error $? "cannot run test program while cross compiling
11723See \`config.log' for more details" "$LINENO" 5; }
11724else
11725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726/* end confdefs.h.  */
11727#include <CL/opencl.h>
11728int
11729main ()
11730{
11731
11732	cl_platform_id platform;
11733	cl_device_id dev;
11734
11735	if (clGetPlatformIDs(1, &platform, NULL) < 0)
11736		return 1;
11737	if (clGetDeviceIDs(platform, CL_DEVICE_TYPE_CPU, 1, &dev, NULL) < 0)
11738		return 1;
11739
11740  ;
11741  return 0;
11742}
11743_ACEOF
11744if ac_fn_c_try_run "$LINENO"; then :
11745  HAVE_OPENCL=yes
11746fi
11747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11748  conftest.$ac_objext conftest.beam conftest.$ac_ext
11749fi
11750
11751			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OPENCL" >&5
11752$as_echo "$HAVE_OPENCL" >&6; }
11753			LIBS=$SAVE_LIBS
11754
11755fi
11756
11757fi
11758
11759
11760
11761if test $HAVE_OPENCL = yes; then
11762	extra_tests="$extra_tests opencl_test.sh"
11763fi
11764
11765
11766
11767
11768
11769# Check whether --with-isl was given.
11770if test "${with_isl+set}" = set; then :
11771  withval=$with_isl;
11772fi
11773
11774case "system" in
11775build|bundled|system)
11776
11777# Check whether --with-isl_prefix was given.
11778if test "${with_isl_prefix+set}" = set; then :
11779  withval=$with_isl_prefix;
11780fi
11781
11782
11783# Check whether --with-isl_exec_prefix was given.
11784if test "${with_isl_exec_prefix+set}" = set; then :
11785  withval=$with_isl_exec_prefix;
11786fi
11787
11788esac
11789
11790# Check whether --with-isl_builddir was given.
11791if test "${with_isl_builddir+set}" = set; then :
11792  withval=$with_isl_builddir;
11793fi
11794
11795if test "x$with_isl_prefix" != "x" -a "x$with_isl_exec_prefix" = "x"; then
11796	with_isl_exec_prefix=$with_isl_prefix
11797fi
11798if test "x$with_isl_prefix" != "x" -o "x$with_isl_exec_prefix" != "x"; then
11799	if test "x$with_isl" != "x" -a "x$with_isl" != "xsystem"; then
11800		as_fn_error $? "Setting $with_isl_prefix implies use of system isl" "$LINENO" 5
11801	fi
11802	with_isl="system"
11803fi
11804if test "x$with_isl_builddir" != "x"; then
11805	if test "x$with_isl" != "x" -a "x$with_isl" != "xbuild"; then
11806		as_fn_error $? "Setting $with_isl_builddir implies use of build isl" "$LINENO" 5
11807	fi
11808	with_isl="build"
11809	isl_srcdir=`echo @abs_srcdir@ | $with_isl_builddir/config.status --file=-`
11810	{ $as_echo "$as_me:${as_lineno-$LINENO}: isl sources in $isl_srcdir" >&5
11811$as_echo "$as_me: isl sources in $isl_srcdir" >&6;}
11812fi
11813if test "x$with_isl_exec_prefix" != "x"; then
11814	export PKG_CONFIG_PATH="$with_isl_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}"
11815fi
11816case "$with_isl" in
11817build|bundled|system)
11818	;;
11819*)
11820	case "bundled" in
11821	bundled)
11822		if test -d $srcdir/.git -a \
11823			-d $srcdir/isl -a \
11824			"`cd $srcdir; git submodule status isl | cut -c1`" = '-'; then
11825			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule isl not initialized" >&5
11826$as_echo "$as_me: WARNING: git repo detected, but submodule isl not initialized" >&2;}
11827			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5
11828$as_echo "$as_me: WARNING: You may want to run" >&2;}
11829			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 	git submodule init" >&5
11830$as_echo "$as_me: WARNING: 	git submodule init" >&2;}
11831			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 	git submodule update" >&5
11832$as_echo "$as_me: WARNING: 	git submodule update" >&2;}
11833			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 	sh autogen.sh" >&5
11834$as_echo "$as_me: WARNING: 	sh autogen.sh" >&2;}
11835		fi
11836		if test -f $srcdir/isl/configure; then
11837			with_isl="bundled"
11838		else
11839			case "system" in
11840			build|bundled|system)
11841				with_isl="system"
11842				;;
11843			*)
11844				with_isl="no"
11845				;;
11846			esac
11847		fi
11848		;;
11849	*)
11850		with_isl="bundled"
11851		;;
11852	esac
11853	;;
11854esac
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which isl to use" >&5
11856$as_echo_n "checking which isl to use... " >&6; }
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_isl" >&5
11858$as_echo "$with_isl" >&6; }
11859
11860
11861
11862 if test $with_isl = bundled; then
11863  BUNDLED_ISL_TRUE=
11864  BUNDLED_ISL_FALSE='#'
11865else
11866  BUNDLED_ISL_TRUE='#'
11867  BUNDLED_ISL_FALSE=
11868fi
11869
11870
11871
11872
11873case "$with_isl" in
11874bundled)
11875	ISL_CFLAGS="-I\$(top_srcdir)/isl/include -I\$(top_builddir)/isl/include"
11876	ISL_CFLAGS="$ISL_CFLAGS"
11877	ppcg_configure_args="$ppcg_configure_args --with-isl-builddir=../isl"
11878	ppcg_configure_args="$ppcg_configure_args --with-isl=build"
11879	;;
11880build)
11881	ISL_BUILDDIR=`echo @abs_builddir@ | $with_isl_builddir/config.status --file=-`
11882	ppcg_configure_args="$ppcg_configure_args --with-isl-builddir=$ISL_BUILDDIR"
11883	ISL_CFLAGS="-I$isl_srcdir/include -I$ISL_BUILDDIR/include"
11884	ISL_CFLAGS="$ISL_CFLAGS"
11885	ISL_LIBS="$with_isl_builddir/libisl.la"
11886	;;
11887system)
11888
11889pkg_failed=no
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISL" >&5
11891$as_echo_n "checking for ISL... " >&6; }
11892
11893if test -n "$ISL_CFLAGS"; then
11894    pkg_cv_ISL_CFLAGS="$ISL_CFLAGS"
11895 elif test -n "$PKG_CONFIG"; then
11896    if test -n "$PKG_CONFIG" && \
11897    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"isl\""; } >&5
11898  ($PKG_CONFIG --exists --print-errors "isl") 2>&5
11899  ac_status=$?
11900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11901  test $ac_status = 0; }; then
11902  pkg_cv_ISL_CFLAGS=`$PKG_CONFIG --cflags "isl" 2>/dev/null`
11903		      test "x$?" != "x0" && pkg_failed=yes
11904else
11905  pkg_failed=yes
11906fi
11907 else
11908    pkg_failed=untried
11909fi
11910if test -n "$ISL_LIBS"; then
11911    pkg_cv_ISL_LIBS="$ISL_LIBS"
11912 elif test -n "$PKG_CONFIG"; then
11913    if test -n "$PKG_CONFIG" && \
11914    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"isl\""; } >&5
11915  ($PKG_CONFIG --exists --print-errors "isl") 2>&5
11916  ac_status=$?
11917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11918  test $ac_status = 0; }; then
11919  pkg_cv_ISL_LIBS=`$PKG_CONFIG --libs "isl" 2>/dev/null`
11920		      test "x$?" != "x0" && pkg_failed=yes
11921else
11922  pkg_failed=yes
11923fi
11924 else
11925    pkg_failed=untried
11926fi
11927
11928
11929
11930if test $pkg_failed = yes; then
11931   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932$as_echo "no" >&6; }
11933
11934if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11935        _pkg_short_errors_supported=yes
11936else
11937        _pkg_short_errors_supported=no
11938fi
11939        if test $_pkg_short_errors_supported = yes; then
11940	        ISL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "isl" 2>&1`
11941        else
11942	        ISL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "isl" 2>&1`
11943        fi
11944	# Put the nasty error message in config.log where it belongs
11945	echo "$ISL_PKG_ERRORS" >&5
11946
11947	as_fn_error $? "Package requirements (isl) were not met:
11948
11949$ISL_PKG_ERRORS
11950
11951Consider adjusting the PKG_CONFIG_PATH environment variable if you
11952installed software in a non-standard prefix.
11953
11954Alternatively, you may set the environment variables ISL_CFLAGS
11955and ISL_LIBS to avoid the need to call pkg-config.
11956See the pkg-config man page for more details." "$LINENO" 5
11957elif test $pkg_failed = untried; then
11958     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
11960	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11962as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11963is in your PATH or set the PKG_CONFIG environment variable to the full
11964path to pkg-config.
11965
11966Alternatively, you may set the environment variables ISL_CFLAGS
11967and ISL_LIBS to avoid the need to call pkg-config.
11968See the pkg-config man page for more details.
11969
11970To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11971See \`config.log' for more details" "$LINENO" 5; }
11972else
11973	ISL_CFLAGS=$pkg_cv_ISL_CFLAGS
11974	ISL_LIBS=$pkg_cv_ISL_LIBS
11975        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11976$as_echo "yes" >&6; }
11977
11978fi
11979esac
11980
11981
11982
11983
11984
11985# Check whether --with-pet was given.
11986if test "${with_pet+set}" = set; then :
11987  withval=$with_pet;
11988fi
11989
11990case "system" in
11991bundled|system)
11992
11993# Check whether --with-pet_prefix was given.
11994if test "${with_pet_prefix+set}" = set; then :
11995  withval=$with_pet_prefix;
11996fi
11997
11998
11999# Check whether --with-pet_exec_prefix was given.
12000if test "${with_pet_exec_prefix+set}" = set; then :
12001  withval=$with_pet_exec_prefix;
12002fi
12003
12004esac
12005
12006if test "x$with_pet_prefix" != "x" -a "x$with_pet_exec_prefix" = "x"; then
12007	with_pet_exec_prefix=$with_pet_prefix
12008fi
12009if test "x$with_pet_prefix" != "x" -o "x$with_pet_exec_prefix" != "x"; then
12010	if test "x$with_pet" != "x" -a "x$with_pet" != "xsystem"; then
12011		as_fn_error $? "Setting $with_pet_prefix implies use of system pet" "$LINENO" 5
12012	fi
12013	with_pet="system"
12014fi
12015if test "x$with_pet_builddir" != "x"; then
12016	if test "x$with_pet" != "x" -a "x$with_pet" != "xbuild"; then
12017		as_fn_error $? "Setting $with_pet_builddir implies use of build pet" "$LINENO" 5
12018	fi
12019	with_pet="build"
12020	pet_srcdir=`echo @abs_srcdir@ | $with_pet_builddir/config.status --file=-`
12021	{ $as_echo "$as_me:${as_lineno-$LINENO}: pet sources in $pet_srcdir" >&5
12022$as_echo "$as_me: pet sources in $pet_srcdir" >&6;}
12023fi
12024if test "x$with_pet_exec_prefix" != "x"; then
12025	export PKG_CONFIG_PATH="$with_pet_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}"
12026fi
12027case "$with_pet" in
12028bundled|system)
12029	;;
12030*)
12031	case "bundled" in
12032	bundled)
12033		if test -d $srcdir/.git -a \
12034			-d $srcdir/pet -a \
12035			"`cd $srcdir; git submodule status pet | cut -c1`" = '-'; then
12036			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule pet not initialized" >&5
12037$as_echo "$as_me: WARNING: git repo detected, but submodule pet not initialized" >&2;}
12038			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5
12039$as_echo "$as_me: WARNING: You may want to run" >&2;}
12040			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 	git submodule init" >&5
12041$as_echo "$as_me: WARNING: 	git submodule init" >&2;}
12042			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 	git submodule update" >&5
12043$as_echo "$as_me: WARNING: 	git submodule update" >&2;}
12044			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 	sh autogen.sh" >&5
12045$as_echo "$as_me: WARNING: 	sh autogen.sh" >&2;}
12046		fi
12047		if test -f $srcdir/pet/configure; then
12048			with_pet="bundled"
12049		else
12050			case "system" in
12051			bundled|system)
12052				with_pet="system"
12053				;;
12054			*)
12055				with_pet="no"
12056				;;
12057			esac
12058		fi
12059		;;
12060	*)
12061		with_pet="bundled"
12062		;;
12063	esac
12064	;;
12065esac
12066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which pet to use" >&5
12067$as_echo_n "checking which pet to use... " >&6; }
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pet" >&5
12069$as_echo "$with_pet" >&6; }
12070
12071
12072
12073 if test $with_pet = bundled; then
12074  BUNDLED_PET_TRUE=
12075  BUNDLED_PET_FALSE='#'
12076else
12077  BUNDLED_PET_TRUE='#'
12078  BUNDLED_PET_FALSE=
12079fi
12080
12081
12082
12083
12084case "$with_pet" in
12085bundled)
12086	PET_CFLAGS="$PET_CFLAGS -I\$(top_srcdir)/pet/include"
12087	;;
12088system)
12089
12090pkg_failed=no
12091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PET" >&5
12092$as_echo_n "checking for PET... " >&6; }
12093
12094if test -n "$PET_CFLAGS"; then
12095    pkg_cv_PET_CFLAGS="$PET_CFLAGS"
12096 elif test -n "$PKG_CONFIG"; then
12097    if test -n "$PKG_CONFIG" && \
12098    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pet\""; } >&5
12099  ($PKG_CONFIG --exists --print-errors "pet") 2>&5
12100  ac_status=$?
12101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12102  test $ac_status = 0; }; then
12103  pkg_cv_PET_CFLAGS=`$PKG_CONFIG --cflags "pet" 2>/dev/null`
12104		      test "x$?" != "x0" && pkg_failed=yes
12105else
12106  pkg_failed=yes
12107fi
12108 else
12109    pkg_failed=untried
12110fi
12111if test -n "$PET_LIBS"; then
12112    pkg_cv_PET_LIBS="$PET_LIBS"
12113 elif test -n "$PKG_CONFIG"; then
12114    if test -n "$PKG_CONFIG" && \
12115    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pet\""; } >&5
12116  ($PKG_CONFIG --exists --print-errors "pet") 2>&5
12117  ac_status=$?
12118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12119  test $ac_status = 0; }; then
12120  pkg_cv_PET_LIBS=`$PKG_CONFIG --libs "pet" 2>/dev/null`
12121		      test "x$?" != "x0" && pkg_failed=yes
12122else
12123  pkg_failed=yes
12124fi
12125 else
12126    pkg_failed=untried
12127fi
12128
12129
12130
12131if test $pkg_failed = yes; then
12132   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133$as_echo "no" >&6; }
12134
12135if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12136        _pkg_short_errors_supported=yes
12137else
12138        _pkg_short_errors_supported=no
12139fi
12140        if test $_pkg_short_errors_supported = yes; then
12141	        PET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pet" 2>&1`
12142        else
12143	        PET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pet" 2>&1`
12144        fi
12145	# Put the nasty error message in config.log where it belongs
12146	echo "$PET_PKG_ERRORS" >&5
12147
12148	as_fn_error $? "Package requirements (pet) were not met:
12149
12150$PET_PKG_ERRORS
12151
12152Consider adjusting the PKG_CONFIG_PATH environment variable if you
12153installed software in a non-standard prefix.
12154
12155Alternatively, you may set the environment variables PET_CFLAGS
12156and PET_LIBS to avoid the need to call pkg-config.
12157See the pkg-config man page for more details." "$LINENO" 5
12158elif test $pkg_failed = untried; then
12159     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160$as_echo "no" >&6; }
12161	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12163as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12164is in your PATH or set the PKG_CONFIG environment variable to the full
12165path to pkg-config.
12166
12167Alternatively, you may set the environment variables PET_CFLAGS
12168and PET_LIBS to avoid the need to call pkg-config.
12169See the pkg-config man page for more details.
12170
12171To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12172See \`config.log' for more details" "$LINENO" 5; }
12173else
12174	PET_CFLAGS=$pkg_cv_PET_CFLAGS
12175	PET_LIBS=$pkg_cv_PET_LIBS
12176        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12177$as_echo "yes" >&6; }
12178
12179fi
12180	;;
12181esac
12182
12183
12184
12185
12186# Check whether --with-polybench was given.
12187if test "${with_polybench+set}" = set; then :
12188  withval=$with_polybench;
12189	if test -f "$with_polybench/utilities/benchmark_list"; then
12190		POLYBENCH_DIR=$with_polybench
12191		extra_tests="$extra_tests polybench_test.sh"
12192	fi
12193
12194fi
12195
12196
12197
12198
12199
12200
12201	if test -f $srcdir/.git/HEAD; then
12202		GIT_HEAD="$srcdir/.git/index"
12203		GIT_REPO="$srcdir/.git"
12204		GIT_HEAD_ID=`GIT_DIR=$GIT_REPO git describe --always`
12205	elif test -f $srcdir/GIT_HEAD_ID; then
12206		GIT_HEAD_ID=`cat $srcdir/GIT_HEAD_ID`
12207	else
12208		mysrcdir=`(cd $srcdir; pwd)`
12209		head=`basename $mysrcdir | sed -e 's/.*-//'`
12210		head2=`echo $head | sed -e 's/^0-9a-f//'`
12211		head3=`echo $head2 | sed -e 's/........................................//'`
12212		if test "x$head3" = "x" -a "x$head" = "x$head2"; then
12213			GIT_HEAD_ID="$head"
12214		else
12215			GIT_HEAD_ID="UNKNOWN"
12216		fi
12217	fi
12218	if test -z "$GIT_REPO" ; then
12219		GIT_HEAD_VERSION="$GIT_HEAD_ID"
12220	else
12221		GIT_HEAD_VERSION="\`GIT_DIR=$GIT_REPO git describe --always\`"
12222	fi
12223
12224echo '#define GIT_HEAD_ID "'$GIT_HEAD_ID'"' > gitversion.h
12225
12226ac_config_files="$ac_config_files Makefile"
12227
12228ac_config_files="$ac_config_files polybench_test.sh"
12229
12230ac_config_files="$ac_config_files opencl_test.sh"
12231
12232if test $with_isl = bundled; then
12233
12234
12235subdirs="$subdirs isl"
12236
12237fi
12238if test $with_pet = bundled; then
12239	subdirs="$subdirs pet"
12240
12241fi
12242
12243cat >confcache <<\_ACEOF
12244# This file is a shell script that caches the results of configure
12245# tests run on this system so they can be shared between configure
12246# scripts and configure runs, see configure's option --config-cache.
12247# It is not useful on other systems.  If it contains results you don't
12248# want to keep, you may remove or edit it.
12249#
12250# config.status only pays attention to the cache file if you give it
12251# the --recheck option to rerun configure.
12252#
12253# `ac_cv_env_foo' variables (set or unset) will be overridden when
12254# loading this file, other *unset* `ac_cv_foo' will be assigned the
12255# following values.
12256
12257_ACEOF
12258
12259# The following way of writing the cache mishandles newlines in values,
12260# but we know of no workaround that is simple, portable, and efficient.
12261# So, we kill variables containing newlines.
12262# Ultrix sh set writes to stderr and can't be redirected directly,
12263# and sets the high bit in the cache file unless we assign to the vars.
12264(
12265  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12266    eval ac_val=\$$ac_var
12267    case $ac_val in #(
12268    *${as_nl}*)
12269      case $ac_var in #(
12270      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12271$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12272      esac
12273      case $ac_var in #(
12274      _ | IFS | as_nl) ;; #(
12275      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12276      *) { eval $ac_var=; unset $ac_var;} ;;
12277      esac ;;
12278    esac
12279  done
12280
12281  (set) 2>&1 |
12282    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12283    *${as_nl}ac_space=\ *)
12284      # `set' does not quote correctly, so add quotes: double-quote
12285      # substitution turns \\\\ into \\, and sed turns \\ into \.
12286      sed -n \
12287	"s/'/'\\\\''/g;
12288	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12289      ;; #(
12290    *)
12291      # `set' quotes correctly as required by POSIX, so do not add quotes.
12292      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12293      ;;
12294    esac |
12295    sort
12296) |
12297  sed '
12298     /^ac_cv_env_/b end
12299     t clear
12300     :clear
12301     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12302     t end
12303     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12304     :end' >>confcache
12305if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12306  if test -w "$cache_file"; then
12307    if test "x$cache_file" != "x/dev/null"; then
12308      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12309$as_echo "$as_me: updating cache $cache_file" >&6;}
12310      if test ! -f "$cache_file" || test -h "$cache_file"; then
12311	cat confcache >"$cache_file"
12312      else
12313        case $cache_file in #(
12314        */* | ?:*)
12315	  mv -f confcache "$cache_file"$$ &&
12316	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12317        *)
12318	  mv -f confcache "$cache_file" ;;
12319	esac
12320      fi
12321    fi
12322  else
12323    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12324$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12325  fi
12326fi
12327rm -f confcache
12328
12329test "x$prefix" = xNONE && prefix=$ac_default_prefix
12330# Let make expand exec_prefix.
12331test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12332
12333# Transform confdefs.h into DEFS.
12334# Protect against shell expansion while executing Makefile rules.
12335# Protect against Makefile macro expansion.
12336#
12337# If the first sed substitution is executed (which looks for macros that
12338# take arguments), then branch to the quote section.  Otherwise,
12339# look for a macro that doesn't take arguments.
12340ac_script='
12341:mline
12342/\\$/{
12343 N
12344 s,\\\n,,
12345 b mline
12346}
12347t clear
12348:clear
12349s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
12350t quote
12351s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
12352t quote
12353b any
12354:quote
12355s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12356s/\[/\\&/g
12357s/\]/\\&/g
12358s/\$/$$/g
12359H
12360:any
12361${
12362	g
12363	s/^\n//
12364	s/\n/ /g
12365	p
12366}
12367'
12368DEFS=`sed -n "$ac_script" confdefs.h`
12369
12370
12371ac_libobjs=
12372ac_ltlibobjs=
12373U=
12374for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12375  # 1. Remove the extension, and $U if already installed.
12376  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12377  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12378  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12379  #    will be set to the directory where LIBOBJS objects are built.
12380  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12381  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12382done
12383LIBOBJS=$ac_libobjs
12384
12385LTLIBOBJS=$ac_ltlibobjs
12386
12387
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12389$as_echo_n "checking that generated files are newer than configure... " >&6; }
12390   if test -n "$am_sleep_pid"; then
12391     # Hide warnings about reused PIDs.
12392     wait $am_sleep_pid 2>/dev/null
12393   fi
12394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12395$as_echo "done" >&6; }
12396 if test -n "$EXEEXT"; then
12397  am__EXEEXT_TRUE=
12398  am__EXEEXT_FALSE='#'
12399else
12400  am__EXEEXT_TRUE='#'
12401  am__EXEEXT_FALSE=
12402fi
12403
12404if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12405  as_fn_error $? "conditional \"AMDEP\" was never defined.
12406Usually this means the macro was only invoked conditionally." "$LINENO" 5
12407fi
12408if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12409  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12410Usually this means the macro was only invoked conditionally." "$LINENO" 5
12411fi
12412if test -z "${BUNDLED_ISL_TRUE}" && test -z "${BUNDLED_ISL_FALSE}"; then
12413  as_fn_error $? "conditional \"BUNDLED_ISL\" was never defined.
12414Usually this means the macro was only invoked conditionally." "$LINENO" 5
12415fi
12416if test -z "${BUNDLED_PET_TRUE}" && test -z "${BUNDLED_PET_FALSE}"; then
12417  as_fn_error $? "conditional \"BUNDLED_PET\" was never defined.
12418Usually this means the macro was only invoked conditionally." "$LINENO" 5
12419fi
12420
12421: "${CONFIG_STATUS=./config.status}"
12422ac_write_fail=0
12423ac_clean_files_save=$ac_clean_files
12424ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12425{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12426$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12427as_write_fail=0
12428cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12429#! $SHELL
12430# Generated by $as_me.
12431# Run this file to recreate the current configuration.
12432# Compiler output produced by configure, useful for debugging
12433# configure, is in config.log if it exists.
12434
12435debug=false
12436ac_cs_recheck=false
12437ac_cs_silent=false
12438
12439SHELL=\${CONFIG_SHELL-$SHELL}
12440export SHELL
12441_ASEOF
12442cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12443## -------------------- ##
12444## M4sh Initialization. ##
12445## -------------------- ##
12446
12447# Be more Bourne compatible
12448DUALCASE=1; export DUALCASE # for MKS sh
12449if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12450  emulate sh
12451  NULLCMD=:
12452  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12453  # is contrary to our usage.  Disable this feature.
12454  alias -g '${1+"$@"}'='"$@"'
12455  setopt NO_GLOB_SUBST
12456else
12457  case `(set -o) 2>/dev/null` in #(
12458  *posix*) :
12459    set -o posix ;; #(
12460  *) :
12461     ;;
12462esac
12463fi
12464
12465
12466as_nl='
12467'
12468export as_nl
12469# Printing a long string crashes Solaris 7 /usr/bin/printf.
12470as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12471as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12472as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12473# Prefer a ksh shell builtin over an external printf program on Solaris,
12474# but without wasting forks for bash or zsh.
12475if test -z "$BASH_VERSION$ZSH_VERSION" \
12476    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12477  as_echo='print -r --'
12478  as_echo_n='print -rn --'
12479elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12480  as_echo='printf %s\n'
12481  as_echo_n='printf %s'
12482else
12483  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12484    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12485    as_echo_n='/usr/ucb/echo -n'
12486  else
12487    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12488    as_echo_n_body='eval
12489      arg=$1;
12490      case $arg in #(
12491      *"$as_nl"*)
12492	expr "X$arg" : "X\\(.*\\)$as_nl";
12493	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12494      esac;
12495      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12496    '
12497    export as_echo_n_body
12498    as_echo_n='sh -c $as_echo_n_body as_echo'
12499  fi
12500  export as_echo_body
12501  as_echo='sh -c $as_echo_body as_echo'
12502fi
12503
12504# The user is always right.
12505if test "${PATH_SEPARATOR+set}" != set; then
12506  PATH_SEPARATOR=:
12507  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12508    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12509      PATH_SEPARATOR=';'
12510  }
12511fi
12512
12513
12514# IFS
12515# We need space, tab and new line, in precisely that order.  Quoting is
12516# there to prevent editors from complaining about space-tab.
12517# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12518# splitting by setting IFS to empty value.)
12519IFS=" ""	$as_nl"
12520
12521# Find who we are.  Look in the path if we contain no directory separator.
12522as_myself=
12523case $0 in #((
12524  *[\\/]* ) as_myself=$0 ;;
12525  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526for as_dir in $PATH
12527do
12528  IFS=$as_save_IFS
12529  test -z "$as_dir" && as_dir=.
12530    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12531  done
12532IFS=$as_save_IFS
12533
12534     ;;
12535esac
12536# We did not find ourselves, most probably we were run as `sh COMMAND'
12537# in which case we are not to be found in the path.
12538if test "x$as_myself" = x; then
12539  as_myself=$0
12540fi
12541if test ! -f "$as_myself"; then
12542  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12543  exit 1
12544fi
12545
12546# Unset variables that we do not need and which cause bugs (e.g. in
12547# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12548# suppresses any "Segmentation fault" message there.  '((' could
12549# trigger a bug in pdksh 5.2.14.
12550for as_var in BASH_ENV ENV MAIL MAILPATH
12551do eval test x\${$as_var+set} = xset \
12552  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12553done
12554PS1='$ '
12555PS2='> '
12556PS4='+ '
12557
12558# NLS nuisances.
12559LC_ALL=C
12560export LC_ALL
12561LANGUAGE=C
12562export LANGUAGE
12563
12564# CDPATH.
12565(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12566
12567
12568# as_fn_error STATUS ERROR [LINENO LOG_FD]
12569# ----------------------------------------
12570# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12571# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12572# script with STATUS, using 1 if that was 0.
12573as_fn_error ()
12574{
12575  as_status=$1; test $as_status -eq 0 && as_status=1
12576  if test "$4"; then
12577    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12578    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12579  fi
12580  $as_echo "$as_me: error: $2" >&2
12581  as_fn_exit $as_status
12582} # as_fn_error
12583
12584
12585# as_fn_set_status STATUS
12586# -----------------------
12587# Set $? to STATUS, without forking.
12588as_fn_set_status ()
12589{
12590  return $1
12591} # as_fn_set_status
12592
12593# as_fn_exit STATUS
12594# -----------------
12595# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12596as_fn_exit ()
12597{
12598  set +e
12599  as_fn_set_status $1
12600  exit $1
12601} # as_fn_exit
12602
12603# as_fn_unset VAR
12604# ---------------
12605# Portably unset VAR.
12606as_fn_unset ()
12607{
12608  { eval $1=; unset $1;}
12609}
12610as_unset=as_fn_unset
12611# as_fn_append VAR VALUE
12612# ----------------------
12613# Append the text in VALUE to the end of the definition contained in VAR. Take
12614# advantage of any shell optimizations that allow amortized linear growth over
12615# repeated appends, instead of the typical quadratic growth present in naive
12616# implementations.
12617if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12618  eval 'as_fn_append ()
12619  {
12620    eval $1+=\$2
12621  }'
12622else
12623  as_fn_append ()
12624  {
12625    eval $1=\$$1\$2
12626  }
12627fi # as_fn_append
12628
12629# as_fn_arith ARG...
12630# ------------------
12631# Perform arithmetic evaluation on the ARGs, and store the result in the
12632# global $as_val. Take advantage of shells that can avoid forks. The arguments
12633# must be portable across $(()) and expr.
12634if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12635  eval 'as_fn_arith ()
12636  {
12637    as_val=$(( $* ))
12638  }'
12639else
12640  as_fn_arith ()
12641  {
12642    as_val=`expr "$@" || test $? -eq 1`
12643  }
12644fi # as_fn_arith
12645
12646
12647if expr a : '\(a\)' >/dev/null 2>&1 &&
12648   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12649  as_expr=expr
12650else
12651  as_expr=false
12652fi
12653
12654if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12655  as_basename=basename
12656else
12657  as_basename=false
12658fi
12659
12660if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12661  as_dirname=dirname
12662else
12663  as_dirname=false
12664fi
12665
12666as_me=`$as_basename -- "$0" ||
12667$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12668	 X"$0" : 'X\(//\)$' \| \
12669	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12670$as_echo X/"$0" |
12671    sed '/^.*\/\([^/][^/]*\)\/*$/{
12672	    s//\1/
12673	    q
12674	  }
12675	  /^X\/\(\/\/\)$/{
12676	    s//\1/
12677	    q
12678	  }
12679	  /^X\/\(\/\).*/{
12680	    s//\1/
12681	    q
12682	  }
12683	  s/.*/./; q'`
12684
12685# Avoid depending upon Character Ranges.
12686as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12687as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12688as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12689as_cr_digits='0123456789'
12690as_cr_alnum=$as_cr_Letters$as_cr_digits
12691
12692ECHO_C= ECHO_N= ECHO_T=
12693case `echo -n x` in #(((((
12694-n*)
12695  case `echo 'xy\c'` in
12696  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12697  xy)  ECHO_C='\c';;
12698  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12699       ECHO_T='	';;
12700  esac;;
12701*)
12702  ECHO_N='-n';;
12703esac
12704
12705rm -f conf$$ conf$$.exe conf$$.file
12706if test -d conf$$.dir; then
12707  rm -f conf$$.dir/conf$$.file
12708else
12709  rm -f conf$$.dir
12710  mkdir conf$$.dir 2>/dev/null
12711fi
12712if (echo >conf$$.file) 2>/dev/null; then
12713  if ln -s conf$$.file conf$$ 2>/dev/null; then
12714    as_ln_s='ln -s'
12715    # ... but there are two gotchas:
12716    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12717    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12718    # In both cases, we have to default to `cp -pR'.
12719    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12720      as_ln_s='cp -pR'
12721  elif ln conf$$.file conf$$ 2>/dev/null; then
12722    as_ln_s=ln
12723  else
12724    as_ln_s='cp -pR'
12725  fi
12726else
12727  as_ln_s='cp -pR'
12728fi
12729rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12730rmdir conf$$.dir 2>/dev/null
12731
12732
12733# as_fn_mkdir_p
12734# -------------
12735# Create "$as_dir" as a directory, including parents if necessary.
12736as_fn_mkdir_p ()
12737{
12738
12739  case $as_dir in #(
12740  -*) as_dir=./$as_dir;;
12741  esac
12742  test -d "$as_dir" || eval $as_mkdir_p || {
12743    as_dirs=
12744    while :; do
12745      case $as_dir in #(
12746      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12747      *) as_qdir=$as_dir;;
12748      esac
12749      as_dirs="'$as_qdir' $as_dirs"
12750      as_dir=`$as_dirname -- "$as_dir" ||
12751$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12752	 X"$as_dir" : 'X\(//\)[^/]' \| \
12753	 X"$as_dir" : 'X\(//\)$' \| \
12754	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12755$as_echo X"$as_dir" |
12756    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12757	    s//\1/
12758	    q
12759	  }
12760	  /^X\(\/\/\)[^/].*/{
12761	    s//\1/
12762	    q
12763	  }
12764	  /^X\(\/\/\)$/{
12765	    s//\1/
12766	    q
12767	  }
12768	  /^X\(\/\).*/{
12769	    s//\1/
12770	    q
12771	  }
12772	  s/.*/./; q'`
12773      test -d "$as_dir" && break
12774    done
12775    test -z "$as_dirs" || eval "mkdir $as_dirs"
12776  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12777
12778
12779} # as_fn_mkdir_p
12780if mkdir -p . 2>/dev/null; then
12781  as_mkdir_p='mkdir -p "$as_dir"'
12782else
12783  test -d ./-p && rmdir ./-p
12784  as_mkdir_p=false
12785fi
12786
12787
12788# as_fn_executable_p FILE
12789# -----------------------
12790# Test if FILE is an executable regular file.
12791as_fn_executable_p ()
12792{
12793  test -f "$1" && test -x "$1"
12794} # as_fn_executable_p
12795as_test_x='test -x'
12796as_executable_p=as_fn_executable_p
12797
12798# Sed expression to map a string onto a valid CPP name.
12799as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12800
12801# Sed expression to map a string onto a valid variable name.
12802as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12803
12804
12805exec 6>&1
12806## ----------------------------------- ##
12807## Main body of $CONFIG_STATUS script. ##
12808## ----------------------------------- ##
12809_ASEOF
12810test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12811
12812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12813# Save the log message, to keep $0 and so on meaningful, and to
12814# report actual input values of CONFIG_FILES etc. instead of their
12815# values after options handling.
12816ac_log="
12817This file was extended by ppcg $as_me 0.04, which was
12818generated by GNU Autoconf 2.69.  Invocation command line was
12819
12820  CONFIG_FILES    = $CONFIG_FILES
12821  CONFIG_HEADERS  = $CONFIG_HEADERS
12822  CONFIG_LINKS    = $CONFIG_LINKS
12823  CONFIG_COMMANDS = $CONFIG_COMMANDS
12824  $ $0 $@
12825
12826on `(hostname || uname -n) 2>/dev/null | sed 1q`
12827"
12828
12829_ACEOF
12830
12831case $ac_config_files in *"
12832"*) set x $ac_config_files; shift; ac_config_files=$*;;
12833esac
12834
12835
12836
12837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12838# Files that config.status was made for.
12839config_files="$ac_config_files"
12840config_commands="$ac_config_commands"
12841
12842_ACEOF
12843
12844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12845ac_cs_usage="\
12846\`$as_me' instantiates files and other configuration actions
12847from templates according to the current configuration.  Unless the files
12848and actions are specified as TAGs, all are instantiated by default.
12849
12850Usage: $0 [OPTION]... [TAG]...
12851
12852  -h, --help       print this help, then exit
12853  -V, --version    print version number and configuration settings, then exit
12854      --config     print configuration, then exit
12855  -q, --quiet, --silent
12856                   do not print progress messages
12857  -d, --debug      don't remove temporary files
12858      --recheck    update $as_me by reconfiguring in the same conditions
12859      --file=FILE[:TEMPLATE]
12860                   instantiate the configuration file FILE
12861
12862Configuration files:
12863$config_files
12864
12865Configuration commands:
12866$config_commands
12867
12868Report bugs to <isl-development@googlegroups.com>."
12869
12870_ACEOF
12871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12872ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12873ac_cs_version="\\
12874ppcg config.status 0.04
12875configured by $0, generated by GNU Autoconf 2.69,
12876  with options \\"\$ac_cs_config\\"
12877
12878Copyright (C) 2012 Free Software Foundation, Inc.
12879This config.status script is free software; the Free Software Foundation
12880gives unlimited permission to copy, distribute and modify it."
12881
12882ac_pwd='$ac_pwd'
12883srcdir='$srcdir'
12884INSTALL='$INSTALL'
12885MKDIR_P='$MKDIR_P'
12886AWK='$AWK'
12887test -n "\$AWK" || AWK=awk
12888_ACEOF
12889
12890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12891# The default lists apply if the user does not specify any file.
12892ac_need_defaults=:
12893while test $# != 0
12894do
12895  case $1 in
12896  --*=?*)
12897    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12898    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12899    ac_shift=:
12900    ;;
12901  --*=)
12902    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12903    ac_optarg=
12904    ac_shift=:
12905    ;;
12906  *)
12907    ac_option=$1
12908    ac_optarg=$2
12909    ac_shift=shift
12910    ;;
12911  esac
12912
12913  case $ac_option in
12914  # Handling of the options.
12915  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12916    ac_cs_recheck=: ;;
12917  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12918    $as_echo "$ac_cs_version"; exit ;;
12919  --config | --confi | --conf | --con | --co | --c )
12920    $as_echo "$ac_cs_config"; exit ;;
12921  --debug | --debu | --deb | --de | --d | -d )
12922    debug=: ;;
12923  --file | --fil | --fi | --f )
12924    $ac_shift
12925    case $ac_optarg in
12926    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12927    '') as_fn_error $? "missing file argument" ;;
12928    esac
12929    as_fn_append CONFIG_FILES " '$ac_optarg'"
12930    ac_need_defaults=false;;
12931  --he | --h |  --help | --hel | -h )
12932    $as_echo "$ac_cs_usage"; exit ;;
12933  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12934  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12935    ac_cs_silent=: ;;
12936
12937  # This is an error.
12938  -*) as_fn_error $? "unrecognized option: \`$1'
12939Try \`$0 --help' for more information." ;;
12940
12941  *) as_fn_append ac_config_targets " $1"
12942     ac_need_defaults=false ;;
12943
12944  esac
12945  shift
12946done
12947
12948ac_configure_extra_args=
12949
12950if $ac_cs_silent; then
12951  exec 6>/dev/null
12952  ac_configure_extra_args="$ac_configure_extra_args --silent"
12953fi
12954
12955_ACEOF
12956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12957if \$ac_cs_recheck; then
12958  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12959  shift
12960  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12961  CONFIG_SHELL='$SHELL'
12962  export CONFIG_SHELL
12963  exec "\$@"
12964fi
12965
12966_ACEOF
12967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12968exec 5>>config.log
12969{
12970  echo
12971  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12972## Running $as_me. ##
12973_ASBOX
12974  $as_echo "$ac_log"
12975} >&5
12976
12977_ACEOF
12978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12979#
12980# INIT-COMMANDS
12981#
12982AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12983
12984
12985# The HP-UX ksh and POSIX shell print the target directory to stdout
12986# if CDPATH is set.
12987(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12988
12989sed_quote_subst='$sed_quote_subst'
12990double_quote_subst='$double_quote_subst'
12991delay_variable_subst='$delay_variable_subst'
12992macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12993macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12994enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12995enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12996pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12997enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12998SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12999ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13000PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13001host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13002host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13003host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13004build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13005build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13006build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13007SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13008Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13009GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13010EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13011FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13012LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13013NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13014LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13015max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13016ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13017exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13018lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13019lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13020lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13021lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13022lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13023reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13024reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13025OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13026deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13027file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13028file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13029want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13030DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13031sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13032AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13033AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13034archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13035STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13036RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13037old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13038old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13039old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13040lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13041CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13042CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13043compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13044GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13045lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13046lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13047lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13048lt_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"`'
13049nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13050lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13051objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13052MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13053lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13054lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13055lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13056lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13057lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13058need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13059MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13060DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13061NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13062LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13063OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13064OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13065libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13066shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13067extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13068archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13069enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13070export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13071whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13072compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13073old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13074old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13075archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13076archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13077module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13078module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13079with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13080allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13081no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13082hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13083hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13084hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13085hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13086hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13087hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13088hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13089inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13090link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13091always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13092export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13093exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13094include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13095prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13096postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13097file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13098variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13099need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13100need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13101version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13102runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13103shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13104shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13105libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13106library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13107soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13108install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13109postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13110postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13111finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13112finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13113hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13114sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13115sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13116hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13117enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13118enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13119enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13120old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13121striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13122
13123LTCC='$LTCC'
13124LTCFLAGS='$LTCFLAGS'
13125compiler='$compiler_DEFAULT'
13126
13127# A function that is used when there is no print builtin or printf.
13128func_fallback_echo ()
13129{
13130  eval 'cat <<_LTECHO_EOF
13131\$1
13132_LTECHO_EOF'
13133}
13134
13135# Quote evaled strings.
13136for var in SHELL \
13137ECHO \
13138PATH_SEPARATOR \
13139SED \
13140GREP \
13141EGREP \
13142FGREP \
13143LD \
13144NM \
13145LN_S \
13146lt_SP2NL \
13147lt_NL2SP \
13148reload_flag \
13149OBJDUMP \
13150deplibs_check_method \
13151file_magic_cmd \
13152file_magic_glob \
13153want_nocaseglob \
13154DLLTOOL \
13155sharedlib_from_linklib_cmd \
13156AR \
13157AR_FLAGS \
13158archiver_list_spec \
13159STRIP \
13160RANLIB \
13161CC \
13162CFLAGS \
13163compiler \
13164lt_cv_sys_global_symbol_pipe \
13165lt_cv_sys_global_symbol_to_cdecl \
13166lt_cv_sys_global_symbol_to_c_name_address \
13167lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13168nm_file_list_spec \
13169lt_prog_compiler_no_builtin_flag \
13170lt_prog_compiler_pic \
13171lt_prog_compiler_wl \
13172lt_prog_compiler_static \
13173lt_cv_prog_compiler_c_o \
13174need_locks \
13175MANIFEST_TOOL \
13176DSYMUTIL \
13177NMEDIT \
13178LIPO \
13179OTOOL \
13180OTOOL64 \
13181shrext_cmds \
13182export_dynamic_flag_spec \
13183whole_archive_flag_spec \
13184compiler_needs_object \
13185with_gnu_ld \
13186allow_undefined_flag \
13187no_undefined_flag \
13188hardcode_libdir_flag_spec \
13189hardcode_libdir_separator \
13190exclude_expsyms \
13191include_expsyms \
13192file_list_spec \
13193variables_saved_for_relink \
13194libname_spec \
13195library_names_spec \
13196soname_spec \
13197install_override_mode \
13198finish_eval \
13199old_striplib \
13200striplib; do
13201    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13202    *[\\\\\\\`\\"\\\$]*)
13203      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13204      ;;
13205    *)
13206      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13207      ;;
13208    esac
13209done
13210
13211# Double-quote double-evaled strings.
13212for var in reload_cmds \
13213old_postinstall_cmds \
13214old_postuninstall_cmds \
13215old_archive_cmds \
13216extract_expsyms_cmds \
13217old_archive_from_new_cmds \
13218old_archive_from_expsyms_cmds \
13219archive_cmds \
13220archive_expsym_cmds \
13221module_cmds \
13222module_expsym_cmds \
13223export_symbols_cmds \
13224prelink_cmds \
13225postlink_cmds \
13226postinstall_cmds \
13227postuninstall_cmds \
13228finish_cmds \
13229sys_lib_search_path_spec \
13230sys_lib_dlsearch_path_spec; do
13231    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13232    *[\\\\\\\`\\"\\\$]*)
13233      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13234      ;;
13235    *)
13236      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13237      ;;
13238    esac
13239done
13240
13241ac_aux_dir='$ac_aux_dir'
13242xsi_shell='$xsi_shell'
13243lt_shell_append='$lt_shell_append'
13244
13245# See if we are running on zsh, and set the options which allow our
13246# commands through without removal of \ escapes INIT.
13247if test -n "\${ZSH_VERSION+set}" ; then
13248   setopt NO_GLOB_SUBST
13249fi
13250
13251
13252    PACKAGE='$PACKAGE'
13253    VERSION='$VERSION'
13254    TIMESTAMP='$TIMESTAMP'
13255    RM='$RM'
13256    ofile='$ofile'
13257
13258
13259
13260
13261_ACEOF
13262
13263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13264
13265# Handling of arguments.
13266for ac_config_target in $ac_config_targets
13267do
13268  case $ac_config_target in
13269    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13270    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13271    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13272    "polybench_test.sh") CONFIG_FILES="$CONFIG_FILES polybench_test.sh" ;;
13273    "opencl_test.sh") CONFIG_FILES="$CONFIG_FILES opencl_test.sh" ;;
13274
13275  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13276  esac
13277done
13278
13279
13280# If the user did not use the arguments to specify the items to instantiate,
13281# then the envvar interface is used.  Set only those that are not.
13282# We use the long form for the default assignment because of an extremely
13283# bizarre bug on SunOS 4.1.3.
13284if $ac_need_defaults; then
13285  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13286  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13287fi
13288
13289# Have a temporary directory for convenience.  Make it in the build tree
13290# simply because there is no reason against having it here, and in addition,
13291# creating and moving files from /tmp can sometimes cause problems.
13292# Hook for its removal unless debugging.
13293# Note that there is a small window in which the directory will not be cleaned:
13294# after its creation but before its name has been assigned to `$tmp'.
13295$debug ||
13296{
13297  tmp= ac_tmp=
13298  trap 'exit_status=$?
13299  : "${ac_tmp:=$tmp}"
13300  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13301' 0
13302  trap 'as_fn_exit 1' 1 2 13 15
13303}
13304# Create a (secure) tmp directory for tmp files.
13305
13306{
13307  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13308  test -d "$tmp"
13309}  ||
13310{
13311  tmp=./conf$$-$RANDOM
13312  (umask 077 && mkdir "$tmp")
13313} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13314ac_tmp=$tmp
13315
13316# Set up the scripts for CONFIG_FILES section.
13317# No need to generate them if there are no CONFIG_FILES.
13318# This happens for instance with `./config.status config.h'.
13319if test -n "$CONFIG_FILES"; then
13320
13321
13322ac_cr=`echo X | tr X '\015'`
13323# On cygwin, bash can eat \r inside `` if the user requested igncr.
13324# But we know of no other shell where ac_cr would be empty at this
13325# point, so we can use a bashism as a fallback.
13326if test "x$ac_cr" = x; then
13327  eval ac_cr=\$\'\\r\'
13328fi
13329ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13330if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13331  ac_cs_awk_cr='\\r'
13332else
13333  ac_cs_awk_cr=$ac_cr
13334fi
13335
13336echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13337_ACEOF
13338
13339
13340{
13341  echo "cat >conf$$subs.awk <<_ACEOF" &&
13342  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13343  echo "_ACEOF"
13344} >conf$$subs.sh ||
13345  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13346ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13347ac_delim='%!_!# '
13348for ac_last_try in false false false false false :; do
13349  . ./conf$$subs.sh ||
13350    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13351
13352  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13353  if test $ac_delim_n = $ac_delim_num; then
13354    break
13355  elif $ac_last_try; then
13356    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13357  else
13358    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13359  fi
13360done
13361rm -f conf$$subs.sh
13362
13363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13364cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13365_ACEOF
13366sed -n '
13367h
13368s/^/S["/; s/!.*/"]=/
13369p
13370g
13371s/^[^!]*!//
13372:repl
13373t repl
13374s/'"$ac_delim"'$//
13375t delim
13376:nl
13377h
13378s/\(.\{148\}\)..*/\1/
13379t more1
13380s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13381p
13382n
13383b repl
13384:more1
13385s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13386p
13387g
13388s/.\{148\}//
13389t nl
13390:delim
13391h
13392s/\(.\{148\}\)..*/\1/
13393t more2
13394s/["\\]/\\&/g; s/^/"/; s/$/"/
13395p
13396b
13397:more2
13398s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13399p
13400g
13401s/.\{148\}//
13402t delim
13403' <conf$$subs.awk | sed '
13404/^[^""]/{
13405  N
13406  s/\n//
13407}
13408' >>$CONFIG_STATUS || ac_write_fail=1
13409rm -f conf$$subs.awk
13410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13411_ACAWK
13412cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13413  for (key in S) S_is_set[key] = 1
13414  FS = ""
13415
13416}
13417{
13418  line = $ 0
13419  nfields = split(line, field, "@")
13420  substed = 0
13421  len = length(field[1])
13422  for (i = 2; i < nfields; i++) {
13423    key = field[i]
13424    keylen = length(key)
13425    if (S_is_set[key]) {
13426      value = S[key]
13427      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13428      len += length(value) + length(field[++i])
13429      substed = 1
13430    } else
13431      len += 1 + keylen
13432  }
13433
13434  print line
13435}
13436
13437_ACAWK
13438_ACEOF
13439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13440if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13441  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13442else
13443  cat
13444fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13445  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13446_ACEOF
13447
13448# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13449# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13450# trailing colons and then remove the whole line if VPATH becomes empty
13451# (actually we leave an empty line to preserve line numbers).
13452if test "x$srcdir" = x.; then
13453  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13454h
13455s///
13456s/^/:/
13457s/[	 ]*$/:/
13458s/:\$(srcdir):/:/g
13459s/:\${srcdir}:/:/g
13460s/:@srcdir@:/:/g
13461s/^:*//
13462s/:*$//
13463x
13464s/\(=[	 ]*\).*/\1/
13465G
13466s/\n//
13467s/^[^=]*=[	 ]*$//
13468}'
13469fi
13470
13471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13472fi # test -n "$CONFIG_FILES"
13473
13474
13475eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
13476shift
13477for ac_tag
13478do
13479  case $ac_tag in
13480  :[FHLC]) ac_mode=$ac_tag; continue;;
13481  esac
13482  case $ac_mode$ac_tag in
13483  :[FHL]*:*);;
13484  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13485  :[FH]-) ac_tag=-:-;;
13486  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13487  esac
13488  ac_save_IFS=$IFS
13489  IFS=:
13490  set x $ac_tag
13491  IFS=$ac_save_IFS
13492  shift
13493  ac_file=$1
13494  shift
13495
13496  case $ac_mode in
13497  :L) ac_source=$1;;
13498  :[FH])
13499    ac_file_inputs=
13500    for ac_f
13501    do
13502      case $ac_f in
13503      -) ac_f="$ac_tmp/stdin";;
13504      *) # Look for the file first in the build tree, then in the source tree
13505	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13506	 # because $ac_f cannot contain `:'.
13507	 test -f "$ac_f" ||
13508	   case $ac_f in
13509	   [\\/$]*) false;;
13510	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13511	   esac ||
13512	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13513      esac
13514      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13515      as_fn_append ac_file_inputs " '$ac_f'"
13516    done
13517
13518    # Let's still pretend it is `configure' which instantiates (i.e., don't
13519    # use $as_me), people would be surprised to read:
13520    #    /* config.h.  Generated by config.status.  */
13521    configure_input='Generated from '`
13522	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13523	`' by configure.'
13524    if test x"$ac_file" != x-; then
13525      configure_input="$ac_file.  $configure_input"
13526      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13527$as_echo "$as_me: creating $ac_file" >&6;}
13528    fi
13529    # Neutralize special characters interpreted by sed in replacement strings.
13530    case $configure_input in #(
13531    *\&* | *\|* | *\\* )
13532       ac_sed_conf_input=`$as_echo "$configure_input" |
13533       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13534    *) ac_sed_conf_input=$configure_input;;
13535    esac
13536
13537    case $ac_tag in
13538    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13539      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13540    esac
13541    ;;
13542  esac
13543
13544  ac_dir=`$as_dirname -- "$ac_file" ||
13545$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13546	 X"$ac_file" : 'X\(//\)[^/]' \| \
13547	 X"$ac_file" : 'X\(//\)$' \| \
13548	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13549$as_echo X"$ac_file" |
13550    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13551	    s//\1/
13552	    q
13553	  }
13554	  /^X\(\/\/\)[^/].*/{
13555	    s//\1/
13556	    q
13557	  }
13558	  /^X\(\/\/\)$/{
13559	    s//\1/
13560	    q
13561	  }
13562	  /^X\(\/\).*/{
13563	    s//\1/
13564	    q
13565	  }
13566	  s/.*/./; q'`
13567  as_dir="$ac_dir"; as_fn_mkdir_p
13568  ac_builddir=.
13569
13570case "$ac_dir" in
13571.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13572*)
13573  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13574  # A ".." for each directory in $ac_dir_suffix.
13575  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13576  case $ac_top_builddir_sub in
13577  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13578  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13579  esac ;;
13580esac
13581ac_abs_top_builddir=$ac_pwd
13582ac_abs_builddir=$ac_pwd$ac_dir_suffix
13583# for backward compatibility:
13584ac_top_builddir=$ac_top_build_prefix
13585
13586case $srcdir in
13587  .)  # We are building in place.
13588    ac_srcdir=.
13589    ac_top_srcdir=$ac_top_builddir_sub
13590    ac_abs_top_srcdir=$ac_pwd ;;
13591  [\\/]* | ?:[\\/]* )  # Absolute name.
13592    ac_srcdir=$srcdir$ac_dir_suffix;
13593    ac_top_srcdir=$srcdir
13594    ac_abs_top_srcdir=$srcdir ;;
13595  *) # Relative name.
13596    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13597    ac_top_srcdir=$ac_top_build_prefix$srcdir
13598    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13599esac
13600ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13601
13602
13603  case $ac_mode in
13604  :F)
13605  #
13606  # CONFIG_FILE
13607  #
13608
13609  case $INSTALL in
13610  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13611  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13612  esac
13613  ac_MKDIR_P=$MKDIR_P
13614  case $MKDIR_P in
13615  [\\/$]* | ?:[\\/]* ) ;;
13616  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13617  esac
13618_ACEOF
13619
13620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13621# If the template does not know about datarootdir, expand it.
13622# FIXME: This hack should be removed a few years after 2.60.
13623ac_datarootdir_hack=; ac_datarootdir_seen=
13624ac_sed_dataroot='
13625/datarootdir/ {
13626  p
13627  q
13628}
13629/@datadir@/p
13630/@docdir@/p
13631/@infodir@/p
13632/@localedir@/p
13633/@mandir@/p'
13634case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13635*datarootdir*) ac_datarootdir_seen=yes;;
13636*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13637  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13638$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13639_ACEOF
13640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13641  ac_datarootdir_hack='
13642  s&@datadir@&$datadir&g
13643  s&@docdir@&$docdir&g
13644  s&@infodir@&$infodir&g
13645  s&@localedir@&$localedir&g
13646  s&@mandir@&$mandir&g
13647  s&\\\${datarootdir}&$datarootdir&g' ;;
13648esac
13649_ACEOF
13650
13651# Neutralize VPATH when `$srcdir' = `.'.
13652# Shell code in configure.ac might set extrasub.
13653# FIXME: do we really want to maintain this feature?
13654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13655ac_sed_extra="$ac_vpsub
13656$extrasub
13657_ACEOF
13658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13659:t
13660/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13661s|@configure_input@|$ac_sed_conf_input|;t t
13662s&@top_builddir@&$ac_top_builddir_sub&;t t
13663s&@top_build_prefix@&$ac_top_build_prefix&;t t
13664s&@srcdir@&$ac_srcdir&;t t
13665s&@abs_srcdir@&$ac_abs_srcdir&;t t
13666s&@top_srcdir@&$ac_top_srcdir&;t t
13667s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13668s&@builddir@&$ac_builddir&;t t
13669s&@abs_builddir@&$ac_abs_builddir&;t t
13670s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13671s&@INSTALL@&$ac_INSTALL&;t t
13672s&@MKDIR_P@&$ac_MKDIR_P&;t t
13673$ac_datarootdir_hack
13674"
13675eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13676  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13677
13678test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13679  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13680  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13681      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13682  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13683which seems to be undefined.  Please make sure it is defined" >&5
13684$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13685which seems to be undefined.  Please make sure it is defined" >&2;}
13686
13687  rm -f "$ac_tmp/stdin"
13688  case $ac_file in
13689  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13690  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13691  esac \
13692  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13693 ;;
13694
13695
13696  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13697$as_echo "$as_me: executing $ac_file commands" >&6;}
13698 ;;
13699  esac
13700
13701
13702  case $ac_file$ac_mode in
13703    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13704  # Older Autoconf quotes --file arguments for eval, but not when files
13705  # are listed without --file.  Let's play safe and only enable the eval
13706  # if we detect the quoting.
13707  case $CONFIG_FILES in
13708  *\'*) eval set x "$CONFIG_FILES" ;;
13709  *)   set x $CONFIG_FILES ;;
13710  esac
13711  shift
13712  for mf
13713  do
13714    # Strip MF so we end up with the name of the file.
13715    mf=`echo "$mf" | sed -e 's/:.*$//'`
13716    # Check whether this is an Automake generated Makefile or not.
13717    # We used to match only the files named 'Makefile.in', but
13718    # some people rename them; so instead we look at the file content.
13719    # Grep'ing the first line is not enough: some people post-process
13720    # each Makefile.in and add a new line on top of each file to say so.
13721    # Grep'ing the whole file is not good either: AIX grep has a line
13722    # limit of 2048, but all sed's we know have understand at least 4000.
13723    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13724      dirpart=`$as_dirname -- "$mf" ||
13725$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13726	 X"$mf" : 'X\(//\)[^/]' \| \
13727	 X"$mf" : 'X\(//\)$' \| \
13728	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13729$as_echo X"$mf" |
13730    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13731	    s//\1/
13732	    q
13733	  }
13734	  /^X\(\/\/\)[^/].*/{
13735	    s//\1/
13736	    q
13737	  }
13738	  /^X\(\/\/\)$/{
13739	    s//\1/
13740	    q
13741	  }
13742	  /^X\(\/\).*/{
13743	    s//\1/
13744	    q
13745	  }
13746	  s/.*/./; q'`
13747    else
13748      continue
13749    fi
13750    # Extract the definition of DEPDIR, am__include, and am__quote
13751    # from the Makefile without running 'make'.
13752    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13753    test -z "$DEPDIR" && continue
13754    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13755    test -z "$am__include" && continue
13756    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13757    # Find all dependency output files, they are included files with
13758    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13759    # simplest approach to changing $(DEPDIR) to its actual value in the
13760    # expansion.
13761    for file in `sed -n "
13762      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13763	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13764      # Make sure the directory exists.
13765      test -f "$dirpart/$file" && continue
13766      fdir=`$as_dirname -- "$file" ||
13767$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13768	 X"$file" : 'X\(//\)[^/]' \| \
13769	 X"$file" : 'X\(//\)$' \| \
13770	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13771$as_echo X"$file" |
13772    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13773	    s//\1/
13774	    q
13775	  }
13776	  /^X\(\/\/\)[^/].*/{
13777	    s//\1/
13778	    q
13779	  }
13780	  /^X\(\/\/\)$/{
13781	    s//\1/
13782	    q
13783	  }
13784	  /^X\(\/\).*/{
13785	    s//\1/
13786	    q
13787	  }
13788	  s/.*/./; q'`
13789      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13790      # echo "creating $dirpart/$file"
13791      echo '# dummy' > "$dirpart/$file"
13792    done
13793  done
13794}
13795 ;;
13796    "libtool":C)
13797
13798    # See if we are running on zsh, and set the options which allow our
13799    # commands through without removal of \ escapes.
13800    if test -n "${ZSH_VERSION+set}" ; then
13801      setopt NO_GLOB_SUBST
13802    fi
13803
13804    cfgfile="${ofile}T"
13805    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13806    $RM "$cfgfile"
13807
13808    cat <<_LT_EOF >> "$cfgfile"
13809#! $SHELL
13810
13811# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13812# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13813# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13814# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13815#
13816#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13817#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13818#                 Foundation, Inc.
13819#   Written by Gordon Matzigkeit, 1996
13820#
13821#   This file is part of GNU Libtool.
13822#
13823# GNU Libtool is free software; you can redistribute it and/or
13824# modify it under the terms of the GNU General Public License as
13825# published by the Free Software Foundation; either version 2 of
13826# the License, or (at your option) any later version.
13827#
13828# As a special exception to the GNU General Public License,
13829# if you distribute this file as part of a program or library that
13830# is built using GNU Libtool, you may include this file under the
13831# same distribution terms that you use for the rest of that program.
13832#
13833# GNU Libtool is distributed in the hope that it will be useful,
13834# but WITHOUT ANY WARRANTY; without even the implied warranty of
13835# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13836# GNU General Public License for more details.
13837#
13838# You should have received a copy of the GNU General Public License
13839# along with GNU Libtool; see the file COPYING.  If not, a copy
13840# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13841# obtained by writing to the Free Software Foundation, Inc.,
13842# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13843
13844
13845# The names of the tagged configurations supported by this script.
13846available_tags=""
13847
13848# ### BEGIN LIBTOOL CONFIG
13849
13850# Which release of libtool.m4 was used?
13851macro_version=$macro_version
13852macro_revision=$macro_revision
13853
13854# Whether or not to build shared libraries.
13855build_libtool_libs=$enable_shared
13856
13857# Whether or not to build static libraries.
13858build_old_libs=$enable_static
13859
13860# What type of objects to build.
13861pic_mode=$pic_mode
13862
13863# Whether or not to optimize for fast installation.
13864fast_install=$enable_fast_install
13865
13866# Shell to use when invoking shell scripts.
13867SHELL=$lt_SHELL
13868
13869# An echo program that protects backslashes.
13870ECHO=$lt_ECHO
13871
13872# The PATH separator for the build system.
13873PATH_SEPARATOR=$lt_PATH_SEPARATOR
13874
13875# The host system.
13876host_alias=$host_alias
13877host=$host
13878host_os=$host_os
13879
13880# The build system.
13881build_alias=$build_alias
13882build=$build
13883build_os=$build_os
13884
13885# A sed program that does not truncate output.
13886SED=$lt_SED
13887
13888# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13889Xsed="\$SED -e 1s/^X//"
13890
13891# A grep program that handles long lines.
13892GREP=$lt_GREP
13893
13894# An ERE matcher.
13895EGREP=$lt_EGREP
13896
13897# A literal string matcher.
13898FGREP=$lt_FGREP
13899
13900# A BSD- or MS-compatible name lister.
13901NM=$lt_NM
13902
13903# Whether we need soft or hard links.
13904LN_S=$lt_LN_S
13905
13906# What is the maximum length of a command?
13907max_cmd_len=$max_cmd_len
13908
13909# Object file suffix (normally "o").
13910objext=$ac_objext
13911
13912# Executable file suffix (normally "").
13913exeext=$exeext
13914
13915# whether the shell understands "unset".
13916lt_unset=$lt_unset
13917
13918# turn spaces into newlines.
13919SP2NL=$lt_lt_SP2NL
13920
13921# turn newlines into spaces.
13922NL2SP=$lt_lt_NL2SP
13923
13924# convert \$build file names to \$host format.
13925to_host_file_cmd=$lt_cv_to_host_file_cmd
13926
13927# convert \$build files to toolchain format.
13928to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13929
13930# An object symbol dumper.
13931OBJDUMP=$lt_OBJDUMP
13932
13933# Method to check whether dependent libraries are shared objects.
13934deplibs_check_method=$lt_deplibs_check_method
13935
13936# Command to use when deplibs_check_method = "file_magic".
13937file_magic_cmd=$lt_file_magic_cmd
13938
13939# How to find potential files when deplibs_check_method = "file_magic".
13940file_magic_glob=$lt_file_magic_glob
13941
13942# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13943want_nocaseglob=$lt_want_nocaseglob
13944
13945# DLL creation program.
13946DLLTOOL=$lt_DLLTOOL
13947
13948# Command to associate shared and link libraries.
13949sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13950
13951# The archiver.
13952AR=$lt_AR
13953
13954# Flags to create an archive.
13955AR_FLAGS=$lt_AR_FLAGS
13956
13957# How to feed a file listing to the archiver.
13958archiver_list_spec=$lt_archiver_list_spec
13959
13960# A symbol stripping program.
13961STRIP=$lt_STRIP
13962
13963# Commands used to install an old-style archive.
13964RANLIB=$lt_RANLIB
13965old_postinstall_cmds=$lt_old_postinstall_cmds
13966old_postuninstall_cmds=$lt_old_postuninstall_cmds
13967
13968# Whether to use a lock for old archive extraction.
13969lock_old_archive_extraction=$lock_old_archive_extraction
13970
13971# A C compiler.
13972LTCC=$lt_CC
13973
13974# LTCC compiler flags.
13975LTCFLAGS=$lt_CFLAGS
13976
13977# Take the output of nm and produce a listing of raw symbols and C names.
13978global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13979
13980# Transform the output of nm in a proper C declaration.
13981global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13982
13983# Transform the output of nm in a C name address pair.
13984global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13985
13986# Transform the output of nm in a C name address pair when lib prefix is needed.
13987global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13988
13989# Specify filename containing input files for \$NM.
13990nm_file_list_spec=$lt_nm_file_list_spec
13991
13992# The root where to search for dependent libraries,and in which our libraries should be installed.
13993lt_sysroot=$lt_sysroot
13994
13995# The name of the directory that contains temporary libtool files.
13996objdir=$objdir
13997
13998# Used to examine libraries when file_magic_cmd begins with "file".
13999MAGIC_CMD=$MAGIC_CMD
14000
14001# Must we lock files when doing compilation?
14002need_locks=$lt_need_locks
14003
14004# Manifest tool.
14005MANIFEST_TOOL=$lt_MANIFEST_TOOL
14006
14007# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14008DSYMUTIL=$lt_DSYMUTIL
14009
14010# Tool to change global to local symbols on Mac OS X.
14011NMEDIT=$lt_NMEDIT
14012
14013# Tool to manipulate fat objects and archives on Mac OS X.
14014LIPO=$lt_LIPO
14015
14016# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14017OTOOL=$lt_OTOOL
14018
14019# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14020OTOOL64=$lt_OTOOL64
14021
14022# Old archive suffix (normally "a").
14023libext=$libext
14024
14025# Shared library suffix (normally ".so").
14026shrext_cmds=$lt_shrext_cmds
14027
14028# The commands to extract the exported symbol list from a shared archive.
14029extract_expsyms_cmds=$lt_extract_expsyms_cmds
14030
14031# Variables whose values should be saved in libtool wrapper scripts and
14032# restored at link time.
14033variables_saved_for_relink=$lt_variables_saved_for_relink
14034
14035# Do we need the "lib" prefix for modules?
14036need_lib_prefix=$need_lib_prefix
14037
14038# Do we need a version for libraries?
14039need_version=$need_version
14040
14041# Library versioning type.
14042version_type=$version_type
14043
14044# Shared library runtime path variable.
14045runpath_var=$runpath_var
14046
14047# Shared library path variable.
14048shlibpath_var=$shlibpath_var
14049
14050# Is shlibpath searched before the hard-coded library search path?
14051shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14052
14053# Format of library name prefix.
14054libname_spec=$lt_libname_spec
14055
14056# List of archive names.  First name is the real one, the rest are links.
14057# The last name is the one that the linker finds with -lNAME
14058library_names_spec=$lt_library_names_spec
14059
14060# The coded name of the library, if different from the real name.
14061soname_spec=$lt_soname_spec
14062
14063# Permission mode override for installation of shared libraries.
14064install_override_mode=$lt_install_override_mode
14065
14066# Command to use after installation of a shared archive.
14067postinstall_cmds=$lt_postinstall_cmds
14068
14069# Command to use after uninstallation of a shared archive.
14070postuninstall_cmds=$lt_postuninstall_cmds
14071
14072# Commands used to finish a libtool library installation in a directory.
14073finish_cmds=$lt_finish_cmds
14074
14075# As "finish_cmds", except a single script fragment to be evaled but
14076# not shown.
14077finish_eval=$lt_finish_eval
14078
14079# Whether we should hardcode library paths into libraries.
14080hardcode_into_libs=$hardcode_into_libs
14081
14082# Compile-time system search path for libraries.
14083sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14084
14085# Run-time system search path for libraries.
14086sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14087
14088# Whether dlopen is supported.
14089dlopen_support=$enable_dlopen
14090
14091# Whether dlopen of programs is supported.
14092dlopen_self=$enable_dlopen_self
14093
14094# Whether dlopen of statically linked programs is supported.
14095dlopen_self_static=$enable_dlopen_self_static
14096
14097# Commands to strip libraries.
14098old_striplib=$lt_old_striplib
14099striplib=$lt_striplib
14100
14101
14102# The linker used to build libraries.
14103LD=$lt_LD
14104
14105# How to create reloadable object files.
14106reload_flag=$lt_reload_flag
14107reload_cmds=$lt_reload_cmds
14108
14109# Commands used to build an old-style archive.
14110old_archive_cmds=$lt_old_archive_cmds
14111
14112# A language specific compiler.
14113CC=$lt_compiler
14114
14115# Is the compiler the GNU compiler?
14116with_gcc=$GCC
14117
14118# Compiler flag to turn off builtin functions.
14119no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14120
14121# Additional compiler flags for building library objects.
14122pic_flag=$lt_lt_prog_compiler_pic
14123
14124# How to pass a linker flag through the compiler.
14125wl=$lt_lt_prog_compiler_wl
14126
14127# Compiler flag to prevent dynamic linking.
14128link_static_flag=$lt_lt_prog_compiler_static
14129
14130# Does compiler simultaneously support -c and -o options?
14131compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14132
14133# Whether or not to add -lc for building shared libraries.
14134build_libtool_need_lc=$archive_cmds_need_lc
14135
14136# Whether or not to disallow shared libs when runtime libs are static.
14137allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14138
14139# Compiler flag to allow reflexive dlopens.
14140export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14141
14142# Compiler flag to generate shared objects directly from archives.
14143whole_archive_flag_spec=$lt_whole_archive_flag_spec
14144
14145# Whether the compiler copes with passing no objects directly.
14146compiler_needs_object=$lt_compiler_needs_object
14147
14148# Create an old-style archive from a shared archive.
14149old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14150
14151# Create a temporary old-style archive to link instead of a shared archive.
14152old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14153
14154# Commands used to build a shared archive.
14155archive_cmds=$lt_archive_cmds
14156archive_expsym_cmds=$lt_archive_expsym_cmds
14157
14158# Commands used to build a loadable module if different from building
14159# a shared archive.
14160module_cmds=$lt_module_cmds
14161module_expsym_cmds=$lt_module_expsym_cmds
14162
14163# Whether we are building with GNU ld or not.
14164with_gnu_ld=$lt_with_gnu_ld
14165
14166# Flag that allows shared libraries with undefined symbols to be built.
14167allow_undefined_flag=$lt_allow_undefined_flag
14168
14169# Flag that enforces no undefined symbols.
14170no_undefined_flag=$lt_no_undefined_flag
14171
14172# Flag to hardcode \$libdir into a binary during linking.
14173# This must work even if \$libdir does not exist
14174hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14175
14176# Whether we need a single "-rpath" flag with a separated argument.
14177hardcode_libdir_separator=$lt_hardcode_libdir_separator
14178
14179# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14180# DIR into the resulting binary.
14181hardcode_direct=$hardcode_direct
14182
14183# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14184# DIR into the resulting binary and the resulting library dependency is
14185# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14186# library is relocated.
14187hardcode_direct_absolute=$hardcode_direct_absolute
14188
14189# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14190# into the resulting binary.
14191hardcode_minus_L=$hardcode_minus_L
14192
14193# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14194# into the resulting binary.
14195hardcode_shlibpath_var=$hardcode_shlibpath_var
14196
14197# Set to "yes" if building a shared library automatically hardcodes DIR
14198# into the library and all subsequent libraries and executables linked
14199# against it.
14200hardcode_automatic=$hardcode_automatic
14201
14202# Set to yes if linker adds runtime paths of dependent libraries
14203# to runtime path list.
14204inherit_rpath=$inherit_rpath
14205
14206# Whether libtool must link a program against all its dependency libraries.
14207link_all_deplibs=$link_all_deplibs
14208
14209# Set to "yes" if exported symbols are required.
14210always_export_symbols=$always_export_symbols
14211
14212# The commands to list exported symbols.
14213export_symbols_cmds=$lt_export_symbols_cmds
14214
14215# Symbols that should not be listed in the preloaded symbols.
14216exclude_expsyms=$lt_exclude_expsyms
14217
14218# Symbols that must always be exported.
14219include_expsyms=$lt_include_expsyms
14220
14221# Commands necessary for linking programs (against libraries) with templates.
14222prelink_cmds=$lt_prelink_cmds
14223
14224# Commands necessary for finishing linking programs.
14225postlink_cmds=$lt_postlink_cmds
14226
14227# Specify filename containing input files.
14228file_list_spec=$lt_file_list_spec
14229
14230# How to hardcode a shared library path into an executable.
14231hardcode_action=$hardcode_action
14232
14233# ### END LIBTOOL CONFIG
14234
14235_LT_EOF
14236
14237  case $host_os in
14238  aix3*)
14239    cat <<\_LT_EOF >> "$cfgfile"
14240# AIX sometimes has problems with the GCC collect2 program.  For some
14241# reason, if we set the COLLECT_NAMES environment variable, the problems
14242# vanish in a puff of smoke.
14243if test "X${COLLECT_NAMES+set}" != Xset; then
14244  COLLECT_NAMES=
14245  export COLLECT_NAMES
14246fi
14247_LT_EOF
14248    ;;
14249  esac
14250
14251
14252ltmain="$ac_aux_dir/ltmain.sh"
14253
14254
14255  # We use sed instead of cat because bash on DJGPP gets confused if
14256  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14257  # text mode, it properly converts lines to CR/LF.  This bash problem
14258  # is reportedly fixed, but why not run on old versions too?
14259  sed '$q' "$ltmain" >> "$cfgfile" \
14260     || (rm -f "$cfgfile"; exit 1)
14261
14262  if test x"$xsi_shell" = xyes; then
14263  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14264func_dirname ()\
14265{\
14266\    case ${1} in\
14267\      */*) func_dirname_result="${1%/*}${2}" ;;\
14268\      *  ) func_dirname_result="${3}" ;;\
14269\    esac\
14270} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14271  && mv -f "$cfgfile.tmp" "$cfgfile" \
14272    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14273test 0 -eq $? || _lt_function_replace_fail=:
14274
14275
14276  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14277func_basename ()\
14278{\
14279\    func_basename_result="${1##*/}"\
14280} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14281  && mv -f "$cfgfile.tmp" "$cfgfile" \
14282    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14283test 0 -eq $? || _lt_function_replace_fail=:
14284
14285
14286  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14287func_dirname_and_basename ()\
14288{\
14289\    case ${1} in\
14290\      */*) func_dirname_result="${1%/*}${2}" ;;\
14291\      *  ) func_dirname_result="${3}" ;;\
14292\    esac\
14293\    func_basename_result="${1##*/}"\
14294} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14295  && mv -f "$cfgfile.tmp" "$cfgfile" \
14296    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14297test 0 -eq $? || _lt_function_replace_fail=:
14298
14299
14300  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14301func_stripname ()\
14302{\
14303\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14304\    # positional parameters, so assign one to ordinary parameter first.\
14305\    func_stripname_result=${3}\
14306\    func_stripname_result=${func_stripname_result#"${1}"}\
14307\    func_stripname_result=${func_stripname_result%"${2}"}\
14308} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14309  && mv -f "$cfgfile.tmp" "$cfgfile" \
14310    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14311test 0 -eq $? || _lt_function_replace_fail=:
14312
14313
14314  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14315func_split_long_opt ()\
14316{\
14317\    func_split_long_opt_name=${1%%=*}\
14318\    func_split_long_opt_arg=${1#*=}\
14319} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14320  && mv -f "$cfgfile.tmp" "$cfgfile" \
14321    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14322test 0 -eq $? || _lt_function_replace_fail=:
14323
14324
14325  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14326func_split_short_opt ()\
14327{\
14328\    func_split_short_opt_arg=${1#??}\
14329\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14330} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14331  && mv -f "$cfgfile.tmp" "$cfgfile" \
14332    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14333test 0 -eq $? || _lt_function_replace_fail=:
14334
14335
14336  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14337func_lo2o ()\
14338{\
14339\    case ${1} in\
14340\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14341\      *)    func_lo2o_result=${1} ;;\
14342\    esac\
14343} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14344  && mv -f "$cfgfile.tmp" "$cfgfile" \
14345    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14346test 0 -eq $? || _lt_function_replace_fail=:
14347
14348
14349  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14350func_xform ()\
14351{\
14352    func_xform_result=${1%.*}.lo\
14353} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14354  && mv -f "$cfgfile.tmp" "$cfgfile" \
14355    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14356test 0 -eq $? || _lt_function_replace_fail=:
14357
14358
14359  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14360func_arith ()\
14361{\
14362    func_arith_result=$(( $* ))\
14363} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14364  && mv -f "$cfgfile.tmp" "$cfgfile" \
14365    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14366test 0 -eq $? || _lt_function_replace_fail=:
14367
14368
14369  sed -e '/^func_len ()$/,/^} # func_len /c\
14370func_len ()\
14371{\
14372    func_len_result=${#1}\
14373} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14374  && mv -f "$cfgfile.tmp" "$cfgfile" \
14375    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14376test 0 -eq $? || _lt_function_replace_fail=:
14377
14378fi
14379
14380if test x"$lt_shell_append" = xyes; then
14381  sed -e '/^func_append ()$/,/^} # func_append /c\
14382func_append ()\
14383{\
14384    eval "${1}+=\\${2}"\
14385} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14386  && mv -f "$cfgfile.tmp" "$cfgfile" \
14387    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14388test 0 -eq $? || _lt_function_replace_fail=:
14389
14390
14391  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14392func_append_quoted ()\
14393{\
14394\    func_quote_for_eval "${2}"\
14395\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14396} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14397  && mv -f "$cfgfile.tmp" "$cfgfile" \
14398    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14399test 0 -eq $? || _lt_function_replace_fail=:
14400
14401
14402  # Save a `func_append' function call where possible by direct use of '+='
14403  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14404    && mv -f "$cfgfile.tmp" "$cfgfile" \
14405      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14406  test 0 -eq $? || _lt_function_replace_fail=:
14407else
14408  # Save a `func_append' function call even when '+=' is not available
14409  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14410    && mv -f "$cfgfile.tmp" "$cfgfile" \
14411      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14412  test 0 -eq $? || _lt_function_replace_fail=:
14413fi
14414
14415if test x"$_lt_function_replace_fail" = x":"; then
14416  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14417$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14418fi
14419
14420
14421   mv -f "$cfgfile" "$ofile" ||
14422    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14423  chmod +x "$ofile"
14424
14425 ;;
14426    "polybench_test.sh":F) chmod +x polybench_test.sh ;;
14427    "opencl_test.sh":F) chmod +x opencl_test.sh ;;
14428
14429  esac
14430done # for ac_tag
14431
14432
14433as_fn_exit 0
14434_ACEOF
14435ac_clean_files=$ac_clean_files_save
14436
14437test $ac_write_fail = 0 ||
14438  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14439
14440
14441			ac_configure_args="$ac_configure_args $ppcg_configure_args"
14442
14443
14444# configure is writing to config.log, and then calls config.status.
14445# config.status does its own redirection, appending to config.log.
14446# Unfortunately, on DOS this fails, as config.log is still kept open
14447# by configure, so config.status won't be able to write to it; its
14448# output is simply discarded.  So we exec the FD to /dev/null,
14449# effectively closing config.log, so it can be properly (re)opened and
14450# appended to by config.status.  When coming back to configure, we
14451# need to make the FD available again.
14452if test "$no_create" != yes; then
14453  ac_cs_success=:
14454  ac_config_status_args=
14455  test "$silent" = yes &&
14456    ac_config_status_args="$ac_config_status_args --quiet"
14457  exec 5>/dev/null
14458  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14459  exec 5>>config.log
14460  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14461  # would make configure fail if this is the last instruction.
14462  $ac_cs_success || as_fn_exit 1
14463fi
14464
14465#
14466# CONFIG_SUBDIRS section.
14467#
14468if test "$no_recursion" != yes; then
14469
14470  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14471  # so they do not pile up.
14472  ac_sub_configure_args=
14473  ac_prev=
14474  eval "set x $ac_configure_args"
14475  shift
14476  for ac_arg
14477  do
14478    if test -n "$ac_prev"; then
14479      ac_prev=
14480      continue
14481    fi
14482    case $ac_arg in
14483    -cache-file | --cache-file | --cache-fil | --cache-fi \
14484    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14485      ac_prev=cache_file ;;
14486    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14487    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14488    | --c=*)
14489      ;;
14490    --config-cache | -C)
14491      ;;
14492    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14493      ac_prev=srcdir ;;
14494    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14495      ;;
14496    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14497      ac_prev=prefix ;;
14498    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14499      ;;
14500    --disable-option-checking)
14501      ;;
14502    *)
14503      case $ac_arg in
14504      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14505      esac
14506      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14507    esac
14508  done
14509
14510  # Always prepend --prefix to ensure using the same prefix
14511  # in subdir configurations.
14512  ac_arg="--prefix=$prefix"
14513  case $ac_arg in
14514  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14515  esac
14516  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14517
14518  # Pass --silent
14519  if test "$silent" = yes; then
14520    ac_sub_configure_args="--silent $ac_sub_configure_args"
14521  fi
14522
14523  # Always prepend --disable-option-checking to silence warnings, since
14524  # different subdirs can have different --enable and --with options.
14525  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14526
14527  ac_popdir=`pwd`
14528  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14529
14530    # Do not complain, so a configure script can configure whichever
14531    # parts of a large source tree are present.
14532    test -d "$srcdir/$ac_dir" || continue
14533
14534    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14535    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14536    $as_echo "$ac_msg" >&6
14537    as_dir="$ac_dir"; as_fn_mkdir_p
14538    ac_builddir=.
14539
14540case "$ac_dir" in
14541.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14542*)
14543  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14544  # A ".." for each directory in $ac_dir_suffix.
14545  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14546  case $ac_top_builddir_sub in
14547  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14548  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14549  esac ;;
14550esac
14551ac_abs_top_builddir=$ac_pwd
14552ac_abs_builddir=$ac_pwd$ac_dir_suffix
14553# for backward compatibility:
14554ac_top_builddir=$ac_top_build_prefix
14555
14556case $srcdir in
14557  .)  # We are building in place.
14558    ac_srcdir=.
14559    ac_top_srcdir=$ac_top_builddir_sub
14560    ac_abs_top_srcdir=$ac_pwd ;;
14561  [\\/]* | ?:[\\/]* )  # Absolute name.
14562    ac_srcdir=$srcdir$ac_dir_suffix;
14563    ac_top_srcdir=$srcdir
14564    ac_abs_top_srcdir=$srcdir ;;
14565  *) # Relative name.
14566    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14567    ac_top_srcdir=$ac_top_build_prefix$srcdir
14568    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14569esac
14570ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14571
14572
14573    cd "$ac_dir"
14574
14575    # Check for guested configure; otherwise get Cygnus style configure.
14576    if test -f "$ac_srcdir/configure.gnu"; then
14577      ac_sub_configure=$ac_srcdir/configure.gnu
14578    elif test -f "$ac_srcdir/configure"; then
14579      ac_sub_configure=$ac_srcdir/configure
14580    elif test -f "$ac_srcdir/configure.in"; then
14581      # This should be Cygnus configure.
14582      ac_sub_configure=$ac_aux_dir/configure
14583    else
14584      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14585$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14586      ac_sub_configure=
14587    fi
14588
14589    # The recursion is here.
14590    if test -n "$ac_sub_configure"; then
14591      # Make the cache file name correct relative to the subdirectory.
14592      case $cache_file in
14593      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14594      *) # Relative name.
14595	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14596      esac
14597
14598      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14599$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14600      # The eval makes quoting arguments work.
14601      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14602	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14603	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14604    fi
14605
14606    cd "$ac_popdir"
14607  done
14608fi
14609if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14610  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14611$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14612fi
14613
14614