OSDN Git Service

a9f7df510f0cd43d1e3e5cfa7d469af292088bd6
[pf3gnuchains/gcc-fork.git] / libgomp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $ECHO works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<_LT_EOF
274 $*
275 _LT_EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284   if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290       then
291         break
292       fi
293     done
294   fi
295
296   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298      test "X$echo_testing_string" = "X$echo_test_string"; then
299     :
300   else
301     # The Solaris, AIX, and Digital Unix default echo programs unquote
302     # backslashes.  This makes it impossible to quote backslashes using
303     #   echo "$something" | sed 's/\\/\\\\/g'
304     #
305     # So, first we look for a working echo in the user's PATH.
306
307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308     for dir in $PATH /usr/ucb; do
309       IFS="$lt_save_ifs"
310       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313          test "X$echo_testing_string" = "X$echo_test_string"; then
314         ECHO="$dir/echo"
315         break
316       fi
317     done
318     IFS="$lt_save_ifs"
319
320     if test "X$ECHO" = Xecho; then
321       # We didn't find a better echo, so look for alternatives.
322       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324          test "X$echo_testing_string" = "X$echo_test_string"; then
325         # This shell has a builtin print -r that does the trick.
326         ECHO='print -r'
327       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328            test "X$CONFIG_SHELL" != X/bin/ksh; then
329         # If we have ksh, try running configure again with it.
330         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331         export ORIGINAL_CONFIG_SHELL
332         CONFIG_SHELL=/bin/ksh
333         export CONFIG_SHELL
334         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335       else
336         # Try using printf.
337         ECHO='printf %s\n'
338         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340            test "X$echo_testing_string" = "X$echo_test_string"; then
341           # Cool, printf works
342           :
343         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344              test "X$echo_testing_string" = 'X\t' &&
345              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346              test "X$echo_testing_string" = "X$echo_test_string"; then
347           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348           export CONFIG_SHELL
349           SHELL="$CONFIG_SHELL"
350           export SHELL
351           ECHO="$CONFIG_SHELL $0 --fallback-echo"
352         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353              test "X$echo_testing_string" = 'X\t' &&
354              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355              test "X$echo_testing_string" = "X$echo_test_string"; then
356           ECHO="$CONFIG_SHELL $0 --fallback-echo"
357         else
358           # maybe with a smaller string...
359           prev=:
360
361           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363             then
364               break
365             fi
366             prev="$cmd"
367           done
368
369           if test "$prev" != 'sed 50q "$0"'; then
370             echo_test_string=`eval $prev`
371             export echo_test_string
372             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373           else
374             # Oops.  We lost completely, so just stick with echo.
375             ECHO=echo
376           fi
377         fi
378       fi
379     fi
380   fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME='GNU OpenMP Runtime Library'
418 PACKAGE_TARNAME='libgomp'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
421 PACKAGE_BUGREPORT=''
422
423 # Factoring default headers for most tests.
424 ac_includes_default="\
425 #include <stdio.h>
426 #if HAVE_SYS_TYPES_H
427 # include <sys/types.h>
428 #endif
429 #if HAVE_SYS_STAT_H
430 # include <sys/stat.h>
431 #endif
432 #if STDC_HEADERS
433 # include <stdlib.h>
434 # include <stddef.h>
435 #else
436 # if HAVE_STDLIB_H
437 #  include <stdlib.h>
438 # endif
439 #endif
440 #if HAVE_STRING_H
441 # if !STDC_HEADERS && HAVE_MEMORY_H
442 #  include <memory.h>
443 # endif
444 # include <string.h>
445 #endif
446 #if HAVE_STRINGS_H
447 # include <strings.h>
448 #endif
449 #if HAVE_INTTYPES_H
450 # include <inttypes.h>
451 #else
452 # if HAVE_STDINT_H
453 #  include <stdint.h>
454 # endif
455 #endif
456 #if HAVE_UNISTD_H
457 # include <unistd.h>
458 #endif"
459
460 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND OMP_LOCK_25_SIZE OMP_LOCK_25_ALIGN OMP_NEST_LOCK_25_SIZE OMP_NEST_LOCK_25_ALIGN OMP_LOCK_25_KIND OMP_NEST_LOCK_25_KIND LIBOBJS LTLIBOBJS'
461 ac_subst_files=''
462 ac_pwd=`pwd`
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505   # If the previous option needs an argument, assign it.
506   if test -n "$ac_prev"; then
507     eval "$ac_prev=\$ac_option"
508     ac_prev=
509     continue
510   fi
511
512   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514   # Accept the important Cygnus configure options, so we can diagnose typos.
515
516   case $ac_option in
517
518   -bindir | --bindir | --bindi | --bind | --bin | --bi)
519     ac_prev=bindir ;;
520   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521     bindir=$ac_optarg ;;
522
523   -build | --build | --buil | --bui | --bu)
524     ac_prev=build_alias ;;
525   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526     build_alias=$ac_optarg ;;
527
528   -cache-file | --cache-file | --cache-fil | --cache-fi \
529   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530     ac_prev=cache_file ;;
531   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533     cache_file=$ac_optarg ;;
534
535   --config-cache | -C)
536     cache_file=config.cache ;;
537
538   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539     ac_prev=datadir ;;
540   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541   | --da=*)
542     datadir=$ac_optarg ;;
543
544   -disable-* | --disable-*)
545     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546     # Reject names that are not valid shell variable names.
547     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549    { (exit 1); exit 1; }; }
550     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551     eval "enable_$ac_feature=no" ;;
552
553   -enable-* | --enable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     case $ac_option in
561       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "enable_$ac_feature='$ac_optarg'" ;;
565
566   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568   | --exec | --exe | --ex)
569     ac_prev=exec_prefix ;;
570   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572   | --exec=* | --exe=* | --ex=*)
573     exec_prefix=$ac_optarg ;;
574
575   -gas | --gas | --ga | --g)
576     # Obsolete; use --with-gas.
577     with_gas=yes ;;
578
579   -help | --help | --hel | --he | -h)
580     ac_init_help=long ;;
581   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582     ac_init_help=recursive ;;
583   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584     ac_init_help=short ;;
585
586   -host | --host | --hos | --ho)
587     ac_prev=host_alias ;;
588   -host=* | --host=* | --hos=* | --ho=*)
589     host_alias=$ac_optarg ;;
590
591   -includedir | --includedir | --includedi | --included | --include \
592   | --includ | --inclu | --incl | --inc)
593     ac_prev=includedir ;;
594   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595   | --includ=* | --inclu=* | --incl=* | --inc=*)
596     includedir=$ac_optarg ;;
597
598   -infodir | --infodir | --infodi | --infod | --info | --inf)
599     ac_prev=infodir ;;
600   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601     infodir=$ac_optarg ;;
602
603   -libdir | --libdir | --libdi | --libd)
604     ac_prev=libdir ;;
605   -libdir=* | --libdir=* | --libdi=* | --libd=*)
606     libdir=$ac_optarg ;;
607
608   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609   | --libexe | --libex | --libe)
610     ac_prev=libexecdir ;;
611   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612   | --libexe=* | --libex=* | --libe=*)
613     libexecdir=$ac_optarg ;;
614
615   -localstatedir | --localstatedir | --localstatedi | --localstated \
616   | --localstate | --localstat | --localsta | --localst \
617   | --locals | --local | --loca | --loc | --lo)
618     ac_prev=localstatedir ;;
619   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622     localstatedir=$ac_optarg ;;
623
624   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625     ac_prev=mandir ;;
626   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627     mandir=$ac_optarg ;;
628
629   -nfp | --nfp | --nf)
630     # Obsolete; use --without-fp.
631     with_fp=no ;;
632
633   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634   | --no-cr | --no-c | -n)
635     no_create=yes ;;
636
637   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639     no_recursion=yes ;;
640
641   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643   | --oldin | --oldi | --old | --ol | --o)
644     ac_prev=oldincludedir ;;
645   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648     oldincludedir=$ac_optarg ;;
649
650   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651     ac_prev=prefix ;;
652   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653     prefix=$ac_optarg ;;
654
655   -program-prefix | --program-prefix | --program-prefi | --program-pref \
656   | --program-pre | --program-pr | --program-p)
657     ac_prev=program_prefix ;;
658   -program-prefix=* | --program-prefix=* | --program-prefi=* \
659   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660     program_prefix=$ac_optarg ;;
661
662   -program-suffix | --program-suffix | --program-suffi | --program-suff \
663   | --program-suf | --program-su | --program-s)
664     ac_prev=program_suffix ;;
665   -program-suffix=* | --program-suffix=* | --program-suffi=* \
666   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667     program_suffix=$ac_optarg ;;
668
669   -program-transform-name | --program-transform-name \
670   | --program-transform-nam | --program-transform-na \
671   | --program-transform-n | --program-transform- \
672   | --program-transform | --program-transfor \
673   | --program-transfo | --program-transf \
674   | --program-trans | --program-tran \
675   | --progr-tra | --program-tr | --program-t)
676     ac_prev=program_transform_name ;;
677   -program-transform-name=* | --program-transform-name=* \
678   | --program-transform-nam=* | --program-transform-na=* \
679   | --program-transform-n=* | --program-transform-=* \
680   | --program-transform=* | --program-transfor=* \
681   | --program-transfo=* | --program-transf=* \
682   | --program-trans=* | --program-tran=* \
683   | --progr-tra=* | --program-tr=* | --program-t=*)
684     program_transform_name=$ac_optarg ;;
685
686   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687   | -silent | --silent | --silen | --sile | --sil)
688     silent=yes ;;
689
690   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691     ac_prev=sbindir ;;
692   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693   | --sbi=* | --sb=*)
694     sbindir=$ac_optarg ;;
695
696   -sharedstatedir | --sharedstatedir | --sharedstatedi \
697   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698   | --sharedst | --shareds | --shared | --share | --shar \
699   | --sha | --sh)
700     ac_prev=sharedstatedir ;;
701   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704   | --sha=* | --sh=*)
705     sharedstatedir=$ac_optarg ;;
706
707   -site | --site | --sit)
708     ac_prev=site ;;
709   -site=* | --site=* | --sit=*)
710     site=$ac_optarg ;;
711
712   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713     ac_prev=srcdir ;;
714   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715     srcdir=$ac_optarg ;;
716
717   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718   | --syscon | --sysco | --sysc | --sys | --sy)
719     ac_prev=sysconfdir ;;
720   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722     sysconfdir=$ac_optarg ;;
723
724   -target | --target | --targe | --targ | --tar | --ta | --t)
725     ac_prev=target_alias ;;
726   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727     target_alias=$ac_optarg ;;
728
729   -v | -verbose | --verbose | --verbos | --verbo | --verb)
730     verbose=yes ;;
731
732   -version | --version | --versio | --versi | --vers | -V)
733     ac_init_version=: ;;
734
735   -with-* | --with-*)
736     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737     # Reject names that are not valid shell variable names.
738     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739       { echo "$as_me: error: invalid package name: $ac_package" >&2
740    { (exit 1); exit 1; }; }
741     ac_package=`echo $ac_package| sed 's/-/_/g'`
742     case $ac_option in
743       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744       *) ac_optarg=yes ;;
745     esac
746     eval "with_$ac_package='$ac_optarg'" ;;
747
748   -without-* | --without-*)
749     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750     # Reject names that are not valid shell variable names.
751     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752       { echo "$as_me: error: invalid package name: $ac_package" >&2
753    { (exit 1); exit 1; }; }
754     ac_package=`echo $ac_package | sed 's/-/_/g'`
755     eval "with_$ac_package=no" ;;
756
757   --x)
758     # Obsolete; use --with-x.
759     with_x=yes ;;
760
761   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762   | --x-incl | --x-inc | --x-in | --x-i)
763     ac_prev=x_includes ;;
764   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766     x_includes=$ac_optarg ;;
767
768   -x-libraries | --x-libraries | --x-librarie | --x-librari \
769   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770     ac_prev=x_libraries ;;
771   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773     x_libraries=$ac_optarg ;;
774
775   -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777    { (exit 1); exit 1; }; }
778     ;;
779
780   *=*)
781     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782     # Reject names that are not valid shell variable names.
783     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785    { (exit 1); exit 1; }; }
786     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787     eval "$ac_envvar='$ac_optarg'"
788     export $ac_envvar ;;
789
790   *)
791     # FIXME: should be removed in autoconf 3.0.
792     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796     ;;
797
798   esac
799 done
800
801 if test -n "$ac_prev"; then
802   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803   { echo "$as_me: error: missing argument to $ac_option" >&2
804    { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810   eval ac_val=$`echo $ac_var`
811   case $ac_val in
812     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814    { (exit 1); exit 1; }; };;
815   esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820               localstatedir libdir includedir oldincludedir infodir mandir
821 do
822   eval ac_val=$`echo $ac_var`
823   case $ac_val in
824     [\\/$]* | ?:[\\/]* ) ;;
825     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826    { (exit 1); exit 1; }; };;
827   esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839   if test "x$build_alias" = x; then
840     cross_compiling=maybe
841     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842     If a cross compiler is detected then cross compile mode will be used." >&2
843   elif test "x$build_alias" != "x$host_alias"; then
844     cross_compiling=yes
845   fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856   ac_srcdir_defaulted=yes
857   # Try the directory containing this script, then its parent.
858   ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860          X"$0" : 'X\(//\)[^/]' \| \
861          X"$0" : 'X\(//\)$' \| \
862          X"$0" : 'X\(/\)' \| \
863          .     : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867           /^X\(\/\/\)$/{ s//\1/; q; }
868           /^X\(\/\).*/{ s//\1/; q; }
869           s/.*/./; q'`
870   srcdir=$ac_confdir
871   if test ! -r $srcdir/$ac_unique_file; then
872     srcdir=..
873   fi
874 else
875   ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878   if test "$ac_srcdir_defaulted" = yes; then
879     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880    { (exit 1); exit 1; }; }
881   else
882     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883    { (exit 1); exit 1; }; }
884   fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888    { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_FC_set=${FC+set}
911 ac_env_FC_value=$FC
912 ac_cv_env_FC_set=${FC+set}
913 ac_cv_env_FC_value=$FC
914 ac_env_FCFLAGS_set=${FCFLAGS+set}
915 ac_env_FCFLAGS_value=$FCFLAGS
916 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
917 ac_cv_env_FCFLAGS_value=$FCFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922
923 #
924 # Report the --help message.
925 #
926 if test "$ac_init_help" = "long"; then
927   # Omit some internal or obsolete options to make the list less imposing.
928   # This message is too long to be a string in the A/UX 3.1 sh.
929   cat <<_ACEOF
930 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
931
932 Usage: $0 [OPTION]... [VAR=VALUE]...
933
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE.  See below for descriptions of some of the useful variables.
936
937 Defaults for the options are specified in brackets.
938
939 Configuration:
940   -h, --help              display this help and exit
941       --help=short        display options specific to this package
942       --help=recursive    display the short help of all the included packages
943   -V, --version           display version information and exit
944   -q, --quiet, --silent   do not print \`checking...' messages
945       --cache-file=FILE   cache test results in FILE [disabled]
946   -C, --config-cache      alias for \`--cache-file=config.cache'
947   -n, --no-create         do not create output files
948       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
949
950 _ACEOF
951
952   cat <<_ACEOF
953 Installation directories:
954   --prefix=PREFIX         install architecture-independent files in PREFIX
955                           [$ac_default_prefix]
956   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
957                           [PREFIX]
958
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
963
964 For better control, use the options below.
965
966 Fine tuning of the installation directories:
967   --bindir=DIR           user executables [EPREFIX/bin]
968   --sbindir=DIR          system admin executables [EPREFIX/sbin]
969   --libexecdir=DIR       program executables [EPREFIX/libexec]
970   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
971   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
972   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
973   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
974   --libdir=DIR           object code libraries [EPREFIX/lib]
975   --includedir=DIR       C header files [PREFIX/include]
976   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
977   --infodir=DIR          info documentation [PREFIX/info]
978   --mandir=DIR           man documentation [PREFIX/man]
979 _ACEOF
980
981   cat <<\_ACEOF
982
983 Program names:
984   --program-prefix=PREFIX            prepend PREFIX to installed program names
985   --program-suffix=SUFFIX            append SUFFIX to installed program names
986   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
987
988 System types:
989   --build=BUILD     configure for building on BUILD [guessed]
990   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
991   --target=TARGET   configure for building compilers for TARGET [HOST]
992 _ACEOF
993 fi
994
995 if test -n "$ac_init_help"; then
996   case $ac_init_help in
997      short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
998    esac
999   cat <<\_ACEOF
1000
1001 Optional Features:
1002   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1003   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1004   --enable-version-specific-runtime-libs
1005                           Specify that runtime libraries should be installed
1006                           in a compiler-specific directory [default=no]
1007   --enable-generated-files-in-srcdir
1008                           put copies of generated files in source dir intended
1009                           for creating source tarballs for users without
1010                           texinfo bison or flex. [default=no]
1011   --enable-multilib       build many library versions (default)
1012   --disable-dependency-tracking  speeds up one-time build
1013   --enable-dependency-tracking   do not reject slow dependency extractors
1014   --enable-shared[=PKGS]
1015                           build shared libraries [default=yes]
1016   --enable-static[=PKGS]
1017                           build static libraries [default=yes]
1018   --enable-fast-install[=PKGS]
1019                           optimize for fast installation [default=yes]
1020   --disable-libtool-lock  avoid locking (might break parallel builds)
1021   --enable-maintainer-mode  enable make rules and dependencies not useful
1022                           (and sometimes confusing) to the casual installer
1023   --enable-linux-futex    use the Linux futex system call
1024                           [default=default]
1025   --enable-tls            Use thread-local storage [default=yes]
1026   --enable-symvers=STYLE  enables symbol versioning of the shared library
1027                           [default=yes]
1028
1029 Optional Packages:
1030   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1031   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1032   --with-pic              try to use only PIC/non-PIC objects [default=use
1033                           both]
1034   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1035
1036 Some influential environment variables:
1037   CC          C compiler command
1038   CFLAGS      C compiler flags
1039   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1040               nonstandard directory <lib dir>
1041   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042               headers in a nonstandard directory <include dir>
1043   CPP         C preprocessor
1044   FC          Fortran compiler command
1045   FCFLAGS     Fortran compiler flags
1046
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1049
1050 _ACEOF
1051 fi
1052
1053 if test "$ac_init_help" = "recursive"; then
1054   # If there are subdirs, report their specific --help.
1055   ac_popdir=`pwd`
1056   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057     test -d $ac_dir || continue
1058     ac_builddir=.
1059
1060 if test "$ac_dir" != .; then
1061   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062   # A "../" for each directory in $ac_dir_suffix.
1063   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064 else
1065   ac_dir_suffix= ac_top_builddir=
1066 fi
1067
1068 case $srcdir in
1069   .)  # No --srcdir option.  We are building in place.
1070     ac_srcdir=.
1071     if test -z "$ac_top_builddir"; then
1072        ac_top_srcdir=.
1073     else
1074        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075     fi ;;
1076   [\\/]* | ?:[\\/]* )  # Absolute path.
1077     ac_srcdir=$srcdir$ac_dir_suffix;
1078     ac_top_srcdir=$srcdir ;;
1079   *) # Relative path.
1080     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082 esac
1083
1084 # Do not use `cd foo && pwd` to compute absolute paths, because
1085 # the directories may not exist.
1086 case `pwd` in
1087 .) ac_abs_builddir="$ac_dir";;
1088 *)
1089   case "$ac_dir" in
1090   .) ac_abs_builddir=`pwd`;;
1091   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093   esac;;
1094 esac
1095 case $ac_abs_builddir in
1096 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1097 *)
1098   case ${ac_top_builddir}. in
1099   .) ac_abs_top_builddir=$ac_abs_builddir;;
1100   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102   esac;;
1103 esac
1104 case $ac_abs_builddir in
1105 .) ac_abs_srcdir=$ac_srcdir;;
1106 *)
1107   case $ac_srcdir in
1108   .) ac_abs_srcdir=$ac_abs_builddir;;
1109   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111   esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1115 *)
1116   case $ac_top_srcdir in
1117   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120   esac;;
1121 esac
1122
1123     cd $ac_dir
1124     # Check for guested configure; otherwise get Cygnus style configure.
1125     if test -f $ac_srcdir/configure.gnu; then
1126       echo
1127       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1128     elif test -f $ac_srcdir/configure; then
1129       echo
1130       $SHELL $ac_srcdir/configure  --help=recursive
1131     elif test -f $ac_srcdir/configure.ac ||
1132            test -f $ac_srcdir/configure.in; then
1133       echo
1134       $ac_configure --help
1135     else
1136       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137     fi
1138     cd $ac_popdir
1139   done
1140 fi
1141
1142 test -n "$ac_init_help" && exit 0
1143 if $ac_init_version; then
1144   cat <<\_ACEOF
1145 GNU OpenMP Runtime Library configure 1.0
1146 generated by GNU Autoconf 2.59
1147
1148 Copyright (C) 2003 Free Software Foundation, Inc.
1149 This configure script is free software; the Free Software Foundation
1150 gives unlimited permission to copy, distribute and modify it.
1151 _ACEOF
1152   exit 0
1153 fi
1154 exec 5>config.log
1155 cat >&5 <<_ACEOF
1156 This file contains any messages produced by compilers while
1157 running configure, to aid debugging if configure makes a mistake.
1158
1159 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1160 generated by GNU Autoconf 2.59.  Invocation command line was
1161
1162   $ $0 $@
1163
1164 _ACEOF
1165 {
1166 cat <<_ASUNAME
1167 ## --------- ##
1168 ## Platform. ##
1169 ## --------- ##
1170
1171 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1172 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1173 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1174 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1175 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176
1177 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1178 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1179
1180 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1181 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1182 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1183 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1184 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1185 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1186 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1187
1188 _ASUNAME
1189
1190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1191 for as_dir in $PATH
1192 do
1193   IFS=$as_save_IFS
1194   test -z "$as_dir" && as_dir=.
1195   echo "PATH: $as_dir"
1196 done
1197
1198 } >&5
1199
1200 cat >&5 <<_ACEOF
1201
1202
1203 ## ----------- ##
1204 ## Core tests. ##
1205 ## ----------- ##
1206
1207 _ACEOF
1208
1209
1210 # Keep a trace of the command line.
1211 # Strip out --no-create and --no-recursion so they do not pile up.
1212 # Strip out --silent because we don't want to record it for future runs.
1213 # Also quote any args containing shell meta-characters.
1214 # Make two passes to allow for proper duplicate-argument suppression.
1215 ac_configure_args=
1216 ac_configure_args0=
1217 ac_configure_args1=
1218 ac_sep=
1219 ac_must_keep_next=false
1220 for ac_pass in 1 2
1221 do
1222   for ac_arg
1223   do
1224     case $ac_arg in
1225     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1226     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227     | -silent | --silent | --silen | --sile | --sil)
1228       continue ;;
1229     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1230       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1231     esac
1232     case $ac_pass in
1233     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234     2)
1235       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1236       if test $ac_must_keep_next = true; then
1237         ac_must_keep_next=false # Got value, back to normal.
1238       else
1239         case $ac_arg in
1240           *=* | --config-cache | -C | -disable-* | --disable-* \
1241           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1242           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1243           | -with-* | --with-* | -without-* | --without-* | --x)
1244             case "$ac_configure_args0 " in
1245               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1246             esac
1247             ;;
1248           -* ) ac_must_keep_next=true ;;
1249         esac
1250       fi
1251       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1252       # Get rid of the leading space.
1253       ac_sep=" "
1254       ;;
1255     esac
1256   done
1257 done
1258 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1259 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260
1261 # When interrupted or exit'd, cleanup temporary files, and complete
1262 # config.log.  We remove comments because anyway the quotes in there
1263 # would cause problems or look ugly.
1264 # WARNING: Be sure not to use single quotes in there, as some shells,
1265 # such as our DU 5.0 friend, will then `close' the trap.
1266 trap 'exit_status=$?
1267   # Save into config.log some information that might help in debugging.
1268   {
1269     echo
1270
1271     cat <<\_ASBOX
1272 ## ---------------- ##
1273 ## Cache variables. ##
1274 ## ---------------- ##
1275 _ASBOX
1276     echo
1277     # The following way of writing the cache mishandles newlines in values,
1278 {
1279   (set) 2>&1 |
1280     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1281     *ac_space=\ *)
1282       sed -n \
1283         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1284           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1285       ;;
1286     *)
1287       sed -n \
1288         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1289       ;;
1290     esac;
1291 }
1292     echo
1293
1294     cat <<\_ASBOX
1295 ## ----------------- ##
1296 ## Output variables. ##
1297 ## ----------------- ##
1298 _ASBOX
1299     echo
1300     for ac_var in $ac_subst_vars
1301     do
1302       eval ac_val=$`echo $ac_var`
1303       echo "$ac_var='"'"'$ac_val'"'"'"
1304     done | sort
1305     echo
1306
1307     if test -n "$ac_subst_files"; then
1308       cat <<\_ASBOX
1309 ## ------------- ##
1310 ## Output files. ##
1311 ## ------------- ##
1312 _ASBOX
1313       echo
1314       for ac_var in $ac_subst_files
1315       do
1316         eval ac_val=$`echo $ac_var`
1317         echo "$ac_var='"'"'$ac_val'"'"'"
1318       done | sort
1319       echo
1320     fi
1321
1322     if test -s confdefs.h; then
1323       cat <<\_ASBOX
1324 ## ----------- ##
1325 ## confdefs.h. ##
1326 ## ----------- ##
1327 _ASBOX
1328       echo
1329       sed "/^$/d" confdefs.h | sort
1330       echo
1331     fi
1332     test "$ac_signal" != 0 &&
1333       echo "$as_me: caught signal $ac_signal"
1334     echo "$as_me: exit $exit_status"
1335   } >&5
1336   rm -f core *.core &&
1337   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1338     exit $exit_status
1339      ' 0
1340 for ac_signal in 1 2 13 15; do
1341   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1342 done
1343 ac_signal=0
1344
1345 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1346 rm -rf conftest* confdefs.h
1347 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1348 echo >confdefs.h
1349
1350 # Predefined preprocessor variables.
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_NAME "$PACKAGE_NAME"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1364 _ACEOF
1365
1366
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_STRING "$PACKAGE_STRING"
1369 _ACEOF
1370
1371
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1374 _ACEOF
1375
1376
1377 # Let the site file select an alternate cache file if it wants to.
1378 # Prefer explicitly selected file to automatically selected ones.
1379 if test -z "$CONFIG_SITE"; then
1380   if test "x$prefix" != xNONE; then
1381     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1382   else
1383     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1384   fi
1385 fi
1386 for ac_site_file in $CONFIG_SITE; do
1387   if test -r "$ac_site_file"; then
1388     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1389 echo "$as_me: loading site script $ac_site_file" >&6;}
1390     sed 's/^/| /' "$ac_site_file" >&5
1391     . "$ac_site_file"
1392   fi
1393 done
1394
1395 if test -r "$cache_file"; then
1396   # Some versions of bash will fail to source /dev/null (special
1397   # files actually), so we avoid doing that.
1398   if test -f "$cache_file"; then
1399     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1400 echo "$as_me: loading cache $cache_file" >&6;}
1401     case $cache_file in
1402       [\\/]* | ?:[\\/]* ) . $cache_file;;
1403       *)                      . ./$cache_file;;
1404     esac
1405   fi
1406 else
1407   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1408 echo "$as_me: creating cache $cache_file" >&6;}
1409   >$cache_file
1410 fi
1411
1412 # Check that the precious variables saved in the cache have kept the same
1413 # value.
1414 ac_cache_corrupted=false
1415 for ac_var in `(set) 2>&1 |
1416                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1417   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1418   eval ac_new_set=\$ac_env_${ac_var}_set
1419   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1420   eval ac_new_val="\$ac_env_${ac_var}_value"
1421   case $ac_old_set,$ac_new_set in
1422     set,)
1423       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1424 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1425       ac_cache_corrupted=: ;;
1426     ,set)
1427       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1428 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1429       ac_cache_corrupted=: ;;
1430     ,);;
1431     *)
1432       if test "x$ac_old_val" != "x$ac_new_val"; then
1433         # differences in whitespace do not lead to failure.
1434         ac_old_val_w=`echo x $ac_old_val`
1435         ac_new_val_w=`echo x $ac_new_val`
1436         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1437           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1438 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1439           ac_cache_corrupted=:
1440         else
1441           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1442 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1443           eval $ac_var=\$ac_old_val
1444         fi
1445         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1446 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1447         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1448 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1449       fi;;
1450   esac
1451   # Pass precious variables to config.status.
1452   if test "$ac_new_set" = set; then
1453     case $ac_new_val in
1454     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1455       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1456     *) ac_arg=$ac_var=$ac_new_val ;;
1457     esac
1458     case " $ac_configure_args " in
1459       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1460       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1461     esac
1462   fi
1463 done
1464 if $ac_cache_corrupted; then
1465   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1466 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1467   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471    { (exit 1); exit 1; }; }
1472 fi
1473
1474 ac_ext=c
1475 ac_cpp='$CPP $CPPFLAGS'
1476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509           ac_config_headers="$ac_config_headers config.h"
1510
1511
1512 # -------
1513 # Options
1514 # -------
1515
1516 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1517 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1518  # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1519 if test "${enable_version_specific_runtime_libs+set}" = set; then
1520   enableval="$enable_version_specific_runtime_libs"
1521
1522       case "$enableval" in
1523        yes|no) ;;
1524        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1525 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1526    { (exit 1); exit 1; }; } ;;
1527                           esac
1528
1529 else
1530   enable_version_specific_runtime_libs=no
1531 fi;
1532
1533 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1534 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1535
1536 # We would like our source tree to be readonly. However when releases or
1537 # pre-releases are generated, the flex/bison generated files as well as the
1538 # various formats of manuals need to be included along with the rest of the
1539 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1540 # just that.
1541 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1542 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1543  # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1544 if test "${enable_generated_files_in_srcdir+set}" = set; then
1545   enableval="$enable_generated_files_in_srcdir"
1546
1547       case "$enableval" in
1548        yes|no) ;;
1549        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1550 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1551    { (exit 1); exit 1; }; } ;;
1552                           esac
1553
1554 else
1555   enable_generated_files_in_srcdir=no
1556 fi;
1557
1558 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1559 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1560
1561
1562 if test "$enable_generated_files_in_srcdir" = yes; then
1563   GENINSRC_TRUE=
1564   GENINSRC_FALSE='#'
1565 else
1566   GENINSRC_TRUE='#'
1567   GENINSRC_FALSE=
1568 fi
1569
1570
1571
1572 # -------
1573 # -------
1574
1575 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1576 #
1577 # You will slowly go insane if you do not grok the following fact:  when
1578 # building this library, the top-level /target/ becomes the library's /host/.
1579 #
1580 # configure then causes --target to default to --host, exactly like any
1581 # other package using autoconf.  Therefore, 'target' and 'host' will
1582 # always be the same.  This makes sense both for native and cross compilers
1583 # just think about it for a little while.  :-)
1584 #
1585 # Also, if this library is being configured as part of a cross compiler, the
1586 # top-level configure script will pass the "real" host as $with_cross_host.
1587 #
1588 # Do not delete or change the following two lines.  For why, see
1589 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1590 ac_aux_dir=
1591 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1592   if test -f $ac_dir/install-sh; then
1593     ac_aux_dir=$ac_dir
1594     ac_install_sh="$ac_aux_dir/install-sh -c"
1595     break
1596   elif test -f $ac_dir/install.sh; then
1597     ac_aux_dir=$ac_dir
1598     ac_install_sh="$ac_aux_dir/install.sh -c"
1599     break
1600   elif test -f $ac_dir/shtool; then
1601     ac_aux_dir=$ac_dir
1602     ac_install_sh="$ac_aux_dir/shtool install -c"
1603     break
1604   fi
1605 done
1606 if test -z "$ac_aux_dir"; then
1607   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1608 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1609    { (exit 1); exit 1; }; }
1610 fi
1611 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1612 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1613 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1614
1615 # Make sure we can run config.sub.
1616 $ac_config_sub sun4 >/dev/null 2>&1 ||
1617   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1618 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1619    { (exit 1); exit 1; }; }
1620
1621 echo "$as_me:$LINENO: checking build system type" >&5
1622 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1623 if test "${ac_cv_build+set}" = set; then
1624   echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626   ac_cv_build_alias=$build_alias
1627 test -z "$ac_cv_build_alias" &&
1628   ac_cv_build_alias=`$ac_config_guess`
1629 test -z "$ac_cv_build_alias" &&
1630   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1631 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1632    { (exit 1); exit 1; }; }
1633 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1634   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1635 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1636    { (exit 1); exit 1; }; }
1637
1638 fi
1639 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1640 echo "${ECHO_T}$ac_cv_build" >&6
1641 build=$ac_cv_build
1642 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647 echo "$as_me:$LINENO: checking host system type" >&5
1648 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1649 if test "${ac_cv_host+set}" = set; then
1650   echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652   ac_cv_host_alias=$host_alias
1653 test -z "$ac_cv_host_alias" &&
1654   ac_cv_host_alias=$ac_cv_build_alias
1655 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1656   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1657 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1658    { (exit 1); exit 1; }; }
1659
1660 fi
1661 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1662 echo "${ECHO_T}$ac_cv_host" >&6
1663 host=$ac_cv_host
1664 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667
1668
1669 echo "$as_me:$LINENO: checking target system type" >&5
1670 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1671 if test "${ac_cv_target+set}" = set; then
1672   echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674   ac_cv_target_alias=$target_alias
1675 test "x$ac_cv_target_alias" = "x" &&
1676   ac_cv_target_alias=$ac_cv_host_alias
1677 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1678   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1679 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1680    { (exit 1); exit 1; }; }
1681
1682 fi
1683 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1684 echo "${ECHO_T}$ac_cv_target" >&6
1685 target=$ac_cv_target
1686 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689
1690
1691 # The aliases save the names the user supplied, while $host etc.
1692 # will get canonicalized.
1693 test -n "$target_alias" &&
1694   test "$program_prefix$program_suffix$program_transform_name" = \
1695     NONENONEs,x,x, &&
1696   program_prefix=${target_alias}-
1697 target_alias=${target_alias-$host_alias}
1698
1699 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1700 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1701 #  1.9.0:  minimum required version
1702 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1703 #              of other PACKAGE_* variables will, however, and there's nothing
1704 #              we can do about that; they come from AC_INIT).
1705 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1706 #            file in the top srcdir, etc, etc), so stop complaining.
1707 #  -Wall:  turns on all automake warnings...
1708 #  -Wno-portability:  ...except this one, since GNU make is required.
1709 #  -Wno-override: ... and this one, since we do want this in testsuite.
1710 am__api_version="1.9"
1711 # Find a good install program.  We prefer a C program (faster),
1712 # so one script is as good as another.  But avoid the broken or
1713 # incompatible versions:
1714 # SysV /etc/install, /usr/sbin/install
1715 # SunOS /usr/etc/install
1716 # IRIX /sbin/install
1717 # AIX /bin/install
1718 # AmigaOS /C/install, which installs bootblocks on floppy discs
1719 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1720 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1721 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1722 # OS/2's system install, which has a completely different semantic
1723 # ./install, which can be erroneously created by make from ./install.sh.
1724 # Reject install programs that cannot install multiple files.
1725 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1726 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1727 if test -z "$INSTALL"; then
1728 if test "${ac_cv_path_install+set}" = set; then
1729   echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1733 do
1734   IFS=$as_save_IFS
1735   test -z "$as_dir" && as_dir=.
1736   # Account for people who put trailing slashes in PATH elements.
1737 case $as_dir/ in
1738   ./ | .// | /cC/* | \
1739   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1740   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1741   /usr/ucb/* ) ;;
1742   *)
1743     # OSF1 and SCO ODT 3.0 have their own names for install.
1744     # Don't use installbsd from OSF since it installs stuff as root
1745     # by default.
1746     for ac_prog in ginstall scoinst install; do
1747       for ac_exec_ext in '' $ac_executable_extensions; do
1748         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1749           if test $ac_prog = install &&
1750             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1751             # AIX install.  It has an incompatible calling convention.
1752             :
1753           elif test $ac_prog = install &&
1754             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1755             # program-specific install script used by HP pwplus--don't use.
1756             :
1757           else
1758             rm -rf conftest.one conftest.two conftest.dir
1759             echo one > conftest.one
1760             echo two > conftest.two
1761             mkdir conftest.dir
1762             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1763               test -s conftest.one && test -s conftest.two &&
1764               test -s conftest.dir/conftest.one &&
1765               test -s conftest.dir/conftest.two
1766             then
1767               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1768               break 3
1769             fi
1770           fi
1771         fi
1772       done
1773     done
1774     ;;
1775 esac
1776 done
1777
1778 rm -rf conftest.one conftest.two conftest.dir
1779
1780 fi
1781   if test "${ac_cv_path_install+set}" = set; then
1782     INSTALL=$ac_cv_path_install
1783   else
1784     # As a last resort, use the slow shell script.  Don't cache a
1785     # value for INSTALL within a source directory, because that will
1786     # break other packages using the cache if that directory is
1787     # removed, or if the value is a relative name.
1788     INSTALL=$ac_install_sh
1789   fi
1790 fi
1791 echo "$as_me:$LINENO: result: $INSTALL" >&5
1792 echo "${ECHO_T}$INSTALL" >&6
1793
1794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1795 # It thinks the first close brace ends the variable substitution.
1796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1797
1798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1799
1800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1801
1802 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1803 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1804 # Just in case
1805 sleep 1
1806 echo timestamp > conftest.file
1807 # Do `set' in a subshell so we don't clobber the current shell's
1808 # arguments.  Must try -L first in case configure is actually a
1809 # symlink; some systems play weird games with the mod time of symlinks
1810 # (eg FreeBSD returns the mod time of the symlink's containing
1811 # directory).
1812 if (
1813    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1814    if test "$*" = "X"; then
1815       # -L didn't work.
1816       set X `ls -t $srcdir/configure conftest.file`
1817    fi
1818    rm -f conftest.file
1819    if test "$*" != "X $srcdir/configure conftest.file" \
1820       && test "$*" != "X conftest.file $srcdir/configure"; then
1821
1822       # If neither matched, then we have a broken ls.  This can happen
1823       # if, for instance, CONFIG_SHELL is bash and it inherits a
1824       # broken ls alias from the environment.  This has actually
1825       # happened.  Such a system could not be considered "sane".
1826       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1827 alias in your environment" >&5
1828 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1829 alias in your environment" >&2;}
1830    { (exit 1); exit 1; }; }
1831    fi
1832
1833    test "$2" = conftest.file
1834    )
1835 then
1836    # Ok.
1837    :
1838 else
1839    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1840 Check your system clock" >&5
1841 echo "$as_me: error: newly created file is older than distributed files!
1842 Check your system clock" >&2;}
1843    { (exit 1); exit 1; }; }
1844 fi
1845 echo "$as_me:$LINENO: result: yes" >&5
1846 echo "${ECHO_T}yes" >&6
1847 test "$program_prefix" != NONE &&
1848   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1849 # Use a double $ so make ignores it.
1850 test "$program_suffix" != NONE &&
1851   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1852 # Double any \ or $.  echo might interpret backslashes.
1853 # By default was `s,x,x', remove it if useless.
1854 cat <<\_ACEOF >conftest.sed
1855 s/[\\$]/&&/g;s/;s,x,x,$//
1856 _ACEOF
1857 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1858 rm conftest.sed
1859
1860 # expand $ac_aux_dir to an absolute path
1861 am_aux_dir=`cd $ac_aux_dir && pwd`
1862
1863 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1864 # Use eval to expand $SHELL
1865 if eval "$MISSING --run true"; then
1866   am_missing_run="$MISSING --run "
1867 else
1868   am_missing_run=
1869   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1870 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1871 fi
1872
1873 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1874   # We used to keeping the `.' as first argument, in order to
1875   # allow $(mkdir_p) to be used without argument.  As in
1876   #   $(mkdir_p) $(somedir)
1877   # where $(somedir) is conditionally defined.  However this is wrong
1878   # for two reasons:
1879   #  1. if the package is installed by a user who cannot write `.'
1880   #     make install will fail,
1881   #  2. the above comment should most certainly read
1882   #     $(mkdir_p) $(DESTDIR)$(somedir)
1883   #     so it does not work when $(somedir) is undefined and
1884   #     $(DESTDIR) is not.
1885   #  To support the latter case, we have to write
1886   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1887   #  so the `.' trick is pointless.
1888   mkdir_p='mkdir -p --'
1889 else
1890   # On NextStep and OpenStep, the `mkdir' command does not
1891   # recognize any option.  It will interpret all options as
1892   # directories to create, and then abort because `.' already
1893   # exists.
1894   for d in ./-p ./--version;
1895   do
1896     test -d $d && rmdir $d
1897   done
1898   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1899   if test -f "$ac_aux_dir/mkinstalldirs"; then
1900     mkdir_p='$(mkinstalldirs)'
1901   else
1902     mkdir_p='$(install_sh) -d'
1903   fi
1904 fi
1905
1906 for ac_prog in gawk mawk nawk awk
1907 do
1908   # Extract the first word of "$ac_prog", so it can be a program name with args.
1909 set dummy $ac_prog; ac_word=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_AWK+set}" = set; then
1913   echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915   if test -n "$AWK"; then
1916   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1917 else
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1920 do
1921   IFS=$as_save_IFS
1922   test -z "$as_dir" && as_dir=.
1923   for ac_exec_ext in '' $ac_executable_extensions; do
1924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925     ac_cv_prog_AWK="$ac_prog"
1926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927     break 2
1928   fi
1929 done
1930 done
1931
1932 fi
1933 fi
1934 AWK=$ac_cv_prog_AWK
1935 if test -n "$AWK"; then
1936   echo "$as_me:$LINENO: result: $AWK" >&5
1937 echo "${ECHO_T}$AWK" >&6
1938 else
1939   echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941 fi
1942
1943   test -n "$AWK" && break
1944 done
1945
1946 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1947 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1948 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1949 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1950   echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952   cat >conftest.make <<\_ACEOF
1953 all:
1954         @echo 'ac_maketemp="$(MAKE)"'
1955 _ACEOF
1956 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1957 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1958 if test -n "$ac_maketemp"; then
1959   eval ac_cv_prog_make_${ac_make}_set=yes
1960 else
1961   eval ac_cv_prog_make_${ac_make}_set=no
1962 fi
1963 rm -f conftest.make
1964 fi
1965 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1966   echo "$as_me:$LINENO: result: yes" >&5
1967 echo "${ECHO_T}yes" >&6
1968   SET_MAKE=
1969 else
1970   echo "$as_me:$LINENO: result: no" >&5
1971 echo "${ECHO_T}no" >&6
1972   SET_MAKE="MAKE=${MAKE-make}"
1973 fi
1974
1975 rm -rf .tst 2>/dev/null
1976 mkdir .tst 2>/dev/null
1977 if test -d .tst; then
1978   am__leading_dot=.
1979 else
1980   am__leading_dot=_
1981 fi
1982 rmdir .tst 2>/dev/null
1983
1984 # test to see if srcdir already configured
1985 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1986    test -f $srcdir/config.status; then
1987   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1988 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1989    { (exit 1); exit 1; }; }
1990 fi
1991
1992 # test whether we have cygpath
1993 if test -z "$CYGPATH_W"; then
1994   if (cygpath --version) >/dev/null 2>/dev/null; then
1995     CYGPATH_W='cygpath -w'
1996   else
1997     CYGPATH_W=echo
1998   fi
1999 fi
2000
2001
2002 # Define the identity of the package.
2003  PACKAGE='libgomp'
2004  VERSION='1.0'
2005
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE "$PACKAGE"
2009 _ACEOF
2010
2011
2012 cat >>confdefs.h <<_ACEOF
2013 #define VERSION "$VERSION"
2014 _ACEOF
2015
2016 # Some tools Automake needs.
2017
2018 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2019
2020
2021 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2022
2023
2024 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2025
2026
2027 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2028
2029
2030 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2031
2032 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2033
2034 # Installed binaries are usually stripped using `strip' when the user
2035 # run `make install-strip'.  However `strip' might not be the right
2036 # tool to use in cross-compilation environments, therefore Automake
2037 # will honor the `STRIP' environment variable to overrule this program.
2038 if test "$cross_compiling" != no; then
2039   if test -n "$ac_tool_prefix"; then
2040   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2041 set dummy ${ac_tool_prefix}strip; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_STRIP+set}" = set; then
2045   echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047   if test -n "$STRIP"; then
2048   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053   IFS=$as_save_IFS
2054   test -z "$as_dir" && as_dir=.
2055   for ac_exec_ext in '' $ac_executable_extensions; do
2056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059     break 2
2060   fi
2061 done
2062 done
2063
2064 fi
2065 fi
2066 STRIP=$ac_cv_prog_STRIP
2067 if test -n "$STRIP"; then
2068   echo "$as_me:$LINENO: result: $STRIP" >&5
2069 echo "${ECHO_T}$STRIP" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075 fi
2076 if test -z "$ac_cv_prog_STRIP"; then
2077   ac_ct_STRIP=$STRIP
2078   # Extract the first word of "strip", so it can be a program name with args.
2079 set dummy strip; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2083   echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085   if test -n "$ac_ct_STRIP"; then
2086   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2087 else
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091   IFS=$as_save_IFS
2092   test -z "$as_dir" && as_dir=.
2093   for ac_exec_ext in '' $ac_executable_extensions; do
2094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095     ac_cv_prog_ac_ct_STRIP="strip"
2096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097     break 2
2098   fi
2099 done
2100 done
2101
2102   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2103 fi
2104 fi
2105 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2106 if test -n "$ac_ct_STRIP"; then
2107   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2108 echo "${ECHO_T}$ac_ct_STRIP" >&6
2109 else
2110   echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2112 fi
2113
2114   STRIP=$ac_ct_STRIP
2115 else
2116   STRIP="$ac_cv_prog_STRIP"
2117 fi
2118
2119 fi
2120 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2121
2122 # We need awk for the "check" target.  The system "awk" is bad on
2123 # some platforms.
2124 # Always define AMTAR for backward compatibility.
2125
2126 AMTAR=${AMTAR-"${am_missing_run}tar"}
2127
2128 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2129
2130
2131
2132
2133
2134 # Default to --enable-multilib
2135 # Check whether --enable-multilib or --disable-multilib was given.
2136 if test "${enable_multilib+set}" = set; then
2137   enableval="$enable_multilib"
2138   case "$enableval" in
2139   yes) multilib=yes ;;
2140   no)  multilib=no ;;
2141   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2142 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2143    { (exit 1); exit 1; }; } ;;
2144  esac
2145 else
2146   multilib=yes
2147 fi;
2148
2149 # We may get other options which we leave undocumented:
2150 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2151 # See config-ml.in if you want the gory details.
2152
2153 if test "$srcdir" = "."; then
2154   if test "$with_target_subdir" != "."; then
2155     multi_basedir="$srcdir/$with_multisrctop../.."
2156   else
2157     multi_basedir="$srcdir/$with_multisrctop.."
2158   fi
2159 else
2160   multi_basedir="$srcdir/.."
2161 fi
2162
2163
2164 # Even if the default multilib is not a cross compilation,
2165 # it may be that some of the other multilibs are.
2166 if test $cross_compiling = no && test $multilib = yes \
2167    && test "x${with_multisubdir}" != x ; then
2168    cross_compiling=maybe
2169 fi
2170
2171           ac_config_commands="$ac_config_commands default-1"
2172
2173
2174 # Calculate toolexeclibdir
2175 # Also toolexecdir, though it's only used in toolexeclibdir
2176 case ${enable_version_specific_runtime_libs} in
2177   yes)
2178     # Need the gcc compiler version to know where to install libraries
2179     # and header files if --enable-version-specific-runtime-libs option
2180     # is selected.
2181     toolexecdir='$(libdir)/gcc/$(target_alias)'
2182     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2183     ;;
2184   no)
2185     if test -n "$with_cross_host" &&
2186        test x"$with_cross_host" != x"no"; then
2187       # Install a library built with a cross compiler in tooldir, not libdir.
2188       toolexecdir='$(exec_prefix)/$(target_alias)'
2189       toolexeclibdir='$(toolexecdir)/lib'
2190     else
2191       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2192       toolexeclibdir='$(libdir)'
2193     fi
2194     multi_os_directory=`$CC -print-multi-os-directory`
2195     case $multi_os_directory in
2196       .) ;; # Avoid trailing /.
2197       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2198     esac
2199     ;;
2200 esac
2201
2202
2203
2204 # Check the compiler.
2205 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2206 # We must force CC to /not/ be precious variables; otherwise
2207 # the wrong, non-multilib-adjusted value will be used in multilibs.
2208 # As a side effect, we have to subst CFLAGS ourselves.
2209
2210
2211
2212 ac_ext=c
2213 ac_cpp='$CPP $CPPFLAGS'
2214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217 if test -n "$ac_tool_prefix"; then
2218   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2219 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_CC+set}" = set; then
2223   echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225   if test -n "$CC"; then
2226   ac_cv_prog_CC="$CC" # Let the user override the test.
2227 else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2230 do
2231   IFS=$as_save_IFS
2232   test -z "$as_dir" && as_dir=.
2233   for ac_exec_ext in '' $ac_executable_extensions; do
2234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237     break 2
2238   fi
2239 done
2240 done
2241
2242 fi
2243 fi
2244 CC=$ac_cv_prog_CC
2245 if test -n "$CC"; then
2246   echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6
2248 else
2249   echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2251 fi
2252
2253 fi
2254 if test -z "$ac_cv_prog_CC"; then
2255   ac_ct_CC=$CC
2256   # Extract the first word of "gcc", so it can be a program name with args.
2257 set dummy gcc; ac_word=$2
2258 echo "$as_me:$LINENO: checking for $ac_word" >&5
2259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2261   echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263   if test -n "$ac_ct_CC"; then
2264   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2265 else
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2268 do
2269   IFS=$as_save_IFS
2270   test -z "$as_dir" && as_dir=.
2271   for ac_exec_ext in '' $ac_executable_extensions; do
2272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2273     ac_cv_prog_ac_ct_CC="gcc"
2274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275     break 2
2276   fi
2277 done
2278 done
2279
2280 fi
2281 fi
2282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2283 if test -n "$ac_ct_CC"; then
2284   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2285 echo "${ECHO_T}$ac_ct_CC" >&6
2286 else
2287   echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6
2289 fi
2290
2291   CC=$ac_ct_CC
2292 else
2293   CC="$ac_cv_prog_CC"
2294 fi
2295
2296 if test -z "$CC"; then
2297   if test -n "$ac_tool_prefix"; then
2298   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2299 set dummy ${ac_tool_prefix}cc; ac_word=$2
2300 echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   if test -n "$CC"; then
2306   ac_cv_prog_CC="$CC" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311   IFS=$as_save_IFS
2312   test -z "$as_dir" && as_dir=.
2313   for ac_exec_ext in '' $ac_executable_extensions; do
2314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2315     ac_cv_prog_CC="${ac_tool_prefix}cc"
2316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317     break 2
2318   fi
2319 done
2320 done
2321
2322 fi
2323 fi
2324 CC=$ac_cv_prog_CC
2325 if test -n "$CC"; then
2326   echo "$as_me:$LINENO: result: $CC" >&5
2327 echo "${ECHO_T}$CC" >&6
2328 else
2329   echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6
2331 fi
2332
2333 fi
2334 if test -z "$ac_cv_prog_CC"; then
2335   ac_ct_CC=$CC
2336   # Extract the first word of "cc", so it can be a program name with args.
2337 set dummy cc; ac_word=$2
2338 echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2341   echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343   if test -n "$ac_ct_CC"; then
2344   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349   IFS=$as_save_IFS
2350   test -z "$as_dir" && as_dir=.
2351   for ac_exec_ext in '' $ac_executable_extensions; do
2352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353     ac_cv_prog_ac_ct_CC="cc"
2354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355     break 2
2356   fi
2357 done
2358 done
2359
2360 fi
2361 fi
2362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2363 if test -n "$ac_ct_CC"; then
2364   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2365 echo "${ECHO_T}$ac_ct_CC" >&6
2366 else
2367   echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2369 fi
2370
2371   CC=$ac_ct_CC
2372 else
2373   CC="$ac_cv_prog_CC"
2374 fi
2375
2376 fi
2377 if test -z "$CC"; then
2378   # Extract the first word of "cc", so it can be a program name with args.
2379 set dummy cc; ac_word=$2
2380 echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382 if test "${ac_cv_prog_CC+set}" = set; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   if test -n "$CC"; then
2386   ac_cv_prog_CC="$CC" # Let the user override the test.
2387 else
2388   ac_prog_rejected=no
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392   IFS=$as_save_IFS
2393   test -z "$as_dir" && as_dir=.
2394   for ac_exec_ext in '' $ac_executable_extensions; do
2395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2396     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2397        ac_prog_rejected=yes
2398        continue
2399      fi
2400     ac_cv_prog_CC="cc"
2401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402     break 2
2403   fi
2404 done
2405 done
2406
2407 if test $ac_prog_rejected = yes; then
2408   # We found a bogon in the path, so make sure we never use it.
2409   set dummy $ac_cv_prog_CC
2410   shift
2411   if test $# != 0; then
2412     # We chose a different compiler from the bogus one.
2413     # However, it has the same basename, so the bogon will be chosen
2414     # first if we set CC to just the basename; use the full file name.
2415     shift
2416     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2417   fi
2418 fi
2419 fi
2420 fi
2421 CC=$ac_cv_prog_CC
2422 if test -n "$CC"; then
2423   echo "$as_me:$LINENO: result: $CC" >&5
2424 echo "${ECHO_T}$CC" >&6
2425 else
2426   echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6
2428 fi
2429
2430 fi
2431 if test -z "$CC"; then
2432   if test -n "$ac_tool_prefix"; then
2433   for ac_prog in cl
2434   do
2435     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2437 echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   if test -n "$CC"; then
2443   ac_cv_prog_CC="$CC" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450   for ac_exec_ext in '' $ac_executable_extensions; do
2451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457 done
2458
2459 fi
2460 fi
2461 CC=$ac_cv_prog_CC
2462 if test -n "$CC"; then
2463   echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6
2465 else
2466   echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6
2468 fi
2469
2470     test -n "$CC" && break
2471   done
2472 fi
2473 if test -z "$CC"; then
2474   ac_ct_CC=$CC
2475   for ac_prog in cl
2476 do
2477   # Extract the first word of "$ac_prog", so it can be a program name with args.
2478 set dummy $ac_prog; ac_word=$2
2479 echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482   echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484   if test -n "$ac_ct_CC"; then
2485   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490   IFS=$as_save_IFS
2491   test -z "$as_dir" && as_dir=.
2492   for ac_exec_ext in '' $ac_executable_extensions; do
2493   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494     ac_cv_prog_ac_ct_CC="$ac_prog"
2495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496     break 2
2497   fi
2498 done
2499 done
2500
2501 fi
2502 fi
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6
2507 else
2508   echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2510 fi
2511
2512   test -n "$ac_ct_CC" && break
2513 done
2514
2515   CC=$ac_ct_CC
2516 fi
2517
2518 fi
2519
2520
2521 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2522 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2524 See \`config.log' for more details." >&5
2525 echo "$as_me: error: no acceptable C compiler found in \$PATH
2526 See \`config.log' for more details." >&2;}
2527    { (exit 1); exit 1; }; }; }
2528
2529 # Provide some information about the compiler.
2530 echo "$as_me:$LINENO:" \
2531      "checking for C compiler version" >&5
2532 ac_compiler=`set X $ac_compile; echo $2`
2533 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2534   (eval $ac_compiler --version </dev/null >&5) 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); }
2538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2539   (eval $ac_compiler -v </dev/null >&5) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }
2543 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2544   (eval $ac_compiler -V </dev/null >&5) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }
2548
2549 cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h.  */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h.  */
2555
2556 int
2557 main ()
2558 {
2559
2560   ;
2561   return 0;
2562 }
2563 _ACEOF
2564 ac_clean_files_save=$ac_clean_files
2565 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2566 # Try to create an executable without -o first, disregard a.out.
2567 # It will help us diagnose broken compilers, and finding out an intuition
2568 # of exeext.
2569 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2570 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2571 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2572 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2573   (eval $ac_link_default) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }; then
2577   # Find the output, starting from the most likely.  This scheme is
2578 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2579 # resort.
2580
2581 # Be careful to initialize this variable, since it used to be cached.
2582 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2583 ac_cv_exeext=
2584 # b.out is created by i960 compilers.
2585 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2586 do
2587   test -f "$ac_file" || continue
2588   case $ac_file in
2589     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2590         ;;
2591     conftest.$ac_ext )
2592         # This is the source file.
2593         ;;
2594     [ab].out )
2595         # We found the default executable, but exeext='' is most
2596         # certainly right.
2597         break;;
2598     *.* )
2599         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2600         # FIXME: I believe we export ac_cv_exeext for Libtool,
2601         # but it would be cool to find out if it's true.  Does anybody
2602         # maintain Libtool? --akim.
2603         export ac_cv_exeext
2604         break;;
2605     * )
2606         break;;
2607   esac
2608 done
2609 else
2610   echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2614 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: C compiler cannot create executables
2618 See \`config.log' for more details." >&2;}
2619    { (exit 77); exit 77; }; }; }
2620 fi
2621
2622 ac_exeext=$ac_cv_exeext
2623 echo "$as_me:$LINENO: result: $ac_file" >&5
2624 echo "${ECHO_T}$ac_file" >&6
2625
2626 # Check the compiler produces executables we can run.  If not, either
2627 # the compiler is broken, or we cross compile.
2628 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2629 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2630 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2631 # If not cross compiling, check that we can run a simple program.
2632 if test "$cross_compiling" != yes; then
2633   if { ac_try='./$ac_file'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639     cross_compiling=no
2640   else
2641     if test "$cross_compiling" = maybe; then
2642         cross_compiling=yes
2643     else
2644         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2645 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2646 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2647 If you meant to cross compile, use \`--host'.
2648 See \`config.log' for more details." >&5
2649 echo "$as_me: error: cannot run C compiled programs.
2650 If you meant to cross compile, use \`--host'.
2651 See \`config.log' for more details." >&2;}
2652    { (exit 1); exit 1; }; }; }
2653     fi
2654   fi
2655 fi
2656 echo "$as_me:$LINENO: result: yes" >&5
2657 echo "${ECHO_T}yes" >&6
2658
2659 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2660 ac_clean_files=$ac_clean_files_save
2661 # Check the compiler produces executables we can run.  If not, either
2662 # the compiler is broken, or we cross compile.
2663 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2664 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2665 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2666 echo "${ECHO_T}$cross_compiling" >&6
2667
2668 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2669 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2671   (eval $ac_link) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; then
2675   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2676 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2677 # work properly (i.e., refer to `conftest.exe'), while it won't with
2678 # `rm'.
2679 for ac_file in conftest.exe conftest conftest.*; do
2680   test -f "$ac_file" || continue
2681   case $ac_file in
2682     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2683     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2684           export ac_cv_exeext
2685           break;;
2686     * ) break;;
2687   esac
2688 done
2689 else
2690   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2691 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2695 See \`config.log' for more details." >&2;}
2696    { (exit 1); exit 1; }; }; }
2697 fi
2698
2699 rm -f conftest$ac_cv_exeext
2700 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2701 echo "${ECHO_T}$ac_cv_exeext" >&6
2702
2703 rm -f conftest.$ac_ext
2704 EXEEXT=$ac_cv_exeext
2705 ac_exeext=$EXEEXT
2706 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2707 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2708 if test "${ac_cv_objext+set}" = set; then
2709   echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711   cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h.  */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h.  */
2717
2718 int
2719 main ()
2720 {
2721
2722   ;
2723   return 0;
2724 }
2725 _ACEOF
2726 rm -f conftest.o conftest.obj
2727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728   (eval $ac_compile) 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; then
2732   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2733   case $ac_file in
2734     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2735     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2736        break;;
2737   esac
2738 done
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2744 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2746 See \`config.log' for more details." >&5
2747 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2748 See \`config.log' for more details." >&2;}
2749    { (exit 1); exit 1; }; }; }
2750 fi
2751
2752 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2753 fi
2754 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2755 echo "${ECHO_T}$ac_cv_objext" >&6
2756 OBJEXT=$ac_cv_objext
2757 ac_objext=$OBJEXT
2758 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2759 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2760 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763   cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h.  */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h.  */
2769
2770 int
2771 main ()
2772 {
2773 #ifndef __GNUC__
2774        choke me
2775 #endif
2776
2777   ;
2778   return 0;
2779 }
2780 _ACEOF
2781 rm -f conftest.$ac_objext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783   (eval $ac_compile) 2>conftest.er1
2784   ac_status=$?
2785   grep -v '^ *+' conftest.er1 >conftest.err
2786   rm -f conftest.er1
2787   cat conftest.err >&5
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); } &&
2790          { ac_try='test -z "$ac_c_werror_flag"
2791                          || test ! -s conftest.err'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; } &&
2797          { ac_try='test -s conftest.$ac_objext'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; }; then
2803   ac_compiler_gnu=yes
2804 else
2805   echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808 ac_compiler_gnu=no
2809 fi
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2812
2813 fi
2814 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2815 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2816 GCC=`test $ac_compiler_gnu = yes && echo yes`
2817 ac_test_CFLAGS=${CFLAGS+set}
2818 ac_save_CFLAGS=$CFLAGS
2819 CFLAGS="-g"
2820 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2821 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2822 if test "${ac_cv_prog_cc_g+set}" = set; then
2823   echo $ECHO_N "(cached) $ECHO_C" >&6
2824 else
2825   cat >conftest.$ac_ext <<_ACEOF
2826 /* confdefs.h.  */
2827 _ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h.  */
2831
2832 int
2833 main ()
2834 {
2835
2836   ;
2837   return 0;
2838 }
2839 _ACEOF
2840 rm -f conftest.$ac_objext
2841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842   (eval $ac_compile) 2>conftest.er1
2843   ac_status=$?
2844   grep -v '^ *+' conftest.er1 >conftest.err
2845   rm -f conftest.er1
2846   cat conftest.err >&5
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); } &&
2849          { ac_try='test -z "$ac_c_werror_flag"
2850                          || test ! -s conftest.err'
2851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; } &&
2856          { ac_try='test -s conftest.$ac_objext'
2857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858   (eval $ac_try) 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); }; }; then
2862   ac_cv_prog_cc_g=yes
2863 else
2864   echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2866
2867 ac_cv_prog_cc_g=no
2868 fi
2869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2870 fi
2871 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2872 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2873 if test "$ac_test_CFLAGS" = set; then
2874   CFLAGS=$ac_save_CFLAGS
2875 elif test $ac_cv_prog_cc_g = yes; then
2876   if test "$GCC" = yes; then
2877     CFLAGS="-g -O2"
2878   else
2879     CFLAGS="-g"
2880   fi
2881 else
2882   if test "$GCC" = yes; then
2883     CFLAGS="-O2"
2884   else
2885     CFLAGS=
2886   fi
2887 fi
2888 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2889 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2890 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2891   echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893   ac_cv_prog_cc_stdc=no
2894 ac_save_CC=$CC
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h.  */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h.  */
2901 #include <stdarg.h>
2902 #include <stdio.h>
2903 #include <sys/types.h>
2904 #include <sys/stat.h>
2905 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2906 struct buf { int x; };
2907 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2908 static char *e (p, i)
2909      char **p;
2910      int i;
2911 {
2912   return p[i];
2913 }
2914 static char *f (char * (*g) (char **, int), char **p, ...)
2915 {
2916   char *s;
2917   va_list v;
2918   va_start (v,p);
2919   s = g (p, va_arg (v,int));
2920   va_end (v);
2921   return s;
2922 }
2923
2924 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2925    function prototypes and stuff, but not '\xHH' hex character constants.
2926    These don't provoke an error unfortunately, instead are silently treated
2927    as 'x'.  The following induces an error, until -std1 is added to get
2928    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2929    array size at least.  It's necessary to write '\x00'==0 to get something
2930    that's true only with -std1.  */
2931 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2932
2933 int test (int i, double x);
2934 struct s1 {int (*f) (int a);};
2935 struct s2 {int (*f) (double a);};
2936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2937 int argc;
2938 char **argv;
2939 int
2940 main ()
2941 {
2942 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 # Don't try gcc -ansi; that turns off useful extensions and
2948 # breaks some systems' header files.
2949 # AIX                   -qlanglvl=ansi
2950 # Ultrix and OSF/1      -std1
2951 # HP-UX 10.20 and later -Ae
2952 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2953 # SVR4                  -Xc -D__EXTENSIONS__
2954 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2955 do
2956   CC="$ac_save_CC $ac_arg"
2957   rm -f conftest.$ac_objext
2958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959   (eval $ac_compile) 2>conftest.er1
2960   ac_status=$?
2961   grep -v '^ *+' conftest.er1 >conftest.err
2962   rm -f conftest.er1
2963   cat conftest.err >&5
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); } &&
2966          { ac_try='test -z "$ac_c_werror_flag"
2967                          || test ! -s conftest.err'
2968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969   (eval $ac_try) 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; } &&
2973          { ac_try='test -s conftest.$ac_objext'
2974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975   (eval $ac_try) 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; }; then
2979   ac_cv_prog_cc_stdc=$ac_arg
2980 break
2981 else
2982   echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2984
2985 fi
2986 rm -f conftest.err conftest.$ac_objext
2987 done
2988 rm -f conftest.$ac_ext conftest.$ac_objext
2989 CC=$ac_save_CC
2990
2991 fi
2992
2993 case "x$ac_cv_prog_cc_stdc" in
2994   x|xno)
2995     echo "$as_me:$LINENO: result: none needed" >&5
2996 echo "${ECHO_T}none needed" >&6 ;;
2997   *)
2998     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2999 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3000     CC="$CC $ac_cv_prog_cc_stdc" ;;
3001 esac
3002
3003 # Some people use a C++ compiler to compile C.  Since we use `exit',
3004 # in C++ we need to declare it.  In case someone uses the same compiler
3005 # for both compiling C and C++ we need to have the C++ compiler decide
3006 # the declaration of exit, since it's the most demanding environment.
3007 cat >conftest.$ac_ext <<_ACEOF
3008 #ifndef __cplusplus
3009   choke me
3010 #endif
3011 _ACEOF
3012 rm -f conftest.$ac_objext
3013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014   (eval $ac_compile) 2>conftest.er1
3015   ac_status=$?
3016   grep -v '^ *+' conftest.er1 >conftest.err
3017   rm -f conftest.er1
3018   cat conftest.err >&5
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); } &&
3021          { ac_try='test -z "$ac_c_werror_flag"
3022                          || test ! -s conftest.err'
3023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024   (eval $ac_try) 2>&5
3025   ac_status=$?
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); }; } &&
3028          { ac_try='test -s conftest.$ac_objext'
3029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030   (eval $ac_try) 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); }; }; then
3034   for ac_declaration in \
3035    '' \
3036    'extern "C" void std::exit (int) throw (); using std::exit;' \
3037    'extern "C" void std::exit (int); using std::exit;' \
3038    'extern "C" void exit (int) throw ();' \
3039    'extern "C" void exit (int);' \
3040    'void exit (int);'
3041 do
3042   cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h.  */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h.  */
3048 $ac_declaration
3049 #include <stdlib.h>
3050 int
3051 main ()
3052 {
3053 exit (42);
3054   ;
3055   return 0;
3056 }
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060   (eval $ac_compile) 2>conftest.er1
3061   ac_status=$?
3062   grep -v '^ *+' conftest.er1 >conftest.err
3063   rm -f conftest.er1
3064   cat conftest.err >&5
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); } &&
3067          { ac_try='test -z "$ac_c_werror_flag"
3068                          || test ! -s conftest.err'
3069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070   (eval $ac_try) 2>&5
3071   ac_status=$?
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); }; } &&
3074          { ac_try='test -s conftest.$ac_objext'
3075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076   (eval $ac_try) 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }; }; then
3080   :
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 continue
3086 fi
3087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3088   cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h.  */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h.  */
3094 $ac_declaration
3095 int
3096 main ()
3097 {
3098 exit (42);
3099   ;
3100   return 0;
3101 }
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105   (eval $ac_compile) 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } &&
3112          { ac_try='test -z "$ac_c_werror_flag"
3113                          || test ! -s conftest.err'
3114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115   (eval $ac_try) 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; } &&
3119          { ac_try='test -s conftest.$ac_objext'
3120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121   (eval $ac_try) 2>&5
3122   ac_status=$?
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); }; }; then
3125   break
3126 else
3127   echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130 fi
3131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3132 done
3133 rm -f conftest*
3134 if test -n "$ac_declaration"; then
3135   echo '#ifdef __cplusplus' >>confdefs.h
3136   echo $ac_declaration      >>confdefs.h
3137   echo '#endif'             >>confdefs.h
3138 fi
3139
3140 else
3141   echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 fi
3145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3146 ac_ext=c
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 DEPDIR="${am__leading_dot}deps"
3152
3153           ac_config_commands="$ac_config_commands depfiles"
3154
3155
3156 am_make=${MAKE-make}
3157 cat > confinc << 'END'
3158 am__doit:
3159         @echo done
3160 .PHONY: am__doit
3161 END
3162 # If we don't find an include directive, just comment out the code.
3163 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3164 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3165 am__include="#"
3166 am__quote=
3167 _am_result=none
3168 # First try GNU make style include.
3169 echo "include confinc" > confmf
3170 # We grep out `Entering directory' and `Leaving directory'
3171 # messages which can occur if `w' ends up in MAKEFLAGS.
3172 # In particular we don't look at `^make:' because GNU make might
3173 # be invoked under some other name (usually "gmake"), in which
3174 # case it prints its new name instead of `make'.
3175 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3176    am__include=include
3177    am__quote=
3178    _am_result=GNU
3179 fi
3180 # Now try BSD make style include.
3181 if test "$am__include" = "#"; then
3182    echo '.include "confinc"' > confmf
3183    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3184       am__include=.include
3185       am__quote="\""
3186       _am_result=BSD
3187    fi
3188 fi
3189
3190
3191 echo "$as_me:$LINENO: result: $_am_result" >&5
3192 echo "${ECHO_T}$_am_result" >&6
3193 rm -f confinc confmf
3194
3195 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3196 if test "${enable_dependency_tracking+set}" = set; then
3197   enableval="$enable_dependency_tracking"
3198
3199 fi;
3200 if test "x$enable_dependency_tracking" != xno; then
3201   am_depcomp="$ac_aux_dir/depcomp"
3202   AMDEPBACKSLASH='\'
3203 fi
3204
3205
3206 if test "x$enable_dependency_tracking" != xno; then
3207   AMDEP_TRUE=
3208   AMDEP_FALSE='#'
3209 else
3210   AMDEP_TRUE='#'
3211   AMDEP_FALSE=
3212 fi
3213
3214
3215
3216
3217 depcc="$CC"   am_compiler_list=
3218
3219 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3220 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3221 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3222   echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3225   # We make a subdir and do the tests there.  Otherwise we can end up
3226   # making bogus files that we don't know about and never remove.  For
3227   # instance it was reported that on HP-UX the gcc test will end up
3228   # making a dummy file named `D' -- because `-MD' means `put the output
3229   # in D'.
3230   mkdir conftest.dir
3231   # Copy depcomp to subdir because otherwise we won't find it if we're
3232   # using a relative directory.
3233   cp "$am_depcomp" conftest.dir
3234   cd conftest.dir
3235   # We will build objects and dependencies in a subdirectory because
3236   # it helps to detect inapplicable dependency modes.  For instance
3237   # both Tru64's cc and ICC support -MD to output dependencies as a
3238   # side effect of compilation, but ICC will put the dependencies in
3239   # the current directory while Tru64 will put them in the object
3240   # directory.
3241   mkdir sub
3242
3243   am_cv_CC_dependencies_compiler_type=none
3244   if test "$am_compiler_list" = ""; then
3245      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3246   fi
3247   for depmode in $am_compiler_list; do
3248     # Setup a source with many dependencies, because some compilers
3249     # like to wrap large dependency lists on column 80 (with \), and
3250     # we should not choose a depcomp mode which is confused by this.
3251     #
3252     # We need to recreate these files for each test, as the compiler may
3253     # overwrite some of them when testing with obscure command lines.
3254     # This happens at least with the AIX C compiler.
3255     : > sub/conftest.c
3256     for i in 1 2 3 4 5 6; do
3257       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3258       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3259       # Solaris 8's {/usr,}/bin/sh.
3260       touch sub/conftst$i.h
3261     done
3262     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3263
3264     case $depmode in
3265     nosideeffect)
3266       # after this tag, mechanisms are not by side-effect, so they'll
3267       # only be used when explicitly requested
3268       if test "x$enable_dependency_tracking" = xyes; then
3269         continue
3270       else
3271         break
3272       fi
3273       ;;
3274     none) break ;;
3275     esac
3276     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3277     # mode.  It turns out that the SunPro C++ compiler does not properly
3278     # handle `-M -o', and we need to detect this.
3279     if depmode=$depmode \
3280        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3281        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3282        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3283          >/dev/null 2>conftest.err &&
3284        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3285        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3286        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3287       # icc doesn't choke on unknown options, it will just issue warnings
3288       # or remarks (even with -Werror).  So we grep stderr for any message
3289       # that says an option was ignored or not supported.
3290       # When given -MP, icc 7.0 and 7.1 complain thusly:
3291       #   icc: Command line warning: ignoring option '-M'; no argument required
3292       # The diagnosis changed in icc 8.0:
3293       #   icc: Command line remark: option '-MP' not supported
3294       if (grep 'ignoring option' conftest.err ||
3295           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3296         am_cv_CC_dependencies_compiler_type=$depmode
3297         break
3298       fi
3299     fi
3300   done
3301
3302   cd ..
3303   rm -rf conftest.dir
3304 else
3305   am_cv_CC_dependencies_compiler_type=none
3306 fi
3307
3308 fi
3309 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3310 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3311 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3312
3313
3314
3315 if
3316   test "x$enable_dependency_tracking" != xno \
3317   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3318   am__fastdepCC_TRUE=
3319   am__fastdepCC_FALSE='#'
3320 else
3321   am__fastdepCC_TRUE='#'
3322   am__fastdepCC_FALSE=
3323 fi
3324
3325
3326
3327
3328
3329
3330 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3331 # in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
3332 # in both places for now and restore CFLAGS at the end of config.
3333 save_CFLAGS="$CFLAGS"
3334
3335 # Add -Wall -Werror if we are using GCC.
3336 if test "x$GCC" = "xyes"; then
3337   XCFLAGS="$XCFLAGS -Wall -Werror"
3338 fi
3339
3340 # Find other programs we need.
3341 if test -n "$ac_tool_prefix"; then
3342   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3343 set dummy ${ac_tool_prefix}ar; ac_word=$2
3344 echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346 if test "${ac_cv_prog_AR+set}" = set; then
3347   echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349   if test -n "$AR"; then
3350   ac_cv_prog_AR="$AR" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355   IFS=$as_save_IFS
3356   test -z "$as_dir" && as_dir=.
3357   for ac_exec_ext in '' $ac_executable_extensions; do
3358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359     ac_cv_prog_AR="${ac_tool_prefix}ar"
3360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361     break 2
3362   fi
3363 done
3364 done
3365
3366 fi
3367 fi
3368 AR=$ac_cv_prog_AR
3369 if test -n "$AR"; then
3370   echo "$as_me:$LINENO: result: $AR" >&5
3371 echo "${ECHO_T}$AR" >&6
3372 else
3373   echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3375 fi
3376
3377 fi
3378 if test -z "$ac_cv_prog_AR"; then
3379   ac_ct_AR=$AR
3380   # Extract the first word of "ar", so it can be a program name with args.
3381 set dummy ar; ac_word=$2
3382 echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3384 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3385   echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387   if test -n "$ac_ct_AR"; then
3388   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395   for ac_exec_ext in '' $ac_executable_extensions; do
3396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397     ac_cv_prog_ac_ct_AR="ar"
3398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402 done
3403
3404 fi
3405 fi
3406 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3407 if test -n "$ac_ct_AR"; then
3408   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3409 echo "${ECHO_T}$ac_ct_AR" >&6
3410 else
3411   echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3413 fi
3414
3415   AR=$ac_ct_AR
3416 else
3417   AR="$ac_cv_prog_AR"
3418 fi
3419
3420 if test -n "$ac_tool_prefix"; then
3421   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3422 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3423 echo "$as_me:$LINENO: checking for $ac_word" >&5
3424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425 if test "${ac_cv_prog_RANLIB+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428   if test -n "$RANLIB"; then
3429   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434   IFS=$as_save_IFS
3435   test -z "$as_dir" && as_dir=.
3436   for ac_exec_ext in '' $ac_executable_extensions; do
3437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440     break 2
3441   fi
3442 done
3443 done
3444
3445 fi
3446 fi
3447 RANLIB=$ac_cv_prog_RANLIB
3448 if test -n "$RANLIB"; then
3449   echo "$as_me:$LINENO: result: $RANLIB" >&5
3450 echo "${ECHO_T}$RANLIB" >&6
3451 else
3452   echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3454 fi
3455
3456 fi
3457 if test -z "$ac_cv_prog_RANLIB"; then
3458   ac_ct_RANLIB=$RANLIB
3459   # Extract the first word of "ranlib", so it can be a program name with args.
3460 set dummy ranlib; ac_word=$2
3461 echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   if test -n "$ac_ct_RANLIB"; then
3467   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472   IFS=$as_save_IFS
3473   test -z "$as_dir" && as_dir=.
3474   for ac_exec_ext in '' $ac_executable_extensions; do
3475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476     ac_cv_prog_ac_ct_RANLIB="ranlib"
3477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478     break 2
3479   fi
3480 done
3481 done
3482
3483   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3484 fi
3485 fi
3486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3487 if test -n "$ac_ct_RANLIB"; then
3488   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3489 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3490 else
3491   echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3493 fi
3494
3495   RANLIB=$ac_ct_RANLIB
3496 else
3497   RANLIB="$ac_cv_prog_RANLIB"
3498 fi
3499
3500 # Extract the first word of "perl", so it can be a program name with args.
3501 set dummy perl; ac_word=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_path_PERL+set}" = set; then
3505   echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507   case $PERL in
3508   [\\/]* | ?:[\\/]*)
3509   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3510   ;;
3511   *)
3512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515   IFS=$as_save_IFS
3516   test -z "$as_dir" && as_dir=.
3517   for ac_exec_ext in '' $ac_executable_extensions; do
3518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521     break 2
3522   fi
3523 done
3524 done
3525
3526   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3527   ;;
3528 esac
3529 fi
3530 PERL=$ac_cv_path_PERL
3531
3532 if test -n "$PERL"; then
3533   echo "$as_me:$LINENO: result: $PERL" >&5
3534 echo "${ECHO_T}$PERL" >&6
3535 else
3536   echo "$as_me:$LINENO: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3538 fi
3539
3540 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3541 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3542 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3543 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   cat >conftest.make <<\_ACEOF
3547 all:
3548         @echo 'ac_maketemp="$(MAKE)"'
3549 _ACEOF
3550 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3551 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3552 if test -n "$ac_maketemp"; then
3553   eval ac_cv_prog_make_${ac_make}_set=yes
3554 else
3555   eval ac_cv_prog_make_${ac_make}_set=no
3556 fi
3557 rm -f conftest.make
3558 fi
3559 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3560   echo "$as_me:$LINENO: result: yes" >&5
3561 echo "${ECHO_T}yes" >&6
3562   SET_MAKE=
3563 else
3564   echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6
3566   SET_MAKE="MAKE=${MAKE-make}"
3567 fi
3568
3569 # Find a good install program.  We prefer a C program (faster),
3570 # so one script is as good as another.  But avoid the broken or
3571 # incompatible versions:
3572 # SysV /etc/install, /usr/sbin/install
3573 # SunOS /usr/etc/install
3574 # IRIX /sbin/install
3575 # AIX /bin/install
3576 # AmigaOS /C/install, which installs bootblocks on floppy discs
3577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3580 # OS/2's system install, which has a completely different semantic
3581 # ./install, which can be erroneously created by make from ./install.sh.
3582 # Reject install programs that cannot install multiple files.
3583 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3584 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3585 if test -z "$INSTALL"; then
3586 if test "${ac_cv_path_install+set}" = set; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3591 do
3592   IFS=$as_save_IFS
3593   test -z "$as_dir" && as_dir=.
3594   # Account for people who put trailing slashes in PATH elements.
3595 case $as_dir/ in
3596   ./ | .// | /cC/* | \
3597   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3598   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3599   /usr/ucb/* ) ;;
3600   *)
3601     # OSF1 and SCO ODT 3.0 have their own names for install.
3602     # Don't use installbsd from OSF since it installs stuff as root
3603     # by default.
3604     for ac_prog in ginstall scoinst install; do
3605       for ac_exec_ext in '' $ac_executable_extensions; do
3606         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3607           if test $ac_prog = install &&
3608             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3609             # AIX install.  It has an incompatible calling convention.
3610             :
3611           elif test $ac_prog = install &&
3612             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3613             # program-specific install script used by HP pwplus--don't use.
3614             :
3615           else
3616             rm -rf conftest.one conftest.two conftest.dir
3617             echo one > conftest.one
3618             echo two > conftest.two
3619             mkdir conftest.dir
3620             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3621               test -s conftest.one && test -s conftest.two &&
3622               test -s conftest.dir/conftest.one &&
3623               test -s conftest.dir/conftest.two
3624             then
3625               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3626               break 3
3627             fi
3628           fi
3629         fi
3630       done
3631     done
3632     ;;
3633 esac
3634 done
3635
3636 rm -rf conftest.one conftest.two conftest.dir
3637
3638 fi
3639   if test "${ac_cv_path_install+set}" = set; then
3640     INSTALL=$ac_cv_path_install
3641   else
3642     # As a last resort, use the slow shell script.  Don't cache a
3643     # value for INSTALL within a source directory, because that will
3644     # break other packages using the cache if that directory is
3645     # removed, or if the value is a relative name.
3646     INSTALL=$ac_install_sh
3647   fi
3648 fi
3649 echo "$as_me:$LINENO: result: $INSTALL" >&5
3650 echo "${ECHO_T}$INSTALL" >&6
3651
3652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3653 # It thinks the first close brace ends the variable substitution.
3654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3655
3656 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3657
3658 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3659
3660
3661 # See if makeinfo has been installed and is modern enough
3662 # that we can use it.
3663
3664   # Extract the first word of "makeinfo", so it can be a program name with args.
3665 set dummy makeinfo; ac_word=$2
3666 echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   if test -n "$MAKEINFO"; then
3672   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3676 do
3677   IFS=$as_save_IFS
3678   test -z "$as_dir" && as_dir=.
3679   for ac_exec_ext in '' $ac_executable_extensions; do
3680   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681     ac_cv_prog_MAKEINFO="makeinfo"
3682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683     break 2
3684   fi
3685 done
3686 done
3687
3688 fi
3689 fi
3690 MAKEINFO=$ac_cv_prog_MAKEINFO
3691 if test -n "$MAKEINFO"; then
3692   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3693 echo "${ECHO_T}$MAKEINFO" >&6
3694 else
3695   echo "$as_me:$LINENO: result: no" >&5
3696 echo "${ECHO_T}no" >&6
3697 fi
3698
3699   if test -n "$MAKEINFO"; then
3700     # Found it, now check the version.
3701     echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3702 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3703 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3704   echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3707                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3708
3709                     case $ac_prog_version in
3710                       '')  gcc_cv_prog_makeinfo_modern=no;;
3711                       4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
3712                       *)   gcc_cv_prog_makeinfo_modern=no;;
3713                     esac
3714
3715 fi
3716 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3717 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3718   else
3719     gcc_cv_prog_makeinfo_modern=no
3720   fi
3721   if test $gcc_cv_prog_makeinfo_modern = no; then
3722     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3723   fi
3724
3725
3726
3727 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3728   BUILD_INFO_TRUE=
3729   BUILD_INFO_FALSE='#'
3730 else
3731   BUILD_INFO_TRUE='#'
3732   BUILD_INFO_FALSE=
3733 fi
3734
3735
3736
3737 # Configure libtool
3738
3739
3740 macro_version='2.1a'
3741 macro_revision='1.2435'
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754 ltmain="$ac_aux_dir/ltmain.sh"
3755
3756 # Set options
3757
3758 enable_dlopen=no
3759
3760
3761 enable_win32_dll=no
3762
3763
3764 # Check whether --enable-shared or --disable-shared was given.
3765 if test "${enable_shared+set}" = set; then
3766   enableval="$enable_shared"
3767   p=${PACKAGE-default}
3768     case $enableval in
3769     yes) enable_shared=yes ;;
3770     no) enable_shared=no ;;
3771     *)
3772       enable_shared=no
3773       # Look at the argument we got.  We use all the common list separators.
3774       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3775       for pkg in $enableval; do
3776         IFS="$lt_save_ifs"
3777         if test "X$pkg" = "X$p"; then
3778           enable_shared=yes
3779         fi
3780       done
3781       IFS="$lt_save_ifs"
3782       ;;
3783     esac
3784 else
3785   enable_shared=yes
3786 fi;
3787
3788
3789
3790
3791
3792
3793
3794
3795 # Check whether --enable-static or --disable-static was given.
3796 if test "${enable_static+set}" = set; then
3797   enableval="$enable_static"
3798   p=${PACKAGE-default}
3799     case $enableval in
3800     yes) enable_static=yes ;;
3801     no) enable_static=no ;;
3802     *)
3803      enable_static=no
3804       # Look at the argument we got.  We use all the common list separators.
3805       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3806       for pkg in $enableval; do
3807         IFS="$lt_save_ifs"
3808         if test "X$pkg" = "X$p"; then
3809           enable_static=yes
3810         fi
3811       done
3812       IFS="$lt_save_ifs"
3813       ;;
3814     esac
3815 else
3816   enable_static=yes
3817 fi;
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827 # Check whether --with-pic or --without-pic was given.
3828 if test "${with_pic+set}" = set; then
3829   withval="$with_pic"
3830   pic_mode="$withval"
3831 else
3832   pic_mode=default
3833 fi;
3834
3835 test -z "$pic_mode" && pic_mode=default
3836
3837
3838
3839
3840
3841
3842
3843 # Check whether --enable-fast-install or --disable-fast-install was given.
3844 if test "${enable_fast_install+set}" = set; then
3845   enableval="$enable_fast_install"
3846   p=${PACKAGE-default}
3847     case $enableval in
3848     yes) enable_fast_install=yes ;;
3849     no) enable_fast_install=no ;;
3850     *)
3851       enable_fast_install=no
3852       # Look at the argument we got.  We use all the common list separators.
3853       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3854       for pkg in $enableval; do
3855         IFS="$lt_save_ifs"
3856         if test "X$pkg" = "X$p"; then
3857           enable_fast_install=yes
3858         fi
3859       done
3860       IFS="$lt_save_ifs"
3861       ;;
3862     esac
3863 else
3864   enable_fast_install=yes
3865 fi;
3866
3867
3868
3869
3870
3871
3872
3873
3874 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3875 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3876 if test "${lt_cv_path_SED+set}" = set; then
3877   echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879   # Loop through the user's path and test for sed and gsed.
3880 # Then use that list of sed's as ones to test for truncation.
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884   IFS=$as_save_IFS
3885   test -z "$as_dir" && as_dir=.
3886   for lt_ac_prog in sed gsed; do
3887     for ac_exec_ext in '' $ac_executable_extensions; do
3888       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3889         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3890       fi
3891     done
3892   done
3893 done
3894 IFS=$as_save_IFS
3895 lt_ac_max=0
3896 lt_ac_count=0
3897 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3898 # along with /bin/sed that truncates output.
3899 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3900   test ! -f $lt_ac_sed && continue
3901   cat /dev/null > conftest.in
3902   lt_ac_count=0
3903   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3904   # Check for GNU sed and select it if it is found.
3905   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3906     lt_cv_path_SED=$lt_ac_sed
3907     break
3908   fi
3909   while true; do
3910     cat conftest.in conftest.in >conftest.tmp
3911     mv conftest.tmp conftest.in
3912     cp conftest.in conftest.nl
3913     echo >>conftest.nl
3914     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3915     cmp -s conftest.out conftest.nl || break
3916     # 10000 chars as input seems more than enough
3917     test $lt_ac_count -gt 10 && break
3918     lt_ac_count=`expr $lt_ac_count + 1`
3919     if test $lt_ac_count -gt $lt_ac_max; then
3920       lt_ac_max=$lt_ac_count
3921       lt_cv_path_SED=$lt_ac_sed
3922     fi
3923   done
3924 done
3925
3926 fi
3927
3928 SED=$lt_cv_path_SED
3929
3930 echo "$as_me:$LINENO: result: $SED" >&5
3931 echo "${ECHO_T}$SED" >&6
3932
3933 test -z "$SED" && SED=sed
3934 Xsed="$SED -e 1s/^X//"
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946 echo "$as_me:$LINENO: checking for egrep" >&5
3947 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3948 if test "${ac_cv_prog_egrep+set}" = set; then
3949   echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3952     then ac_cv_prog_egrep='grep -E'
3953     else ac_cv_prog_egrep='egrep'
3954     fi
3955 fi
3956 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3957 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3958  EGREP=$ac_cv_prog_egrep
3959
3960
3961 echo "$as_me:$LINENO: checking for fgrep" >&5
3962 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3963 if test "${ac_cv_prog_fgrep+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3967     then ac_cv_prog_fgrep='grep -F'
3968     else ac_cv_prog_fgrep='fgrep'
3969     fi
3970 fi
3971 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3972 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3973  FGREP=$ac_cv_prog_fgrep
3974
3975
3976 test -z "$GREP" && GREP=grep
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3997 if test "${with_gnu_ld+set}" = set; then
3998   withval="$with_gnu_ld"
3999   test "$withval" = no || with_gnu_ld=yes
4000 else
4001   with_gnu_ld=no
4002 fi;
4003 ac_prog=ld
4004 if test "$GCC" = yes; then
4005   # Check if gcc -print-prog-name=ld gives a path.
4006   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4007 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4008   case $host in
4009   *-*-mingw*)
4010     # gcc leaves a trailing carriage return which upsets mingw
4011     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4012   *)
4013     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4014   esac
4015   case $ac_prog in
4016     # Accept absolute paths.
4017     [\\/]* | ?:[\\/]*)
4018       re_direlt='/[^/][^/]*/\.\./'
4019       # Canonicalize the pathname of ld
4020       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4021       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4022         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4023       done
4024       test -z "$LD" && LD="$ac_prog"
4025       ;;
4026   "")
4027     # If it fails, then pretend we aren't using GCC.
4028     ac_prog=ld
4029     ;;
4030   *)
4031     # If it is relative, then search for the first ld in PATH.
4032     with_gnu_ld=unknown
4033     ;;
4034   esac
4035 elif test "$with_gnu_ld" = yes; then
4036   echo "$as_me:$LINENO: checking for GNU ld" >&5
4037 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4038 else
4039   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4040 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4041 fi
4042 if test "${lt_cv_path_LD+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   if test -z "$LD"; then
4046   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4047   for ac_dir in $PATH; do
4048     IFS="$lt_save_ifs"
4049     test -z "$ac_dir" && ac_dir=.
4050     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4051       lt_cv_path_LD="$ac_dir/$ac_prog"
4052       # Check to see if the program is GNU ld.  I'd rather use --version,
4053       # but apparently some variants of GNU ld only accept -v.
4054       # Break only if it was the GNU/non-GNU ld that we prefer.
4055       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4056       *GNU* | *'with BFD'*)
4057         test "$with_gnu_ld" != no && break
4058         ;;
4059       *)
4060         test "$with_gnu_ld" != yes && break
4061         ;;
4062       esac
4063     fi
4064   done
4065   IFS="$lt_save_ifs"
4066 else
4067   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4068 fi
4069 fi
4070
4071 LD="$lt_cv_path_LD"
4072 if test -n "$LD"; then
4073   echo "$as_me:$LINENO: result: $LD" >&5
4074 echo "${ECHO_T}$LD" >&6
4075 else
4076   echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4078 fi
4079 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4080 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4081    { (exit 1); exit 1; }; }
4082 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4083 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4084 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4085   echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4088 case `$LD -v 2>&1 </dev/null` in
4089 *GNU* | *'with BFD'*)
4090   lt_cv_prog_gnu_ld=yes
4091   ;;
4092 *)
4093   lt_cv_prog_gnu_ld=no
4094   ;;
4095 esac
4096 fi
4097 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4098 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4099 with_gnu_ld=$lt_cv_prog_gnu_ld
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4111 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4112 if test "${lt_cv_path_NM+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   if test -n "$NM"; then
4116   # Let the user override the test.
4117   lt_cv_path_NM="$NM"
4118 else
4119   lt_nm_to_check="${ac_tool_prefix}nm"
4120   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4121     lt_nm_to_check="$lt_nm_to_check nm"
4122   fi
4123   for lt_tmp_nm in $lt_nm_to_check; do
4124     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4125     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4126       IFS="$lt_save_ifs"
4127       test -z "$ac_dir" && ac_dir=.
4128       tmp_nm="$ac_dir/$lt_tmp_nm"
4129       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4130         # Check to see if the nm accepts a BSD-compat flag.
4131         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4132         #   nm: unknown option "B" ignored
4133         # Tru64's nm complains that /dev/null is an invalid object file
4134         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4135         */dev/null* | *'Invalid file or object type'*)
4136           lt_cv_path_NM="$tmp_nm -B"
4137           break
4138           ;;
4139         *)
4140           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4141           */dev/null*)
4142             lt_cv_path_NM="$tmp_nm -p"
4143             break
4144             ;;
4145           *)
4146             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4147             continue # so that we can try to find one that supports BSD flags
4148             ;;
4149           esac
4150           ;;
4151         esac
4152       fi
4153     done
4154     IFS="$lt_save_ifs"
4155   done
4156   : ${lt_cv_path_NM=no}
4157 fi
4158 fi
4159 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4160 echo "${ECHO_T}$lt_cv_path_NM" >&6
4161 if test "$lt_cv_path_NM" != "no"; then
4162   NM="$lt_cv_path_NM"
4163 else
4164   # Didn't find any BSD compatible name lister, look for dumpbin.
4165   if test -n "$ac_tool_prefix"; then
4166   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4167   do
4168     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4169 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4170 echo "$as_me:$LINENO: checking for $ac_word" >&5
4171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4172 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4173   echo $ECHO_N "(cached) $ECHO_C" >&6
4174 else
4175   if test -n "$DUMPBIN"; then
4176   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181   IFS=$as_save_IFS
4182   test -z "$as_dir" && as_dir=.
4183   for ac_exec_ext in '' $ac_executable_extensions; do
4184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187     break 2
4188   fi
4189 done
4190 done
4191
4192 fi
4193 fi
4194 DUMPBIN=$ac_cv_prog_DUMPBIN
4195 if test -n "$DUMPBIN"; then
4196   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4197 echo "${ECHO_T}$DUMPBIN" >&6
4198 else
4199   echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6
4201 fi
4202
4203     test -n "$DUMPBIN" && break
4204   done
4205 fi
4206 if test -z "$DUMPBIN"; then
4207   ac_ct_DUMPBIN=$DUMPBIN
4208   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4209 do
4210   # Extract the first word of "$ac_prog", so it can be a program name with args.
4211 set dummy $ac_prog; ac_word=$2
4212 echo "$as_me:$LINENO: checking for $ac_word" >&5
4213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4214 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4215   echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217   if test -n "$ac_ct_DUMPBIN"; then
4218   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4219 else
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4222 do
4223   IFS=$as_save_IFS
4224   test -z "$as_dir" && as_dir=.
4225   for ac_exec_ext in '' $ac_executable_extensions; do
4226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229     break 2
4230   fi
4231 done
4232 done
4233
4234 fi
4235 fi
4236 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4237 if test -n "$ac_ct_DUMPBIN"; then
4238   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4239 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4240 else
4241   echo "$as_me:$LINENO: result: no" >&5
4242 echo "${ECHO_T}no" >&6
4243 fi
4244
4245   test -n "$ac_ct_DUMPBIN" && break
4246 done
4247 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4248
4249   DUMPBIN=$ac_ct_DUMPBIN
4250 fi
4251
4252
4253   if test "$DUMPBIN" != ":"; then
4254     NM="$DUMPBIN"
4255   fi
4256 fi
4257 test -z "$NM" && NM=nm
4258
4259
4260
4261
4262
4263
4264 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4265 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4266 if test "${lt_cv_nm_interface+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269   lt_cv_nm_interface="BSD nm"
4270   echo "int some_variable = 0;" > conftest.$ac_ext
4271   (eval echo "\"\$as_me:4271: $ac_compile\"" >&5)
4272   (eval "$ac_compile" 2>conftest.err)
4273   cat conftest.err >&5
4274   (eval echo "\"\$as_me:4274: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4275   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4276   cat conftest.err >&5
4277   (eval echo "\"\$as_me:4277: output\"" >&5)
4278   cat conftest.out >&5
4279   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4280     lt_cv_nm_interface="MS dumpbin"
4281   fi
4282   rm -f conftest*
4283 fi
4284 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4285 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4286
4287 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4288 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4289 LN_S=$as_ln_s
4290 if test "$LN_S" = "ln -s"; then
4291   echo "$as_me:$LINENO: result: yes" >&5
4292 echo "${ECHO_T}yes" >&6
4293 else
4294   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4295 echo "${ECHO_T}no, using $LN_S" >&6
4296 fi
4297
4298 # find the maximum length of command line arguments
4299 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4300 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4301 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4302   echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304     i=0
4305   teststring="ABCD"
4306
4307   case $build_os in
4308   msdosdjgpp*)
4309     # On DJGPP, this test can blow up pretty badly due to problems in libc
4310     # (any single argument exceeding 2000 bytes causes a buffer overrun
4311     # during glob expansion).  Even if it were fixed, the result of this
4312     # check would be larger than it should be.
4313     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4314     ;;
4315
4316   gnu*)
4317     # Under GNU Hurd, this test is not required because there is
4318     # no limit to the length of command line arguments.
4319     # Libtool will interpret -1 as no limit whatsoever
4320     lt_cv_sys_max_cmd_len=-1;
4321     ;;
4322
4323   cygwin* | mingw*)
4324     # On Win9x/ME, this test blows up -- it succeeds, but takes
4325     # about 5 minutes as the teststring grows exponentially.
4326     # Worse, since 9x/ME are not pre-emptively multitasking,
4327     # you end up with a "frozen" computer, even though with patience
4328     # the test eventually succeeds (with a max line length of 256k).
4329     # Instead, let's just punt: use the minimum linelength reported by
4330     # all of the supported platforms: 8192 (on NT/2K/XP).
4331     lt_cv_sys_max_cmd_len=8192;
4332     ;;
4333
4334   amigaos*)
4335     # On AmigaOS with pdksh, this test takes hours, literally.
4336     # So we just punt and use a minimum line length of 8192.
4337     lt_cv_sys_max_cmd_len=8192;
4338     ;;
4339
4340   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4341     # This has been around since 386BSD, at least.  Likely further.
4342     if test -x /sbin/sysctl; then
4343       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4344     elif test -x /usr/sbin/sysctl; then
4345       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4346     else
4347       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4348     fi
4349     # And add a safety zone
4350     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4351     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4352     ;;
4353
4354   interix*)
4355     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4356     lt_cv_sys_max_cmd_len=196608
4357     ;;
4358
4359   osf*)
4360     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4361     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4362     # nice to cause kernel panics so lets avoid the loop below.
4363     # First set a reasonable default.
4364     lt_cv_sys_max_cmd_len=16384
4365     #