[PM] Convert Polly over to directly use the legacy pass manager
[polly-mirror.git] / configure
blob8e324391dd838b38cfa3ac19646a9e00e00f7992
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Polly 0.01.
5 # Report bugs to <polly-dev@googlegroups.com>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
176 esac
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; }
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 :
192 else
193 exitcode=1; echo positional parameters were not saved.
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 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203 else
204 as_have_required=no
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 as_found=false
211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
228 done;;
229 esac
230 as_found=false
231 done
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi; }
236 IFS=$as_save_IFS
239 if test "x$CONFIG_SHELL" != x; then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and
269 $0: polly-dev@googlegroups.com about your system, including
270 $0: any error possibly output before this message. Then
271 $0: install a modern shell, or manually run the script
272 $0: under such a shell if you do have one."
274 exit 1
278 SHELL=${CONFIG_SHELL-/bin/sh}
279 export SHELL
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE= GREP_OPTIONS=
282 unset CLICOLOR_FORCE GREP_OPTIONS
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
287 # as_fn_unset VAR
288 # ---------------
289 # Portably unset VAR.
290 as_fn_unset ()
292 { eval $1=; unset $1;}
294 as_unset=as_fn_unset
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
301 return $1
302 } # as_fn_set_status
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
314 # as_fn_mkdir_p
315 # -------------
316 # Create "$as_dir" as a directory, including parents if necessary.
317 as_fn_mkdir_p ()
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336 $as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
345 /^X\(\/\/\)$/{
346 s//\1/
349 /^X\(\/\).*/{
350 s//\1/
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 } # as_fn_mkdir_p
362 # as_fn_executable_p FILE
363 # -----------------------
364 # Test if FILE is an executable regular file.
365 as_fn_executable_p ()
367 test -f "$1" && test -x "$1"
368 } # as_fn_executable_p
369 # as_fn_append VAR VALUE
370 # ----------------------
371 # Append the text in VALUE to the end of the definition contained in VAR. Take
372 # advantage of any shell optimizations that allow amortized linear growth over
373 # repeated appends, instead of the typical quadratic growth present in naive
374 # implementations.
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
378 eval $1+=\$2
380 else
381 as_fn_append ()
383 eval $1=\$$1\$2
385 fi # as_fn_append
387 # as_fn_arith ARG...
388 # ------------------
389 # Perform arithmetic evaluation on the ARGs, and store the result in the
390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
391 # must be portable across $(()) and expr.
392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
395 as_val=$(( $* ))
397 else
398 as_fn_arith ()
400 as_val=`expr "$@" || test $? -eq 1`
402 fi # as_fn_arith
405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
406 # ----------------------------------------
407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409 # script with STATUS, using 1 if that was 0.
410 as_fn_error ()
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
419 } # as_fn_error
421 if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
423 as_expr=expr
424 else
425 as_expr=false
428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430 else
431 as_basename=false
434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436 else
437 as_dirname=false
440 as_me=`$as_basename -- "$0" ||
441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444 $as_echo X/"$0" |
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
449 /^X\/\(\/\/\)$/{
450 s//\1/
453 /^X\/\(\/\).*/{
454 s//\1/
457 s/.*/./; q'`
459 # Avoid depending upon Character Ranges.
460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463 as_cr_digits='0123456789'
464 as_cr_alnum=$as_cr_Letters$as_cr_digits
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
480 :lineno
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
502 ECHO_C= ECHO_N= ECHO_T=
503 case `echo -n x` in #(((((
504 -n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
512 ECHO_N='-n';;
513 esac
515 rm -f conf$$ conf$$.exe conf$$.file
516 if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518 else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
522 if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 as_ln_s='cp -pR'
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
534 as_ln_s='cp -pR'
536 else
537 as_ln_s='cp -pR'
539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540 rmdir conf$$.dir 2>/dev/null
542 if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544 else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
549 as_test_x='test -x'
550 as_executable_p=as_fn_executable_p
552 # Sed expression to map a string onto a valid CPP name.
553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555 # Sed expression to map a string onto a valid variable name.
556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559 test -n "$DJDIR" || exec 7<&0 </dev/null
560 exec 6>&1
562 # Name of the host.
563 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564 # so uname gets run too.
565 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 # Initializations.
570 ac_default_prefix=/usr/local
571 ac_clean_files=
572 ac_config_libobj_dir=.
573 LIBOBJS=
574 cross_compiling=no
575 subdirs=
576 MFLAGS=
577 MAKEFLAGS=
579 # Identity of this package.
580 PACKAGE_NAME='Polly'
581 PACKAGE_TARNAME='polly'
582 PACKAGE_VERSION='0.01'
583 PACKAGE_STRING='Polly 0.01'
584 PACKAGE_BUGREPORT='polly-dev@googlegroups.com'
585 PACKAGE_URL=''
587 ac_unique_file=""lib/Analysis/ScopInfo.cpp""
588 ac_subst_vars='LTLIBOBJS
589 LIBOBJS
590 cuda_ld
591 cuda_lib
592 cuda_inc
593 cuda_found
594 pluto_ld
595 pluto_lib
596 pluto_inc
597 pluto_found
598 OBJEXT
599 EXEEXT
600 ac_ct_CXX
601 CPPFLAGS
602 LDFLAGS
603 CXXFLAGS
605 LLVM_OBJ
606 LLVM_SRC
607 target_alias
608 host_alias
609 build_alias
610 LIBS
611 ECHO_T
612 ECHO_N
613 ECHO_C
614 DEFS
615 mandir
616 localedir
617 libdir
618 psdir
619 pdfdir
620 dvidir
621 htmldir
622 infodir
623 docdir
624 oldincludedir
625 includedir
626 localstatedir
627 sharedstatedir
628 sysconfdir
629 datadir
630 datarootdir
631 libexecdir
632 sbindir
633 bindir
634 program_transform_name
635 prefix
636 exec_prefix
637 PACKAGE_URL
638 PACKAGE_BUGREPORT
639 PACKAGE_STRING
640 PACKAGE_VERSION
641 PACKAGE_TARNAME
642 PACKAGE_NAME
643 PATH_SEPARATOR
644 SHELL'
645 ac_subst_files=''
646 ac_user_opts='
647 enable_option_checking
648 with_llvmsrc
649 with_llvmobj
650 with_pluto
651 enable_polly_gpu_codegen
652 with_cuda
654 ac_precious_vars='build_alias
655 host_alias
656 target_alias
658 CXXFLAGS
659 LDFLAGS
660 LIBS
661 CPPFLAGS
662 CCC'
665 # Initialize some variables set by options.
666 ac_init_help=
667 ac_init_version=false
668 ac_unrecognized_opts=
669 ac_unrecognized_sep=
670 # The variables have the same names as the options, with
671 # dashes changed to underlines.
672 cache_file=/dev/null
673 exec_prefix=NONE
674 no_create=
675 no_recursion=
676 prefix=NONE
677 program_prefix=NONE
678 program_suffix=NONE
679 program_transform_name=s,x,x,
680 silent=
681 site=
682 srcdir=
683 verbose=
684 x_includes=NONE
685 x_libraries=NONE
687 # Installation directory options.
688 # These are left unexpanded so users can "make install exec_prefix=/foo"
689 # and all the variables that are supposed to be based on exec_prefix
690 # by default will actually change.
691 # Use braces instead of parens because sh, perl, etc. also accept them.
692 # (The list follows the same order as the GNU Coding Standards.)
693 bindir='${exec_prefix}/bin'
694 sbindir='${exec_prefix}/sbin'
695 libexecdir='${exec_prefix}/libexec'
696 datarootdir='${prefix}/share'
697 datadir='${datarootdir}'
698 sysconfdir='${prefix}/etc'
699 sharedstatedir='${prefix}/com'
700 localstatedir='${prefix}/var'
701 includedir='${prefix}/include'
702 oldincludedir='/usr/include'
703 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
704 infodir='${datarootdir}/info'
705 htmldir='${docdir}'
706 dvidir='${docdir}'
707 pdfdir='${docdir}'
708 psdir='${docdir}'
709 libdir='${exec_prefix}/lib'
710 localedir='${datarootdir}/locale'
711 mandir='${datarootdir}/man'
713 ac_prev=
714 ac_dashdash=
715 for ac_option
717 # If the previous option needs an argument, assign it.
718 if test -n "$ac_prev"; then
719 eval $ac_prev=\$ac_option
720 ac_prev=
721 continue
724 case $ac_option in
725 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
726 *=) ac_optarg= ;;
727 *) ac_optarg=yes ;;
728 esac
730 # Accept the important Cygnus configure options, so we can diagnose typos.
732 case $ac_dashdash$ac_option in
734 ac_dashdash=yes ;;
736 -bindir | --bindir | --bindi | --bind | --bin | --bi)
737 ac_prev=bindir ;;
738 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
739 bindir=$ac_optarg ;;
741 -build | --build | --buil | --bui | --bu)
742 ac_prev=build_alias ;;
743 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
744 build_alias=$ac_optarg ;;
746 -cache-file | --cache-file | --cache-fil | --cache-fi \
747 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
748 ac_prev=cache_file ;;
749 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
750 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
751 cache_file=$ac_optarg ;;
753 --config-cache | -C)
754 cache_file=config.cache ;;
756 -datadir | --datadir | --datadi | --datad)
757 ac_prev=datadir ;;
758 -datadir=* | --datadir=* | --datadi=* | --datad=*)
759 datadir=$ac_optarg ;;
761 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
762 | --dataroo | --dataro | --datar)
763 ac_prev=datarootdir ;;
764 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
765 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
766 datarootdir=$ac_optarg ;;
768 -disable-* | --disable-*)
769 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
770 # Reject names that are not valid shell variable names.
771 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
772 as_fn_error $? "invalid feature name: $ac_useropt"
773 ac_useropt_orig=$ac_useropt
774 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
775 case $ac_user_opts in
777 "enable_$ac_useropt"
778 "*) ;;
779 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
780 ac_unrecognized_sep=', ';;
781 esac
782 eval enable_$ac_useropt=no ;;
784 -docdir | --docdir | --docdi | --doc | --do)
785 ac_prev=docdir ;;
786 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
787 docdir=$ac_optarg ;;
789 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
790 ac_prev=dvidir ;;
791 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
792 dvidir=$ac_optarg ;;
794 -enable-* | --enable-*)
795 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
796 # Reject names that are not valid shell variable names.
797 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
798 as_fn_error $? "invalid feature name: $ac_useropt"
799 ac_useropt_orig=$ac_useropt
800 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
801 case $ac_user_opts in
803 "enable_$ac_useropt"
804 "*) ;;
805 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
806 ac_unrecognized_sep=', ';;
807 esac
808 eval enable_$ac_useropt=\$ac_optarg ;;
810 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
811 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
812 | --exec | --exe | --ex)
813 ac_prev=exec_prefix ;;
814 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
815 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
816 | --exec=* | --exe=* | --ex=*)
817 exec_prefix=$ac_optarg ;;
819 -gas | --gas | --ga | --g)
820 # Obsolete; use --with-gas.
821 with_gas=yes ;;
823 -help | --help | --hel | --he | -h)
824 ac_init_help=long ;;
825 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
826 ac_init_help=recursive ;;
827 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
828 ac_init_help=short ;;
830 -host | --host | --hos | --ho)
831 ac_prev=host_alias ;;
832 -host=* | --host=* | --hos=* | --ho=*)
833 host_alias=$ac_optarg ;;
835 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
836 ac_prev=htmldir ;;
837 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
838 | --ht=*)
839 htmldir=$ac_optarg ;;
841 -includedir | --includedir | --includedi | --included | --include \
842 | --includ | --inclu | --incl | --inc)
843 ac_prev=includedir ;;
844 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
845 | --includ=* | --inclu=* | --incl=* | --inc=*)
846 includedir=$ac_optarg ;;
848 -infodir | --infodir | --infodi | --infod | --info | --inf)
849 ac_prev=infodir ;;
850 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
851 infodir=$ac_optarg ;;
853 -libdir | --libdir | --libdi | --libd)
854 ac_prev=libdir ;;
855 -libdir=* | --libdir=* | --libdi=* | --libd=*)
856 libdir=$ac_optarg ;;
858 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
859 | --libexe | --libex | --libe)
860 ac_prev=libexecdir ;;
861 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
862 | --libexe=* | --libex=* | --libe=*)
863 libexecdir=$ac_optarg ;;
865 -localedir | --localedir | --localedi | --localed | --locale)
866 ac_prev=localedir ;;
867 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
868 localedir=$ac_optarg ;;
870 -localstatedir | --localstatedir | --localstatedi | --localstated \
871 | --localstate | --localstat | --localsta | --localst | --locals)
872 ac_prev=localstatedir ;;
873 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
874 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
875 localstatedir=$ac_optarg ;;
877 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
878 ac_prev=mandir ;;
879 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
880 mandir=$ac_optarg ;;
882 -nfp | --nfp | --nf)
883 # Obsolete; use --without-fp.
884 with_fp=no ;;
886 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
887 | --no-cr | --no-c | -n)
888 no_create=yes ;;
890 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
891 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
892 no_recursion=yes ;;
894 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
895 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
896 | --oldin | --oldi | --old | --ol | --o)
897 ac_prev=oldincludedir ;;
898 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
899 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
900 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
901 oldincludedir=$ac_optarg ;;
903 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
904 ac_prev=prefix ;;
905 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
906 prefix=$ac_optarg ;;
908 -program-prefix | --program-prefix | --program-prefi | --program-pref \
909 | --program-pre | --program-pr | --program-p)
910 ac_prev=program_prefix ;;
911 -program-prefix=* | --program-prefix=* | --program-prefi=* \
912 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
913 program_prefix=$ac_optarg ;;
915 -program-suffix | --program-suffix | --program-suffi | --program-suff \
916 | --program-suf | --program-su | --program-s)
917 ac_prev=program_suffix ;;
918 -program-suffix=* | --program-suffix=* | --program-suffi=* \
919 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
920 program_suffix=$ac_optarg ;;
922 -program-transform-name | --program-transform-name \
923 | --program-transform-nam | --program-transform-na \
924 | --program-transform-n | --program-transform- \
925 | --program-transform | --program-transfor \
926 | --program-transfo | --program-transf \
927 | --program-trans | --program-tran \
928 | --progr-tra | --program-tr | --program-t)
929 ac_prev=program_transform_name ;;
930 -program-transform-name=* | --program-transform-name=* \
931 | --program-transform-nam=* | --program-transform-na=* \
932 | --program-transform-n=* | --program-transform-=* \
933 | --program-transform=* | --program-transfor=* \
934 | --program-transfo=* | --program-transf=* \
935 | --program-trans=* | --program-tran=* \
936 | --progr-tra=* | --program-tr=* | --program-t=*)
937 program_transform_name=$ac_optarg ;;
939 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
940 ac_prev=pdfdir ;;
941 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
942 pdfdir=$ac_optarg ;;
944 -psdir | --psdir | --psdi | --psd | --ps)
945 ac_prev=psdir ;;
946 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
947 psdir=$ac_optarg ;;
949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
950 | -silent | --silent | --silen | --sile | --sil)
951 silent=yes ;;
953 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
954 ac_prev=sbindir ;;
955 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
956 | --sbi=* | --sb=*)
957 sbindir=$ac_optarg ;;
959 -sharedstatedir | --sharedstatedir | --sharedstatedi \
960 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
961 | --sharedst | --shareds | --shared | --share | --shar \
962 | --sha | --sh)
963 ac_prev=sharedstatedir ;;
964 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
965 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
966 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
967 | --sha=* | --sh=*)
968 sharedstatedir=$ac_optarg ;;
970 -site | --site | --sit)
971 ac_prev=site ;;
972 -site=* | --site=* | --sit=*)
973 site=$ac_optarg ;;
975 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
976 ac_prev=srcdir ;;
977 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
978 srcdir=$ac_optarg ;;
980 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
981 | --syscon | --sysco | --sysc | --sys | --sy)
982 ac_prev=sysconfdir ;;
983 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
984 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
985 sysconfdir=$ac_optarg ;;
987 -target | --target | --targe | --targ | --tar | --ta | --t)
988 ac_prev=target_alias ;;
989 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
990 target_alias=$ac_optarg ;;
992 -v | -verbose | --verbose | --verbos | --verbo | --verb)
993 verbose=yes ;;
995 -version | --version | --versio | --versi | --vers | -V)
996 ac_init_version=: ;;
998 -with-* | --with-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid package name: $ac_useropt"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "with_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval with_$ac_useropt=\$ac_optarg ;;
1014 -without-* | --without-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid package name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "with_$ac_useropt"
1024 "*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval with_$ac_useropt=no ;;
1030 --x)
1031 # Obsolete; use --with-x.
1032 with_x=yes ;;
1034 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1035 | --x-incl | --x-inc | --x-in | --x-i)
1036 ac_prev=x_includes ;;
1037 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1038 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1039 x_includes=$ac_optarg ;;
1041 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1042 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1043 ac_prev=x_libraries ;;
1044 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1045 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1046 x_libraries=$ac_optarg ;;
1048 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1049 Try \`$0 --help' for more information"
1052 *=*)
1053 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1054 # Reject names that are not valid shell variable names.
1055 case $ac_envvar in #(
1056 '' | [0-9]* | *[!_$as_cr_alnum]* )
1057 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1058 esac
1059 eval $ac_envvar=\$ac_optarg
1060 export $ac_envvar ;;
1063 # FIXME: should be removed in autoconf 3.0.
1064 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1065 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1067 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1070 esac
1071 done
1073 if test -n "$ac_prev"; then
1074 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1075 as_fn_error $? "missing argument to $ac_option"
1078 if test -n "$ac_unrecognized_opts"; then
1079 case $enable_option_checking in
1080 no) ;;
1081 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1082 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1083 esac
1086 # Check all directory arguments for consistency.
1087 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1088 datadir sysconfdir sharedstatedir localstatedir includedir \
1089 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1090 libdir localedir mandir
1092 eval ac_val=\$$ac_var
1093 # Remove trailing slashes.
1094 case $ac_val in
1095 */ )
1096 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1097 eval $ac_var=\$ac_val;;
1098 esac
1099 # Be sure to have absolute directory names.
1100 case $ac_val in
1101 [\\/$]* | ?:[\\/]* ) continue;;
1102 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1103 esac
1104 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1105 done
1107 # There might be people who depend on the old broken behavior: `$host'
1108 # used to hold the argument of --host etc.
1109 # FIXME: To remove some day.
1110 build=$build_alias
1111 host=$host_alias
1112 target=$target_alias
1114 # FIXME: To remove some day.
1115 if test "x$host_alias" != x; then
1116 if test "x$build_alias" = x; then
1117 cross_compiling=maybe
1118 elif test "x$build_alias" != "x$host_alias"; then
1119 cross_compiling=yes
1123 ac_tool_prefix=
1124 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1126 test "$silent" = yes && exec 6>/dev/null
1129 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1130 ac_ls_di=`ls -di .` &&
1131 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1132 as_fn_error $? "working directory cannot be determined"
1133 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1134 as_fn_error $? "pwd does not report name of working directory"
1137 # Find the source files, if location was not specified.
1138 if test -z "$srcdir"; then
1139 ac_srcdir_defaulted=yes
1140 # Try the directory containing this script, then the parent directory.
1141 ac_confdir=`$as_dirname -- "$as_myself" ||
1142 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1143 X"$as_myself" : 'X\(//\)[^/]' \| \
1144 X"$as_myself" : 'X\(//\)$' \| \
1145 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1146 $as_echo X"$as_myself" |
1147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1148 s//\1/
1151 /^X\(\/\/\)[^/].*/{
1152 s//\1/
1155 /^X\(\/\/\)$/{
1156 s//\1/
1159 /^X\(\/\).*/{
1160 s//\1/
1163 s/.*/./; q'`
1164 srcdir=$ac_confdir
1165 if test ! -r "$srcdir/$ac_unique_file"; then
1166 srcdir=..
1168 else
1169 ac_srcdir_defaulted=no
1171 if test ! -r "$srcdir/$ac_unique_file"; then
1172 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1173 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1175 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1176 ac_abs_confdir=`(
1177 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1178 pwd)`
1179 # When building in place, set srcdir=.
1180 if test "$ac_abs_confdir" = "$ac_pwd"; then
1181 srcdir=.
1183 # Remove unnecessary trailing slashes from srcdir.
1184 # Double slashes in file names in object file debugging info
1185 # mess up M-x gdb in Emacs.
1186 case $srcdir in
1187 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1188 esac
1189 for ac_var in $ac_precious_vars; do
1190 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1191 eval ac_env_${ac_var}_value=\$${ac_var}
1192 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1193 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1194 done
1197 # Report the --help message.
1199 if test "$ac_init_help" = "long"; then
1200 # Omit some internal or obsolete options to make the list less imposing.
1201 # This message is too long to be a string in the A/UX 3.1 sh.
1202 cat <<_ACEOF
1203 \`configure' configures Polly 0.01 to adapt to many kinds of systems.
1205 Usage: $0 [OPTION]... [VAR=VALUE]...
1207 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1208 VAR=VALUE. See below for descriptions of some of the useful variables.
1210 Defaults for the options are specified in brackets.
1212 Configuration:
1213 -h, --help display this help and exit
1214 --help=short display options specific to this package
1215 --help=recursive display the short help of all the included packages
1216 -V, --version display version information and exit
1217 -q, --quiet, --silent do not print \`checking ...' messages
1218 --cache-file=FILE cache test results in FILE [disabled]
1219 -C, --config-cache alias for \`--cache-file=config.cache'
1220 -n, --no-create do not create output files
1221 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1223 Installation directories:
1224 --prefix=PREFIX install architecture-independent files in PREFIX
1225 [$ac_default_prefix]
1226 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1227 [PREFIX]
1229 By default, \`make install' will install all the files in
1230 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1231 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1232 for instance \`--prefix=\$HOME'.
1234 For better control, use the options below.
1236 Fine tuning of the installation directories:
1237 --bindir=DIR user executables [EPREFIX/bin]
1238 --sbindir=DIR system admin executables [EPREFIX/sbin]
1239 --libexecdir=DIR program executables [EPREFIX/libexec]
1240 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1241 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1242 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1243 --libdir=DIR object code libraries [EPREFIX/lib]
1244 --includedir=DIR C header files [PREFIX/include]
1245 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1246 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1247 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1248 --infodir=DIR info documentation [DATAROOTDIR/info]
1249 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1250 --mandir=DIR man documentation [DATAROOTDIR/man]
1251 --docdir=DIR documentation root [DATAROOTDIR/doc/polly]
1252 --htmldir=DIR html documentation [DOCDIR]
1253 --dvidir=DIR dvi documentation [DOCDIR]
1254 --pdfdir=DIR pdf documentation [DOCDIR]
1255 --psdir=DIR ps documentation [DOCDIR]
1256 _ACEOF
1258 cat <<\_ACEOF
1259 _ACEOF
1262 if test -n "$ac_init_help"; then
1263 case $ac_init_help in
1264 short | recursive ) echo "Configuration of Polly 0.01:";;
1265 esac
1266 cat <<\_ACEOF
1268 Optional Features:
1269 --disable-option-checking ignore unrecognized --enable/--with options
1270 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1271 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1272 --enable-polly-gpu-codegen
1273 Enable GPU code generation in Polly(default is NO)
1275 Optional Packages:
1276 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1277 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1278 --with-llvmsrc Location of LLVM Source Code
1279 --with-llvmobj Location of LLVM Object Code
1280 --with-pluto prefix of pluto
1281 --with-cuda prefix of cuda
1283 Some influential environment variables:
1284 CXX C++ compiler command
1285 CXXFLAGS C++ compiler flags
1286 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1287 nonstandard directory <lib dir>
1288 LIBS libraries to pass to the linker, e.g. -l<library>
1289 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1290 you have headers in a nonstandard directory <include dir>
1292 Use these variables to override the choices made by `configure' or to help
1293 it to find libraries and programs with nonstandard names/locations.
1295 Report bugs to <polly-dev@googlegroups.com>.
1296 _ACEOF
1297 ac_status=$?
1300 if test "$ac_init_help" = "recursive"; then
1301 # If there are subdirs, report their specific --help.
1302 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1303 test -d "$ac_dir" ||
1304 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1305 continue
1306 ac_builddir=.
1308 case "$ac_dir" in
1309 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1311 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1312 # A ".." for each directory in $ac_dir_suffix.
1313 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1314 case $ac_top_builddir_sub in
1315 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1316 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1317 esac ;;
1318 esac
1319 ac_abs_top_builddir=$ac_pwd
1320 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1321 # for backward compatibility:
1322 ac_top_builddir=$ac_top_build_prefix
1324 case $srcdir in
1325 .) # We are building in place.
1326 ac_srcdir=.
1327 ac_top_srcdir=$ac_top_builddir_sub
1328 ac_abs_top_srcdir=$ac_pwd ;;
1329 [\\/]* | ?:[\\/]* ) # Absolute name.
1330 ac_srcdir=$srcdir$ac_dir_suffix;
1331 ac_top_srcdir=$srcdir
1332 ac_abs_top_srcdir=$srcdir ;;
1333 *) # Relative name.
1334 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1335 ac_top_srcdir=$ac_top_build_prefix$srcdir
1336 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1337 esac
1338 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1340 cd "$ac_dir" || { ac_status=$?; continue; }
1341 # Check for guested configure.
1342 if test -f "$ac_srcdir/configure.gnu"; then
1343 echo &&
1344 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1345 elif test -f "$ac_srcdir/configure"; then
1346 echo &&
1347 $SHELL "$ac_srcdir/configure" --help=recursive
1348 else
1349 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1350 fi || ac_status=$?
1351 cd "$ac_pwd" || { ac_status=$?; break; }
1352 done
1355 test -n "$ac_init_help" && exit $ac_status
1356 if $ac_init_version; then
1357 cat <<\_ACEOF
1358 Polly configure 0.01
1359 generated by GNU Autoconf 2.69
1361 Copyright (C) 2012 Free Software Foundation, Inc.
1362 This configure script is free software; the Free Software Foundation
1363 gives unlimited permission to copy, distribute and modify it.
1364 _ACEOF
1365 exit
1368 ## ------------------------ ##
1369 ## Autoconf initialization. ##
1370 ## ------------------------ ##
1372 # ac_fn_cxx_try_compile LINENO
1373 # ----------------------------
1374 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1375 ac_fn_cxx_try_compile ()
1377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1378 rm -f conftest.$ac_objext
1379 if { { ac_try="$ac_compile"
1380 case "(($ac_try" in
1381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1382 *) ac_try_echo=$ac_try;;
1383 esac
1384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1385 $as_echo "$ac_try_echo"; } >&5
1386 (eval "$ac_compile") 2>conftest.err
1387 ac_status=$?
1388 if test -s conftest.err; then
1389 grep -v '^ *+' conftest.err >conftest.er1
1390 cat conftest.er1 >&5
1391 mv -f conftest.er1 conftest.err
1393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1394 test $ac_status = 0; } && {
1395 test -z "$ac_cxx_werror_flag" ||
1396 test ! -s conftest.err
1397 } && test -s conftest.$ac_objext; then :
1398 ac_retval=0
1399 else
1400 $as_echo "$as_me: failed program was:" >&5
1401 sed 's/^/| /' conftest.$ac_ext >&5
1403 ac_retval=1
1405 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1406 as_fn_set_status $ac_retval
1408 } # ac_fn_cxx_try_compile
1410 # ac_fn_cxx_try_link LINENO
1411 # -------------------------
1412 # Try to link conftest.$ac_ext, and return whether this succeeded.
1413 ac_fn_cxx_try_link ()
1415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1416 rm -f conftest.$ac_objext conftest$ac_exeext
1417 if { { ac_try="$ac_link"
1418 case "(($ac_try" in
1419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1420 *) ac_try_echo=$ac_try;;
1421 esac
1422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1423 $as_echo "$ac_try_echo"; } >&5
1424 (eval "$ac_link") 2>conftest.err
1425 ac_status=$?
1426 if test -s conftest.err; then
1427 grep -v '^ *+' conftest.err >conftest.er1
1428 cat conftest.er1 >&5
1429 mv -f conftest.er1 conftest.err
1431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1432 test $ac_status = 0; } && {
1433 test -z "$ac_cxx_werror_flag" ||
1434 test ! -s conftest.err
1435 } && test -s conftest$ac_exeext && {
1436 test "$cross_compiling" = yes ||
1437 test -x conftest$ac_exeext
1438 }; then :
1439 ac_retval=0
1440 else
1441 $as_echo "$as_me: failed program was:" >&5
1442 sed 's/^/| /' conftest.$ac_ext >&5
1444 ac_retval=1
1446 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1447 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1448 # interfere with the next link command; also delete a directory that is
1449 # left behind by Apple's compiler. We do this before executing the actions.
1450 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1451 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1452 as_fn_set_status $ac_retval
1454 } # ac_fn_cxx_try_link
1455 cat >config.log <<_ACEOF
1456 This file contains any messages produced by compilers while
1457 running configure, to aid debugging if configure makes a mistake.
1459 It was created by Polly $as_me 0.01, which was
1460 generated by GNU Autoconf 2.69. Invocation command line was
1462 $ $0 $@
1464 _ACEOF
1465 exec 5>>config.log
1467 cat <<_ASUNAME
1468 ## --------- ##
1469 ## Platform. ##
1470 ## --------- ##
1472 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1479 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1481 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1482 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1483 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1484 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1485 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1486 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1487 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1489 _ASUNAME
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 $as_echo "PATH: $as_dir"
1497 done
1498 IFS=$as_save_IFS
1500 } >&5
1502 cat >&5 <<_ACEOF
1505 ## ----------- ##
1506 ## Core tests. ##
1507 ## ----------- ##
1509 _ACEOF
1512 # Keep a trace of the command line.
1513 # Strip out --no-create and --no-recursion so they do not pile up.
1514 # Strip out --silent because we don't want to record it for future runs.
1515 # Also quote any args containing shell meta-characters.
1516 # Make two passes to allow for proper duplicate-argument suppression.
1517 ac_configure_args=
1518 ac_configure_args0=
1519 ac_configure_args1=
1520 ac_must_keep_next=false
1521 for ac_pass in 1 2
1523 for ac_arg
1525 case $ac_arg in
1526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1529 continue ;;
1530 *\'*)
1531 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 esac
1533 case $ac_pass in
1534 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1536 as_fn_append ac_configure_args1 " '$ac_arg'"
1537 if test $ac_must_keep_next = true; then
1538 ac_must_keep_next=false # Got value, back to normal.
1539 else
1540 case $ac_arg in
1541 *=* | --config-cache | -C | -disable-* | --disable-* \
1542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1544 | -with-* | --with-* | -without-* | --without-* | --x)
1545 case "$ac_configure_args0 " in
1546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 esac
1549 -* ) ac_must_keep_next=true ;;
1550 esac
1552 as_fn_append ac_configure_args " '$ac_arg'"
1554 esac
1555 done
1556 done
1557 { ac_configure_args0=; unset ac_configure_args0;}
1558 { ac_configure_args1=; unset ac_configure_args1;}
1560 # When interrupted or exit'd, cleanup temporary files, and complete
1561 # config.log. We remove comments because anyway the quotes in there
1562 # would cause problems or look ugly.
1563 # WARNING: Use '\'' to represent an apostrophe within the trap.
1564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1565 trap 'exit_status=$?
1566 # Save into config.log some information that might help in debugging.
1568 echo
1570 $as_echo "## ---------------- ##
1571 ## Cache variables. ##
1572 ## ---------------- ##"
1573 echo
1574 # The following way of writing the cache mishandles newlines in values,
1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577 eval ac_val=\$$ac_var
1578 case $ac_val in #(
1579 *${as_nl}*)
1580 case $ac_var in #(
1581 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1582 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1583 esac
1584 case $ac_var in #(
1585 _ | IFS | as_nl) ;; #(
1586 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1587 *) { eval $ac_var=; unset $ac_var;} ;;
1588 esac ;;
1589 esac
1590 done
1591 (set) 2>&1 |
1592 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1593 *${as_nl}ac_space=\ *)
1594 sed -n \
1595 "s/'\''/'\''\\\\'\'''\''/g;
1596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1597 ;; #(
1599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1601 esac |
1602 sort
1604 echo
1606 $as_echo "## ----------------- ##
1607 ## Output variables. ##
1608 ## ----------------- ##"
1609 echo
1610 for ac_var in $ac_subst_vars
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 $as_echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1620 if test -n "$ac_subst_files"; then
1621 $as_echo "## ------------------- ##
1622 ## File substitutions. ##
1623 ## ------------------- ##"
1624 echo
1625 for ac_var in $ac_subst_files
1627 eval ac_val=\$$ac_var
1628 case $ac_val in
1629 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 esac
1631 $as_echo "$ac_var='\''$ac_val'\''"
1632 done | sort
1633 echo
1636 if test -s confdefs.h; then
1637 $as_echo "## ----------- ##
1638 ## confdefs.h. ##
1639 ## ----------- ##"
1640 echo
1641 cat confdefs.h
1642 echo
1644 test "$ac_signal" != 0 &&
1645 $as_echo "$as_me: caught signal $ac_signal"
1646 $as_echo "$as_me: exit $exit_status"
1647 } >&5
1648 rm -f core *.core core.conftest.* &&
1649 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1650 exit $exit_status
1652 for ac_signal in 1 2 13 15; do
1653 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1654 done
1655 ac_signal=0
1657 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1658 rm -f -r conftest* confdefs.h
1660 $as_echo "/* confdefs.h */" > confdefs.h
1662 # Predefined preprocessor variables.
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_NAME "$PACKAGE_NAME"
1666 _ACEOF
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1670 _ACEOF
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 _ACEOF
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_STRING "$PACKAGE_STRING"
1678 _ACEOF
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1682 _ACEOF
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_URL "$PACKAGE_URL"
1686 _ACEOF
1689 # Let the site file select an alternate cache file if it wants to.
1690 # Prefer an explicitly selected file to automatically selected ones.
1691 ac_site_file1=NONE
1692 ac_site_file2=NONE
1693 if test -n "$CONFIG_SITE"; then
1694 # We do not want a PATH search for config.site.
1695 case $CONFIG_SITE in #((
1696 -*) ac_site_file1=./$CONFIG_SITE;;
1697 */*) ac_site_file1=$CONFIG_SITE;;
1698 *) ac_site_file1=./$CONFIG_SITE;;
1699 esac
1700 elif test "x$prefix" != xNONE; then
1701 ac_site_file1=$prefix/share/config.site
1702 ac_site_file2=$prefix/etc/config.site
1703 else
1704 ac_site_file1=$ac_default_prefix/share/config.site
1705 ac_site_file2=$ac_default_prefix/etc/config.site
1707 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1709 test "x$ac_site_file" = xNONE && continue
1710 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1712 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1713 sed 's/^/| /' "$ac_site_file" >&5
1714 . "$ac_site_file" \
1715 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1717 as_fn_error $? "failed to load site script $ac_site_file
1718 See \`config.log' for more details" "$LINENO" 5; }
1720 done
1722 if test -r "$cache_file"; then
1723 # Some versions of bash will fail to source /dev/null (special files
1724 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1725 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1727 $as_echo "$as_me: loading cache $cache_file" >&6;}
1728 case $cache_file in
1729 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1730 *) . "./$cache_file";;
1731 esac
1733 else
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1735 $as_echo "$as_me: creating cache $cache_file" >&6;}
1736 >$cache_file
1739 # Check that the precious variables saved in the cache have kept the same
1740 # value.
1741 ac_cache_corrupted=false
1742 for ac_var in $ac_precious_vars; do
1743 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1744 eval ac_new_set=\$ac_env_${ac_var}_set
1745 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1746 eval ac_new_val=\$ac_env_${ac_var}_value
1747 case $ac_old_set,$ac_new_set in
1748 set,)
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1750 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1751 ac_cache_corrupted=: ;;
1752 ,set)
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1754 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,);;
1758 if test "x$ac_old_val" != "x$ac_new_val"; then
1759 # differences in whitespace do not lead to failure.
1760 ac_old_val_w=`echo x $ac_old_val`
1761 ac_new_val_w=`echo x $ac_new_val`
1762 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1764 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 ac_cache_corrupted=:
1766 else
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1768 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1769 eval $ac_var=\$ac_old_val
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1772 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1774 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1775 fi;;
1776 esac
1777 # Pass precious variables to config.status.
1778 if test "$ac_new_set" = set; then
1779 case $ac_new_val in
1780 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 *) ac_arg=$ac_var=$ac_new_val ;;
1782 esac
1783 case " $ac_configure_args " in
1784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1785 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1786 esac
1788 done
1789 if $ac_cache_corrupted; then
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1793 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1794 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1796 ## -------------------- ##
1797 ## Main body of script. ##
1798 ## -------------------- ##
1800 ac_ext=c
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1808 LLVM_SRC_ROOT="`(cd $srcdir/../..; pwd)`"
1809 LLVM_OBJ_ROOT="`(cd ../..; pwd)`"
1812 # Check whether --with-llvmsrc was given.
1813 if test "${with_llvmsrc+set}" = set; then :
1814 withval=$with_llvmsrc; llvm_src="$withval"
1815 else
1816 llvm_src="$LLVM_SRC_ROOT"
1819 LLVM_SRC=$llvm_src
1822 # Check whether --with-llvmobj was given.
1823 if test "${with_llvmobj+set}" = set; then :
1824 withval=$with_llvmobj; llvm_obj="$withval"
1825 else
1826 llvm_obj="$LLVM_OBJ_ROOT"
1829 LLVM_OBJ=$llvm_obj
1831 ac_config_commands="$ac_config_commands setup"
1835 ac_aux_dir=
1836 for ac_dir in $LLVM_SRC/autoconf "$srcdir"/$LLVM_SRC/autoconf; do
1837 if test -f "$ac_dir/install-sh"; then
1838 ac_aux_dir=$ac_dir
1839 ac_install_sh="$ac_aux_dir/install-sh -c"
1840 break
1841 elif test -f "$ac_dir/install.sh"; then
1842 ac_aux_dir=$ac_dir
1843 ac_install_sh="$ac_aux_dir/install.sh -c"
1844 break
1845 elif test -f "$ac_dir/shtool"; then
1846 ac_aux_dir=$ac_dir
1847 ac_install_sh="$ac_aux_dir/shtool install -c"
1848 break
1850 done
1851 if test -z "$ac_aux_dir"; then
1852 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $LLVM_SRC/autoconf \"$srcdir\"/$LLVM_SRC/autoconf" "$LINENO" 5
1855 # These three variables are undocumented and unsupported,
1856 # and are intended to be withdrawn in a future Autoconf release.
1857 # They can cause serious problems if a builder's source tree is in a directory
1858 # whose full name contains unusual characters.
1859 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1860 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1861 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1869 ac_config_files="$ac_config_files Makefile.config"
1871 ac_config_files="$ac_config_files Makefile.common"
1875 if test ${srcdir} != "." ; then
1876 if test -f ${srcdir}/include/polly/Config/config.h ; then
1877 as_fn_error $? "Already configured in ${srcdir}" "$LINENO" 5
1890 saved_CXXFLAGS=$CXXFLAGS
1891 CXXFLAGS="$CXXFLAGS"
1892 ac_ext=cpp
1893 ac_cpp='$CXXCPP $CPPFLAGS'
1894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1897 if test -z "$CXX"; then
1898 if test -n "$CCC"; then
1899 CXX=$CCC
1900 else
1901 if test -n "$ac_tool_prefix"; then
1902 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1907 $as_echo_n "checking for $ac_word... " >&6; }
1908 if ${ac_cv_prog_CXX+:} false; then :
1909 $as_echo_n "(cached) " >&6
1910 else
1911 if test -n "$CXX"; then
1912 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1913 else
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1917 IFS=$as_save_IFS
1918 test -z "$as_dir" && as_dir=.
1919 for ac_exec_ext in '' $ac_executable_extensions; do
1920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 break 2
1925 done
1926 done
1927 IFS=$as_save_IFS
1931 CXX=$ac_cv_prog_CXX
1932 if test -n "$CXX"; then
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
1934 $as_echo "$CXX" >&6; }
1935 else
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1937 $as_echo "no" >&6; }
1941 test -n "$CXX" && break
1942 done
1944 if test -z "$CXX"; then
1945 ac_ct_CXX=$CXX
1946 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1948 # Extract the first word of "$ac_prog", so it can be a program name with args.
1949 set dummy $ac_prog; ac_word=$2
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1951 $as_echo_n "checking for $ac_word... " >&6; }
1952 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1953 $as_echo_n "(cached) " >&6
1954 else
1955 if test -n "$ac_ct_CXX"; then
1956 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1957 else
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 for as_dir in $PATH
1961 IFS=$as_save_IFS
1962 test -z "$as_dir" && as_dir=.
1963 for ac_exec_ext in '' $ac_executable_extensions; do
1964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1965 ac_cv_prog_ac_ct_CXX="$ac_prog"
1966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1967 break 2
1969 done
1970 done
1971 IFS=$as_save_IFS
1975 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1976 if test -n "$ac_ct_CXX"; then
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
1978 $as_echo "$ac_ct_CXX" >&6; }
1979 else
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1981 $as_echo "no" >&6; }
1985 test -n "$ac_ct_CXX" && break
1986 done
1988 if test "x$ac_ct_CXX" = x; then
1989 CXX="g++"
1990 else
1991 case $cross_compiling:$ac_tool_warned in
1992 yes:)
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1995 ac_tool_warned=yes ;;
1996 esac
1997 CXX=$ac_ct_CXX
2003 # Provide some information about the compiler.
2004 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2005 set X $ac_compile
2006 ac_compiler=$2
2007 for ac_option in --version -v -V -qversion; do
2008 { { ac_try="$ac_compiler $ac_option >&5"
2009 case "(($ac_try" in
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2012 esac
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2016 ac_status=$?
2017 if test -s conftest.err; then
2018 sed '10a\
2019 ... rest of stderr output deleted ...
2020 10q' conftest.err >conftest.er1
2021 cat conftest.er1 >&5
2023 rm -f conftest.er1 conftest.err
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; }
2026 done
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2032 main ()
2036 return 0;
2038 _ACEOF
2039 ac_clean_files_save=$ac_clean_files
2040 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2041 # Try to create an executable without -o first, disregard a.out.
2042 # It will help us diagnose broken compilers, and finding out an intuition
2043 # of exeext.
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2045 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2046 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2048 # The possible output files:
2049 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2051 ac_rmfiles=
2052 for ac_file in $ac_files
2054 case $ac_file in
2055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2056 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2057 esac
2058 done
2059 rm -f $ac_rmfiles
2061 if { { ac_try="$ac_link_default"
2062 case "(($ac_try" in
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2065 esac
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_link_default") 2>&5
2069 ac_status=$?
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; }; then :
2072 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2073 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2074 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2075 # so that the user can short-circuit this test for compilers unknown to
2076 # Autoconf.
2077 for ac_file in $ac_files ''
2079 test -f "$ac_file" || continue
2080 case $ac_file in
2081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2083 [ab].out )
2084 # We found the default executable, but exeext='' is most
2085 # certainly right.
2086 break;;
2087 *.* )
2088 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2089 then :; else
2090 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2092 # We set ac_cv_exeext here because the later test for it is not
2093 # safe: cross compilers may not add the suffix if given an `-o'
2094 # argument, so we may need to know it at that point already.
2095 # Even if this section looks crufty: it has the advantage of
2096 # actually working.
2097 break;;
2099 break;;
2100 esac
2101 done
2102 test "$ac_cv_exeext" = no && ac_cv_exeext=
2104 else
2105 ac_file=''
2107 if test -z "$ac_file"; then :
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2109 $as_echo "no" >&6; }
2110 $as_echo "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115 as_fn_error 77 "C++ compiler cannot create executables
2116 See \`config.log' for more details" "$LINENO" 5; }
2117 else
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2119 $as_echo "yes" >&6; }
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2122 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2124 $as_echo "$ac_file" >&6; }
2125 ac_exeext=$ac_cv_exeext
2127 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2128 ac_clean_files=$ac_clean_files_save
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2130 $as_echo_n "checking for suffix of executables... " >&6; }
2131 if { { ac_try="$ac_link"
2132 case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135 esac
2136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137 $as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_link") 2>&5
2139 ac_status=$?
2140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2141 test $ac_status = 0; }; then :
2142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2144 # work properly (i.e., refer to `conftest.exe'), while it won't with
2145 # `rm'.
2146 for ac_file in conftest.exe conftest conftest.*; do
2147 test -f "$ac_file" || continue
2148 case $ac_file in
2149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2150 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2151 break;;
2152 * ) break;;
2153 esac
2154 done
2155 else
2156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2158 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2159 See \`config.log' for more details" "$LINENO" 5; }
2161 rm -f conftest conftest$ac_cv_exeext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2163 $as_echo "$ac_cv_exeext" >&6; }
2165 rm -f conftest.$ac_ext
2166 EXEEXT=$ac_cv_exeext
2167 ac_exeext=$EXEEXT
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2170 #include <stdio.h>
2172 main ()
2174 FILE *f = fopen ("conftest.out", "w");
2175 return ferror (f) || fclose (f) != 0;
2178 return 0;
2180 _ACEOF
2181 ac_clean_files="$ac_clean_files conftest.out"
2182 # Check that the compiler produces executables we can run. If not, either
2183 # the compiler is broken, or we cross compile.
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2185 $as_echo_n "checking whether we are cross compiling... " >&6; }
2186 if test "$cross_compiling" != yes; then
2187 { { ac_try="$ac_link"
2188 case "(($ac_try" in
2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190 *) ac_try_echo=$ac_try;;
2191 esac
2192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193 $as_echo "$ac_try_echo"; } >&5
2194 (eval "$ac_link") 2>&5
2195 ac_status=$?
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; }
2198 if { ac_try='./conftest$ac_cv_exeext'
2199 { { case "(($ac_try" in
2200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201 *) ac_try_echo=$ac_try;;
2202 esac
2203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2204 $as_echo "$ac_try_echo"; } >&5
2205 (eval "$ac_try") 2>&5
2206 ac_status=$?
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; }; }; then
2209 cross_compiling=no
2210 else
2211 if test "$cross_compiling" = maybe; then
2212 cross_compiling=yes
2213 else
2214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 as_fn_error $? "cannot run C++ compiled programs.
2217 If you meant to cross compile, use \`--host'.
2218 See \`config.log' for more details" "$LINENO" 5; }
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2223 $as_echo "$cross_compiling" >&6; }
2225 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2226 ac_clean_files=$ac_clean_files_save
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2228 $as_echo_n "checking for suffix of object files... " >&6; }
2229 if ${ac_cv_objext+:} false; then :
2230 $as_echo_n "(cached) " >&6
2231 else
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2236 main ()
2240 return 0;
2242 _ACEOF
2243 rm -f conftest.o conftest.obj
2244 if { { ac_try="$ac_compile"
2245 case "(($ac_try" in
2246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247 *) ac_try_echo=$ac_try;;
2248 esac
2249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2250 $as_echo "$ac_try_echo"; } >&5
2251 (eval "$ac_compile") 2>&5
2252 ac_status=$?
2253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2254 test $ac_status = 0; }; then :
2255 for ac_file in conftest.o conftest.obj conftest.*; do
2256 test -f "$ac_file" || continue;
2257 case $ac_file in
2258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2259 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2260 break;;
2261 esac
2262 done
2263 else
2264 $as_echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269 as_fn_error $? "cannot compute suffix of object files: cannot compile
2270 See \`config.log' for more details" "$LINENO" 5; }
2272 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2275 $as_echo "$ac_cv_objext" >&6; }
2276 OBJEXT=$ac_cv_objext
2277 ac_objext=$OBJEXT
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2279 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2280 if ${ac_cv_cxx_compiler_gnu+:} false; then :
2281 $as_echo_n "(cached) " >&6
2282 else
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2287 main ()
2289 #ifndef __GNUC__
2290 choke me
2291 #endif
2294 return 0;
2296 _ACEOF
2297 if ac_fn_cxx_try_compile "$LINENO"; then :
2298 ac_compiler_gnu=yes
2299 else
2300 ac_compiler_gnu=no
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2307 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2308 if test $ac_compiler_gnu = yes; then
2309 GXX=yes
2310 else
2311 GXX=
2313 ac_test_CXXFLAGS=${CXXFLAGS+set}
2314 ac_save_CXXFLAGS=$CXXFLAGS
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2316 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2317 if ${ac_cv_prog_cxx_g+:} false; then :
2318 $as_echo_n "(cached) " >&6
2319 else
2320 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2321 ac_cxx_werror_flag=yes
2322 ac_cv_prog_cxx_g=no
2323 CXXFLAGS="-g"
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2328 main ()
2332 return 0;
2334 _ACEOF
2335 if ac_fn_cxx_try_compile "$LINENO"; then :
2336 ac_cv_prog_cxx_g=yes
2337 else
2338 CXXFLAGS=""
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2343 main ()
2347 return 0;
2349 _ACEOF
2350 if ac_fn_cxx_try_compile "$LINENO"; then :
2352 else
2353 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2354 CXXFLAGS="-g"
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2359 main ()
2363 return 0;
2365 _ACEOF
2366 if ac_fn_cxx_try_compile "$LINENO"; then :
2367 ac_cv_prog_cxx_g=yes
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2377 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2378 if test "$ac_test_CXXFLAGS" = set; then
2379 CXXFLAGS=$ac_save_CXXFLAGS
2380 elif test $ac_cv_prog_cxx_g = yes; then
2381 if test "$GXX" = yes; then
2382 CXXFLAGS="-g -O2"
2383 else
2384 CXXFLAGS="-g"
2386 else
2387 if test "$GXX" = yes; then
2388 CXXFLAGS="-O2"
2389 else
2390 CXXFLAGS=
2393 ac_ext=cpp
2394 ac_cpp='$CXXCPP $CPPFLAGS'
2395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2401 ac_ext=cpp
2402 ac_cpp='$CXXCPP $CPPFLAGS'
2403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2407 OLD_CXXFLAGS=$CXXFLAGS;
2408 OLD_LDFLAGS=$LDFLAGS;
2409 OLD_LIBS=$LIBS;
2411 LIBS="$LIBS -lpluto";
2413 # Get include path and lib path
2415 # Check whether --with-pluto was given.
2416 if test "${with_pluto+set}" = set; then :
2417 withval=$with_pluto; given_inc_path="$withval/include"; CXXFLAGS="-I$given_inc_path $CXXFLAGS";
2418 given_lib_path="$withval/lib"; LDFLAGS="-L$given_lib_path $LDFLAGS"
2419 else
2420 given_inc_path=inc_not_give_pluto;
2421 given_lib_path=lib_not_give_pluto
2425 # Check for library and headers works
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pluto: pluto/libpluto.h in $given_inc_path, and libpluto in $given_lib_path" >&5
2427 $as_echo_n "checking for pluto: pluto/libpluto.h in $given_inc_path, and libpluto in $given_lib_path... " >&6; }
2429 # try to compile a file that includes a header of the library
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2432 #include <pluto/libpluto.h>
2434 main ()
2438 return 0;
2440 _ACEOF
2441 if ac_fn_cxx_try_link "$LINENO"; then :
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2443 $as_echo "ok" >&6; }
2444 pluto_found="yes"
2446 if test "x$given_inc_path" != "xinc_not_give_pluto"; then :
2447 pluto_inc="-I$given_inc_path"
2450 pluto_lib="-lpluto"
2452 if test "x$given_lib_path" != "xlib_not_give_pluto"; then :
2453 pluto_ld="-L$given_lib_path"
2456 else
2457 if test "x" = "xrequired"; then :
2458 as_fn_error $? "pluto required but not found" "$LINENO" 5
2459 else
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2461 $as_echo "not found" >&6; }
2465 rm -f core conftest.err conftest.$ac_objext \
2466 conftest$ac_exeext conftest.$ac_ext
2468 # reset original CXXFLAGS
2469 CXXFLAGS=$OLD_CXXFLAGS
2470 LDFLAGS=$OLD_LDFLAGS;
2471 LIBS=$OLD_LIBS
2472 ac_ext=c
2473 ac_cpp='$CPP $CPPFLAGS'
2474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479 CXXFLAGS=$saved_CXXFLAGS
2480 if test "x$pluto_found" = "xyes"; then :
2482 $as_echo "#define PLUTO_FOUND 1" >>confdefs.h
2486 # Check whether --enable-polly_gpu_codegen was given.
2487 if test "${enable_polly_gpu_codegen+set}" = set; then :
2488 enableval=$enable_polly_gpu_codegen;
2489 else
2490 enableval=default
2493 case "$enableval" in
2494 yes)
2495 $as_echo "#define GPU_CODEGEN 1" >>confdefs.h
2497 no) ;;
2498 default) ;;
2499 *) as_fn_error $? "Invalid setting for --enable-polly-gpu-codegen. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
2500 esac
2503 ac_ext=cpp
2504 ac_cpp='$CXXCPP $CPPFLAGS'
2505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2509 OLD_CXXFLAGS=$CXXFLAGS;
2510 OLD_LDFLAGS=$LDFLAGS;
2511 OLD_LIBS=$LIBS;
2513 LIBS="$LIBS -lcuda";
2515 # Get include path and lib path
2517 # Check whether --with-cuda was given.
2518 if test "${with_cuda+set}" = set; then :
2519 withval=$with_cuda; given_inc_path="$withval/include"; CXXFLAGS="-I$given_inc_path $CXXFLAGS";
2520 given_lib_path="$withval/lib"; LDFLAGS="-L$given_lib_path $LDFLAGS"
2521 else
2522 given_inc_path=inc_not_give_cuda;
2523 given_lib_path=lib_not_give_cuda
2527 # Check for library and headers works
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cuda: cuda.h in $given_inc_path, and libcuda in $given_lib_path" >&5
2529 $as_echo_n "checking for cuda: cuda.h in $given_inc_path, and libcuda in $given_lib_path... " >&6; }
2531 # try to compile a file that includes a header of the library
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2534 #include <cuda.h>
2536 main ()
2540 return 0;
2542 _ACEOF
2543 if ac_fn_cxx_try_link "$LINENO"; then :
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2545 $as_echo "ok" >&6; }
2546 cuda_found="yes"
2548 if test "x$given_inc_path" != "xinc_not_give_cuda"; then :
2549 cuda_inc="-I$given_inc_path"
2552 cuda_lib="-lcuda"
2554 if test "x$given_lib_path" != "xlib_not_give_cuda"; then :
2555 cuda_ld="-L$given_lib_path"
2558 else
2559 if test "x" = "xrequired"; then :
2560 as_fn_error $? "cuda required but not found" "$LINENO" 5
2561 else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2563 $as_echo "not found" >&6; }
2567 rm -f core conftest.err conftest.$ac_objext \
2568 conftest$ac_exeext conftest.$ac_ext
2570 # reset original CXXFLAGS
2571 CXXFLAGS=$OLD_CXXFLAGS
2572 LDFLAGS=$OLD_LDFLAGS;
2573 LIBS=$OLD_LIBS
2574 ac_ext=c
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582 if test "x$cuda_found" = "xyes"; then :
2584 $as_echo "#define CUDALIB_FOUND 1" >>confdefs.h
2589 ac_config_headers="$ac_config_headers include/polly/Config/config.h"
2591 cat >confcache <<\_ACEOF
2592 # This file is a shell script that caches the results of configure
2593 # tests run on this system so they can be shared between configure
2594 # scripts and configure runs, see configure's option --config-cache.
2595 # It is not useful on other systems. If it contains results you don't
2596 # want to keep, you may remove or edit it.
2598 # config.status only pays attention to the cache file if you give it
2599 # the --recheck option to rerun configure.
2601 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2602 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2603 # following values.
2605 _ACEOF
2607 # The following way of writing the cache mishandles newlines in values,
2608 # but we know of no workaround that is simple, portable, and efficient.
2609 # So, we kill variables containing newlines.
2610 # Ultrix sh set writes to stderr and can't be redirected directly,
2611 # and sets the high bit in the cache file unless we assign to the vars.
2613 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2614 eval ac_val=\$$ac_var
2615 case $ac_val in #(
2616 *${as_nl}*)
2617 case $ac_var in #(
2618 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2619 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2620 esac
2621 case $ac_var in #(
2622 _ | IFS | as_nl) ;; #(
2623 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2624 *) { eval $ac_var=; unset $ac_var;} ;;
2625 esac ;;
2626 esac
2627 done
2629 (set) 2>&1 |
2630 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2631 *${as_nl}ac_space=\ *)
2632 # `set' does not quote correctly, so add quotes: double-quote
2633 # substitution turns \\\\ into \\, and sed turns \\ into \.
2634 sed -n \
2635 "s/'/'\\\\''/g;
2636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2637 ;; #(
2639 # `set' quotes correctly as required by POSIX, so do not add quotes.
2640 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2642 esac |
2643 sort
2645 sed '
2646 /^ac_cv_env_/b end
2647 t clear
2648 :clear
2649 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2650 t end
2651 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2652 :end' >>confcache
2653 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2654 if test -w "$cache_file"; then
2655 if test "x$cache_file" != "x/dev/null"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2657 $as_echo "$as_me: updating cache $cache_file" >&6;}
2658 if test ! -f "$cache_file" || test -h "$cache_file"; then
2659 cat confcache >"$cache_file"
2660 else
2661 case $cache_file in #(
2662 */* | ?:*)
2663 mv -f confcache "$cache_file"$$ &&
2664 mv -f "$cache_file"$$ "$cache_file" ;; #(
2666 mv -f confcache "$cache_file" ;;
2667 esac
2670 else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2672 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2675 rm -f confcache
2677 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2678 # Let make expand exec_prefix.
2679 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2681 DEFS=-DHAVE_CONFIG_H
2683 ac_libobjs=
2684 ac_ltlibobjs=
2686 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2687 # 1. Remove the extension, and $U if already installed.
2688 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2689 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2690 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2691 # will be set to the directory where LIBOBJS objects are built.
2692 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2693 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2694 done
2695 LIBOBJS=$ac_libobjs
2697 LTLIBOBJS=$ac_ltlibobjs
2701 : "${CONFIG_STATUS=./config.status}"
2702 ac_write_fail=0
2703 ac_clean_files_save=$ac_clean_files
2704 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2706 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2707 as_write_fail=0
2708 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2709 #! $SHELL
2710 # Generated by $as_me.
2711 # Run this file to recreate the current configuration.
2712 # Compiler output produced by configure, useful for debugging
2713 # configure, is in config.log if it exists.
2715 debug=false
2716 ac_cs_recheck=false
2717 ac_cs_silent=false
2719 SHELL=\${CONFIG_SHELL-$SHELL}
2720 export SHELL
2721 _ASEOF
2722 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2723 ## -------------------- ##
2724 ## M4sh Initialization. ##
2725 ## -------------------- ##
2727 # Be more Bourne compatible
2728 DUALCASE=1; export DUALCASE # for MKS sh
2729 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2730 emulate sh
2731 NULLCMD=:
2732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2733 # is contrary to our usage. Disable this feature.
2734 alias -g '${1+"$@"}'='"$@"'
2735 setopt NO_GLOB_SUBST
2736 else
2737 case `(set -o) 2>/dev/null` in #(
2738 *posix*) :
2739 set -o posix ;; #(
2740 *) :
2742 esac
2746 as_nl='
2748 export as_nl
2749 # Printing a long string crashes Solaris 7 /usr/bin/printf.
2750 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2752 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2753 # Prefer a ksh shell builtin over an external printf program on Solaris,
2754 # but without wasting forks for bash or zsh.
2755 if test -z "$BASH_VERSION$ZSH_VERSION" \
2756 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2757 as_echo='print -r --'
2758 as_echo_n='print -rn --'
2759 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2760 as_echo='printf %s\n'
2761 as_echo_n='printf %s'
2762 else
2763 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2764 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2765 as_echo_n='/usr/ucb/echo -n'
2766 else
2767 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2768 as_echo_n_body='eval
2769 arg=$1;
2770 case $arg in #(
2771 *"$as_nl"*)
2772 expr "X$arg" : "X\\(.*\\)$as_nl";
2773 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2774 esac;
2775 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2777 export as_echo_n_body
2778 as_echo_n='sh -c $as_echo_n_body as_echo'
2780 export as_echo_body
2781 as_echo='sh -c $as_echo_body as_echo'
2784 # The user is always right.
2785 if test "${PATH_SEPARATOR+set}" != set; then
2786 PATH_SEPARATOR=:
2787 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2788 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2789 PATH_SEPARATOR=';'
2794 # IFS
2795 # We need space, tab and new line, in precisely that order. Quoting is
2796 # there to prevent editors from complaining about space-tab.
2797 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
2798 # splitting by setting IFS to empty value.)
2799 IFS=" "" $as_nl"
2801 # Find who we are. Look in the path if we contain no directory separator.
2802 as_myself=
2803 case $0 in #((
2804 *[\\/]* ) as_myself=$0 ;;
2805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2811 done
2812 IFS=$as_save_IFS
2815 esac
2816 # We did not find ourselves, most probably we were run as `sh COMMAND'
2817 # in which case we are not to be found in the path.
2818 if test "x$as_myself" = x; then
2819 as_myself=$0
2821 if test ! -f "$as_myself"; then
2822 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2823 exit 1
2826 # Unset variables that we do not need and which cause bugs (e.g. in
2827 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
2828 # suppresses any "Segmentation fault" message there. '((' could
2829 # trigger a bug in pdksh 5.2.14.
2830 for as_var in BASH_ENV ENV MAIL MAILPATH
2831 do eval test x\${$as_var+set} = xset \
2832 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2833 done
2834 PS1='$ '
2835 PS2='> '
2836 PS4='+ '
2838 # NLS nuisances.
2839 LC_ALL=C
2840 export LC_ALL
2841 LANGUAGE=C
2842 export LANGUAGE
2844 # CDPATH.
2845 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2848 # as_fn_error STATUS ERROR [LINENO LOG_FD]
2849 # ----------------------------------------
2850 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2851 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2852 # script with STATUS, using 1 if that was 0.
2853 as_fn_error ()
2855 as_status=$1; test $as_status -eq 0 && as_status=1
2856 if test "$4"; then
2857 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2858 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2860 $as_echo "$as_me: error: $2" >&2
2861 as_fn_exit $as_status
2862 } # as_fn_error
2865 # as_fn_set_status STATUS
2866 # -----------------------
2867 # Set $? to STATUS, without forking.
2868 as_fn_set_status ()
2870 return $1
2871 } # as_fn_set_status
2873 # as_fn_exit STATUS
2874 # -----------------
2875 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2876 as_fn_exit ()
2878 set +e
2879 as_fn_set_status $1
2880 exit $1
2881 } # as_fn_exit
2883 # as_fn_unset VAR
2884 # ---------------
2885 # Portably unset VAR.
2886 as_fn_unset ()
2888 { eval $1=; unset $1;}
2890 as_unset=as_fn_unset
2891 # as_fn_append VAR VALUE
2892 # ----------------------
2893 # Append the text in VALUE to the end of the definition contained in VAR. Take
2894 # advantage of any shell optimizations that allow amortized linear growth over
2895 # repeated appends, instead of the typical quadratic growth present in naive
2896 # implementations.
2897 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2898 eval 'as_fn_append ()
2900 eval $1+=\$2
2902 else
2903 as_fn_append ()
2905 eval $1=\$$1\$2
2907 fi # as_fn_append
2909 # as_fn_arith ARG...
2910 # ------------------
2911 # Perform arithmetic evaluation on the ARGs, and store the result in the
2912 # global $as_val. Take advantage of shells that can avoid forks. The arguments
2913 # must be portable across $(()) and expr.
2914 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2915 eval 'as_fn_arith ()
2917 as_val=$(( $* ))
2919 else
2920 as_fn_arith ()
2922 as_val=`expr "$@" || test $? -eq 1`
2924 fi # as_fn_arith
2927 if expr a : '\(a\)' >/dev/null 2>&1 &&
2928 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2929 as_expr=expr
2930 else
2931 as_expr=false
2934 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2935 as_basename=basename
2936 else
2937 as_basename=false
2940 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2941 as_dirname=dirname
2942 else
2943 as_dirname=false
2946 as_me=`$as_basename -- "$0" ||
2947 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2948 X"$0" : 'X\(//\)$' \| \
2949 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2950 $as_echo X/"$0" |
2951 sed '/^.*\/\([^/][^/]*\)\/*$/{
2952 s//\1/
2955 /^X\/\(\/\/\)$/{
2956 s//\1/
2959 /^X\/\(\/\).*/{
2960 s//\1/
2963 s/.*/./; q'`
2965 # Avoid depending upon Character Ranges.
2966 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2967 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2968 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2969 as_cr_digits='0123456789'
2970 as_cr_alnum=$as_cr_Letters$as_cr_digits
2972 ECHO_C= ECHO_N= ECHO_T=
2973 case `echo -n x` in #(((((
2974 -n*)
2975 case `echo 'xy\c'` in
2976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2977 xy) ECHO_C='\c';;
2978 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2979 ECHO_T=' ';;
2980 esac;;
2982 ECHO_N='-n';;
2983 esac
2985 rm -f conf$$ conf$$.exe conf$$.file
2986 if test -d conf$$.dir; then
2987 rm -f conf$$.dir/conf$$.file
2988 else
2989 rm -f conf$$.dir
2990 mkdir conf$$.dir 2>/dev/null
2992 if (echo >conf$$.file) 2>/dev/null; then
2993 if ln -s conf$$.file conf$$ 2>/dev/null; then
2994 as_ln_s='ln -s'
2995 # ... but there are two gotchas:
2996 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2997 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2998 # In both cases, we have to default to `cp -pR'.
2999 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3000 as_ln_s='cp -pR'
3001 elif ln conf$$.file conf$$ 2>/dev/null; then
3002 as_ln_s=ln
3003 else
3004 as_ln_s='cp -pR'
3006 else
3007 as_ln_s='cp -pR'
3009 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3010 rmdir conf$$.dir 2>/dev/null
3013 # as_fn_mkdir_p
3014 # -------------
3015 # Create "$as_dir" as a directory, including parents if necessary.
3016 as_fn_mkdir_p ()
3019 case $as_dir in #(
3020 -*) as_dir=./$as_dir;;
3021 esac
3022 test -d "$as_dir" || eval $as_mkdir_p || {
3023 as_dirs=
3024 while :; do
3025 case $as_dir in #(
3026 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3027 *) as_qdir=$as_dir;;
3028 esac
3029 as_dirs="'$as_qdir' $as_dirs"
3030 as_dir=`$as_dirname -- "$as_dir" ||
3031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3032 X"$as_dir" : 'X\(//\)[^/]' \| \
3033 X"$as_dir" : 'X\(//\)$' \| \
3034 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3035 $as_echo X"$as_dir" |
3036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3037 s//\1/
3040 /^X\(\/\/\)[^/].*/{
3041 s//\1/
3044 /^X\(\/\/\)$/{
3045 s//\1/
3048 /^X\(\/\).*/{
3049 s//\1/
3052 s/.*/./; q'`
3053 test -d "$as_dir" && break
3054 done
3055 test -z "$as_dirs" || eval "mkdir $as_dirs"
3056 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3059 } # as_fn_mkdir_p
3060 if mkdir -p . 2>/dev/null; then
3061 as_mkdir_p='mkdir -p "$as_dir"'
3062 else
3063 test -d ./-p && rmdir ./-p
3064 as_mkdir_p=false
3068 # as_fn_executable_p FILE
3069 # -----------------------
3070 # Test if FILE is an executable regular file.
3071 as_fn_executable_p ()
3073 test -f "$1" && test -x "$1"
3074 } # as_fn_executable_p
3075 as_test_x='test -x'
3076 as_executable_p=as_fn_executable_p
3078 # Sed expression to map a string onto a valid CPP name.
3079 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3081 # Sed expression to map a string onto a valid variable name.
3082 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3085 exec 6>&1
3086 ## ----------------------------------- ##
3087 ## Main body of $CONFIG_STATUS script. ##
3088 ## ----------------------------------- ##
3089 _ASEOF
3090 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3093 # Save the log message, to keep $0 and so on meaningful, and to
3094 # report actual input values of CONFIG_FILES etc. instead of their
3095 # values after options handling.
3096 ac_log="
3097 This file was extended by Polly $as_me 0.01, which was
3098 generated by GNU Autoconf 2.69. Invocation command line was
3100 CONFIG_FILES = $CONFIG_FILES
3101 CONFIG_HEADERS = $CONFIG_HEADERS
3102 CONFIG_LINKS = $CONFIG_LINKS
3103 CONFIG_COMMANDS = $CONFIG_COMMANDS
3104 $ $0 $@
3106 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3109 _ACEOF
3111 case $ac_config_files in *"
3112 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3113 esac
3115 case $ac_config_headers in *"
3116 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
3117 esac
3120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3121 # Files that config.status was made for.
3122 config_files="$ac_config_files"
3123 config_headers="$ac_config_headers"
3124 config_commands="$ac_config_commands"
3126 _ACEOF
3128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3129 ac_cs_usage="\
3130 \`$as_me' instantiates files and other configuration actions
3131 from templates according to the current configuration. Unless the files
3132 and actions are specified as TAGs, all are instantiated by default.
3134 Usage: $0 [OPTION]... [TAG]...
3136 -h, --help print this help, then exit
3137 -V, --version print version number and configuration settings, then exit
3138 --config print configuration, then exit
3139 -q, --quiet, --silent
3140 do not print progress messages
3141 -d, --debug don't remove temporary files
3142 --recheck update $as_me by reconfiguring in the same conditions
3143 --file=FILE[:TEMPLATE]
3144 instantiate the configuration file FILE
3145 --header=FILE[:TEMPLATE]
3146 instantiate the configuration header FILE
3148 Configuration files:
3149 $config_files
3151 Configuration headers:
3152 $config_headers
3154 Configuration commands:
3155 $config_commands
3157 Report bugs to <polly-dev@googlegroups.com>."
3159 _ACEOF
3160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3161 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3162 ac_cs_version="\\
3163 Polly config.status 0.01
3164 configured by $0, generated by GNU Autoconf 2.69,
3165 with options \\"\$ac_cs_config\\"
3167 Copyright (C) 2012 Free Software Foundation, Inc.
3168 This config.status script is free software; the Free Software Foundation
3169 gives unlimited permission to copy, distribute and modify it."
3171 ac_pwd='$ac_pwd'
3172 srcdir='$srcdir'
3173 test -n "\$AWK" || AWK=awk
3174 _ACEOF
3176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3177 # The default lists apply if the user does not specify any file.
3178 ac_need_defaults=:
3179 while test $# != 0
3181 case $1 in
3182 --*=?*)
3183 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3184 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3185 ac_shift=:
3187 --*=)
3188 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3189 ac_optarg=
3190 ac_shift=:
3193 ac_option=$1
3194 ac_optarg=$2
3195 ac_shift=shift
3197 esac
3199 case $ac_option in
3200 # Handling of the options.
3201 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3202 ac_cs_recheck=: ;;
3203 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3204 $as_echo "$ac_cs_version"; exit ;;
3205 --config | --confi | --conf | --con | --co | --c )
3206 $as_echo "$ac_cs_config"; exit ;;
3207 --debug | --debu | --deb | --de | --d | -d )
3208 debug=: ;;
3209 --file | --fil | --fi | --f )
3210 $ac_shift
3211 case $ac_optarg in
3212 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3213 '') as_fn_error $? "missing file argument" ;;
3214 esac
3215 as_fn_append CONFIG_FILES " '$ac_optarg'"
3216 ac_need_defaults=false;;
3217 --header | --heade | --head | --hea )
3218 $ac_shift
3219 case $ac_optarg in
3220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3221 esac
3222 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3223 ac_need_defaults=false;;
3224 --he | --h)
3225 # Conflict between --help and --header
3226 as_fn_error $? "ambiguous option: \`$1'
3227 Try \`$0 --help' for more information.";;
3228 --help | --hel | -h )
3229 $as_echo "$ac_cs_usage"; exit ;;
3230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3231 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3232 ac_cs_silent=: ;;
3234 # This is an error.
3235 -*) as_fn_error $? "unrecognized option: \`$1'
3236 Try \`$0 --help' for more information." ;;
3238 *) as_fn_append ac_config_targets " $1"
3239 ac_need_defaults=false ;;
3241 esac
3242 shift
3243 done
3245 ac_configure_extra_args=
3247 if $ac_cs_silent; then
3248 exec 6>/dev/null
3249 ac_configure_extra_args="$ac_configure_extra_args --silent"
3252 _ACEOF
3253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3254 if \$ac_cs_recheck; then
3255 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3256 shift
3257 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3258 CONFIG_SHELL='$SHELL'
3259 export CONFIG_SHELL
3260 exec "\$@"
3263 _ACEOF
3264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3265 exec 5>>config.log
3267 echo
3268 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3269 ## Running $as_me. ##
3270 _ASBOX
3271 $as_echo "$ac_log"
3272 } >&5
3274 _ACEOF
3275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3277 # INIT-COMMANDS
3279 llvm_src="${LLVM_SRC}"
3281 _ACEOF
3283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3285 # Handling of arguments.
3286 for ac_config_target in $ac_config_targets
3288 case $ac_config_target in
3289 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
3290 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
3291 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
3292 "include/polly/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/polly/Config/config.h" ;;
3294 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3295 esac
3296 done
3299 # If the user did not use the arguments to specify the items to instantiate,
3300 # then the envvar interface is used. Set only those that are not.
3301 # We use the long form for the default assignment because of an extremely
3302 # bizarre bug on SunOS 4.1.3.
3303 if $ac_need_defaults; then
3304 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3305 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3306 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3309 # Have a temporary directory for convenience. Make it in the build tree
3310 # simply because there is no reason against having it here, and in addition,
3311 # creating and moving files from /tmp can sometimes cause problems.
3312 # Hook for its removal unless debugging.
3313 # Note that there is a small window in which the directory will not be cleaned:
3314 # after its creation but before its name has been assigned to `$tmp'.
3315 $debug ||
3317 tmp= ac_tmp=
3318 trap 'exit_status=$?
3319 : "${ac_tmp:=$tmp}"
3320 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3322 trap 'as_fn_exit 1' 1 2 13 15
3324 # Create a (secure) tmp directory for tmp files.
3327 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3328 test -d "$tmp"
3329 } ||
3331 tmp=./conf$$-$RANDOM
3332 (umask 077 && mkdir "$tmp")
3333 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3334 ac_tmp=$tmp
3336 # Set up the scripts for CONFIG_FILES section.
3337 # No need to generate them if there are no CONFIG_FILES.
3338 # This happens for instance with `./config.status config.h'.
3339 if test -n "$CONFIG_FILES"; then
3342 ac_cr=`echo X | tr X '\015'`
3343 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3344 # But we know of no other shell where ac_cr would be empty at this
3345 # point, so we can use a bashism as a fallback.
3346 if test "x$ac_cr" = x; then
3347 eval ac_cr=\$\'\\r\'
3349 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3350 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3351 ac_cs_awk_cr='\\r'
3352 else
3353 ac_cs_awk_cr=$ac_cr
3356 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3357 _ACEOF
3361 echo "cat >conf$$subs.awk <<_ACEOF" &&
3362 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3363 echo "_ACEOF"
3364 } >conf$$subs.sh ||
3365 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3366 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3367 ac_delim='%!_!# '
3368 for ac_last_try in false false false false false :; do
3369 . ./conf$$subs.sh ||
3370 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3372 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3373 if test $ac_delim_n = $ac_delim_num; then
3374 break
3375 elif $ac_last_try; then
3376 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3377 else
3378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3380 done
3381 rm -f conf$$subs.sh
3383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3384 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3385 _ACEOF
3386 sed -n '
3388 s/^/S["/; s/!.*/"]=/
3391 s/^[^!]*!//
3392 :repl
3393 t repl
3394 s/'"$ac_delim"'$//
3395 t delim
3398 s/\(.\{148\}\)..*/\1/
3399 t more1
3400 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3403 b repl
3404 :more1
3405 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3408 s/.\{148\}//
3409 t nl
3410 :delim
3412 s/\(.\{148\}\)..*/\1/
3413 t more2
3414 s/["\\]/\\&/g; s/^/"/; s/$/"/
3417 :more2
3418 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3421 s/.\{148\}//
3422 t delim
3423 ' <conf$$subs.awk | sed '
3424 /^[^""]/{
3426 s/\n//
3428 ' >>$CONFIG_STATUS || ac_write_fail=1
3429 rm -f conf$$subs.awk
3430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3431 _ACAWK
3432 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3433 for (key in S) S_is_set[key] = 1
3434 FS = "\a"
3438 line = $ 0
3439 nfields = split(line, field, "@")
3440 substed = 0
3441 len = length(field[1])
3442 for (i = 2; i < nfields; i++) {
3443 key = field[i]
3444 keylen = length(key)
3445 if (S_is_set[key]) {
3446 value = S[key]
3447 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3448 len += length(value) + length(field[++i])
3449 substed = 1
3450 } else
3451 len += 1 + keylen
3454 print line
3457 _ACAWK
3458 _ACEOF
3459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3460 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3461 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3462 else
3464 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3465 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3466 _ACEOF
3468 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3469 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3470 # trailing colons and then remove the whole line if VPATH becomes empty
3471 # (actually we leave an empty line to preserve line numbers).
3472 if test "x$srcdir" = x.; then
3473 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3475 s///
3476 s/^/:/
3477 s/[ ]*$/:/
3478 s/:\$(srcdir):/:/g
3479 s/:\${srcdir}:/:/g
3480 s/:@srcdir@:/:/g
3481 s/^:*//
3482 s/:*$//
3484 s/\(=[ ]*\).*/\1/
3486 s/\n//
3487 s/^[^=]*=[ ]*$//
3491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3492 fi # test -n "$CONFIG_FILES"
3494 # Set up the scripts for CONFIG_HEADERS section.
3495 # No need to generate them if there are no CONFIG_HEADERS.
3496 # This happens for instance with `./config.status Makefile'.
3497 if test -n "$CONFIG_HEADERS"; then
3498 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
3499 BEGIN {
3500 _ACEOF
3502 # Transform confdefs.h into an awk script `defines.awk', embedded as
3503 # here-document in config.status, that substitutes the proper values into
3504 # config.h.in to produce config.h.
3506 # Create a delimiter string that does not exist in confdefs.h, to ease
3507 # handling of long lines.
3508 ac_delim='%!_!# '
3509 for ac_last_try in false false :; do
3510 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
3511 if test -z "$ac_tt"; then
3512 break
3513 elif $ac_last_try; then
3514 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
3515 else
3516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3518 done
3520 # For the awk script, D is an array of macro values keyed by name,
3521 # likewise P contains macro parameters if any. Preserve backslash
3522 # newline sequences.
3524 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
3525 sed -n '
3526 s/.\{148\}/&'"$ac_delim"'/g
3527 t rset
3528 :rset
3529 s/^[ ]*#[ ]*define[ ][ ]*/ /
3530 t def
3532 :def
3533 s/\\$//
3534 t bsnl
3535 s/["\\]/\\&/g
3536 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
3537 D["\1"]=" \3"/p
3538 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
3540 :bsnl
3541 s/["\\]/\\&/g
3542 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
3543 D["\1"]=" \3\\\\\\n"\\/p
3544 t cont
3545 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
3546 t cont
3548 :cont
3550 s/.\{148\}/&'"$ac_delim"'/g
3551 t clear
3552 :clear
3553 s/\\$//
3554 t bsnlc
3555 s/["\\]/\\&/g; s/^/"/; s/$/"/p
3557 :bsnlc
3558 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
3559 b cont
3560 ' <confdefs.h | sed '
3561 s/'"$ac_delim"'/"\\\
3562 "/g' >>$CONFIG_STATUS || ac_write_fail=1
3564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3565 for (key in D) D_is_set[key] = 1
3566 FS = "\a"
3568 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
3569 line = \$ 0
3570 split(line, arg, " ")
3571 if (arg[1] == "#") {
3572 defundef = arg[2]
3573 mac1 = arg[3]
3574 } else {
3575 defundef = substr(arg[1], 2)
3576 mac1 = arg[2]
3578 split(mac1, mac2, "(") #)
3579 macro = mac2[1]
3580 prefix = substr(line, 1, index(line, defundef) - 1)
3581 if (D_is_set[macro]) {
3582 # Preserve the white space surrounding the "#".
3583 print prefix "define", macro P[macro] D[macro]
3584 next
3585 } else {
3586 # Replace #undef with comments. This is necessary, for example,
3587 # in the case of _POSIX_SOURCE, which is predefined and required
3588 # on some systems where configure will not decide to define it.
3589 if (defundef == "undef") {
3590 print "/*", prefix defundef, macro, "*/"
3591 next
3595 { print }
3596 _ACAWK
3597 _ACEOF
3598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3599 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
3600 fi # test -n "$CONFIG_HEADERS"
3603 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
3604 shift
3605 for ac_tag
3607 case $ac_tag in
3608 :[FHLC]) ac_mode=$ac_tag; continue;;
3609 esac
3610 case $ac_mode$ac_tag in
3611 :[FHL]*:*);;
3612 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3613 :[FH]-) ac_tag=-:-;;
3614 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3615 esac
3616 ac_save_IFS=$IFS
3617 IFS=:
3618 set x $ac_tag
3619 IFS=$ac_save_IFS
3620 shift
3621 ac_file=$1
3622 shift
3624 case $ac_mode in
3625 :L) ac_source=$1;;
3626 :[FH])
3627 ac_file_inputs=
3628 for ac_f
3630 case $ac_f in
3631 -) ac_f="$ac_tmp/stdin";;
3632 *) # Look for the file first in the build tree, then in the source tree
3633 # (if the path is not absolute). The absolute path cannot be DOS-style,
3634 # because $ac_f cannot contain `:'.
3635 test -f "$ac_f" ||
3636 case $ac_f in
3637 [\\/$]*) false;;
3638 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3639 esac ||
3640 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3641 esac
3642 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3643 as_fn_append ac_file_inputs " '$ac_f'"
3644 done
3646 # Let's still pretend it is `configure' which instantiates (i.e., don't
3647 # use $as_me), people would be surprised to read:
3648 # /* config.h. Generated by config.status. */
3649 configure_input='Generated from '`
3650 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3651 `' by configure.'
3652 if test x"$ac_file" != x-; then
3653 configure_input="$ac_file. $configure_input"
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3655 $as_echo "$as_me: creating $ac_file" >&6;}
3657 # Neutralize special characters interpreted by sed in replacement strings.
3658 case $configure_input in #(
3659 *\&* | *\|* | *\\* )
3660 ac_sed_conf_input=`$as_echo "$configure_input" |
3661 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3662 *) ac_sed_conf_input=$configure_input;;
3663 esac
3665 case $ac_tag in
3666 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3668 esac
3670 esac
3672 ac_dir=`$as_dirname -- "$ac_file" ||
3673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3674 X"$ac_file" : 'X\(//\)[^/]' \| \
3675 X"$ac_file" : 'X\(//\)$' \| \
3676 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3677 $as_echo X"$ac_file" |
3678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3679 s//\1/
3682 /^X\(\/\/\)[^/].*/{
3683 s//\1/
3686 /^X\(\/\/\)$/{
3687 s//\1/
3690 /^X\(\/\).*/{
3691 s//\1/
3694 s/.*/./; q'`
3695 as_dir="$ac_dir"; as_fn_mkdir_p
3696 ac_builddir=.
3698 case "$ac_dir" in
3699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3701 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3702 # A ".." for each directory in $ac_dir_suffix.
3703 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3704 case $ac_top_builddir_sub in
3705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3707 esac ;;
3708 esac
3709 ac_abs_top_builddir=$ac_pwd
3710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
3711 # for backward compatibility:
3712 ac_top_builddir=$ac_top_build_prefix
3714 case $srcdir in
3715 .) # We are building in place.
3716 ac_srcdir=.
3717 ac_top_srcdir=$ac_top_builddir_sub
3718 ac_abs_top_srcdir=$ac_pwd ;;
3719 [\\/]* | ?:[\\/]* ) # Absolute name.
3720 ac_srcdir=$srcdir$ac_dir_suffix;
3721 ac_top_srcdir=$srcdir
3722 ac_abs_top_srcdir=$srcdir ;;
3723 *) # Relative name.
3724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3725 ac_top_srcdir=$ac_top_build_prefix$srcdir
3726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3727 esac
3728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3731 case $ac_mode in
3734 # CONFIG_FILE
3737 _ACEOF
3739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3740 # If the template does not know about datarootdir, expand it.
3741 # FIXME: This hack should be removed a few years after 2.60.
3742 ac_datarootdir_hack=; ac_datarootdir_seen=
3743 ac_sed_dataroot='
3744 /datarootdir/ {
3748 /@datadir@/p
3749 /@docdir@/p
3750 /@infodir@/p
3751 /@localedir@/p
3752 /@mandir@/p'
3753 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3754 *datarootdir*) ac_datarootdir_seen=yes;;
3755 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3757 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3758 _ACEOF
3759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3760 ac_datarootdir_hack='
3761 s&@datadir@&$datadir&g
3762 s&@docdir@&$docdir&g
3763 s&@infodir@&$infodir&g
3764 s&@localedir@&$localedir&g
3765 s&@mandir@&$mandir&g
3766 s&\\\${datarootdir}&$datarootdir&g' ;;
3767 esac
3768 _ACEOF
3770 # Neutralize VPATH when `$srcdir' = `.'.
3771 # Shell code in configure.ac might set extrasub.
3772 # FIXME: do we really want to maintain this feature?
3773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3774 ac_sed_extra="$ac_vpsub
3775 $extrasub
3776 _ACEOF
3777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3779 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3780 s|@configure_input@|$ac_sed_conf_input|;t t
3781 s&@top_builddir@&$ac_top_builddir_sub&;t t
3782 s&@top_build_prefix@&$ac_top_build_prefix&;t t
3783 s&@srcdir@&$ac_srcdir&;t t
3784 s&@abs_srcdir@&$ac_abs_srcdir&;t t
3785 s&@top_srcdir@&$ac_top_srcdir&;t t
3786 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3787 s&@builddir@&$ac_builddir&;t t
3788 s&@abs_builddir@&$ac_abs_builddir&;t t
3789 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3790 $ac_datarootdir_hack
3792 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3793 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3795 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3796 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3797 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3798 "$ac_tmp/out"`; test -z "$ac_out"; } &&
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3800 which seems to be undefined. Please make sure it is defined" >&5
3801 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3802 which seems to be undefined. Please make sure it is defined" >&2;}
3804 rm -f "$ac_tmp/stdin"
3805 case $ac_file in
3806 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3807 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3808 esac \
3809 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3813 # CONFIG_HEADER
3815 if test x"$ac_file" != x-; then
3817 $as_echo "/* $configure_input */" \
3818 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
3819 } >"$ac_tmp/config.h" \
3820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3821 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
3823 $as_echo "$as_me: $ac_file is unchanged" >&6;}
3824 else
3825 rm -f "$ac_file"
3826 mv "$ac_tmp/config.h" "$ac_file" \
3827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3829 else
3830 $as_echo "/* $configure_input */" \
3831 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
3832 || as_fn_error $? "could not create -" "$LINENO" 5
3836 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
3837 $as_echo "$as_me: executing $ac_file commands" >&6;}
3839 esac
3841 done # for ac_tag
3844 as_fn_exit 0
3845 _ACEOF
3846 ac_clean_files=$ac_clean_files_save
3848 test $ac_write_fail = 0 ||
3849 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3852 # configure is writing to config.log, and then calls config.status.
3853 # config.status does its own redirection, appending to config.log.
3854 # Unfortunately, on DOS this fails, as config.log is still kept open
3855 # by configure, so config.status won't be able to write to it; its
3856 # output is simply discarded. So we exec the FD to /dev/null,
3857 # effectively closing config.log, so it can be properly (re)opened and
3858 # appended to by config.status. When coming back to configure, we
3859 # need to make the FD available again.
3860 if test "$no_create" != yes; then
3861 ac_cs_success=:
3862 ac_config_status_args=
3863 test "$silent" = yes &&
3864 ac_config_status_args="$ac_config_status_args --quiet"
3865 exec 5>/dev/null
3866 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3867 exec 5>>config.log
3868 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3869 # would make configure fail if this is the last instruction.
3870 $ac_cs_success || as_fn_exit 1
3872 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3874 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}