Debian Codegraph @

autodock/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for autodock 4.2.6.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and
270 $0: [email protected] about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='autodock'
582 PACKAGE_TARNAME='autodock'
583 PACKAGE_VERSION='4.2.6'
584 PACKAGE_STRING='autodock 4.2.6'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL=''
587
588 ac_unique_file="analysis.cc"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='am__EXEEXT_FALSE
626 am__EXEEXT_TRUE
627 LTLIBOBJS
628 WANT_OMP_FALSE
629 WANT_OMP_TRUE
630 OPENMP_CXXFLAGS
631 WANT_BIGSTACK_FALSE
632 WANT_BIGSTACK_TRUE
633 LIBOBJS
634 EGREP
635 GREP
636 CPP
637 am__fastdepCC_FALSE
638 am__fastdepCC_TRUE
639 CCDEPMODE
640 ac_ct_CC
641 CFLAGS
642 CC
643 host_os
644 host_vendor
645 host_cpu
646 host
647 build_os
648 build_vendor
649 build_cpu
650 build
651 RANLIB
652 am__fastdepCXX_FALSE
653 am__fastdepCXX_TRUE
654 CXXDEPMODE
655 am__nodep
656 AMDEPBACKSLASH
657 AMDEP_FALSE
658 AMDEP_TRUE
659 am__quote
660 am__include
661 DEPDIR
662 OBJEXT
663 EXEEXT
664 ac_ct_CXX
665 CPPFLAGS
666 LDFLAGS
667 CXXFLAGS
668 CXX
669 am__untar
670 am__tar
671 AMTAR
672 am__leading_dot
673 SET_MAKE
674 AWK
675 mkdir_p
676 MKDIR_P
677 INSTALL_STRIP_PROGRAM
678 STRIP
679 install_sh
680 MAKEINFO
681 AUTOHEADER
682 AUTOMAKE
683 AUTOCONF
684 ACLOCAL
685 VERSION
686 PACKAGE
687 CYGPATH_W
688 am__isrc
689 INSTALL_DATA
690 INSTALL_SCRIPT
691 INSTALL_PROGRAM
692 target_alias
693 host_alias
694 build_alias
695 LIBS
696 ECHO_T
697 ECHO_N
698 ECHO_C
699 DEFS
700 mandir
701 localedir
702 libdir
703 psdir
704 pdfdir
705 dvidir
706 htmldir
707 infodir
708 docdir
709 oldincludedir
710 includedir
711 localstatedir
712 sharedstatedir
713 sysconfdir
714 datadir
715 datarootdir
716 libexecdir
717 sbindir
718 bindir
719 program_transform_name
720 prefix
721 exec_prefix
722 PACKAGE_URL
723 PACKAGE_BUGREPORT
724 PACKAGE_STRING
725 PACKAGE_VERSION
726 PACKAGE_TARNAME
727 PACKAGE_NAME
728 PATH_SEPARATOR
729 SHELL'
730 ac_subst_files=''
731 ac_user_opts='
732 enable_option_checking
733 enable_dependency_tracking
734 enable_openmp
735 '
736 ac_precious_vars='build_alias
737 host_alias
738 target_alias
739 CXX
740 CXXFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 CCC
745 CC
746 CFLAGS
747 CPP'
748
749
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 ac_unrecognized_opts=
754 ac_unrecognized_sep=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
771
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
797
798 ac_prev=
799 ac_dashdash=
800 for ac_option
801 do
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
807 fi
808
809 case $ac_option in
810 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *=) ac_optarg= ;;
812 *) ac_optarg=yes ;;
813 esac
814
815 # Accept the important Cygnus configure options, so we can diagnose typos.
816
817 case $ac_dashdash$ac_option in
818 --)
819 ac_dashdash=yes ;;
820
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
825
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
830
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
837
838 --config-cache | -C)
839 cache_file=config.cache ;;
840
841 -datadir | --datadir | --datadi | --datad)
842 ac_prev=datadir ;;
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
845
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
852
853 -disable-* | --disable-*)
854 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857 as_fn_error $? "invalid feature name: $ac_useropt"
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
861 *"
862 "enable_$ac_useropt"
863 "*) ;;
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
866 esac
867 eval enable_$ac_useropt=no ;;
868
869 -docdir | --docdir | --docdi | --doc | --do)
870 ac_prev=docdir ;;
871 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872 docdir=$ac_optarg ;;
873
874 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875 ac_prev=dvidir ;;
876 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877 dvidir=$ac_optarg ;;
878
879 -enable-* | --enable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error $? "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
887 *"
888 "enable_$ac_useropt"
889 "*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=\$ac_optarg ;;
894
895 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
896 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
897 | --exec | --exe | --ex)
898 ac_prev=exec_prefix ;;
899 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
900 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
901 | --exec=* | --exe=* | --ex=*)
902 exec_prefix=$ac_optarg ;;
903
904 -gas | --gas | --ga | --g)
905 # Obsolete; use --with-gas.
906 with_gas=yes ;;
907
908 -help | --help | --hel | --he | -h)
909 ac_init_help=long ;;
910 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
911 ac_init_help=recursive ;;
912 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
913 ac_init_help=short ;;
914
915 -host | --host | --hos | --ho)
916 ac_prev=host_alias ;;
917 -host=* | --host=* | --hos=* | --ho=*)
918 host_alias=$ac_optarg ;;
919
920 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
921 ac_prev=htmldir ;;
922 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
923 | --ht=*)
924 htmldir=$ac_optarg ;;
925
926 -includedir | --includedir | --includedi | --included | --include \
927 | --includ | --inclu | --incl | --inc)
928 ac_prev=includedir ;;
929 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
930 | --includ=* | --inclu=* | --incl=* | --inc=*)
931 includedir=$ac_optarg ;;
932
933 -infodir | --infodir | --infodi | --infod | --info | --inf)
934 ac_prev=infodir ;;
935 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
936 infodir=$ac_optarg ;;
937
938 -libdir | --libdir | --libdi | --libd)
939 ac_prev=libdir ;;
940 -libdir=* | --libdir=* | --libdi=* | --libd=*)
941 libdir=$ac_optarg ;;
942
943 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
944 | --libexe | --libex | --libe)
945 ac_prev=libexecdir ;;
946 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
947 | --libexe=* | --libex=* | --libe=*)
948 libexecdir=$ac_optarg ;;
949
950 -localedir | --localedir | --localedi | --localed | --locale)
951 ac_prev=localedir ;;
952 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
953 localedir=$ac_optarg ;;
954
955 -localstatedir | --localstatedir | --localstatedi | --localstated \
956 | --localstate | --localstat | --localsta | --localst | --locals)
957 ac_prev=localstatedir ;;
958 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
959 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
960 localstatedir=$ac_optarg ;;
961
962 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
963 ac_prev=mandir ;;
964 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
965 mandir=$ac_optarg ;;
966
967 -nfp | --nfp | --nf)
968 # Obsolete; use --without-fp.
969 with_fp=no ;;
970
971 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
972 | --no-cr | --no-c | -n)
973 no_create=yes ;;
974
975 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
976 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977 no_recursion=yes ;;
978
979 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
980 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
981 | --oldin | --oldi | --old | --ol | --o)
982 ac_prev=oldincludedir ;;
983 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
984 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
985 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
986 oldincludedir=$ac_optarg ;;
987
988 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
989 ac_prev=prefix ;;
990 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991 prefix=$ac_optarg ;;
992
993 -program-prefix | --program-prefix | --program-prefi | --program-pref \
994 | --program-pre | --program-pr | --program-p)
995 ac_prev=program_prefix ;;
996 -program-prefix=* | --program-prefix=* | --program-prefi=* \
997 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
998 program_prefix=$ac_optarg ;;
999
1000 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1001 | --program-suf | --program-su | --program-s)
1002 ac_prev=program_suffix ;;
1003 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1004 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1005 program_suffix=$ac_optarg ;;
1006
1007 -program-transform-name | --program-transform-name \
1008 | --program-transform-nam | --program-transform-na \
1009 | --program-transform-n | --program-transform- \
1010 | --program-transform | --program-transfor \
1011 | --program-transfo | --program-transf \
1012 | --program-trans | --program-tran \
1013 | --progr-tra | --program-tr | --program-t)
1014 ac_prev=program_transform_name ;;
1015 -program-transform-name=* | --program-transform-name=* \
1016 | --program-transform-nam=* | --program-transform-na=* \
1017 | --program-transform-n=* | --program-transform-=* \
1018 | --program-transform=* | --program-transfor=* \
1019 | --program-transfo=* | --program-transf=* \
1020 | --program-trans=* | --program-tran=* \
1021 | --progr-tra=* | --program-tr=* | --program-t=*)
1022 program_transform_name=$ac_optarg ;;
1023
1024 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1025 ac_prev=pdfdir ;;
1026 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1027 pdfdir=$ac_optarg ;;
1028
1029 -psdir | --psdir | --psdi | --psd | --ps)
1030 ac_prev=psdir ;;
1031 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032 psdir=$ac_optarg ;;
1033
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1036 silent=yes ;;
1037
1038 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039 ac_prev=sbindir ;;
1040 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041 | --sbi=* | --sb=*)
1042 sbindir=$ac_optarg ;;
1043
1044 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1045 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1046 | --sharedst | --shareds | --shared | --share | --shar \
1047 | --sha | --sh)
1048 ac_prev=sharedstatedir ;;
1049 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1050 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1051 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052 | --sha=* | --sh=*)
1053 sharedstatedir=$ac_optarg ;;
1054
1055 -site | --site | --sit)
1056 ac_prev=site ;;
1057 -site=* | --site=* | --sit=*)
1058 site=$ac_optarg ;;
1059
1060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061 ac_prev=srcdir ;;
1062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1063 srcdir=$ac_optarg ;;
1064
1065 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1066 | --syscon | --sysco | --sysc | --sys | --sy)
1067 ac_prev=sysconfdir ;;
1068 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1069 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1070 sysconfdir=$ac_optarg ;;
1071
1072 -target | --target | --targe | --targ | --tar | --ta | --t)
1073 ac_prev=target_alias ;;
1074 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1075 target_alias=$ac_optarg ;;
1076
1077 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 verbose=yes ;;
1079
1080 -version | --version | --versio | --versi | --vers | -V)
1081 ac_init_version=: ;;
1082
1083 -with-* | --with-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error $? "invalid package name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1091 *"
1092 "with_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval with_$ac_useropt=\$ac_optarg ;;
1098
1099 -without-* | --without-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=no ;;
1114
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1118
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1125
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1132
1133 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1134 Try \`$0 --help' for more information"
1135 ;;
1136
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 case $ac_envvar in #(
1141 '' | [0-9]* | *[!_$as_cr_alnum]* )
1142 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1143 esac
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1146
1147 *)
1148 # FIXME: should be removed in autoconf 3.0.
1149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1153 ;;
1154
1155 esac
1156 done
1157
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 as_fn_error $? "missing argument to $ac_option"
1161 fi
1162
1163 if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1165 no) ;;
1166 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1168 esac
1169 fi
1170
1171 # Check all directory arguments for consistency.
1172 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1176 do
1177 eval ac_val=\$$ac_var
1178 # Remove trailing slashes.
1179 case $ac_val in
1180 */ )
1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\$ac_val;;
1183 esac
1184 # Be sure to have absolute directory names.
1185 case $ac_val in
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 esac
1189 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1190 done
1191
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1195 build=$build_alias
1196 host=$host_alias
1197 target=$target_alias
1198
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
1203 elif test "x$build_alias" != "x$host_alias"; then
1204 cross_compiling=yes
1205 fi
1206 fi
1207
1208 ac_tool_prefix=
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210
1211 test "$silent" = yes && exec 6>/dev/null
1212
1213
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217 as_fn_error $? "working directory cannot be determined"
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 as_fn_error $? "pwd does not report name of working directory"
1220
1221
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir=`$as_dirname -- "$as_myself" ||
1227 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$as_myself" : 'X\(//\)[^/]' \| \
1229 X"$as_myself" : 'X\(//\)$' \| \
1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1231 $as_echo X"$as_myself" |
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1233 s//\1/
1234 q
1235 }
1236 /^X\(\/\/\)[^/].*/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\/\)$/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\).*/{
1245 s//\1/
1246 q
1247 }
1248 s/.*/./; q'`
1249 srcdir=$ac_confdir
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 srcdir=..
1252 fi
1253 else
1254 ac_srcdir_defaulted=no
1255 fi
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1259 fi
1260 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1261 ac_abs_confdir=`(
1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1263 pwd)`
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1266 srcdir=.
1267 fi
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1271 case $srcdir in
1272 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1273 esac
1274 for ac_var in $ac_precious_vars; do
1275 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_env_${ac_var}_value=\$${ac_var}
1277 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279 done
1280
1281 #
1282 # Report the --help message.
1283 #
1284 if test "$ac_init_help" = "long"; then
1285 # Omit some internal or obsolete options to make the list less imposing.
1286 # This message is too long to be a string in the A/UX 3.1 sh.
1287 cat <<_ACEOF
1288 \`configure' configures autodock 4.2.6 to adapt to many kinds of systems.
1289
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1291
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE. See below for descriptions of some of the useful variables.
1294
1295 Defaults for the options are specified in brackets.
1296
1297 Configuration:
1298 -h, --help display this help and exit
1299 --help=short display options specific to this package
1300 --help=recursive display the short help of all the included packages
1301 -V, --version display version information and exit
1302 -q, --quiet, --silent do not print \`checking ...' messages
1303 --cache-file=FILE cache test results in FILE [disabled]
1304 -C, --config-cache alias for \`--cache-file=config.cache'
1305 -n, --no-create do not create output files
1306 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1307
1308 Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1312 [PREFIX]
1313
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1318
1319 For better control, use the options below.
1320
1321 Fine tuning of the installation directories:
1322 --bindir=DIR user executables [EPREFIX/bin]
1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1324 --libexecdir=DIR program executables [EPREFIX/libexec]
1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/autodock]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
1341 _ACEOF
1342
1343 cat <<\_ACEOF
1344
1345 Program names:
1346 --program-prefix=PREFIX prepend PREFIX to installed program names
1347 --program-suffix=SUFFIX append SUFFIX to installed program names
1348 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1349
1350 System types:
1351 --build=BUILD configure for building on BUILD [guessed]
1352 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1353 _ACEOF
1354 fi
1355
1356 if test -n "$ac_init_help"; then
1357 case $ac_init_help in
1358 short | recursive ) echo "Configuration of autodock 4.2.6:";;
1359 esac
1360 cat <<\_ACEOF
1361
1362 Optional Features:
1363 --disable-option-checking ignore unrecognized --enable/--with options
1364 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1365 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1366 --enable-dependency-tracking
1367 do not reject slow dependency extractors
1368 --disable-dependency-tracking
1369 speeds up one-time build
1370 --disable-openmp do not use OpenMP
1371
1372 Some influential environment variables:
1373 CXX C++ compiler command
1374 CXXFLAGS C++ compiler flags
1375 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1376 nonstandard directory <lib dir>
1377 LIBS libraries to pass to the linker, e.g. -l<library>
1378 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1379 you have headers in a nonstandard directory <include dir>
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 CPP C preprocessor
1383
1384 Use these variables to override the choices made by `configure' or to help
1385 it to find libraries and programs with nonstandard names/locations.
1386
1387 Report bugs to <[email protected]>.
1388 _ACEOF
1389 ac_status=$?
1390 fi
1391
1392 if test "$ac_init_help" = "recursive"; then
1393 # If there are subdirs, report their specific --help.
1394 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1395 test -d "$ac_dir" ||
1396 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1397 continue
1398 ac_builddir=.
1399
1400 case "$ac_dir" in
1401 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *)
1403 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1404 # A ".." for each directory in $ac_dir_suffix.
1405 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1406 case $ac_top_builddir_sub in
1407 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1409 esac ;;
1410 esac
1411 ac_abs_top_builddir=$ac_pwd
1412 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1413 # for backward compatibility:
1414 ac_top_builddir=$ac_top_build_prefix
1415
1416 case $srcdir in
1417 .) # We are building in place.
1418 ac_srcdir=.
1419 ac_top_srcdir=$ac_top_builddir_sub
1420 ac_abs_top_srcdir=$ac_pwd ;;
1421 [\\/]* | ?:[\\/]* ) # Absolute name.
1422 ac_srcdir=$srcdir$ac_dir_suffix;
1423 ac_top_srcdir=$srcdir
1424 ac_abs_top_srcdir=$srcdir ;;
1425 *) # Relative name.
1426 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1427 ac_top_srcdir=$ac_top_build_prefix$srcdir
1428 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1429 esac
1430 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1431
1432 cd "$ac_dir" || { ac_status=$?; continue; }
1433 # Check for guested configure.
1434 if test -f "$ac_srcdir/configure.gnu"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1437 elif test -f "$ac_srcdir/configure"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure" --help=recursive
1440 else
1441 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1442 fi || ac_status=$?
1443 cd "$ac_pwd" || { ac_status=$?; break; }
1444 done
1445 fi
1446
1447 test -n "$ac_init_help" && exit $ac_status
1448 if $ac_init_version; then
1449 cat <<\_ACEOF
1450 autodock configure 4.2.6
1451 generated by GNU Autoconf 2.69
1452
1453 Copyright (C) 2012 Free Software Foundation, Inc.
1454 This configure script is free software; the Free Software Foundation
1455 gives unlimited permission to copy, distribute and modify it.
1456 _ACEOF
1457 exit
1458 fi
1459
1460 ## ------------------------ ##
1461 ## Autoconf initialization. ##
1462 ## ------------------------ ##
1463
1464 # ac_fn_cxx_try_compile LINENO
1465 # ----------------------------
1466 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1467 ac_fn_cxx_try_compile ()
1468 {
1469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1470 rm -f conftest.$ac_objext
1471 if { { ac_try="$ac_compile"
1472 case "(($ac_try" in
1473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1474 *) ac_try_echo=$ac_try;;
1475 esac
1476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1477 $as_echo "$ac_try_echo"; } >&5
1478 (eval "$ac_compile") 2>conftest.err
1479 ac_status=$?
1480 if test -s conftest.err; then
1481 grep -v '^ *+' conftest.err >conftest.er1
1482 cat conftest.er1 >&5
1483 mv -f conftest.er1 conftest.err
1484 fi
1485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1486 test $ac_status = 0; } && {
1487 test -z "$ac_cxx_werror_flag" ||
1488 test ! -s conftest.err
1489 } && test -s conftest.$ac_objext; then :
1490 ac_retval=0
1491 else
1492 $as_echo "$as_me: failed program was:" >&5
1493 sed 's/^/| /' conftest.$ac_ext >&5
1494
1495 ac_retval=1
1496 fi
1497 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1498 as_fn_set_status $ac_retval
1499
1500 } # ac_fn_cxx_try_compile
1501
1502 # ac_fn_c_try_compile LINENO
1503 # --------------------------
1504 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1505 ac_fn_c_try_compile ()
1506 {
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 rm -f conftest.$ac_objext
1509 if { { ac_try="$ac_compile"
1510 case "(($ac_try" in
1511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1513 esac
1514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 $as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_compile") 2>conftest.err
1517 ac_status=$?
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1522 fi
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && {
1525 test -z "$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 } && test -s conftest.$ac_objext; then :
1528 ac_retval=0
1529 else
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1532
1533 ac_retval=1
1534 fi
1535 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536 as_fn_set_status $ac_retval
1537
1538 } # ac_fn_c_try_compile
1539
1540 # ac_fn_c_try_cpp LINENO
1541 # ----------------------
1542 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_cpp ()
1544 {
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 if { { ac_try="$ac_cpp conftest.$ac_ext"
1547 case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1559 fi
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } > conftest.i && {
1562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 }; then :
1565 ac_retval=0
1566 else
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1569
1570 ac_retval=1
1571 fi
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1574
1575 } # ac_fn_c_try_cpp
1576
1577 # ac_fn_c_try_run LINENO
1578 # ----------------------
1579 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1580 # that executables *can* be run.
1581 ac_fn_c_try_run ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { { ac_try="$ac_link"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_link") 2>&5
1592 ac_status=$?
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1595 { { case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_try") 2>&5
1602 ac_status=$?
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; }; }; then :
1605 ac_retval=0
1606 else
1607 $as_echo "$as_me: program exited with status $ac_status" >&5
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611 ac_retval=$ac_status
1612 fi
1613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_run
1618
1619 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1620 # -------------------------------------------
1621 # Tests whether TYPE exists after having included INCLUDES, setting cache
1622 # variable VAR accordingly.
1623 ac_fn_c_check_type ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627 $as_echo_n "checking for $2... " >&6; }
1628 if eval \${$3+:} false; then :
1629 $as_echo_n "(cached) " >&6
1630 else
1631 eval "$3=no"
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1634 $4
1635 int
1636 main ()
1637 {
1638 if (sizeof ($2))
1639 return 0;
1640 ;
1641 return 0;
1642 }
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1647 $4
1648 int
1649 main ()
1650 {
1651 if (sizeof (($2)))
1652 return 0;
1653 ;
1654 return 0;
1655 }
1656 _ACEOF
1657 if ac_fn_c_try_compile "$LINENO"; then :
1658
1659 else
1660 eval "$3=yes"
1661 fi
1662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663 fi
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 fi
1666 eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671 } # ac_fn_c_check_type
1672
1673 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1674 # -------------------------------------------------------
1675 # Tests whether HEADER exists and can be compiled using the include files in
1676 # INCLUDES, setting the cache variable VAR accordingly.
1677 ac_fn_c_check_header_compile ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683 $as_echo_n "(cached) " >&6
1684 else
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1687 $4
1688 #include <$2>
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"; then :
1691 eval "$3=yes"
1692 else
1693 eval "$3=no"
1694 fi
1695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696 fi
1697 eval ac_res=\$$3
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701
1702 } # ac_fn_c_check_header_compile
1703
1704 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1705 # -------------------------------------------------------
1706 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1707 # the include files in INCLUDES and setting the cache variable VAR
1708 # accordingly.
1709 ac_fn_c_check_header_mongrel ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if eval \${$3+:} false; then :
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if eval \${$3+:} false; then :
1716 $as_echo_n "(cached) " >&6
1717 fi
1718 eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1721 else
1722 # Is the header compilable?
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1724 $as_echo_n "checking $2 usability... " >&6; }
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1727 $4
1728 #include <$2>
1729 _ACEOF
1730 if ac_fn_c_try_compile "$LINENO"; then :
1731 ac_header_compiler=yes
1732 else
1733 ac_header_compiler=no
1734 fi
1735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1737 $as_echo "$ac_header_compiler" >&6; }
1738
1739 # Is the header present?
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1741 $as_echo_n "checking $2 presence... " >&6; }
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1744 #include <$2>
1745 _ACEOF
1746 if ac_fn_c_try_cpp "$LINENO"; then :
1747 ac_header_preproc=yes
1748 else
1749 ac_header_preproc=no
1750 fi
1751 rm -f conftest.err conftest.i conftest.$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1753 $as_echo "$ac_header_preproc" >&6; }
1754
1755 # So? What about this header?
1756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1757 yes:no: )
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1759 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1761 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1762 ;;
1763 no:yes:* )
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1765 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1767 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1769 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1771 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1773 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1774 ( $as_echo "## ----------------------------------- ##
1775 ## Report this to [email protected] ##
1776 ## ----------------------------------- ##"
1777 ) | sed "s/^/$as_me: WARNING: /" >&2
1778 ;;
1779 esac
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1784 else
1785 eval "$3=\$ac_header_compiler"
1786 fi
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 fi
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793 } # ac_fn_c_check_header_mongrel
1794
1795 # ac_fn_c_try_link LINENO
1796 # -----------------------
1797 # Try to link conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_link ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext conftest$ac_exeext
1802 if { { ac_try="$ac_link"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_link") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1815 fi
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest$ac_exeext && {
1821 test "$cross_compiling" = yes ||
1822 test -x conftest$ac_exeext
1823 }; then :
1824 ac_retval=0
1825 else
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 ac_retval=1
1830 fi
1831 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1832 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1833 # interfere with the next link command; also delete a directory that is
1834 # left behind by Apple's compiler. We do this before executing the actions.
1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1838
1839 } # ac_fn_c_try_link
1840
1841 # ac_fn_c_check_func LINENO FUNC VAR
1842 # ----------------------------------
1843 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1844 ac_fn_c_check_func ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1856 #define $2 innocuous_$2
1857
1858 /* System header to define __stub macros and hopefully few prototypes,
1859 which can conflict with char $2 (); below.
1860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1861 <limits.h> exists even on freestanding compilers. */
1862
1863 #ifdef __STDC__
1864 # include <limits.h>
1865 #else
1866 # include <assert.h>
1867 #endif
1868
1869 #undef $2
1870
1871 /* Override any GCC internal prototype to avoid an error.
1872 Use char because int might match the return type of a GCC
1873 builtin and then its argument prototype would still apply. */
1874 #ifdef __cplusplus
1875 extern "C"
1876 #endif
1877 char $2 ();
1878 /* The GNU C library defines this for functions which it implements
1879 to always fail with ENOSYS. Some functions are actually named
1880 something starting with __ and the normal name is an alias. */
1881 #if defined __stub_$2 || defined __stub___$2
1882 choke me
1883 #endif
1884
1885 int
1886 main ()
1887 {
1888 return $2 ();
1889 ;
1890 return 0;
1891 }
1892 _ACEOF
1893 if ac_fn_c_try_link "$LINENO"; then :
1894 eval "$3=yes"
1895 else
1896 eval "$3=no"
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext \
1899 conftest$ac_exeext conftest.$ac_ext
1900 fi
1901 eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
1906 } # ac_fn_c_check_func
1907
1908 # ac_fn_cxx_try_link LINENO
1909 # -------------------------
1910 # Try to link conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_cxx_try_link ()
1912 {
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 rm -f conftest.$ac_objext conftest$ac_exeext
1915 if { { ac_try="$ac_link"
1916 case "(($ac_try" in
1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918 *) ac_try_echo=$ac_try;;
1919 esac
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922 (eval "$ac_link") 2>conftest.err
1923 ac_status=$?
1924 if test -s conftest.err; then
1925 grep -v '^ *+' conftest.err >conftest.er1
1926 cat conftest.er1 >&5
1927 mv -f conftest.er1 conftest.err
1928 fi
1929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930 test $ac_status = 0; } && {
1931 test -z "$ac_cxx_werror_flag" ||
1932 test ! -s conftest.err
1933 } && test -s conftest$ac_exeext && {
1934 test "$cross_compiling" = yes ||
1935 test -x conftest$ac_exeext
1936 }; then :
1937 ac_retval=0
1938 else
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1941
1942 ac_retval=1
1943 fi
1944 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1945 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1946 # interfere with the next link command; also delete a directory that is
1947 # left behind by Apple's compiler. We do this before executing the actions.
1948 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1951
1952 } # ac_fn_cxx_try_link
1953 cat >config.log <<_ACEOF
1954 This file contains any messages produced by compilers while
1955 running configure, to aid debugging if configure makes a mistake.
1956
1957 It was created by autodock $as_me 4.2.6, which was
1958 generated by GNU Autoconf 2.69. Invocation command line was
1959
1960 $ $0 $@
1961
1962 _ACEOF
1963 exec 5>>config.log
1964 {
1965 cat <<_ASUNAME
1966 ## --------- ##
1967 ## Platform. ##
1968 ## --------- ##
1969
1970 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1971 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1972 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1973 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1974 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1975
1976 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1977 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1978
1979 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1980 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1981 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1982 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1983 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1984 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1985 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1986
1987 _ASUNAME
1988
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
1994 $as_echo "PATH: $as_dir"
1995 done
1996 IFS=$as_save_IFS
1997
1998 } >&5
1999
2000 cat >&5 <<_ACEOF
2001
2002
2003 ## ----------- ##
2004 ## Core tests. ##
2005 ## ----------- ##
2006
2007 _ACEOF
2008
2009
2010 # Keep a trace of the command line.
2011 # Strip out --no-create and --no-recursion so they do not pile up.
2012 # Strip out --silent because we don't want to record it for future runs.
2013 # Also quote any args containing shell meta-characters.
2014 # Make two passes to allow for proper duplicate-argument suppression.
2015 ac_configure_args=
2016 ac_configure_args0=
2017 ac_configure_args1=
2018 ac_must_keep_next=false
2019 for ac_pass in 1 2
2020 do
2021 for ac_arg
2022 do
2023 case $ac_arg in
2024 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2026 | -silent | --silent | --silen | --sile | --sil)
2027 continue ;;
2028 *\'*)
2029 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2030 esac
2031 case $ac_pass in
2032 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2033 2)
2034 as_fn_append ac_configure_args1 " '$ac_arg'"
2035 if test $ac_must_keep_next = true; then
2036 ac_must_keep_next=false # Got value, back to normal.
2037 else
2038 case $ac_arg in
2039 *=* | --config-cache | -C | -disable-* | --disable-* \
2040 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2041 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2042 | -with-* | --with-* | -without-* | --without-* | --x)
2043 case "$ac_configure_args0 " in
2044 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2045 esac
2046 ;;
2047 -* ) ac_must_keep_next=true ;;
2048 esac
2049 fi
2050 as_fn_append ac_configure_args " '$ac_arg'"
2051 ;;
2052 esac
2053 done
2054 done
2055 { ac_configure_args0=; unset ac_configure_args0;}
2056 { ac_configure_args1=; unset ac_configure_args1;}
2057
2058 # When interrupted or exit'd, cleanup temporary files, and complete
2059 # config.log. We remove comments because anyway the quotes in there
2060 # would cause problems or look ugly.
2061 # WARNING: Use '\'' to represent an apostrophe within the trap.
2062 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2063 trap 'exit_status=$?
2064 # Save into config.log some information that might help in debugging.
2065 {
2066 echo
2067
2068 $as_echo "## ---------------- ##
2069 ## Cache variables. ##
2070 ## ---------------- ##"
2071 echo
2072 # The following way of writing the cache mishandles newlines in values,
2073 (
2074 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2075 eval ac_val=\$$ac_var
2076 case $ac_val in #(
2077 *${as_nl}*)
2078 case $ac_var in #(
2079 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2080 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2081 esac
2082 case $ac_var in #(
2083 _ | IFS | as_nl) ;; #(
2084 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2085 *) { eval $ac_var=; unset $ac_var;} ;;
2086 esac ;;
2087 esac
2088 done
2089 (set) 2>&1 |
2090 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2091 *${as_nl}ac_space=\ *)
2092 sed -n \
2093 "s/'\''/'\''\\\\'\'''\''/g;
2094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2095 ;; #(
2096 *)
2097 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2098 ;;
2099 esac |
2100 sort
2101 )
2102 echo
2103
2104 $as_echo "## ----------------- ##
2105 ## Output variables. ##
2106 ## ----------------- ##"
2107 echo
2108 for ac_var in $ac_subst_vars
2109 do
2110 eval ac_val=\$$ac_var
2111 case $ac_val in
2112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113 esac
2114 $as_echo "$ac_var='\''$ac_val'\''"
2115 done | sort
2116 echo
2117
2118 if test -n "$ac_subst_files"; then
2119 $as_echo "## ------------------- ##
2120 ## File substitutions. ##
2121 ## ------------------- ##"
2122 echo
2123 for ac_var in $ac_subst_files
2124 do
2125 eval ac_val=\$$ac_var
2126 case $ac_val in
2127 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128 esac
2129 $as_echo "$ac_var='\''$ac_val'\''"
2130 done | sort
2131 echo
2132 fi
2133
2134 if test -s confdefs.h; then
2135 $as_echo "## ----------- ##
2136 ## confdefs.h. ##
2137 ## ----------- ##"
2138 echo
2139 cat confdefs.h
2140 echo
2141 fi
2142 test "$ac_signal" != 0 &&
2143 $as_echo "$as_me: caught signal $ac_signal"
2144 $as_echo "$as_me: exit $exit_status"
2145 } >&5
2146 rm -f core *.core core.conftest.* &&
2147 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2148 exit $exit_status
2149 ' 0
2150 for ac_signal in 1 2 13 15; do
2151 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2152 done
2153 ac_signal=0
2154
2155 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2156 rm -f -r conftest* confdefs.h
2157
2158 $as_echo "/* confdefs.h */" > confdefs.h
2159
2160 # Predefined preprocessor variables.
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_NAME "$PACKAGE_NAME"
2164 _ACEOF
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2168 _ACEOF
2169
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2172 _ACEOF
2173
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_STRING "$PACKAGE_STRING"
2176 _ACEOF
2177
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2180 _ACEOF
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_URL "$PACKAGE_URL"
2184 _ACEOF
2185
2186
2187 # Let the site file select an alternate cache file if it wants to.
2188 # Prefer an explicitly selected file to automatically selected ones.
2189 ac_site_file1=NONE
2190 ac_site_file2=NONE
2191 if test -n "$CONFIG_SITE"; then
2192 # We do not want a PATH search for config.site.
2193 case $CONFIG_SITE in #((
2194 -*) ac_site_file1=./$CONFIG_SITE;;
2195 */*) ac_site_file1=$CONFIG_SITE;;
2196 *) ac_site_file1=./$CONFIG_SITE;;
2197 esac
2198 elif test "x$prefix" != xNONE; then
2199 ac_site_file1=$prefix/share/config.site
2200 ac_site_file2=$prefix/etc/config.site
2201 else
2202 ac_site_file1=$ac_default_prefix/share/config.site
2203 ac_site_file2=$ac_default_prefix/etc/config.site
2204 fi
2205 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2206 do
2207 test "x$ac_site_file" = xNONE && continue
2208 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2210 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2211 sed 's/^/| /' "$ac_site_file" >&5
2212 . "$ac_site_file" \
2213 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 as_fn_error $? "failed to load site script $ac_site_file
2216 See \`config.log' for more details" "$LINENO" 5; }
2217 fi
2218 done
2219
2220 if test -r "$cache_file"; then
2221 # Some versions of bash will fail to source /dev/null (special files
2222 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2223 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2225 $as_echo "$as_me: loading cache $cache_file" >&6;}
2226 case $cache_file in
2227 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2228 *) . "./$cache_file";;
2229 esac
2230 fi
2231 else
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2233 $as_echo "$as_me: creating cache $cache_file" >&6;}
2234 >$cache_file
2235 fi
2236
2237 # Check that the precious variables saved in the cache have kept the same
2238 # value.
2239 ac_cache_corrupted=false
2240 for ac_var in $ac_precious_vars; do
2241 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2242 eval ac_new_set=\$ac_env_${ac_var}_set
2243 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2244 eval ac_new_val=\$ac_env_${ac_var}_value
2245 case $ac_old_set,$ac_new_set in
2246 set,)
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2248 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2249 ac_cache_corrupted=: ;;
2250 ,set)
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2252 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2253 ac_cache_corrupted=: ;;
2254 ,);;
2255 *)
2256 if test "x$ac_old_val" != "x$ac_new_val"; then
2257 # differences in whitespace do not lead to failure.
2258 ac_old_val_w=`echo x $ac_old_val`
2259 ac_new_val_w=`echo x $ac_new_val`
2260 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2262 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2263 ac_cache_corrupted=:
2264 else
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2266 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2267 eval $ac_var=\$ac_old_val
2268 fi
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2270 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2272 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2273 fi;;
2274 esac
2275 # Pass precious variables to config.status.
2276 if test "$ac_new_set" = set; then
2277 case $ac_new_val in
2278 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2279 *) ac_arg=$ac_var=$ac_new_val ;;
2280 esac
2281 case " $ac_configure_args " in
2282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2283 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2284 esac
2285 fi
2286 done
2287 if $ac_cache_corrupted; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2291 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2292 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2293 fi
2294 ## -------------------- ##
2295 ## Main body of script. ##
2296 ## -------------------- ##
2297
2298 ac_ext=c
2299 ac_cpp='$CPP $CPPFLAGS'
2300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303
2304
2305 # the m4_esyscmd following creates a string such as VERSION='4.2.5.x.2014-12-25'
2306 # indicating when the "autoreconf" was most recently run.
2307 # This date is also inserted into PACKAGE_VERSION and PACKAGE_STRING
2308 #AC_INIT([autodock], m4_esyscmd([date +4.2.6.%Y-%m-%d|tr -d '\n']), [[email protected]])
2309
2310
2311 am__api_version='1.12'
2312
2313 ac_aux_dir=
2314 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2315 if test -f "$ac_dir/install-sh"; then
2316 ac_aux_dir=$ac_dir
2317 ac_install_sh="$ac_aux_dir/install-sh -c"
2318 break
2319 elif test -f "$ac_dir/install.sh"; then
2320 ac_aux_dir=$ac_dir
2321 ac_install_sh="$ac_aux_dir/install.sh -c"
2322 break
2323 elif test -f "$ac_dir/shtool"; then
2324 ac_aux_dir=$ac_dir
2325 ac_install_sh="$ac_aux_dir/shtool install -c"
2326 break
2327 fi
2328 done
2329 if test -z "$ac_aux_dir"; then
2330 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2331 fi
2332
2333 # These three variables are undocumented and unsupported,
2334 # and are intended to be withdrawn in a future Autoconf release.
2335 # They can cause serious problems if a builder's source tree is in a directory
2336 # whose full name contains unusual characters.
2337 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2338 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2339 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2340
2341
2342 # Find a good install program. We prefer a C program (faster),
2343 # so one script is as good as another. But avoid the broken or
2344 # incompatible versions:
2345 # SysV /etc/install, /usr/sbin/install
2346 # SunOS /usr/etc/install
2347 # IRIX /sbin/install
2348 # AIX /bin/install
2349 # AmigaOS /C/install, which installs bootblocks on floppy discs
2350 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2351 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2352 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2353 # OS/2's system install, which has a completely different semantic
2354 # ./install, which can be erroneously created by make from ./install.sh.
2355 # Reject install programs that cannot install multiple files.
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2357 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2358 if test -z "$INSTALL"; then
2359 if ${ac_cv_path_install+:} false; then :
2360 $as_echo_n "(cached) " >&6
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 # Account for people who put trailing slashes in PATH elements.
2368 case $as_dir/ in #((
2369 ./ | .// | /[cC]/* | \
2370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2371 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2372 /usr/ucb/* ) ;;
2373 *)
2374 # OSF1 and SCO ODT 3.0 have their own names for install.
2375 # Don't use installbsd from OSF since it installs stuff as root
2376 # by default.
2377 for ac_prog in ginstall scoinst install; do
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2380 if test $ac_prog = install &&
2381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2382 # AIX install. It has an incompatible calling convention.
2383 :
2384 elif test $ac_prog = install &&
2385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386 # program-specific install script used by HP pwplus--don't use.
2387 :
2388 else
2389 rm -rf conftest.one conftest.two conftest.dir
2390 echo one > conftest.one
2391 echo two > conftest.two
2392 mkdir conftest.dir
2393 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2394 test -s conftest.one && test -s conftest.two &&
2395 test -s conftest.dir/conftest.one &&
2396 test -s conftest.dir/conftest.two
2397 then
2398 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2399 break 3
2400 fi
2401 fi
2402 fi
2403 done
2404 done
2405 ;;
2406 esac
2407
2408 done
2409 IFS=$as_save_IFS
2410
2411 rm -rf conftest.one conftest.two conftest.dir
2412
2413 fi
2414 if test "${ac_cv_path_install+set}" = set; then
2415 INSTALL=$ac_cv_path_install
2416 else
2417 # As a last resort, use the slow shell script. Don't cache a
2418 # value for INSTALL within a source directory, because that will
2419 # break other packages using the cache if that directory is
2420 # removed, or if the value is a relative name.
2421 INSTALL=$ac_install_sh
2422 fi
2423 fi
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2425 $as_echo "$INSTALL" >&6; }
2426
2427 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2428 # It thinks the first close brace ends the variable substitution.
2429 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2430
2431 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2432
2433 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2434
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2436 $as_echo_n "checking whether build environment is sane... " >&6; }
2437 # Reject unsafe characters in $srcdir or the absolute working directory
2438 # name. Accept space and tab only in the latter.
2439 am_lf='
2440 '
2441 case `pwd` in
2442 *[\\\"\#\$\&\'\`$am_lf]*)
2443 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2444 esac
2445 case $srcdir in
2446 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2447 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2448 esac
2449
2450 # Do 'set' in a subshell so we don't clobber the current shell's
2451 # arguments. Must try -L first in case configure is actually a
2452 # symlink; some systems play weird games with the mod time of symlinks
2453 # (eg FreeBSD returns the mod time of the symlink's containing
2454 # directory).
2455 if (
2456 am_has_slept=no
2457 for am_try in 1 2; do
2458 echo "timestamp, slept: $am_has_slept" > conftest.file
2459 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2460 if test "$*" = "X"; then
2461 # -L didn't work.
2462 set X `ls -t "$srcdir/configure" conftest.file`
2463 fi
2464 if test "$*" != "X $srcdir/configure conftest.file" \
2465 && test "$*" != "X conftest.file $srcdir/configure"; then
2466
2467 # If neither matched, then we have a broken ls. This can happen
2468 # if, for instance, CONFIG_SHELL is bash and it inherits a
2469 # broken ls alias from the environment. This has actually
2470 # happened. Such a system could not be considered "sane".
2471 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2472 alias in your environment" "$LINENO" 5
2473 fi
2474 if test "$2" = conftest.file || test $am_try -eq 2; then
2475 break
2476 fi
2477 # Just in case.
2478 sleep 1
2479 am_has_slept=yes
2480 done
2481 test "$2" = conftest.file
2482 )
2483 then
2484 # Ok.
2485 :
2486 else
2487 as_fn_error $? "newly created file is older than distributed files!
2488 Check your system clock" "$LINENO" 5
2489 fi
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2491 $as_echo "yes" >&6; }
2492 # If we didn't sleep, we still need to ensure time stamps of config.status and
2493 # generated files are strictly newer.
2494 am_sleep_pid=
2495 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2496 ( sleep 1 ) &
2497 am_sleep_pid=$!
2498 fi
2499
2500 rm -f conftest.file
2501
2502 test "$program_prefix" != NONE &&
2503 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2504 # Use a double $ so make ignores it.
2505 test "$program_suffix" != NONE &&
2506 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2507 # Double any \ or $.
2508 # By default was `s,x,x', remove it if useless.
2509 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2510 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2511
2512 # expand $ac_aux_dir to an absolute path
2513 am_aux_dir=`cd $ac_aux_dir && pwd`
2514
2515 if test x"${MISSING+set}" != xset; then
2516 case $am_aux_dir in
2517 *\ * | *\ *)
2518 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2519 *)
2520 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2521 esac
2522 fi
2523 # Use eval to expand $SHELL
2524 if eval "$MISSING --run true"; then
2525 am_missing_run="$MISSING --run "
2526 else
2527 am_missing_run=
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2529 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2530 fi
2531
2532 if test x"${install_sh}" != xset; then
2533 case $am_aux_dir in
2534 *\ * | *\ *)
2535 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2536 *)
2537 install_sh="\${SHELL} $am_aux_dir/install-sh"
2538 esac
2539 fi
2540
2541 # Installed binaries are usually stripped using 'strip' when the user
2542 # run "make install-strip". However 'strip' might not be the right
2543 # tool to use in cross-compilation environments, therefore Automake
2544 # will honor the 'STRIP' environment variable to overrule this program.
2545 if test "$cross_compiling" != no; then
2546 if test -n "$ac_tool_prefix"; then
2547 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2548 set dummy ${ac_tool_prefix}strip; ac_word=$2
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550 $as_echo_n "checking for $ac_word... " >&6; }
2551 if ${ac_cv_prog_STRIP+:} false; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 if test -n "$STRIP"; then
2555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2559 do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2564 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 break 2
2567 fi
2568 done
2569 done
2570 IFS=$as_save_IFS
2571
2572 fi
2573 fi
2574 STRIP=$ac_cv_prog_STRIP
2575 if test -n "$STRIP"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2577 $as_echo "$STRIP" >&6; }
2578 else
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 $as_echo "no" >&6; }
2581 fi
2582
2583
2584 fi
2585 if test -z "$ac_cv_prog_STRIP"; then
2586 ac_ct_STRIP=$STRIP
2587 # Extract the first word of "strip", so it can be a program name with args.
2588 set dummy strip; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 if test -n "$ac_ct_STRIP"; then
2595 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2604 ac_cv_prog_ac_ct_STRIP="strip"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2615 if test -n "$ac_ct_STRIP"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2617 $as_echo "$ac_ct_STRIP" >&6; }
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2621 fi
2622
2623 if test "x$ac_ct_STRIP" = x; then
2624 STRIP=":"
2625 else
2626 case $cross_compiling:$ac_tool_warned in
2627 yes:)
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2630 ac_tool_warned=yes ;;
2631 esac
2632 STRIP=$ac_ct_STRIP
2633 fi
2634 else
2635 STRIP="$ac_cv_prog_STRIP"
2636 fi
2637
2638 fi
2639 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2640
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2642 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2643 if test -z "$MKDIR_P"; then
2644 if ${ac_cv_path_mkdir+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2649 do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_prog in mkdir gmkdir; do
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2655 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2656 'mkdir (GNU coreutils) '* | \
2657 'mkdir (coreutils) '* | \
2658 'mkdir (fileutils) '4.1*)
2659 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2660 break 3;;
2661 esac
2662 done
2663 done
2664 done
2665 IFS=$as_save_IFS
2666
2667 fi
2668
2669 test -d ./--version && rmdir ./--version
2670 if test "${ac_cv_path_mkdir+set}" = set; then
2671 MKDIR_P="$ac_cv_path_mkdir -p"
2672 else
2673 # As a last resort, use the slow shell script. Don't cache a
2674 # value for MKDIR_P within a source directory, because that will
2675 # break other packages using the cache if that directory is
2676 # removed, or if the value is a relative name.
2677 MKDIR_P="$ac_install_sh -d"
2678 fi
2679 fi
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2681 $as_echo "$MKDIR_P" >&6; }
2682
2683 for ac_prog in gawk mawk nawk awk
2684 do
2685 # Extract the first word of "$ac_prog", so it can be a program name with args.
2686 set dummy $ac_prog; ac_word=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if ${ac_cv_prog_AWK+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if test -n "$AWK"; then
2693 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2694 else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2702 ac_cv_prog_AWK="$ac_prog"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706 done
2707 done
2708 IFS=$as_save_IFS
2709
2710 fi
2711 fi
2712 AWK=$ac_cv_prog_AWK
2713 if test -n "$AWK"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2715 $as_echo "$AWK" >&6; }
2716 else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2719 fi
2720
2721
2722 test -n "$AWK" && break
2723 done
2724
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2726 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2727 set x ${MAKE-make}
2728 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2729 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 cat >conftest.make <<\_ACEOF
2733 SHELL = /bin/sh
2734 all:
2735 @echo '@@@%%%=$(MAKE)=@@@%%%'
2736 _ACEOF
2737 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2738 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2739 *@@@%%%=?*=@@@%%%*)
2740 eval ac_cv_prog_make_${ac_make}_set=yes;;
2741 *)
2742 eval ac_cv_prog_make_${ac_make}_set=no;;
2743 esac
2744 rm -f conftest.make
2745 fi
2746 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2748 $as_echo "yes" >&6; }
2749 SET_MAKE=
2750 else
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2753 SET_MAKE="MAKE=${MAKE-make}"
2754 fi
2755
2756 rm -rf .tst 2>/dev/null
2757 mkdir .tst 2>/dev/null
2758 if test -d .tst; then
2759 am__leading_dot=.
2760 else
2761 am__leading_dot=_
2762 fi
2763 rmdir .tst 2>/dev/null
2764
2765 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2766 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2767 # is not polluted with repeated "-I."
2768 am__isrc=' -I$(srcdir)'
2769 # test to see if srcdir already configured
2770 if test -f $srcdir/config.status; then
2771 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2772 fi
2773 fi
2774
2775 # test whether we have cygpath
2776 if test -z "$CYGPATH_W"; then
2777 if (cygpath --version) >/dev/null 2>/dev/null; then
2778 CYGPATH_W='cygpath -w'
2779 else
2780 CYGPATH_W=echo
2781 fi
2782 fi
2783
2784
2785 # Define the identity of the package.
2786 PACKAGE='autodock'
2787 VERSION='4.2.6'
2788
2789
2790 cat >>confdefs.h <<_ACEOF
2791 #define PACKAGE "$PACKAGE"
2792 _ACEOF
2793
2794
2795 cat >>confdefs.h <<_ACEOF
2796 #define VERSION "$VERSION"
2797 _ACEOF
2798
2799 # Some tools Automake needs.
2800
2801 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2802
2803
2804 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2805
2806
2807 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2808
2809
2810 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2811
2812
2813 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2814
2815 # For better backward compatibility. To be removed once Automake 1.9.x
2816 # dies out for good. For more background, see:
2817 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2818 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2819 mkdir_p='$(MKDIR_P)'
2820
2821 # We need awk for the "check" target. The system "awk" is bad on
2822 # some platforms.
2823 # Always define AMTAR for backward compatibility. Yes, it's still used
2824 # in the wild :-( We should find a proper way to deprecate it ...
2825 AMTAR='$${TAR-tar}'
2826
2827 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2828
2829
2830
2831
2832
2833 #AM_INIT_AUTOMAKE([foreign])
2834 #AM_INIT_AUTOMAKE([-Wall -Werror foreign])
2835
2836
2837 # Checks for programs.
2838 for ac_prog in gawk mawk nawk awk
2839 do
2840 # Extract the first word of "$ac_prog", so it can be a program name with args.
2841 set dummy $ac_prog; ac_word=$2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 $as_echo_n "checking for $ac_word... " >&6; }
2844 if ${ac_cv_prog_AWK+:} false; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 if test -n "$AWK"; then
2848 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857 ac_cv_prog_AWK="$ac_prog"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2860 fi
2861 done
2862 done
2863 IFS=$as_save_IFS
2864
2865 fi
2866 fi
2867 AWK=$ac_cv_prog_AWK
2868 if test -n "$AWK"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2870 $as_echo "$AWK" >&6; }
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874 fi
2875
2876
2877 test -n "$AWK" && break
2878 done
2879
2880
2881 # don't let AC_PROG_CXX force "-g -O2"
2882 saved_CXXFLAGS=${CXXFLAGS}
2883 ac_ext=cpp
2884 ac_cpp='$CXXCPP $CPPFLAGS'
2885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2888 if test -z "$CXX"; then
2889 if test -n "$CCC"; then
2890 CXX=$CCC
2891 else
2892 if test -n "$ac_tool_prefix"; then
2893 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2894 do
2895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_CXX+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$CXX"; then
2903 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2915 fi
2916 done
2917 done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 CXX=$ac_cv_prog_CXX
2923 if test -n "$CXX"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2925 $as_echo "$CXX" >&6; }
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2930
2931
2932 test -n "$CXX" && break
2933 done
2934 fi
2935 if test -z "$CXX"; then
2936 ac_ct_CXX=$CXX
2937 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2938 do
2939 # Extract the first word of "$ac_prog", so it can be a program name with args.
2940 set dummy $ac_prog; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 if test -n "$ac_ct_CXX"; then
2947 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_ac_ct_CXX="$ac_prog"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2967 if test -n "$ac_ct_CXX"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2969 $as_echo "$ac_ct_CXX" >&6; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 fi
2974
2975
2976 test -n "$ac_ct_CXX" && break
2977 done
2978
2979 if test "x$ac_ct_CXX" = x; then
2980 CXX="g++"
2981 else
2982 case $cross_compiling:$ac_tool_warned in
2983 yes:)
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2986 ac_tool_warned=yes ;;
2987 esac
2988 CXX=$ac_ct_CXX
2989 fi
2990 fi
2991
2992 fi
2993 fi
2994 # Provide some information about the compiler.
2995 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2996 set X $ac_compile
2997 ac_compiler=$2
2998 for ac_option in --version -v -V -qversion; do
2999 { { ac_try="$ac_compiler $ac_option >&5"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005 $as_echo "$ac_try_echo"; } >&5
3006 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3007 ac_status=$?
3008 if test -s conftest.err; then
3009 sed '10a\
3010 ... rest of stderr output deleted ...
3011 10q' conftest.err >conftest.er1
3012 cat conftest.er1 >&5
3013 fi
3014 rm -f conftest.er1 conftest.err
3015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }
3017 done
3018
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020 /* end confdefs.h. */
3021
3022 int
3023 main ()
3024 {
3025
3026 ;
3027 return 0;
3028 }
3029 _ACEOF
3030 ac_clean_files_save=$ac_clean_files
3031 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3032 # Try to create an executable without -o first, disregard a.out.
3033 # It will help us diagnose broken compilers, and finding out an intuition
3034 # of exeext.
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3036 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3037 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3038
3039 # The possible output files:
3040 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3041
3042 ac_rmfiles=
3043 for ac_file in $ac_files
3044 do
3045 case $ac_file in
3046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3047 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3048 esac
3049 done
3050 rm -f $ac_rmfiles
3051
3052 if { { ac_try="$ac_link_default"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_link_default") 2>&5
3060 ac_status=$?
3061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062 test $ac_status = 0; }; then :
3063 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3064 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3065 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3066 # so that the user can short-circuit this test for compilers unknown to
3067 # Autoconf.
3068 for ac_file in $ac_files ''
3069 do
3070 test -f "$ac_file" || continue
3071 case $ac_file in
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3073 ;;
3074 [ab].out )
3075 # We found the default executable, but exeext='' is most
3076 # certainly right.
3077 break;;
3078 *.* )
3079 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3080 then :; else
3081 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3082 fi
3083 # We set ac_cv_exeext here because the later test for it is not
3084 # safe: cross compilers may not add the suffix if given an `-o'
3085 # argument, so we may need to know it at that point already.
3086 # Even if this section looks crufty: it has the advantage of
3087 # actually working.
3088 break;;
3089 * )
3090 break;;
3091 esac
3092 done
3093 test "$ac_cv_exeext" = no && ac_cv_exeext=
3094
3095 else
3096 ac_file=''
3097 fi
3098 if test -z "$ac_file"; then :
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101 $as_echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3103
3104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 as_fn_error 77 "C++ compiler cannot create executables
3107 See \`config.log' for more details" "$LINENO" 5; }
3108 else
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110 $as_echo "yes" >&6; }
3111 fi
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3113 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3115 $as_echo "$ac_file" >&6; }
3116 ac_exeext=$ac_cv_exeext
3117
3118 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3119 ac_clean_files=$ac_clean_files_save
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3121 $as_echo_n "checking for suffix of executables... " >&6; }
3122 if { { ac_try="$ac_link"
3123 case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128 $as_echo "$ac_try_echo"; } >&5
3129 (eval "$ac_link") 2>&5
3130 ac_status=$?
3131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132 test $ac_status = 0; }; then :
3133 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3134 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3135 # work properly (i.e., refer to `conftest.exe'), while it won't with
3136 # `rm'.
3137 for ac_file in conftest.exe conftest conftest.*; do
3138 test -f "$ac_file" || continue
3139 case $ac_file in
3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3141 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3142 break;;
3143 * ) break;;
3144 esac
3145 done
3146 else
3147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3150 See \`config.log' for more details" "$LINENO" 5; }
3151 fi
3152 rm -f conftest conftest$ac_cv_exeext
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3154 $as_echo "$ac_cv_exeext" >&6; }
3155
3156 rm -f conftest.$ac_ext
3157 EXEEXT=$ac_cv_exeext
3158 ac_exeext=$EXEEXT
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3161 #include <stdio.h>
3162 int
3163 main ()
3164 {
3165 FILE *f = fopen ("conftest.out", "w");
3166 return ferror (f) || fclose (f) != 0;
3167
3168 ;
3169 return 0;
3170 }
3171 _ACEOF
3172 ac_clean_files="$ac_clean_files conftest.out"
3173 # Check that the compiler produces executables we can run. If not, either
3174 # the compiler is broken, or we cross compile.
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3176 $as_echo_n "checking whether we are cross compiling... " >&6; }
3177 if test "$cross_compiling" != yes; then
3178 { { ac_try="$ac_link"
3179 case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_link") 2>&5
3186 ac_status=$?
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }
3189 if { ac_try='./conftest$ac_cv_exeext'
3190 { { case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_try") 2>&5
3197 ac_status=$?
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; }; then
3200 cross_compiling=no
3201 else
3202 if test "$cross_compiling" = maybe; then
3203 cross_compiling=yes
3204 else
3205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207 as_fn_error $? "cannot run C++ compiled programs.
3208 If you meant to cross compile, use \`--host'.
3209 See \`config.log' for more details" "$LINENO" 5; }
3210 fi
3211 fi
3212 fi
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3214 $as_echo "$cross_compiling" >&6; }
3215
3216 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3217 ac_clean_files=$ac_clean_files_save
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3219 $as_echo_n "checking for suffix of object files... " >&6; }
3220 if ${ac_cv_objext+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3225
3226 int
3227 main ()
3228 {
3229
3230 ;
3231 return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.o conftest.obj
3235 if { { ac_try="$ac_compile"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_compile") 2>&5
3243 ac_status=$?
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }; then :
3246 for ac_file in conftest.o conftest.obj conftest.*; do
3247 test -f "$ac_file" || continue;
3248 case $ac_file in
3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3250 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3251 break;;
3252 esac
3253 done
3254 else
3255 $as_echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error $? "cannot compute suffix of object files: cannot compile
3261 See \`config.log' for more details" "$LINENO" 5; }
3262 fi
3263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3264 fi
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3266 $as_echo "$ac_cv_objext" >&6; }
3267 OBJEXT=$ac_cv_objext
3268 ac_objext=$OBJEXT
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3270 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3271 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3276
3277 int
3278 main ()
3279 {
3280 #ifndef __GNUC__
3281 choke me
3282 #endif
3283
3284 ;
3285 return 0;
3286 }
3287 _ACEOF
3288 if ac_fn_cxx_try_compile "$LINENO"; then :
3289 ac_compiler_gnu=yes
3290 else
3291 ac_compiler_gnu=no
3292 fi
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3295
3296 fi
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3298 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3299 if test $ac_compiler_gnu = yes; then
3300 GXX=yes
3301 else
3302 GXX=
3303 fi
3304 ac_test_CXXFLAGS=${CXXFLAGS+set}
3305 ac_save_CXXFLAGS=$CXXFLAGS
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3307 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3308 if ${ac_cv_prog_cxx_g+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3312 ac_cxx_werror_flag=yes
3313 ac_cv_prog_cxx_g=no
3314 CXXFLAGS="-g"
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3317
3318 int
3319 main ()
3320 {
3321
3322 ;
3323 return 0;
3324 }
3325 _ACEOF
3326 if ac_fn_cxx_try_compile "$LINENO"; then :
3327 ac_cv_prog_cxx_g=yes
3328 else
3329 CXXFLAGS=""
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3332
3333 int
3334 main ()
3335 {
3336
3337 ;
3338 return 0;
3339 }
3340 _ACEOF
3341 if ac_fn_cxx_try_compile "$LINENO"; then :
3342
3343 else
3344 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3345 CXXFLAGS="-g"
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3348
3349 int
3350 main ()
3351 {
3352
3353 ;
3354 return 0;
3355 }
3356 _ACEOF
3357 if ac_fn_cxx_try_compile "$LINENO"; then :
3358 ac_cv_prog_cxx_g=yes
3359 fi
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 fi
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 fi
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3366 fi
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3368 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3369 if test "$ac_test_CXXFLAGS" = set; then
3370 CXXFLAGS=$ac_save_CXXFLAGS
3371 elif test $ac_cv_prog_cxx_g = yes; then
3372 if test "$GXX" = yes; then
3373 CXXFLAGS="-g -O2"
3374 else
3375 CXXFLAGS="-g"
3376 fi
3377 else
3378 if test "$GXX" = yes; then
3379 CXXFLAGS="-O2"
3380 else
3381 CXXFLAGS=
3382 fi
3383 fi
3384 ac_ext=c
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 DEPDIR="${am__leading_dot}deps"
3390
3391 ac_config_commands="$ac_config_commands depfiles"
3392
3393
3394 am_make=${MAKE-make}
3395 cat > confinc << 'END'
3396 am__doit:
3397 @echo this is the am__doit target
3398 .PHONY: am__doit
3399 END
3400 # If we don't find an include directive, just comment out the code.
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3402 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3403 am__include="#"
3404 am__quote=
3405 _am_result=none
3406 # First try GNU make style include.
3407 echo "include confinc" > confmf
3408 # Ignore all kinds of additional output from 'make'.
3409 case `$am_make -s -f confmf 2> /dev/null` in #(
3410 *the\ am__doit\ target*)
3411 am__include=include
3412 am__quote=
3413 _am_result=GNU
3414 ;;
3415 esac
3416 # Now try BSD make style include.
3417 if test "$am__include" = "#"; then
3418 echo '.include "confinc"' > confmf
3419 case `$am_make -s -f confmf 2> /dev/null` in #(
3420 *the\ am__doit\ target*)
3421 am__include=.include
3422 am__quote="\""
3423 _am_result=BSD
3424 ;;
3425 esac
3426 fi
3427
3428
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3430 $as_echo "$_am_result" >&6; }
3431 rm -f confinc confmf
3432
3433 # Check whether --enable-dependency-tracking was given.
3434 if test "${enable_dependency_tracking+set}" = set; then :
3435 enableval=$enable_dependency_tracking;
3436 fi
3437
3438 if test "x$enable_dependency_tracking" != xno; then
3439 am_depcomp="$ac_aux_dir/depcomp"
3440 AMDEPBACKSLASH='\'
3441 am__nodep='_no'
3442 fi
3443 if test "x$enable_dependency_tracking" != xno; then
3444 AMDEP_TRUE=
3445 AMDEP_FALSE='#'
3446 else
3447 AMDEP_TRUE='#'
3448 AMDEP_FALSE=
3449 fi
3450
3451
3452
3453 depcc="$CXX" am_compiler_list=
3454
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3456 $as_echo_n "checking dependency style of $depcc... " >&6; }
3457 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3461 # We make a subdir and do the tests there. Otherwise we can end up
3462 # making bogus files that we don't know about and never remove. For
3463 # instance it was reported that on HP-UX the gcc test will end up
3464 # making a dummy file named 'D' -- because '-MD' means "put the output
3465 # in D".
3466 rm -rf conftest.dir
3467 mkdir conftest.dir
3468 # Copy depcomp to subdir because otherwise we won't find it if we're
3469 # using a relative directory.
3470 cp "$am_depcomp" conftest.dir
3471 cd conftest.dir
3472 # We will build objects and dependencies in a subdirectory because
3473 # it helps to detect inapplicable dependency modes. For instance
3474 # both Tru64's cc and ICC support -MD to output dependencies as a
3475 # side effect of compilation, but ICC will put the dependencies in
3476 # the current directory while Tru64 will put them in the object
3477 # directory.
3478 mkdir sub
3479
3480 am_cv_CXX_dependencies_compiler_type=none
3481 if test "$am_compiler_list" = ""; then
3482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3483 fi
3484 am__universal=false
3485 case " $depcc " in #(
3486 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3487 esac
3488
3489 for depmode in $am_compiler_list; do
3490 # Setup a source with many dependencies, because some compilers
3491 # like to wrap large dependency lists on column 80 (with \), and
3492 # we should not choose a depcomp mode which is confused by this.
3493 #
3494 # We need to recreate these files for each test, as the compiler may
3495 # overwrite some of them when testing with obscure command lines.
3496 # This happens at least with the AIX C compiler.
3497 : > sub/conftest.c
3498 for i in 1 2 3 4 5 6; do
3499 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3500 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3501 # Solaris 10 /bin/sh.
3502 echo '/* dummy */' > sub/conftst$i.h
3503 done
3504 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3505
3506 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3507 # mode. It turns out that the SunPro C++ compiler does not properly
3508 # handle '-M -o', and we need to detect this. Also, some Intel
3509 # versions had trouble with output in subdirs.
3510 am__obj=sub/conftest.${OBJEXT-o}
3511 am__minus_obj="-o $am__obj"
3512 case $depmode in
3513 gcc)
3514 # This depmode causes a compiler race in universal mode.
3515 test "$am__universal" = false || continue
3516 ;;
3517 nosideeffect)
3518 # After this tag, mechanisms are not by side-effect, so they'll
3519 # only be used when explicitly requested.
3520 if test "x$enable_dependency_tracking" = xyes; then
3521 continue
3522 else
3523 break
3524 fi
3525 ;;
3526 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3527 # This compiler won't grok '-c -o', but also, the minuso test has
3528 # not run yet. These depmodes are late enough in the game, and
3529 # so weak that their functioning should not be impacted.
3530 am__obj=conftest.${OBJEXT-o}
3531 am__minus_obj=
3532 ;;
3533 none) break ;;
3534 esac
3535 if depmode=$depmode \
3536 source=sub/conftest.c object=$am__obj \
3537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3538 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3539 >/dev/null 2>conftest.err &&
3540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3542 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3544 # icc doesn't choke on unknown options, it will just issue warnings
3545 # or remarks (even with -Werror). So we grep stderr for any message
3546 # that says an option was ignored or not supported.
3547 # When given -MP, icc 7.0 and 7.1 complain thusly:
3548 # icc: Command line warning: ignoring option '-M'; no argument required
3549 # The diagnosis changed in icc 8.0:
3550 # icc: Command line remark: option '-MP' not supported
3551 if (grep 'ignoring option' conftest.err ||
3552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3553 am_cv_CXX_dependencies_compiler_type=$depmode
3554 break
3555 fi
3556 fi
3557 done
3558
3559 cd ..
3560 rm -rf conftest.dir
3561 else
3562 am_cv_CXX_dependencies_compiler_type=none
3563 fi
3564
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3567 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3568 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3569
3570 if
3571 test "x$enable_dependency_tracking" != xno \
3572 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3573 am__fastdepCXX_TRUE=
3574 am__fastdepCXX_FALSE='#'
3575 else
3576 am__fastdepCXX_TRUE='#'
3577 am__fastdepCXX_FALSE=
3578 fi
3579
3580
3581 CXXFLAGS=${saved_CXXFLAGS}
3582
3583
3584 if test -n "$ac_tool_prefix"; then
3585 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3586 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if ${ac_cv_prog_RANLIB+:} false; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 if test -n "$RANLIB"; then
3593 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3605 fi
3606 done
3607 done
3608 IFS=$as_save_IFS
3609
3610 fi
3611 fi
3612 RANLIB=$ac_cv_prog_RANLIB
3613 if test -n "$RANLIB"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3615 $as_echo "$RANLIB" >&6; }
3616 else
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3619 fi
3620
3621
3622 fi
3623 if test -z "$ac_cv_prog_RANLIB"; then
3624 ac_ct_RANLIB=$RANLIB
3625 # Extract the first word of "ranlib", so it can be a program name with args.
3626 set dummy ranlib; ac_word=$2
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628 $as_echo_n "checking for $ac_word... " >&6; }
3629 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3630 $as_echo_n "(cached) " >&6
3631 else
3632 if test -n "$ac_ct_RANLIB"; then
3633 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642 ac_cv_prog_ac_ct_RANLIB="ranlib"
3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 break 2
3645 fi
3646 done
3647 done
3648 IFS=$as_save_IFS
3649
3650 fi
3651 fi
3652 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3653 if test -n "$ac_ct_RANLIB"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3655 $as_echo "$ac_ct_RANLIB" >&6; }
3656 else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3659 fi
3660
3661 if test "x$ac_ct_RANLIB" = x; then
3662 RANLIB=":"
3663 else
3664 case $cross_compiling:$ac_tool_warned in
3665 yes:)
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3668 ac_tool_warned=yes ;;
3669 esac
3670 RANLIB=$ac_ct_RANLIB
3671 fi
3672 else
3673 RANLIB="$ac_cv_prog_RANLIB"
3674 fi
3675
3676
3677 # Make sure we can run config.sub.
3678 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3679 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3680
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3682 $as_echo_n "checking build system type... " >&6; }
3683 if ${ac_cv_build+:} false; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 ac_build_alias=$build_alias
3687 test "x$ac_build_alias" = x &&
3688 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3689 test "x$ac_build_alias" = x &&
3690 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3691 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3692 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3693
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3696 $as_echo "$ac_cv_build" >&6; }
3697 case $ac_cv_build in
3698 *-*-*) ;;
3699 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3700 esac
3701 build=$ac_cv_build
3702 ac_save_IFS=$IFS; IFS='-'
3703 set x $ac_cv_build
3704 shift
3705 build_cpu=$1
3706 build_vendor=$2
3707 shift; shift
3708 # Remember, the first character of IFS is used to create $*,
3709 # except with old shells:
3710 build_os=$*
3711 IFS=$ac_save_IFS
3712 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3713
3714
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3716 $as_echo_n "checking host system type... " >&6; }
3717 if ${ac_cv_host+:} false; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 if test "x$host_alias" = x; then
3721 ac_cv_host=$ac_cv_build
3722 else
3723 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3724 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3725 fi
3726
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3729 $as_echo "$ac_cv_host" >&6; }
3730 case $ac_cv_host in
3731 *-*-*) ;;
3732 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3733 esac
3734 host=$ac_cv_host
3735 ac_save_IFS=$IFS; IFS='-'
3736 set x $ac_cv_host
3737 shift
3738 host_cpu=$1
3739 host_vendor=$2
3740 shift; shift
3741 # Remember, the first character of IFS is used to create $*,
3742 # except with old shells:
3743 host_os=$*
3744 IFS=$ac_save_IFS
3745 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3746
3747
3748
3749 # Checks for header files.
3750 ac_ext=c
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 if test -n "$ac_tool_prefix"; then
3756 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if ${ac_cv_prog_CC+:} false; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 if test -n "$CC"; then
3764 ac_cv_prog_CC="$CC" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 break 2
3776 fi
3777 done
3778 done
3779 IFS=$as_save_IFS
3780
3781 fi
3782 fi
3783 CC=$ac_cv_prog_CC
3784 if test -n "$CC"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3786 $as_echo "$CC" >&6; }
3787 else
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3790 fi
3791
3792
3793 fi
3794 if test -z "$ac_cv_prog_CC"; then
3795 ac_ct_CC=$CC
3796 # Extract the first word of "gcc", so it can be a program name with args.
3797 set dummy gcc; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 if test -n "$ac_ct_CC"; then
3804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3808 do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813 ac_cv_prog_ac_ct_CC="gcc"
3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 break 2
3816 fi
3817 done
3818 done
3819 IFS=$as_save_IFS
3820
3821 fi
3822 fi
3823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3824 if test -n "$ac_ct_CC"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3826 $as_echo "$ac_ct_CC" >&6; }
3827 else
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3830 fi
3831
3832 if test "x$ac_ct_CC" = x; then
3833 CC=""
3834 else
3835 case $cross_compiling:$ac_tool_warned in
3836 yes:)
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3839 ac_tool_warned=yes ;;
3840 esac
3841 CC=$ac_ct_CC
3842 fi
3843 else
3844 CC="$ac_cv_prog_CC"
3845 fi
3846
3847 if test -z "$CC"; then
3848 if test -n "$ac_tool_prefix"; then
3849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3850 set dummy ${ac_tool_prefix}cc; ac_word=$2
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 $as_echo_n "checking for $ac_word... " >&6; }
3853 if ${ac_cv_prog_CC+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 if test -n "$CC"; then
3857 ac_cv_prog_CC="$CC" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3861 do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866 ac_cv_prog_CC="${ac_tool_prefix}cc"
3867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870 done
3871 done
3872 IFS=$as_save_IFS
3873
3874 fi
3875 fi
3876 CC=$ac_cv_prog_CC
3877 if test -n "$CC"; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3879 $as_echo "$CC" >&6; }
3880 else
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882 $as_echo "no" >&6; }
3883 fi
3884
3885
3886 fi
3887 fi
3888 if test -z "$CC"; then
3889 # Extract the first word of "cc", so it can be a program name with args.
3890 set dummy cc; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if ${ac_cv_prog_CC+:} false; then :
3894 $as_echo_n "(cached) " >&6
3895 else
3896 if test -n "$CC"; then
3897 ac_cv_prog_CC="$CC" # Let the user override the test.
3898 else
3899 ac_prog_rejected=no
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3902 do
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3908 ac_prog_rejected=yes
3909 continue
3910 fi
3911 ac_cv_prog_CC="cc"
3912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3914 fi
3915 done
3916 done
3917 IFS=$as_save_IFS
3918
3919 if test $ac_prog_rejected = yes; then
3920 # We found a bogon in the path, so make sure we never use it.
3921 set dummy $ac_cv_prog_CC
3922 shift
3923 if test $# != 0; then
3924 # We chose a different compiler from the bogus one.
3925 # However, it has the same basename, so the bogon will be chosen
3926 # first if we set CC to just the basename; use the full file name.
3927 shift
3928 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3929 fi
3930 fi
3931 fi
3932 fi
3933 CC=$ac_cv_prog_CC
3934 if test -n "$CC"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936 $as_echo "$CC" >&6; }
3937 else
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3940 fi
3941
3942
3943 fi
3944 if test -z "$CC"; then
3945 if test -n "$ac_tool_prefix"; then
3946 for ac_prog in cl.exe
3947 do
3948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3951 $as_echo_n "checking for $ac_word... " >&6; }
3952 if ${ac_cv_prog_CC+:} false; then :
3953 $as_echo_n "(cached) " >&6
3954 else
3955 if test -n "$CC"; then
3956 ac_cv_prog_CC="$CC" # Let the user override the test.
3957 else
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH
3960 do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3965 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3967 break 2
3968 fi
3969 done
3970 done
3971 IFS=$as_save_IFS
3972
3973 fi
3974 fi
3975 CC=$ac_cv_prog_CC
3976 if test -n "$CC"; then
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3978 $as_echo "$CC" >&6; }
3979 else
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3981 $as_echo "no" >&6; }
3982 fi
3983
3984
3985 test -n "$CC" && break
3986 done
3987 fi
3988 if test -z "$CC"; then
3989 ac_ct_CC=$CC
3990 for ac_prog in cl.exe
3991 do
3992 # Extract the first word of "$ac_prog", so it can be a program name with args.
3993 set dummy $ac_prog; ac_word=$2
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995 $as_echo_n "checking for $ac_word... " >&6; }
3996 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 if test -n "$ac_ct_CC"; then
4000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009 ac_cv_prog_ac_ct_CC="$ac_prog"
4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 break 2
4012 fi
4013 done
4014 done
4015 IFS=$as_save_IFS
4016
4017 fi
4018 fi
4019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4020 if test -n "$ac_ct_CC"; then
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4022 $as_echo "$ac_ct_CC" >&6; }
4023 else
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025 $as_echo "no" >&6; }
4026 fi
4027
4028
4029 test -n "$ac_ct_CC" && break
4030 done
4031
4032 if test "x$ac_ct_CC" = x; then
4033 CC=""
4034 else
4035 case $cross_compiling:$ac_tool_warned in
4036 yes:)
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4039 ac_tool_warned=yes ;;
4040 esac
4041 CC=$ac_ct_CC
4042 fi
4043 fi
4044
4045 fi
4046
4047
4048 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4050 as_fn_error $? "no acceptable C compiler found in \$PATH
4051 See \`config.log' for more details" "$LINENO" 5; }
4052
4053 # Provide some information about the compiler.
4054 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4055 set X $ac_compile
4056 ac_compiler=$2
4057 for ac_option in --version -v -V -qversion; do
4058 { { ac_try="$ac_compiler $ac_option >&5"
4059 case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4064 $as_echo "$ac_try_echo"; } >&5
4065 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4066 ac_status=$?
4067 if test -s conftest.err; then
4068 sed '10a\
4069 ... rest of stderr output deleted ...
4070 10q' conftest.err >conftest.er1
4071 cat conftest.er1 >&5
4072 fi
4073 rm -f conftest.er1 conftest.err
4074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4075 test $ac_status = 0; }
4076 done
4077
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4079 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4080 if ${ac_cv_c_compiler_gnu+:} false; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085
4086 int
4087 main ()
4088 {
4089 #ifndef __GNUC__
4090 choke me
4091 #endif
4092
4093 ;
4094 return 0;
4095 }
4096 _ACEOF
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_compiler_gnu=yes
4099 else
4100 ac_compiler_gnu=no
4101 fi
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4104
4105 fi
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4107 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4108 if test $ac_compiler_gnu = yes; then
4109 GCC=yes
4110 else
4111 GCC=
4112 fi
4113 ac_test_CFLAGS=${CFLAGS+set}
4114 ac_save_CFLAGS=$CFLAGS
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4116 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4117 if ${ac_cv_prog_cc_g+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 ac_save_c_werror_flag=$ac_c_werror_flag
4121 ac_c_werror_flag=yes
4122 ac_cv_prog_cc_g=no
4123 CFLAGS="-g"
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126
4127 int
4128 main ()
4129 {
4130
4131 ;
4132 return 0;
4133 }
4134 _ACEOF
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_cv_prog_cc_g=yes
4137 else
4138 CFLAGS=""
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141
4142 int
4143 main ()
4144 {
4145
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151
4152 else
4153 ac_c_werror_flag=$ac_save_c_werror_flag
4154 CFLAGS="-g"
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157
4158 int
4159 main ()
4160 {
4161
4162 ;
4163 return 0;
4164 }
4165 _ACEOF
4166 if ac_fn_c_try_compile "$LINENO"; then :
4167 ac_cv_prog_cc_g=yes
4168 fi
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 fi
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 fi
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 ac_c_werror_flag=$ac_save_c_werror_flag
4175 fi
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4177 $as_echo "$ac_cv_prog_cc_g" >&6; }
4178 if test "$ac_test_CFLAGS" = set; then
4179 CFLAGS=$ac_save_CFLAGS
4180 elif test $ac_cv_prog_cc_g = yes; then
4181 if test "$GCC" = yes; then
4182 CFLAGS="-g -O2"
4183 else
4184 CFLAGS="-g"
4185 fi
4186 else
4187 if test "$GCC" = yes; then
4188 CFLAGS="-O2"
4189 else
4190 CFLAGS=
4191 fi
4192 fi
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4194 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4195 if ${ac_cv_prog_cc_c89+:} false; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 ac_cv_prog_cc_c89=no
4199 ac_save_CC=$CC
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 #include <stdarg.h>
4203 #include <stdio.h>
4204 struct stat;
4205 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4206 struct buf { int x; };
4207 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4208 static char *e (p, i)
4209 char **p;
4210 int i;
4211 {
4212 return p[i];
4213 }
4214 static char *f (char * (*g) (char **, int), char **p, ...)
4215 {
4216 char *s;
4217 va_list v;
4218 va_start (v,p);
4219 s = g (p, va_arg (v,int));
4220 va_end (v);
4221 return s;
4222 }
4223
4224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4225 function prototypes and stuff, but not '\xHH' hex character constants.
4226 These don't provoke an error unfortunately, instead are silently treated
4227 as 'x'. The following induces an error, until -std is added to get
4228 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4229 array size at least. It's necessary to write '\x00'==0 to get something
4230 that's true only with -std. */
4231 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4232
4233 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4234 inside strings and character constants. */
4235 #define FOO(x) 'x'
4236 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4237
4238 int test (int i, double x);
4239 struct s1 {int (*f) (int a);};
4240 struct s2 {int (*f) (double a);};
4241 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4242 int argc;
4243 char **argv;
4244 int
4245 main ()
4246 {
4247 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4248 ;
4249 return 0;
4250 }
4251 _ACEOF
4252 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4253 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4254 do
4255 CC="$ac_save_CC $ac_arg"
4256 if ac_fn_c_try_compile "$LINENO"; then :
4257 ac_cv_prog_cc_c89=$ac_arg
4258 fi
4259 rm -f core conftest.err conftest.$ac_objext
4260 test "x$ac_cv_prog_cc_c89" != "xno" && break
4261 done
4262 rm -f conftest.$ac_ext
4263 CC=$ac_save_CC
4264
4265 fi
4266 # AC_CACHE_VAL
4267 case "x$ac_cv_prog_cc_c89" in
4268 x)
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4270 $as_echo "none needed" >&6; } ;;
4271 xno)
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4273 $as_echo "unsupported" >&6; } ;;
4274 *)
4275 CC="$CC $ac_cv_prog_cc_c89"
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4277 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4278 esac
4279 if test "x$ac_cv_prog_cc_c89" != xno; then :
4280
4281 fi
4282
4283 ac_ext=c
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288
4289 depcc="$CC" am_compiler_list=
4290
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4292 $as_echo_n "checking dependency style of $depcc... " >&6; }
4293 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4297 # We make a subdir and do the tests there. Otherwise we can end up
4298 # making bogus files that we don't know about and never remove. For
4299 # instance it was reported that on HP-UX the gcc test will end up
4300 # making a dummy file named 'D' -- because '-MD' means "put the output
4301 # in D".
4302 rm -rf conftest.dir
4303 mkdir conftest.dir
4304 # Copy depcomp to subdir because otherwise we won't find it if we're
4305 # using a relative directory.
4306 cp "$am_depcomp" conftest.dir
4307 cd conftest.dir
4308 # We will build objects and dependencies in a subdirectory because
4309 # it helps to detect inapplicable dependency modes. For instance
4310 # both Tru64's cc and ICC support -MD to output dependencies as a
4311 # side effect of compilation, but ICC will put the dependencies in
4312 # the current directory while Tru64 will put them in the object
4313 # directory.
4314 mkdir sub
4315
4316 am_cv_CC_dependencies_compiler_type=none
4317 if test "$am_compiler_list" = ""; then
4318 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4319 fi
4320 am__universal=false
4321 case " $depcc " in #(
4322 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4323 esac
4324
4325 for depmode in $am_compiler_list; do
4326 # Setup a source with many dependencies, because some compilers
4327 # like to wrap large dependency lists on column 80 (with \), and
4328 # we should not choose a depcomp mode which is confused by this.
4329 #
4330 # We need to recreate these files for each test, as the compiler may
4331 # overwrite some of them when testing with obscure command lines.
4332 # This happens at least with the AIX C compiler.
4333 : > sub/conftest.c
4334 for i in 1 2 3 4 5 6; do
4335 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4336 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4337 # Solaris 10 /bin/sh.
4338 echo '/* dummy */' > sub/conftst$i.h
4339 done
4340 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4341
4342 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4343 # mode. It turns out that the SunPro C++ compiler does not properly
4344 # handle '-M -o', and we need to detect this. Also, some Intel
4345 # versions had trouble with output in subdirs.
4346 am__obj=sub/conftest.${OBJEXT-o}
4347 am__minus_obj="-o $am__obj"
4348 case $depmode in
4349 gcc)
4350 # This depmode causes a compiler race in universal mode.
4351 test "$am__universal" = false || continue
4352 ;;
4353 nosideeffect)
4354 # After this tag, mechanisms are not by side-effect, so they'll
4355 # only be used when explicitly requested.
4356 if test "x$enable_dependency_tracking" = xyes; then
4357 continue
4358 else
4359 break
4360 fi
4361 ;;
4362 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4363 # This compiler won't grok '-c -o', but also, the minuso test has
4364 # not run yet. These depmodes are late enough in the game, and
4365 # so weak that their functioning should not be impacted.
4366 am__obj=conftest.${OBJEXT-o}
4367 am__minus_obj=
4368 ;;
4369 none) break ;;
4370 esac
4371 if depmode=$depmode \
4372 source=sub/conftest.c object=$am__obj \
4373 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4374 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4375 >/dev/null 2>conftest.err &&
4376 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4377 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4378 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4379 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4380 # icc doesn't choke on unknown options, it will just issue warnings
4381 # or remarks (even with -Werror). So we grep stderr for any message
4382 # that says an option was ignored or not supported.
4383 # When given -MP, icc 7.0 and 7.1 complain thusly:
4384 # icc: Command line warning: ignoring option '-M'; no argument required
4385 # The diagnosis changed in icc 8.0:
4386 # icc: Command line remark: option '-MP' not supported
4387 if (grep 'ignoring option' conftest.err ||
4388 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4389 am_cv_CC_dependencies_compiler_type=$depmode
4390 break
4391 fi
4392 fi
4393 done
4394
4395 cd ..
4396 rm -rf conftest.dir
4397 else
4398 am_cv_CC_dependencies_compiler_type=none
4399 fi
4400
4401 fi
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4403 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4404 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4405
4406 if
4407 test "x$enable_dependency_tracking" != xno \
4408 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4409 am__fastdepCC_TRUE=
4410 am__fastdepCC_FALSE='#'
4411 else
4412 am__fastdepCC_TRUE='#'
4413 am__fastdepCC_FALSE=
4414 fi
4415
4416
4417
4418 ac_ext=c
4419 ac_cpp='$CPP $CPPFLAGS'
4420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4424 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4425 # On Suns, sometimes $CPP names a directory.
4426 if test -n "$CPP" && test -d "$CPP"; then
4427 CPP=
4428 fi
4429 if test -z "$CPP"; then
4430 if ${ac_cv_prog_CPP+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 # Double quotes because CPP needs to be expanded
4434 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4435 do
4436 ac_preproc_ok=false
4437 for ac_c_preproc_warn_flag in '' yes
4438 do
4439 # Use a header file that comes with gcc, so configuring glibc
4440 # with a fresh cross-compiler works.
4441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4442 # <limits.h> exists even on freestanding compilers.
4443 # On the NeXT, cc -E runs the code through the compiler's parser,
4444 # not just through cpp. "Syntax error" is here to catch this case.
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 #ifdef __STDC__
4448 # include <limits.h>
4449 #else
4450 # include <assert.h>
4451 #endif
4452 Syntax error
4453 _ACEOF
4454 if ac_fn_c_try_cpp "$LINENO"; then :
4455
4456 else
4457 # Broken: fails on valid input.
4458 continue
4459 fi
4460 rm -f conftest.err conftest.i conftest.$ac_ext
4461
4462 # OK, works on sane cases. Now check whether nonexistent headers
4463 # can be detected and how.
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466 #include <ac_nonexistent.h>
4467 _ACEOF
4468 if ac_fn_c_try_cpp "$LINENO"; then :
4469 # Broken: success on invalid input.
4470 continue
4471 else
4472 # Passes both tests.
4473 ac_preproc_ok=:
4474 break
4475 fi
4476 rm -f conftest.err conftest.i conftest.$ac_ext
4477
4478 done
4479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4480 rm -f conftest.i conftest.err conftest.$ac_ext
4481 if $ac_preproc_ok; then :
4482 break
4483 fi
4484
4485 done
4486 ac_cv_prog_CPP=$CPP
4487
4488 fi
4489 CPP=$ac_cv_prog_CPP
4490 else
4491 ac_cv_prog_CPP=$CPP
4492 fi
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4494 $as_echo "$CPP" >&6; }
4495 ac_preproc_ok=false
4496 for ac_c_preproc_warn_flag in '' yes
4497 do
4498 # Use a header file that comes with gcc, so configuring glibc
4499 # with a fresh cross-compiler works.
4500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4501 # <limits.h> exists even on freestanding compilers.
4502 # On the NeXT, cc -E runs the code through the compiler's parser,
4503 # not just through cpp. "Syntax error" is here to catch this case.
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4506 #ifdef __STDC__
4507 # include <limits.h>
4508 #else
4509 # include <assert.h>
4510 #endif
4511 Syntax error
4512 _ACEOF
4513 if ac_fn_c_try_cpp "$LINENO"; then :
4514
4515 else
4516 # Broken: fails on valid input.
4517 continue
4518 fi
4519 rm -f conftest.err conftest.i conftest.$ac_ext
4520
4521 # OK, works on sane cases. Now check whether nonexistent headers
4522 # can be detected and how.
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525 #include <ac_nonexistent.h>
4526 _ACEOF
4527 if ac_fn_c_try_cpp "$LINENO"; then :
4528 # Broken: success on invalid input.
4529 continue
4530 else
4531 # Passes both tests.
4532 ac_preproc_ok=:
4533 break
4534 fi
4535 rm -f conftest.err conftest.i conftest.$ac_ext
4536
4537 done
4538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4539 rm -f conftest.i conftest.err conftest.$ac_ext
4540 if $ac_preproc_ok; then :
4541
4542 else
4543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4545 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4546 See \`config.log' for more details" "$LINENO" 5; }
4547 fi
4548
4549 ac_ext=c
4550 ac_cpp='$CPP $CPPFLAGS'
4551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4557 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4558 if ${ac_cv_path_GREP+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -z "$GREP"; then
4562 ac_path_GREP_found=false
4563 # Loop through the user's path and test for each of PROGNAME-LIST
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4566 do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_prog in grep ggrep; do
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4572 as_fn_executable_p "$ac_path_GREP" || continue
4573 # Check for GNU ac_path_GREP and select it if it is found.
4574 # Check for GNU $ac_path_GREP
4575 case `"$ac_path_GREP" --version 2>&1` in
4576 *GNU*)
4577 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4578 *)
4579 ac_count=0
4580 $as_echo_n 0123456789 >"conftest.in"
4581 while :
4582 do
4583 cat "conftest.in" "conftest.in" >"conftest.tmp"
4584 mv "conftest.tmp" "conftest.in"
4585 cp "conftest.in" "conftest.nl"
4586 $as_echo 'GREP' >> "conftest.nl"
4587 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4589 as_fn_arith $ac_count + 1 && ac_count=$as_val
4590 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4591 # Best one so far, save it but keep looking for a better one
4592 ac_cv_path_GREP="$ac_path_GREP"
4593 ac_path_GREP_max=$ac_count
4594 fi
4595 # 10*(2^10) chars as input seems more than enough
4596 test $ac_count -gt 10 && break
4597 done
4598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4599 esac
4600
4601 $ac_path_GREP_found && break 3
4602 done
4603 done
4604 done
4605 IFS=$as_save_IFS
4606 if test -z "$ac_cv_path_GREP"; then
4607 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4608 fi
4609 else
4610 ac_cv_path_GREP=$GREP
4611 fi
4612
4613 fi
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4615 $as_echo "$ac_cv_path_GREP" >&6; }
4616 GREP="$ac_cv_path_GREP"
4617
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4620 $as_echo_n "checking for egrep... " >&6; }
4621 if ${ac_cv_path_EGREP+:} false; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4625 then ac_cv_path_EGREP="$GREP -E"
4626 else
4627 if test -z "$EGREP"; then
4628 ac_path_EGREP_found=false
4629 # Loop through the user's path and test for each of PROGNAME-LIST
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4632 do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_prog in egrep; do
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4638 as_fn_executable_p "$ac_path_EGREP" || continue
4639 # Check for GNU ac_path_EGREP and select it if it is found.
4640 # Check for GNU $ac_path_EGREP
4641 case `"$ac_path_EGREP" --version 2>&1` in
4642 *GNU*)
4643 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4644 *)
4645 ac_count=0
4646 $as_echo_n 0123456789 >"conftest.in"
4647 while :
4648 do
4649 cat "conftest.in" "conftest.in" >"conftest.tmp"
4650 mv "conftest.tmp" "conftest.in"
4651 cp "conftest.in" "conftest.nl"
4652 $as_echo 'EGREP' >> "conftest.nl"
4653 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4655 as_fn_arith $ac_count + 1 && ac_count=$as_val
4656 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4657 # Best one so far, save it but keep looking for a better one
4658 ac_cv_path_EGREP="$ac_path_EGREP"
4659 ac_path_EGREP_max=$ac_count
4660 fi
4661 # 10*(2^10) chars as input seems more than enough
4662 test $ac_count -gt 10 && break
4663 done
4664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4665 esac
4666
4667 $ac_path_EGREP_found && break 3
4668 done
4669 done
4670 done
4671 IFS=$as_save_IFS
4672 if test -z "$ac_cv_path_EGREP"; then
4673 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4674 fi
4675 else
4676 ac_cv_path_EGREP=$EGREP
4677 fi
4678
4679 fi
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4682 $as_echo "$ac_cv_path_EGREP" >&6; }
4683 EGREP="$ac_cv_path_EGREP"
4684
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4687 $as_echo_n "checking for ANSI C header files... " >&6; }
4688 if ${ac_cv_header_stdc+:} false; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4693 #include <stdlib.h>
4694 #include <stdarg.h>
4695 #include <string.h>
4696 #include <float.h>
4697
4698 int
4699 main ()
4700 {
4701
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707 ac_cv_header_stdc=yes
4708 else
4709 ac_cv_header_stdc=no
4710 fi
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712
4713 if test $ac_cv_header_stdc = yes; then
4714 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717 #include <string.h>
4718
4719 _ACEOF
4720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4721 $EGREP "memchr" >/dev/null 2>&1; then :
4722
4723 else
4724 ac_cv_header_stdc=no
4725 fi
4726 rm -f conftest*
4727
4728 fi
4729
4730 if test $ac_cv_header_stdc = yes; then
4731 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4734 #include <stdlib.h>
4735
4736 _ACEOF
4737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4738 $EGREP "free" >/dev/null 2>&1; then :
4739
4740 else
4741 ac_cv_header_stdc=no
4742 fi
4743 rm -f conftest*
4744
4745 fi
4746
4747 if test $ac_cv_header_stdc = yes; then
4748 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4749 if test "$cross_compiling" = yes; then :
4750 :
4751 else
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 #include <ctype.h>
4755 #include <stdlib.h>
4756 #if ((' ' & 0x0FF) == 0x020)
4757 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4758 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4759 #else
4760 # define ISLOWER(c) \
4761 (('a' <= (c) && (c) <= 'i') \
4762 || ('j' <= (c) && (c) <= 'r') \
4763 || ('s' <= (c) && (c) <= 'z'))
4764 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4765 #endif
4766
4767 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4768 int
4769 main ()
4770 {
4771 int i;
4772 for (i = 0; i < 256; i++)
4773 if (XOR (islower (i), ISLOWER (i))
4774 || toupper (i) != TOUPPER (i))
4775 return 2;
4776 return 0;
4777 }
4778 _ACEOF
4779 if ac_fn_c_try_run "$LINENO"; then :
4780
4781 else
4782 ac_cv_header_stdc=no
4783 fi
4784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4785 conftest.$ac_objext conftest.beam conftest.$ac_ext
4786 fi
4787
4788 fi
4789 fi
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4791 $as_echo "$ac_cv_header_stdc" >&6; }
4792 if test $ac_cv_header_stdc = yes; then
4793
4794 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4795
4796 fi
4797
4798 #AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h sys/param.h sys/time.h unistd.h])
4799
4800 # Checks for typedefs, structures, and compiler characteristics.
4801 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4802 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4803 inttypes.h stdint.h unistd.h
4804 do :
4805 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4806 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4807 "
4808 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4809 cat >>confdefs.h <<_ACEOF
4810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4811 _ACEOF
4812
4813 fi
4814
4815 done
4816
4817
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4819 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4820 if ${ac_cv_header_stdbool_h+:} false; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4825
4826 #include <stdbool.h>
4827 #ifndef bool
4828 "error: bool is not defined"
4829 #endif
4830 #ifndef false
4831 "error: false is not defined"
4832 #endif
4833 #if false
4834 "error: false is not 0"
4835 #endif
4836 #ifndef true
4837 "error: true is not defined"
4838 #endif
4839 #if true != 1
4840 "error: true is not 1"
4841 #endif
4842 #ifndef __bool_true_false_are_defined
4843 "error: __bool_true_false_are_defined is not defined"
4844 #endif
4845
4846 struct s { _Bool s: 1; _Bool t; } s;
4847
4848 char a[true == 1 ? 1 : -1];
4849 char b[false == 0 ? 1 : -1];
4850 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4851 char d[(bool) 0.5 == true ? 1 : -1];
4852 /* See body of main program for 'e'. */
4853 char f[(_Bool) 0.0 == false ? 1 : -1];
4854 char g[true];
4855 char h[sizeof (_Bool)];
4856 char i[sizeof s.t];
4857 enum { j = false, k = true, l = false * true, m = true * 256 };
4858 /* The following fails for
4859 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4860 _Bool n[m];
4861 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4862 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4863 /* Catch a bug in an HP-UX C compiler. See
4864 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4865 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4866 */
4867 _Bool q = true;
4868 _Bool *pq = &q;
4869
4870 int
4871 main ()
4872 {
4873
4874 bool e = &s;
4875 *pq |= q;
4876 *pq |= ! q;
4877 /* Refer to every declared value, to avoid compiler optimizations. */
4878 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4879 + !m + !n + !o + !p + !q + !pq);
4880
4881 ;
4882 return 0;
4883 }
4884 _ACEOF
4885 if ac_fn_c_try_compile "$LINENO"; then :
4886 ac_cv_header_stdbool_h=yes
4887 else
4888 ac_cv_header_stdbool_h=no
4889 fi
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4893 $as_echo "$ac_cv_header_stdbool_h" >&6; }
4894 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4895 if test "x$ac_cv_type__Bool" = xyes; then :
4896
4897 cat >>confdefs.h <<_ACEOF
4898 #define HAVE__BOOL 1
4899 _ACEOF
4900
4901
4902 fi
4903
4904
4905 if test $ac_cv_header_stdbool_h = yes; then
4906
4907 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
4908
4909 fi
4910
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4912 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4913 if ${ac_cv_c_const+:} false; then :
4914 $as_echo_n "(cached) " >&6
4915 else
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4918
4919 int
4920 main ()
4921 {
4922
4923 #ifndef __cplusplus
4924 /* Ultrix mips cc rejects this sort of thing. */
4925 typedef int charset[2];
4926 const charset cs = { 0, 0 };
4927 /* SunOS 4.1.1 cc rejects this. */
4928 char const *const *pcpcc;
4929 char **ppc;
4930 /* NEC SVR4.0.2 mips cc rejects this. */
4931 struct point {int x, y;};
4932 static struct point const zero = {0,0};
4933 /* AIX XL C 1.02.0.0 rejects this.
4934 It does not let you subtract one const X* pointer from another in
4935 an arm of an if-expression whose if-part is not a constant
4936 expression */
4937 const char *g = "string";
4938 pcpcc = &g + (g ? g-g : 0);
4939 /* HPUX 7.0 cc rejects these. */
4940 ++pcpcc;
4941 ppc = (char**) pcpcc;
4942 pcpcc = (char const *const *) ppc;
4943 { /* SCO 3.2v4 cc rejects this sort of thing. */
4944 char tx;
4945 char *t = &tx;
4946 char const *s = 0 ? (char *) 0 : (char const *) 0;
4947
4948 *t++ = 0;
4949 if (s) return 0;
4950 }
4951 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4952 int x[] = {25, 17};
4953 const int *foo = &x[0];
4954 ++foo;
4955 }
4956 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4957 typedef const int *iptr;
4958 iptr p = 0;
4959 ++p;
4960 }
4961 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4962 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4963 struct s { int j; const int *ap[3]; } bx;
4964 struct s *b = &bx; b->j = 5;
4965 }
4966 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4967 const int foo = 10;
4968 if (!foo) return 0;
4969 }
4970 return !cs[0] && !zero.x;
4971 #endif
4972
4973 ;
4974 return 0;
4975 }
4976 _ACEOF
4977 if ac_fn_c_try_compile "$LINENO"; then :
4978 ac_cv_c_const=yes
4979 else
4980 ac_cv_c_const=no
4981 fi
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 fi
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4985 $as_echo "$ac_cv_c_const" >&6; }
4986 if test $ac_cv_c_const = no; then
4987
4988 $as_echo "#define const /**/" >>confdefs.h
4989
4990 fi
4991
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4993 $as_echo_n "checking for inline... " >&6; }
4994 if ${ac_cv_c_inline+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 ac_cv_c_inline=no
4998 for ac_kw in inline __inline__ __inline; do
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001 #ifndef __cplusplus
5002 typedef int foo_t;
5003 static $ac_kw foo_t static_foo () {return 0; }
5004 $ac_kw foo_t foo () {return 0; }
5005 #endif
5006
5007 _ACEOF
5008 if ac_fn_c_try_compile "$LINENO"; then :
5009 ac_cv_c_inline=$ac_kw
5010 fi
5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 test "$ac_cv_c_inline" != no && break
5013 done
5014
5015 fi
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5017 $as_echo "$ac_cv_c_inline" >&6; }
5018
5019 case $ac_cv_c_inline in
5020 inline | yes) ;;
5021 *)
5022 case $ac_cv_c_inline in
5023 no) ac_val=;;
5024 *) ac_val=$ac_cv_c_inline;;
5025 esac
5026 cat >>confdefs.h <<_ACEOF
5027 #ifndef __cplusplus
5028 #define inline $ac_val
5029 #endif
5030 _ACEOF
5031 ;;
5032 esac
5033
5034 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5035 if test "x$ac_cv_type_size_t" = xyes; then :
5036
5037 else
5038
5039 cat >>confdefs.h <<_ACEOF
5040 #define size_t unsigned int
5041 _ACEOF
5042
5043 fi
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5046 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5047 if ${ac_cv_struct_tm+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 #include <sys/types.h>
5053 #include <time.h>
5054
5055 int
5056 main ()
5057 {
5058 struct tm tm;
5059 int *p = &tm.tm_sec;
5060 return !p;
5061 ;
5062 return 0;
5063 }
5064 _ACEOF
5065 if ac_fn_c_try_compile "$LINENO"; then :
5066 ac_cv_struct_tm=time.h
5067 else
5068 ac_cv_struct_tm=sys/time.h
5069 fi
5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 fi
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5073 $as_echo "$ac_cv_struct_tm" >&6; }
5074 if test $ac_cv_struct_tm = sys/time.h; then
5075
5076 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5077
5078 fi
5079
5080
5081 # Checks for library functions.
5082 for ac_header in stdlib.h
5083 do :
5084 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5085 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5086 cat >>confdefs.h <<_ACEOF
5087 #define HAVE_STDLIB_H 1
5088 _ACEOF
5089
5090 fi
5091
5092 done
5093
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5095 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5096 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 if test "$cross_compiling" = yes; then :
5100 ac_cv_func_malloc_0_nonnull=no
5101 else
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5104 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5105 # include <stdlib.h>
5106 #else
5107 char *malloc ();
5108 #endif
5109
5110 int
5111 main ()
5112 {
5113 return ! malloc (0);
5114 ;
5115 return 0;
5116 }
5117 _ACEOF
5118 if ac_fn_c_try_run "$LINENO"; then :
5119 ac_cv_func_malloc_0_nonnull=yes
5120 else
5121 ac_cv_func_malloc_0_nonnull=no
5122 fi
5123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5124 conftest.$ac_objext conftest.beam conftest.$ac_ext
5125 fi
5126
5127 fi
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5129 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5130 if test $ac_cv_func_malloc_0_nonnull = yes; then :
5131
5132 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5133
5134 else
5135 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5136
5137 case " $LIBOBJS " in
5138 *" malloc.$ac_objext "* ) ;;
5139 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5140 ;;
5141 esac
5142
5143
5144 $as_echo "#define malloc rpl_malloc" >>confdefs.h
5145
5146 fi
5147
5148
5149 # gethostname does not seem available in WIN32 MinGW so we include a local equiv in mingw_sysconf.h
5150 # getpid has a WIN32 equivalent GetProcessId but WIN32 MinGW supplies getpid
5151 # fchmod and constants S_IRGRP, S_IROTH not available in WIN32 MinGW so block using (output_state.cc)
5152 # setlinebuf not available in WIN32 MinGW so we block using it (setflags.cc)
5153 # sysconf not available in WIN32 MinGW so we include a local subset in mingw_sysconf.h
5154 # times not available in WIN32 MinGW so we include a local equiv in mingw_sys_times.h
5155 # getrusage not available in WIN32 MinGW so we include a local equiv in mingw_getrusage.cc
5156 for ac_func in gethostname getpid GetProcessId fchmod setlinebuf sysconf times getrusage pow sqrt strncasecmp
5157 do :
5158 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5159 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5160 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5161 cat >>confdefs.h <<_ACEOF
5162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5163 _ACEOF
5164
5165 fi
5166 done
5167
5168
5169 case $host_os in
5170 *cygwin* ) CYGWIN=yes;;
5171 * ) CYGWIN=no;;
5172 esac
5173 if test "$CYGWIN" = yes; then
5174 WANT_BIGSTACK_TRUE=
5175 WANT_BIGSTACK_FALSE='#'
5176 else
5177 WANT_BIGSTACK_TRUE='#'
5178 WANT_BIGSTACK_FALSE=
5179 fi
5180
5181
5182 # M Pique: Open MP detection taken from Joachim Wuttke at
5183 # http://stackoverflow.com/questions/9037434/enable-openmp-checks-and-flags-in-autoconf-and-automake
5184 # who suggests also: AC_SUBST(AM_CXXFLAGS,"$OPENMP_CXXFLAGS")
5185 ac_ext=cpp
5186 ac_cpp='$CXXCPP $CPPFLAGS'
5187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5190
5191 ac_ext=cpp
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196 if test -z "$CXX"; then
5197 if test -n "$CCC"; then
5198 CXX=$CCC
5199 else
5200 if test -n "$ac_tool_prefix"; then
5201 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5202 do
5203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if ${ac_cv_prog_CXX+:} false; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -n "$CXX"; then
5211 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228 fi
5229 fi
5230 CXX=$ac_cv_prog_CXX
5231 if test -n "$CXX"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5233 $as_echo "$CXX" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238
5239
5240 test -n "$CXX" && break
5241 done
5242 fi
5243 if test -z "$CXX"; then
5244 ac_ct_CXX=$CXX
5245 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5246 do
5247 # Extract the first word of "$ac_prog", so it can be a program name with args.
5248 set dummy $ac_prog; ac_word=$2
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250 $as_echo_n "checking for $ac_word... " >&6; }
5251 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 if test -n "$ac_ct_CXX"; then
5255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5256 else
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264 ac_cv_prog_ac_ct_CXX="$ac_prog"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5267 fi
5268 done
5269 done
5270 IFS=$as_save_IFS
5271
5272 fi
5273 fi
5274 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5275 if test -n "$ac_ct_CXX"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5277 $as_echo "$ac_ct_CXX" >&6; }
5278 else
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5281 fi
5282
5283
5284 test -n "$ac_ct_CXX" && break
5285 done
5286
5287 if test "x$ac_ct_CXX" = x; then
5288 CXX="g++"
5289 else
5290 case $cross_compiling:$ac_tool_warned in
5291 yes:)
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5294 ac_tool_warned=yes ;;
5295 esac
5296 CXX=$ac_ct_CXX
5297 fi
5298 fi
5299
5300 fi
5301 fi
5302 # Provide some information about the compiler.
5303 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5304 set X $ac_compile
5305 ac_compiler=$2
5306 for ac_option in --version -v -V -qversion; do
5307 { { ac_try="$ac_compiler $ac_option >&5"
5308 case "(($ac_try" in
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5311 esac
5312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5313 $as_echo "$ac_try_echo"; } >&5
5314 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5315 ac_status=$?
5316 if test -s conftest.err; then
5317 sed '10a\
5318 ... rest of stderr output deleted ...
5319 10q' conftest.err >conftest.er1
5320 cat conftest.er1 >&5
5321 fi
5322 rm -f conftest.er1 conftest.err
5323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5324 test $ac_status = 0; }
5325 done
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5328 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5329 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334
5335 int
5336 main ()
5337 {
5338 #ifndef __GNUC__
5339 choke me
5340 #endif
5341
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 if ac_fn_cxx_try_compile "$LINENO"; then :
5347 ac_compiler_gnu=yes
5348 else
5349 ac_compiler_gnu=no
5350 fi
5351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5353
5354 fi
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5356 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5357 if test $ac_compiler_gnu = yes; then
5358 GXX=yes
5359 else
5360 GXX=
5361 fi
5362 ac_test_CXXFLAGS=${CXXFLAGS+set}
5363 ac_save_CXXFLAGS=$CXXFLAGS
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5365 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5366 if ${ac_cv_prog_cxx_g+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5370 ac_cxx_werror_flag=yes
5371 ac_cv_prog_cxx_g=no
5372 CXXFLAGS="-g"
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5375
5376 int
5377 main ()
5378 {
5379
5380 ;
5381 return 0;
5382 }
5383 _ACEOF
5384 if ac_fn_cxx_try_compile "$LINENO"; then :
5385 ac_cv_prog_cxx_g=yes
5386 else
5387 CXXFLAGS=""
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5390
5391 int
5392 main ()
5393 {
5394
5395 ;
5396 return 0;
5397 }
5398 _ACEOF
5399 if ac_fn_cxx_try_compile "$LINENO"; then :
5400
5401 else
5402 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5403 CXXFLAGS="-g"
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406
5407 int
5408 main ()
5409 {
5410
5411 ;
5412 return 0;
5413 }
5414 _ACEOF
5415 if ac_fn_cxx_try_compile "$LINENO"; then :
5416 ac_cv_prog_cxx_g=yes
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 fi
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 fi
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5424 fi
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5426 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5427 if test "$ac_test_CXXFLAGS" = set; then
5428 CXXFLAGS=$ac_save_CXXFLAGS
5429 elif test $ac_cv_prog_cxx_g = yes; then
5430 if test "$GXX" = yes; then
5431 CXXFLAGS="-g -O2"
5432 else
5433 CXXFLAGS="-g"
5434 fi
5435 else
5436 if test "$GXX" = yes; then
5437 CXXFLAGS="-O2"
5438 else
5439 CXXFLAGS=
5440 fi
5441 fi
5442 ac_ext=cpp
5443 ac_cpp='$CXXCPP $CPPFLAGS'
5444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5447
5448 depcc="$CXX" am_compiler_list=
5449
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5451 $as_echo_n "checking dependency style of $depcc... " >&6; }
5452 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5456 # We make a subdir and do the tests there. Otherwise we can end up
5457 # making bogus files that we don't know about and never remove. For
5458 # instance it was reported that on HP-UX the gcc test will end up
5459 # making a dummy file named 'D' -- because '-MD' means "put the output
5460 # in D".
5461 rm -rf conftest.dir
5462 mkdir conftest.dir
5463 # Copy depcomp to subdir because otherwise we won't find it if we're
5464 # using a relative directory.
5465 cp "$am_depcomp" conftest.dir
5466 cd conftest.dir
5467 # We will build objects and dependencies in a subdirectory because
5468 # it helps to detect inapplicable dependency modes. For instance
5469 # both Tru64's cc and ICC support -MD to output dependencies as a
5470 # side effect of compilation, but ICC will put the dependencies in
5471 # the current directory while Tru64 will put them in the object
5472 # directory.
5473 mkdir sub
5474
5475 am_cv_CXX_dependencies_compiler_type=none
5476 if test "$am_compiler_list" = ""; then
5477 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5478 fi
5479 am__universal=false
5480 case " $depcc " in #(
5481 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5482 esac
5483
5484 for depmode in $am_compiler_list; do
5485 # Setup a source with many dependencies, because some compilers
5486 # like to wrap large dependency lists on column 80 (with \), and
5487 # we should not choose a depcomp mode which is confused by this.
5488 #
5489 # We need to recreate these files for each test, as the compiler may
5490 # overwrite some of them when testing with obscure command lines.
5491 # This happens at least with the AIX C compiler.
5492 : > sub/conftest.c
5493 for i in 1 2 3 4 5 6; do
5494 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5495 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5496 # Solaris 10 /bin/sh.
5497 echo '/* dummy */' > sub/conftst$i.h
5498 done
5499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5500
5501 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5502 # mode. It turns out that the SunPro C++ compiler does not properly
5503 # handle '-M -o', and we need to detect this. Also, some Intel
5504 # versions had trouble with output in subdirs.
5505 am__obj=sub/conftest.${OBJEXT-o}
5506 am__minus_obj="-o $am__obj"
5507 case $depmode in
5508 gcc)
5509 # This depmode causes a compiler race in universal mode.
5510 test "$am__universal" = false || continue
5511 ;;
5512 nosideeffect)
5513 # After this tag, mechanisms are not by side-effect, so they'll
5514 # only be used when explicitly requested.
5515 if test "x$enable_dependency_tracking" = xyes; then
5516 continue
5517 else
5518 break
5519 fi
5520 ;;
5521 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5522 # This compiler won't grok '-c -o', but also, the minuso test has
5523 # not run yet. These depmodes are late enough in the game, and
5524 # so weak that their functioning should not be impacted.
5525 am__obj=conftest.${OBJEXT-o}
5526 am__minus_obj=
5527 ;;
5528 none) break ;;
5529 esac
5530 if depmode=$depmode \
5531 source=sub/conftest.c object=$am__obj \
5532 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5533 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5534 >/dev/null 2>conftest.err &&
5535 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5537 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5539 # icc doesn't choke on unknown options, it will just issue warnings
5540 # or remarks (even with -Werror). So we grep stderr for any message
5541 # that says an option was ignored or not supported.
5542 # When given -MP, icc 7.0 and 7.1 complain thusly:
5543 # icc: Command line warning: ignoring option '-M'; no argument required
5544 # The diagnosis changed in icc 8.0:
5545 # icc: Command line remark: option '-MP' not supported
5546 if (grep 'ignoring option' conftest.err ||
5547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5548 am_cv_CXX_dependencies_compiler_type=$depmode
5549 break
5550 fi
5551 fi
5552 done
5553
5554 cd ..
5555 rm -rf conftest.dir
5556 else
5557 am_cv_CXX_dependencies_compiler_type=none
5558 fi
5559
5560 fi
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5562 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5563 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5564
5565 if
5566 test "x$enable_dependency_tracking" != xno \
5567 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5568 am__fastdepCXX_TRUE=
5569 am__fastdepCXX_FALSE='#'
5570 else
5571 am__fastdepCXX_TRUE='#'
5572 am__fastdepCXX_FALSE=
5573 fi
5574
5575
5576
5577
5578 OPENMP_CXXFLAGS=
5579 # Check whether --enable-openmp was given.
5580 if test "${enable_openmp+set}" = set; then :
5581 enableval=$enable_openmp;
5582 fi
5583
5584 if test "$enable_openmp" != no; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
5586 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
5587 if ${ac_cv_prog_cxx_openmp+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592
5593 #ifndef _OPENMP
5594 choke me
5595 #endif
5596 #include <omp.h>
5597 int main () { return omp_get_num_threads (); }
5598
5599 _ACEOF
5600 if ac_fn_cxx_try_link "$LINENO"; then :
5601 ac_cv_prog_cxx_openmp='none needed'
5602 else
5603 ac_cv_prog_cxx_openmp='unsupported'
5604 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
5605 -Popenmp --openmp; do
5606 ac_save_CXXFLAGS=$CXXFLAGS
5607 CXXFLAGS="$CXXFLAGS $ac_option"
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610
5611 #ifndef _OPENMP
5612 choke me
5613 #endif
5614 #include <omp.h>
5615 int main () { return omp_get_num_threads (); }
5616
5617 _ACEOF
5618 if ac_fn_cxx_try_link "$LINENO"; then :
5619 ac_cv_prog_cxx_openmp=$ac_option
5620 fi
5621 rm -f core conftest.err conftest.$ac_objext \
5622 conftest$ac_exeext conftest.$ac_ext
5623 CXXFLAGS=$ac_save_CXXFLAGS
5624 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
5625 break
5626 fi
5627 done
5628 fi
5629 rm -f core conftest.err conftest.$ac_objext \
5630 conftest$ac_exeext conftest.$ac_ext
5631 fi
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
5633 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
5634 case $ac_cv_prog_cxx_openmp in #(
5635 "none needed" | unsupported)
5636 ;; #(
5637 *)
5638 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
5639 esac
5640 fi
5641
5642 # requires autoconf 2.62 or newer, sets OPENMP_CXXFLAGS if successful
5643
5644 if test "x$OPENMP_CXXFLAGS" != "x"; then
5645 WANT_OMP_TRUE=
5646 WANT_OMP_FALSE='#'
5647 else
5648 WANT_OMP_TRUE='#'
5649 WANT_OMP_FALSE=
5650 fi
5651
5652
5653
5654 # See "automake" manual, version 1.10, section 10.5 (Python)
5655 #AM_PATH_PYTHON([2.1],, [:])
5656 #AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
5657
5658 ac_config_files="$ac_config_files Makefile"
5659
5660
5661 cat >confcache <<\_ACEOF
5662 # This file is a shell script that caches the results of configure
5663 # tests run on this system so they can be shared between configure
5664 # scripts and configure runs, see configure's option --config-cache.
5665 # It is not useful on other systems. If it contains results you don't
5666 # want to keep, you may remove or edit it.
5667 #
5668 # config.status only pays attention to the cache file if you give it
5669 # the --recheck option to rerun configure.
5670 #
5671 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5672 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5673 # following values.
5674
5675 _ACEOF
5676
5677 # The following way of writing the cache mishandles newlines in values,
5678 # but we know of no workaround that is simple, portable, and efficient.
5679 # So, we kill variables containing newlines.
5680 # Ultrix sh set writes to stderr and can't be redirected directly,
5681 # and sets the high bit in the cache file unless we assign to the vars.
5682 (
5683 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5684 eval ac_val=\$$ac_var
5685 case $ac_val in #(
5686 *${as_nl}*)
5687 case $ac_var in #(
5688 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5689 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5690 esac
5691 case $ac_var in #(
5692 _ | IFS | as_nl) ;; #(
5693 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5694 *) { eval $ac_var=; unset $ac_var;} ;;
5695 esac ;;
5696 esac
5697 done
5698
5699 (set) 2>&1 |
5700 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5701 *${as_nl}ac_space=\ *)
5702 # `set' does not quote correctly, so add quotes: double-quote
5703 # substitution turns \\\\ into \\, and sed turns \\ into \.
5704 sed -n \
5705 "s/'/'\\\\''/g;
5706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5707 ;; #(
5708 *)
5709 # `set' quotes correctly as required by POSIX, so do not add quotes.
5710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5711 ;;
5712 esac |
5713 sort
5714 ) |
5715 sed '
5716 /^ac_cv_env_/b end
5717 t clear
5718 :clear
5719 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5720 t end
5721 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5722 :end' >>confcache
5723 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5724 if test -w "$cache_file"; then
5725 if test "x$cache_file" != "x/dev/null"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5727 $as_echo "$as_me: updating cache $cache_file" >&6;}
5728 if test ! -f "$cache_file" || test -h "$cache_file"; then
5729 cat confcache >"$cache_file"
5730 else
5731 case $cache_file in #(
5732 */* | ?:*)
5733 mv -f confcache "$cache_file"$$ &&
5734 mv -f "$cache_file"$$ "$cache_file" ;; #(
5735 *)
5736 mv -f confcache "$cache_file" ;;
5737 esac
5738 fi
5739 fi
5740 else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5742 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5743 fi
5744 fi
5745 rm -f confcache
5746
5747 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5748 # Let make expand exec_prefix.
5749 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5750
5751 # Transform confdefs.h into DEFS.
5752 # Protect against shell expansion while executing Makefile rules.
5753 # Protect against Makefile macro expansion.
5754 #
5755 # If the first sed substitution is executed (which looks for macros that
5756 # take arguments), then branch to the quote section. Otherwise,
5757 # look for a macro that doesn't take arguments.
5758 ac_script='
5759 :mline
5760 /\\$/{
5761 N
5762 s,\\\n,,
5763 b mline
5764 }
5765 t clear
5766 :clear
5767 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5768 t quote
5769 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5770 t quote
5771 b any
5772 :quote
5773 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5774 s/\[/\\&/g
5775 s/\]/\\&/g
5776 s/\$/$$/g
5777 H
5778 :any
5779 ${
5780 g
5781 s/^\n//
5782 s/\n/ /g
5783 p
5784 }
5785 '
5786 DEFS=`sed -n "$ac_script" confdefs.h`
5787
5788
5789 ac_libobjs=
5790 ac_ltlibobjs=
5791 U=
5792 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5793 # 1. Remove the extension, and $U if already installed.
5794 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5795 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5796 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5797 # will be set to the directory where LIBOBJS objects are built.
5798 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5799 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5800 done
5801 LIBOBJS=$ac_libobjs
5802
5803 LTLIBOBJS=$ac_ltlibobjs
5804
5805
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5807 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5808 if test -n "$am_sleep_pid"; then
5809 # Hide warnings about reused PIDs.
5810 wait $am_sleep_pid 2>/dev/null
5811 fi
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5813 $as_echo "done" >&6; }
5814 if test -n "$EXEEXT"; then
5815 am__EXEEXT_TRUE=
5816 am__EXEEXT_FALSE='#'
5817 else
5818 am__EXEEXT_TRUE='#'
5819 am__EXEEXT_FALSE=
5820 fi
5821
5822 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5823 as_fn_error $? "conditional \"AMDEP\" was never defined.
5824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5825 fi
5826 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5827 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
5828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5829 fi
5830 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5831 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5833 fi
5834 if test -z "${WANT_BIGSTACK_TRUE}" && test -z "${WANT_BIGSTACK_FALSE}"; then
5835 as_fn_error $? "conditional \"WANT_BIGSTACK\" was never defined.
5836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5837 fi
5838 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5839 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
5840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5841 fi
5842 if test -z "${WANT_OMP_TRUE}" && test -z "${WANT_OMP_FALSE}"; then
5843 as_fn_error $? "conditional \"WANT_OMP\" was never defined.
5844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5845 fi
5846
5847 : "${CONFIG_STATUS=./config.status}"
5848 ac_write_fail=0
5849 ac_clean_files_save=$ac_clean_files
5850 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5852 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5853 as_write_fail=0
5854 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5855 #! $SHELL
5856 # Generated by $as_me.
5857 # Run this file to recreate the current configuration.
5858 # Compiler output produced by configure, useful for debugging
5859 # configure, is in config.log if it exists.
5860
5861 debug=false
5862 ac_cs_recheck=false
5863 ac_cs_silent=false
5864
5865 SHELL=\${CONFIG_SHELL-$SHELL}
5866 export SHELL
5867 _ASEOF
5868 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5869 ## -------------------- ##
5870 ## M4sh Initialization. ##
5871 ## -------------------- ##
5872
5873 # Be more Bourne compatible
5874 DUALCASE=1; export DUALCASE # for MKS sh
5875 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5876 emulate sh
5877 NULLCMD=:
5878 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5879 # is contrary to our usage. Disable this feature.
5880 alias -g '${1+"$@"}'='"$@"'
5881 setopt NO_GLOB_SUBST
5882 else
5883 case `(set -o) 2>/dev/null` in #(
5884 *posix*) :
5885 set -o posix ;; #(
5886 *) :
5887 ;;
5888 esac
5889 fi
5890
5891
5892 as_nl='
5893 '
5894 export as_nl
5895 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5896 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5897 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5898 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5899 # Prefer a ksh shell builtin over an external printf program on Solaris,
5900 # but without wasting forks for bash or zsh.
5901 if test -z "$BASH_VERSION$ZSH_VERSION" \
5902 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5903 as_echo='print -r --'
5904 as_echo_n='print -rn --'
5905 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5906 as_echo='printf %s\n'
5907 as_echo_n='printf %s'
5908 else
5909 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5910 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5911 as_echo_n='/usr/ucb/echo -n'
5912 else
5913 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5914 as_echo_n_body='eval
5915 arg=$1;
5916 case $arg in #(
5917 *"$as_nl"*)
5918 expr "X$arg" : "X\\(.*\\)$as_nl";
5919 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5920 esac;
5921 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5922 '
5923 export as_echo_n_body
5924 as_echo_n='sh -c $as_echo_n_body as_echo'
5925 fi
5926 export as_echo_body
5927 as_echo='sh -c $as_echo_body as_echo'
5928 fi
5929
5930 # The user is always right.
5931 if test "${PATH_SEPARATOR+set}" != set; then
5932 PATH_SEPARATOR=:
5933 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5934 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5935 PATH_SEPARATOR=';'
5936 }
5937 fi
5938
5939
5940 # IFS
5941 # We need space, tab and new line, in precisely that order. Quoting is
5942 # there to prevent editors from complaining about space-tab.
5943 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5944 # splitting by setting IFS to empty value.)
5945 IFS=" "" $as_nl"
5946
5947 # Find who we are. Look in the path if we contain no directory separator.
5948 as_myself=
5949 case $0 in #((
5950 *[\\/]* ) as_myself=$0 ;;
5951 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5957 done
5958 IFS=$as_save_IFS
5959
5960 ;;
5961 esac
5962 # We did not find ourselves, most probably we were run as `sh COMMAND'
5963 # in which case we are not to be found in the path.
5964 if test "x$as_myself" = x; then
5965 as_myself=$0
5966 fi
5967 if test ! -f "$as_myself"; then
5968 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5969 exit 1
5970 fi
5971
5972 # Unset variables that we do not need and which cause bugs (e.g. in
5973 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5974 # suppresses any "Segmentation fault" message there. '((' could
5975 # trigger a bug in pdksh 5.2.14.
5976 for as_var in BASH_ENV ENV MAIL MAILPATH
5977 do eval test x\${$as_var+set} = xset \
5978 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5979 done
5980 PS1='$ '
5981 PS2='> '
5982 PS4='+ '
5983
5984 # NLS nuisances.
5985 LC_ALL=C
5986 export LC_ALL
5987 LANGUAGE=C
5988 export LANGUAGE
5989
5990 # CDPATH.
5991 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5992
5993
5994 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5995 # ----------------------------------------
5996 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5997 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5998 # script with STATUS, using 1 if that was 0.
5999 as_fn_error ()
6000 {
6001 as_status=$1; test $as_status -eq 0 && as_status=1
6002 if test "$4"; then
6003 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6004 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6005 fi
6006 $as_echo "$as_me: error: $2" >&2
6007 as_fn_exit $as_status
6008 } # as_fn_error
6009
6010
6011 # as_fn_set_status STATUS
6012 # -----------------------
6013 # Set $? to STATUS, without forking.
6014 as_fn_set_status ()
6015 {
6016 return $1
6017 } # as_fn_set_status
6018
6019 # as_fn_exit STATUS
6020 # -----------------
6021 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6022 as_fn_exit ()
6023 {
6024 set +e
6025 as_fn_set_status $1
6026 exit $1
6027 } # as_fn_exit
6028
6029 # as_fn_unset VAR
6030 # ---------------
6031 # Portably unset VAR.
6032 as_fn_unset ()
6033 {
6034 { eval $1=; unset $1;}
6035 }
6036 as_unset=as_fn_unset
6037 # as_fn_append VAR VALUE
6038 # ----------------------
6039 # Append the text in VALUE to the end of the definition contained in VAR. Take
6040 # advantage of any shell optimizations that allow amortized linear growth over
6041 # repeated appends, instead of the typical quadratic growth present in naive
6042 # implementations.
6043 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6044 eval 'as_fn_append ()
6045 {
6046 eval $1+=\$2
6047 }'
6048 else
6049 as_fn_append ()
6050 {
6051 eval $1=\$$1\$2
6052 }
6053 fi # as_fn_append
6054
6055 # as_fn_arith ARG...
6056 # ------------------
6057 # Perform arithmetic evaluation on the ARGs, and store the result in the
6058 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6059 # must be portable across $(()) and expr.
6060 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6061 eval 'as_fn_arith ()
6062 {
6063 as_val=$(( $* ))
6064 }'
6065 else
6066 as_fn_arith ()
6067 {
6068 as_val=`expr "$@" || test $? -eq 1`
6069 }
6070 fi # as_fn_arith
6071
6072
6073 if expr a : '\(a\)' >/dev/null 2>&1 &&
6074 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6075 as_expr=expr
6076 else
6077 as_expr=false
6078 fi
6079
6080 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6081 as_basename=basename
6082 else
6083 as_basename=false
6084 fi
6085
6086 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6087 as_dirname=dirname
6088 else
6089 as_dirname=false
6090 fi
6091
6092 as_me=`$as_basename -- "$0" ||
6093 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6094 X"$0" : 'X\(//\)$' \| \
6095 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6096 $as_echo X/"$0" |
6097 sed '/^.*\/\([^/][^/]*\)\/*$/{
6098 s//\1/
6099 q
6100 }
6101 /^X\/\(\/\/\)$/{
6102 s//\1/
6103 q
6104 }
6105 /^X\/\(\/\).*/{
6106 s//\1/
6107 q
6108 }
6109 s/.*/./; q'`
6110
6111 # Avoid depending upon Character Ranges.
6112 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6113 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6114 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6115 as_cr_digits='0123456789'
6116 as_cr_alnum=$as_cr_Letters$as_cr_digits
6117
6118 ECHO_C= ECHO_N= ECHO_T=
6119 case `echo -n x` in #(((((
6120 -n*)
6121 case `echo 'xy\c'` in
6122 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6123 xy) ECHO_C='\c';;
6124 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6125 ECHO_T=' ';;
6126 esac;;
6127 *)
6128 ECHO_N='-n';;
6129 esac
6130
6131 rm -f conf$$ conf$$.exe conf$$.file
6132 if test -d conf$$.dir; then
6133 rm -f conf$$.dir/conf$$.file
6134 else
6135 rm -f conf$$.dir
6136 mkdir conf$$.dir 2>/dev/null
6137 fi
6138 if (echo >conf$$.file) 2>/dev/null; then
6139 if ln -s conf$$.file conf$$ 2>/dev/null; then
6140 as_ln_s='ln -s'
6141 # ... but there are two gotchas:
6142 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6143 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6144 # In both cases, we have to default to `cp -pR'.
6145 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6146 as_ln_s='cp -pR'
6147 elif ln conf$$.file conf$$ 2>/dev/null; then
6148 as_ln_s=ln
6149 else
6150 as_ln_s='cp -pR'
6151 fi
6152 else
6153 as_ln_s='cp -pR'
6154 fi
6155 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6156 rmdir conf$$.dir 2>/dev/null
6157
6158
6159 # as_fn_mkdir_p
6160 # -------------
6161 # Create "$as_dir" as a directory, including parents if necessary.
6162 as_fn_mkdir_p ()
6163 {
6164
6165 case $as_dir in #(
6166 -*) as_dir=./$as_dir;;
6167 esac
6168 test -d "$as_dir" || eval $as_mkdir_p || {
6169 as_dirs=
6170 while :; do
6171 case $as_dir in #(
6172 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6173 *) as_qdir=$as_dir;;
6174 esac
6175 as_dirs="'$as_qdir' $as_dirs"
6176 as_dir=`$as_dirname -- "$as_dir" ||
6177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6178 X"$as_dir" : 'X\(//\)[^/]' \| \
6179 X"$as_dir" : 'X\(//\)$' \| \
6180 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6181 $as_echo X"$as_dir" |
6182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6183 s//\1/
6184 q
6185 }
6186 /^X\(\/\/\)[^/].*/{
6187 s//\1/
6188 q
6189 }
6190 /^X\(\/\/\)$/{
6191 s//\1/
6192 q
6193 }
6194 /^X\(\/\).*/{
6195 s//\1/
6196 q
6197 }
6198 s/.*/./; q'`
6199 test -d "$as_dir" && break
6200 done
6201 test -z "$as_dirs" || eval "mkdir $as_dirs"
6202 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6203
6204
6205 } # as_fn_mkdir_p
6206 if mkdir -p . 2>/dev/null; then
6207 as_mkdir_p='mkdir -p "$as_dir"'
6208 else
6209 test -d ./-p && rmdir ./-p
6210 as_mkdir_p=false
6211 fi
6212
6213
6214 # as_fn_executable_p FILE
6215 # -----------------------
6216 # Test if FILE is an executable regular file.
6217 as_fn_executable_p ()
6218 {
6219 test -f "$1" && test -x "$1"
6220 } # as_fn_executable_p
6221 as_test_x='test -x'
6222 as_executable_p=as_fn_executable_p
6223
6224 # Sed expression to map a string onto a valid CPP name.
6225 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6226
6227 # Sed expression to map a string onto a valid variable name.
6228 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6229
6230
6231 exec 6>&1
6232 ## ----------------------------------- ##
6233 ## Main body of $CONFIG_STATUS script. ##
6234 ## ----------------------------------- ##
6235 _ASEOF
6236 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6237
6238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6239 # Save the log message, to keep $0 and so on meaningful, and to
6240 # report actual input values of CONFIG_FILES etc. instead of their
6241 # values after options handling.
6242 ac_log="
6243 This file was extended by autodock $as_me 4.2.6, which was
6244 generated by GNU Autoconf 2.69. Invocation command line was
6245
6246 CONFIG_FILES = $CONFIG_FILES
6247 CONFIG_HEADERS = $CONFIG_HEADERS
6248 CONFIG_LINKS = $CONFIG_LINKS
6249 CONFIG_COMMANDS = $CONFIG_COMMANDS
6250 $ $0 $@
6251
6252 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6253 "
6254
6255 _ACEOF
6256
6257 case $ac_config_files in *"
6258 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6259 esac
6260
6261
6262
6263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6264 # Files that config.status was made for.
6265 config_files="$ac_config_files"
6266 config_commands="$ac_config_commands"
6267
6268 _ACEOF
6269
6270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6271 ac_cs_usage="\
6272 \`$as_me' instantiates files and other configuration actions
6273 from templates according to the current configuration. Unless the files
6274 and actions are specified as TAGs, all are instantiated by default.
6275
6276 Usage: $0 [OPTION]... [TAG]...
6277
6278 -h, --help print this help, then exit
6279 -V, --version print version number and configuration settings, then exit
6280 --config print configuration, then exit
6281 -q, --quiet, --silent
6282 do not print progress messages
6283 -d, --debug don't remove temporary files
6284 --recheck update $as_me by reconfiguring in the same conditions
6285 --file=FILE[:TEMPLATE]
6286 instantiate the configuration file FILE
6287
6288 Configuration files:
6289 $config_files
6290
6291 Configuration commands:
6292 $config_commands
6293
6294 Report bugs to <[email protected]>."
6295
6296 _ACEOF
6297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6298 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6299 ac_cs_version="\\
6300 autodock config.status 4.2.6
6301 configured by $0, generated by GNU Autoconf 2.69,
6302 with options \\"\$ac_cs_config\\"
6303
6304 Copyright (C) 2012 Free Software Foundation, Inc.
6305 This config.status script is free software; the Free Software Foundation
6306 gives unlimited permission to copy, distribute and modify it."
6307
6308 ac_pwd='$ac_pwd'
6309 srcdir='$srcdir'
6310 INSTALL='$INSTALL'
6311 MKDIR_P='$MKDIR_P'
6312 AWK='$AWK'
6313 test -n "\$AWK" || AWK=awk
6314 _ACEOF
6315
6316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6317 # The default lists apply if the user does not specify any file.
6318 ac_need_defaults=:
6319 while test $# != 0
6320 do
6321 case $1 in
6322 --*=?*)
6323 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6324 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6325 ac_shift=:
6326 ;;
6327 --*=)
6328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6329 ac_optarg=
6330 ac_shift=:
6331 ;;
6332 *)
6333 ac_option=$1
6334 ac_optarg=$2
6335 ac_shift=shift
6336 ;;
6337 esac
6338
6339 case $ac_option in
6340 # Handling of the options.
6341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6342 ac_cs_recheck=: ;;
6343 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6344 $as_echo "$ac_cs_version"; exit ;;
6345 --config | --confi | --conf | --con | --co | --c )
6346 $as_echo "$ac_cs_config"; exit ;;
6347 --debug | --debu | --deb | --de | --d | -d )
6348 debug=: ;;
6349 --file | --fil | --fi | --f )
6350 $ac_shift
6351 case $ac_optarg in
6352 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6353 '') as_fn_error $? "missing file argument" ;;
6354 esac
6355 as_fn_append CONFIG_FILES " '$ac_optarg'"
6356 ac_need_defaults=false;;
6357 --he | --h | --help | --hel | -h )
6358 $as_echo "$ac_cs_usage"; exit ;;
6359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6360 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6361 ac_cs_silent=: ;;
6362
6363 # This is an error.
6364 -*) as_fn_error $? "unrecognized option: \`$1'
6365 Try \`$0 --help' for more information." ;;
6366
6367 *) as_fn_append ac_config_targets " $1"
6368 ac_need_defaults=false ;;
6369
6370 esac
6371 shift
6372 done
6373
6374 ac_configure_extra_args=
6375
6376 if $ac_cs_silent; then
6377 exec 6>/dev/null
6378 ac_configure_extra_args="$ac_configure_extra_args --silent"
6379 fi
6380
6381 _ACEOF
6382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6383 if \$ac_cs_recheck; then
6384 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6385 shift
6386 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6387 CONFIG_SHELL='$SHELL'
6388 export CONFIG_SHELL
6389 exec "\$@"
6390 fi
6391
6392 _ACEOF
6393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6394 exec 5>>config.log
6395 {
6396 echo
6397 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6398 ## Running $as_me. ##
6399 _ASBOX
6400 $as_echo "$ac_log"
6401 } >&5
6402
6403 _ACEOF
6404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6405 #
6406 # INIT-COMMANDS
6407 #
6408 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6409
6410 _ACEOF
6411
6412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6413
6414 # Handling of arguments.
6415 for ac_config_target in $ac_config_targets
6416 do
6417 case $ac_config_target in
6418 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6419 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6420
6421 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6422 esac
6423 done
6424
6425
6426 # If the user did not use the arguments to specify the items to instantiate,
6427 # then the envvar interface is used. Set only those that are not.
6428 # We use the long form for the default assignment because of an extremely
6429 # bizarre bug on SunOS 4.1.3.
6430 if $ac_need_defaults; then
6431 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6432 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6433 fi
6434
6435 # Have a temporary directory for convenience. Make it in the build tree
6436 # simply because there is no reason against having it here, and in addition,
6437 # creating and moving files from /tmp can sometimes cause problems.
6438 # Hook for its removal unless debugging.
6439 # Note that there is a small window in which the directory will not be cleaned:
6440 # after its creation but before its name has been assigned to `$tmp'.
6441 $debug ||
6442 {
6443 tmp= ac_tmp=
6444 trap 'exit_status=$?
6445 : "${ac_tmp:=$tmp}"
6446 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6447 ' 0
6448 trap 'as_fn_exit 1' 1 2 13 15
6449 }
6450 # Create a (secure) tmp directory for tmp files.
6451
6452 {
6453 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6454 test -d "$tmp"
6455 } ||
6456 {
6457 tmp=./conf$$-$RANDOM
6458 (umask 077 && mkdir "$tmp")
6459 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6460 ac_tmp=$tmp
6461
6462 # Set up the scripts for CONFIG_FILES section.
6463 # No need to generate them if there are no CONFIG_FILES.
6464 # This happens for instance with `./config.status config.h'.
6465 if test -n "$CONFIG_FILES"; then
6466
6467
6468 ac_cr=`echo X | tr X '\015'`
6469 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6470 # But we know of no other shell where ac_cr would be empty at this
6471 # point, so we can use a bashism as a fallback.
6472 if test "x$ac_cr" = x; then
6473 eval ac_cr=\$\'\\r\'
6474 fi
6475 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6476 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6477 ac_cs_awk_cr='\\r'
6478 else
6479 ac_cs_awk_cr=$ac_cr
6480 fi
6481
6482 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6483 _ACEOF
6484
6485
6486 {
6487 echo "cat >conf$$subs.awk <<_ACEOF" &&
6488 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6489 echo "_ACEOF"
6490 } >conf$$subs.sh ||
6491 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6492 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6493 ac_delim='%!_!# '
6494 for ac_last_try in false false false false false :; do
6495 . ./conf$$subs.sh ||
6496 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6497
6498 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6499 if test $ac_delim_n = $ac_delim_num; then
6500 break
6501 elif $ac_last_try; then
6502 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6503 else
6504 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6505 fi
6506 done
6507 rm -f conf$$subs.sh
6508
6509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6510 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6511 _ACEOF
6512 sed -n '
6513 h
6514 s/^/S["/; s/!.*/"]=/
6515 p
6516 g
6517 s/^[^!]*!//
6518 :repl
6519 t repl
6520 s/'"$ac_delim"'$//
6521 t delim
6522 :nl
6523 h
6524 s/\(.\{148\}\)..*/\1/
6525 t more1
6526 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6527 p
6528 n
6529 b repl
6530 :more1
6531 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6532 p
6533 g
6534 s/.\{148\}//
6535 t nl
6536 :delim
6537 h
6538 s/\(.\{148\}\)..*/\1/
6539 t more2
6540 s/["\\]/\\&/g; s/^/"/; s/$/"/
6541 p
6542 b
6543 :more2
6544 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6545 p
6546 g
6547 s/.\{148\}//
6548 t delim
6549 ' <conf$$subs.awk | sed '
6550 /^[^""]/{
6551 N
6552 s/\n//
6553 }
6554 ' >>$CONFIG_STATUS || ac_write_fail=1
6555 rm -f conf$$subs.awk
6556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6557 _ACAWK
6558 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6559 for (key in S) S_is_set[key] = 1
6560 FS = ""
6561
6562 }
6563 {
6564 line = $ 0
6565 nfields = split(line, field, "@")
6566 substed = 0
6567 len = length(field[1])
6568 for (i = 2; i < nfields; i++) {
6569 key = field[i]
6570 keylen = length(key)
6571 if (S_is_set[key]) {
6572 value = S[key]
6573 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6574 len += length(value) + length(field[++i])
6575 substed = 1
6576 } else
6577 len += 1 + keylen
6578 }
6579
6580 print line
6581 }
6582
6583 _ACAWK
6584 _ACEOF
6585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6586 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6587 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6588 else
6589 cat
6590 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6591 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6592 _ACEOF
6593
6594 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6595 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6596 # trailing colons and then remove the whole line if VPATH becomes empty
6597 # (actually we leave an empty line to preserve line numbers).
6598 if test "x$srcdir" = x.; then
6599 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6600 h
6601 s///
6602 s/^/:/
6603 s/[ ]*$/:/
6604 s/:\$(srcdir):/:/g
6605 s/:\${srcdir}:/:/g
6606 s/:@srcdir@:/:/g
6607 s/^:*//
6608 s/:*$//
6609 x
6610 s/\(=[ ]*\).*/\1/
6611 G
6612 s/\n//
6613 s/^[^=]*=[ ]*$//
6614 }'
6615 fi
6616
6617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6618 fi # test -n "$CONFIG_FILES"
6619
6620
6621 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
6622 shift
6623 for ac_tag
6624 do
6625 case $ac_tag in
6626 :[FHLC]) ac_mode=$ac_tag; continue;;
6627 esac
6628 case $ac_mode$ac_tag in
6629 :[FHL]*:*);;
6630 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6631 :[FH]-) ac_tag=-:-;;
6632 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6633 esac
6634 ac_save_IFS=$IFS
6635 IFS=:
6636 set x $ac_tag
6637 IFS=$ac_save_IFS
6638 shift
6639 ac_file=$1
6640 shift
6641
6642 case $ac_mode in
6643 :L) ac_source=$1;;
6644 :[FH])
6645 ac_file_inputs=
6646 for ac_f
6647 do
6648 case $ac_f in
6649 -) ac_f="$ac_tmp/stdin";;
6650 *) # Look for the file first in the build tree, then in the source tree
6651 # (if the path is not absolute). The absolute path cannot be DOS-style,
6652 # because $ac_f cannot contain `:'.
6653 test -f "$ac_f" ||
6654 case $ac_f in
6655 [\\/$]*) false;;
6656 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6657 esac ||
6658 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6659 esac
6660 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6661 as_fn_append ac_file_inputs " '$ac_f'"
6662 done
6663
6664 # Let's still pretend it is `configure' which instantiates (i.e., don't
6665 # use $as_me), people would be surprised to read:
6666 # /* config.h. Generated by config.status. */
6667 configure_input='Generated from '`
6668 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6669 `' by configure.'
6670 if test x"$ac_file" != x-; then
6671 configure_input="$ac_file. $configure_input"
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6673 $as_echo "$as_me: creating $ac_file" >&6;}
6674 fi
6675 # Neutralize special characters interpreted by sed in replacement strings.
6676 case $configure_input in #(
6677 *\&* | *\|* | *\\* )
6678 ac_sed_conf_input=`$as_echo "$configure_input" |
6679 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6680 *) ac_sed_conf_input=$configure_input;;
6681 esac
6682
6683 case $ac_tag in
6684 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6685 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6686 esac
6687 ;;
6688 esac
6689
6690 ac_dir=`$as_dirname -- "$ac_file" ||
6691 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6692 X"$ac_file" : 'X\(//\)[^/]' \| \
6693 X"$ac_file" : 'X\(//\)$' \| \
6694 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6695 $as_echo X"$ac_file" |
6696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6697 s//\1/
6698 q
6699 }
6700 /^X\(\/\/\)[^/].*/{
6701 s//\1/
6702 q
6703 }
6704 /^X\(\/\/\)$/{
6705 s//\1/
6706 q
6707 }
6708 /^X\(\/\).*/{
6709 s//\1/
6710 q
6711 }
6712 s/.*/./; q'`
6713 as_dir="$ac_dir"; as_fn_mkdir_p
6714 ac_builddir=.
6715
6716 case "$ac_dir" in
6717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6718 *)
6719 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6720 # A ".." for each directory in $ac_dir_suffix.
6721 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6722 case $ac_top_builddir_sub in
6723 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6724 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6725 esac ;;
6726 esac
6727 ac_abs_top_builddir=$ac_pwd
6728 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6729 # for backward compatibility:
6730 ac_top_builddir=$ac_top_build_prefix
6731
6732 case $srcdir in
6733 .) # We are building in place.
6734 ac_srcdir=.
6735 ac_top_srcdir=$ac_top_builddir_sub
6736 ac_abs_top_srcdir=$ac_pwd ;;
6737 [\\/]* | ?:[\\/]* ) # Absolute name.
6738 ac_srcdir=$srcdir$ac_dir_suffix;
6739 ac_top_srcdir=$srcdir
6740 ac_abs_top_srcdir=$srcdir ;;
6741 *) # Relative name.
6742 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6743 ac_top_srcdir=$ac_top_build_prefix$srcdir
6744 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6745 esac
6746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6747
6748
6749 case $ac_mode in
6750 :F)
6751 #
6752 # CONFIG_FILE
6753 #
6754
6755 case $INSTALL in
6756 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6757 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6758 esac
6759 ac_MKDIR_P=$MKDIR_P
6760 case $MKDIR_P in
6761 [\\/$]* | ?:[\\/]* ) ;;
6762 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6763 esac
6764 _ACEOF
6765
6766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6767 # If the template does not know about datarootdir, expand it.
6768 # FIXME: This hack should be removed a few years after 2.60.
6769 ac_datarootdir_hack=; ac_datarootdir_seen=
6770 ac_sed_dataroot='
6771 /datarootdir/ {
6772 p
6773 q
6774 }
6775 /@datadir@/p
6776 /@docdir@/p
6777 /@infodir@/p
6778 /@localedir@/p
6779 /@mandir@/p'
6780 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6781 *datarootdir*) ac_datarootdir_seen=yes;;
6782 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6784 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6785 _ACEOF
6786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6787 ac_datarootdir_hack='
6788 s&@datadir@&$datadir&g
6789 s&@docdir@&$docdir&g
6790 s&@infodir@&$infodir&g
6791 s&@localedir@&$localedir&g
6792 s&@mandir@&$mandir&g
6793 s&\\\${datarootdir}&$datarootdir&g' ;;
6794 esac
6795 _ACEOF
6796
6797 # Neutralize VPATH when `$srcdir' = `.'.
6798 # Shell code in configure.ac might set extrasub.
6799 # FIXME: do we really want to maintain this feature?
6800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6801 ac_sed_extra="$ac_vpsub
6802 $extrasub
6803 _ACEOF
6804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6805 :t
6806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6807 s|@configure_input@|$ac_sed_conf_input|;t t
6808 s&@top_builddir@&$ac_top_builddir_sub&;t t
6809 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6810 s&@srcdir@&$ac_srcdir&;t t
6811 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6812 s&@top_srcdir@&$ac_top_srcdir&;t t
6813 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6814 s&@builddir@&$ac_builddir&;t t
6815 s&@abs_builddir@&$ac_abs_builddir&;t t
6816 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6817 s&@INSTALL@&$ac_INSTALL&;t t
6818 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6819 $ac_datarootdir_hack
6820 "
6821 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6822 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6823
6824 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6825 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6826 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6827 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6829 which seems to be undefined. Please make sure it is defined" >&5
6830 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6831 which seems to be undefined. Please make sure it is defined" >&2;}
6832
6833 rm -f "$ac_tmp/stdin"
6834 case $ac_file in
6835 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6836 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6837 esac \
6838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6839 ;;
6840
6841
6842 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6843 $as_echo "$as_me: executing $ac_file commands" >&6;}
6844 ;;
6845 esac
6846
6847
6848 case $ac_file$ac_mode in
6849 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6850 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6851 # are listed without --file. Let's play safe and only enable the eval
6852 # if we detect the quoting.
6853 case $CONFIG_FILES in
6854 *\'*) eval set x "$CONFIG_FILES" ;;
6855 *) set x $CONFIG_FILES ;;
6856 esac
6857 shift
6858 for mf
6859 do
6860 # Strip MF so we end up with the name of the file.
6861 mf=`echo "$mf" | sed -e 's/:.*$//'`
6862 # Check whether this is an Automake generated Makefile or not.
6863 # We used to match only the files named 'Makefile.in', but
6864 # some people rename them; so instead we look at the file content.
6865 # Grep'ing the first line is not enough: some people post-process
6866 # each Makefile.in and add a new line on top of each file to say so.
6867 # Grep'ing the whole file is not good either: AIX grep has a line
6868 # limit of 2048, but all sed's we know have understand at least 4000.
6869 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6870 dirpart=`$as_dirname -- "$mf" ||
6871 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6872 X"$mf" : 'X\(//\)[^/]' \| \
6873 X"$mf" : 'X\(//\)$' \| \
6874 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6875 $as_echo X"$mf" |
6876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6877 s//\1/
6878 q
6879 }
6880 /^X\(\/\/\)[^/].*/{
6881 s//\1/
6882 q
6883 }
6884 /^X\(\/\/\)$/{
6885 s//\1/
6886 q
6887 }
6888 /^X\(\/\).*/{
6889 s//\1/
6890 q
6891 }
6892 s/.*/./; q'`
6893 else
6894 continue
6895 fi
6896 # Extract the definition of DEPDIR, am__include, and am__quote
6897 # from the Makefile without running 'make'.
6898 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6899 test -z "$DEPDIR" && continue
6900 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6901 test -z "am__include" && continue
6902 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6903 # Find all dependency output files, they are included files with
6904 # $(DEPDIR) in their names. We invoke sed twice because it is the
6905 # simplest approach to changing $(DEPDIR) to its actual value in the
6906 # expansion.
6907 for file in `sed -n "
6908 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6909 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
6910 # Make sure the directory exists.
6911 test -f "$dirpart/$file" && continue
6912 fdir=`$as_dirname -- "$file" ||
6913 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6914 X"$file" : 'X\(//\)[^/]' \| \
6915 X"$file" : 'X\(//\)$' \| \
6916 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6917 $as_echo X"$file" |
6918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6919 s//\1/
6920 q
6921 }
6922 /^X\(\/\/\)[^/].*/{
6923 s//\1/
6924 q
6925 }
6926 /^X\(\/\/\)$/{
6927 s//\1/
6928 q
6929 }
6930 /^X\(\/\).*/{
6931 s//\1/
6932 q
6933 }
6934 s/.*/./; q'`
6935 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6936 # echo "creating $dirpart/$file"
6937 echo '# dummy' > "$dirpart/$file"
6938 done
6939 done
6940 }
6941 ;;
6942
6943 esac
6944 done # for ac_tag
6945
6946
6947 as_fn_exit 0
6948 _ACEOF
6949 ac_clean_files=$ac_clean_files_save
6950
6951 test $ac_write_fail = 0 ||
6952 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6953
6954
6955 # configure is writing to config.log, and then calls config.status.
6956 # config.status does its own redirection, appending to config.log.
6957 # Unfortunately, on DOS this fails, as config.log is still kept open
6958 # by configure, so config.status won't be able to write to it; its
6959 # output is simply discarded. So we exec the FD to /dev/null,
6960 # effectively closing config.log, so it can be properly (re)opened and
6961 # appended to by config.status. When coming back to configure, we
6962 # need to make the FD available again.
6963 if test "$no_create" != yes; then
6964 ac_cs_success=:
6965 ac_config_status_args=
6966 test "$silent" = yes &&
6967 ac_config_status_args="$ac_config_status_args --quiet"
6968 exec 5>/dev/null
6969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6970 exec 5>>config.log
6971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6972 # would make configure fail if this is the last instruction.
6973 $ac_cs_success || as_fn_exit 1
6974 fi
6975 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6977 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6978 fi
6979