blob: 27b64bf8084a02d5d318a43fca824f59f6624dd5 [file] [log] [blame]
John Criswell451f67f2003-10-16 01:45:35 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00003# Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
John Criswell451f67f2003-10-16 01:45:35 +00004#
5# Report bugs to <bugs@yourdomain>.
6#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
Dan Gohman324f6082009-03-25 00:52:11 +000015# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000016if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000025fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000026BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000027DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000028
John Criswell451f67f2003-10-16 01:45:35 +000029
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000030# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000031# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000051# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
John Criswell451f67f2003-10-16 01:45:35 +000057
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000058
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000072for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000078IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000079
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000080 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell451f67f2003-10-16 01:45:35 +0000110 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
157fi
158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
John Criswell451f67f2003-10-16 01:45:35 +0000219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell451f67f2003-10-16 01:45:35 +0000221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000224 case $as_dir in
John Criswell451f67f2003-10-16 01:45:35 +0000225 /*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
Dan Gohman324f6082009-03-25 00:52:11 +0000324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
Dan Gohman324f6082009-03-25 00:52:11 +0000326 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +0000423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +0000431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +0000438 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
John Criswell451f67f2003-10-16 01:45:35 +0000443 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +0000446 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000447 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +0000448 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000449 chmod +x "$as_me.lineno" ||
John Criswell451f67f2003-10-16 01:45:35 +0000450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +0000457 # Exit status is that of the last command.
458 exit
459}
460
461
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +0000477esac
478
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +0000481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
John Criswell451f67f2003-10-16 01:45:35 +0000493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +0000501 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +0000502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +0000509
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
Reid Spencer9964cd82005-01-01 09:26:55 +0000513 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +0000514 as_mkdir_p=false
515fi
516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +0000530
531# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000533
534# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000536
537
John Criswell451f67f2003-10-16 01:45:35 +0000538
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000539exec 7<&0 </dev/null 6>&1
John Criswell451f67f2003-10-16 01:45:35 +0000540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
John Criswell451f67f2003-10-16 01:45:35 +0000546#
547# Initializations.
548#
549ac_default_prefix=/usr/local
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000550ac_clean_files=
John Criswell451f67f2003-10-16 01:45:35 +0000551ac_config_libobj_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000552LIBOBJS=
John Criswell451f67f2003-10-16 01:45:35 +0000553cross_compiling=no
554subdirs=
555MFLAGS=
556MAKEFLAGS=
557SHELL=${CONFIG_SHELL-/bin/sh}
558
John Criswell451f67f2003-10-16 01:45:35 +0000559# Identity of this package.
560PACKAGE_NAME='[SAMPLE]'
561PACKAGE_TARNAME='--sample--'
562PACKAGE_VERSION='[x.xx]'
563PACKAGE_STRING='[SAMPLE] [x.xx]'
564PACKAGE_BUGREPORT='bugs@yourdomain'
565
566ac_unique_file=""Makefile.common.in""
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000567ac_subst_vars='SHELL
568PATH_SEPARATOR
569PACKAGE_NAME
570PACKAGE_TARNAME
571PACKAGE_VERSION
572PACKAGE_STRING
573PACKAGE_BUGREPORT
574exec_prefix
575prefix
576program_transform_name
577bindir
578sbindir
579libexecdir
580datarootdir
581datadir
582sysconfdir
583sharedstatedir
584localstatedir
585includedir
586oldincludedir
587docdir
588infodir
589htmldir
590dvidir
591pdfdir
592psdir
593libdir
594localedir
595mandir
596DEFS
597ECHO_C
598ECHO_N
599ECHO_T
600LIBS
601build_alias
602host_alias
603target_alias
604LLVM_SRC
605LLVM_OBJ
606LIBOBJS
607LTLIBOBJS'
John Criswell451f67f2003-10-16 01:45:35 +0000608ac_subst_files=''
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000609 ac_precious_vars='build_alias
610host_alias
611target_alias'
612
John Criswell451f67f2003-10-16 01:45:35 +0000613
614# Initialize some variables set by options.
615ac_init_help=
616ac_init_version=false
617# The variables have the same names as the options, with
618# dashes changed to underlines.
619cache_file=/dev/null
620exec_prefix=NONE
621no_create=
622no_recursion=
623prefix=NONE
624program_prefix=NONE
625program_suffix=NONE
626program_transform_name=s,x,x,
627silent=
628site=
629srcdir=
630verbose=
631x_includes=NONE
632x_libraries=NONE
633
634# Installation directory options.
635# These are left unexpanded so users can "make install exec_prefix=/foo"
636# and all the variables that are supposed to be based on exec_prefix
637# by default will actually change.
638# Use braces instead of parens because sh, perl, etc. also accept them.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000639# (The list follows the same order as the GNU Coding Standards.)
John Criswell451f67f2003-10-16 01:45:35 +0000640bindir='${exec_prefix}/bin'
641sbindir='${exec_prefix}/sbin'
642libexecdir='${exec_prefix}/libexec'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000643datarootdir='${prefix}/share'
644datadir='${datarootdir}'
John Criswell451f67f2003-10-16 01:45:35 +0000645sysconfdir='${prefix}/etc'
646sharedstatedir='${prefix}/com'
647localstatedir='${prefix}/var'
John Criswell451f67f2003-10-16 01:45:35 +0000648includedir='${prefix}/include'
649oldincludedir='/usr/include'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000650docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
651infodir='${datarootdir}/info'
652htmldir='${docdir}'
653dvidir='${docdir}'
654pdfdir='${docdir}'
655psdir='${docdir}'
656libdir='${exec_prefix}/lib'
657localedir='${datarootdir}/locale'
658mandir='${datarootdir}/man'
John Criswell451f67f2003-10-16 01:45:35 +0000659
660ac_prev=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000661ac_dashdash=
John Criswell451f67f2003-10-16 01:45:35 +0000662for ac_option
663do
664 # If the previous option needs an argument, assign it.
665 if test -n "$ac_prev"; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000666 eval $ac_prev=\$ac_option
John Criswell451f67f2003-10-16 01:45:35 +0000667 ac_prev=
668 continue
669 fi
670
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000671 case $ac_option in
672 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
673 *) ac_optarg=yes ;;
674 esac
John Criswell451f67f2003-10-16 01:45:35 +0000675
676 # Accept the important Cygnus configure options, so we can diagnose typos.
677
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000678 case $ac_dashdash$ac_option in
679 --)
680 ac_dashdash=yes ;;
John Criswell451f67f2003-10-16 01:45:35 +0000681
682 -bindir | --bindir | --bindi | --bind | --bin | --bi)
683 ac_prev=bindir ;;
684 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
685 bindir=$ac_optarg ;;
686
687 -build | --build | --buil | --bui | --bu)
688 ac_prev=build_alias ;;
689 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
690 build_alias=$ac_optarg ;;
691
692 -cache-file | --cache-file | --cache-fil | --cache-fi \
693 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
694 ac_prev=cache_file ;;
695 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
696 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
697 cache_file=$ac_optarg ;;
698
699 --config-cache | -C)
700 cache_file=config.cache ;;
701
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000702 -datadir | --datadir | --datadi | --datad)
John Criswell451f67f2003-10-16 01:45:35 +0000703 ac_prev=datadir ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000704 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell451f67f2003-10-16 01:45:35 +0000705 datadir=$ac_optarg ;;
706
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000707 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
708 | --dataroo | --dataro | --datar)
709 ac_prev=datarootdir ;;
710 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
711 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
712 datarootdir=$ac_optarg ;;
713
John Criswell451f67f2003-10-16 01:45:35 +0000714 -disable-* | --disable-*)
715 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
716 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000717 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000718 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
719 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000720 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000721 eval enable_$ac_feature=no ;;
722
723 -docdir | --docdir | --docdi | --doc | --do)
724 ac_prev=docdir ;;
725 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
726 docdir=$ac_optarg ;;
727
728 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
729 ac_prev=dvidir ;;
730 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
731 dvidir=$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000732
733 -enable-* | --enable-*)
734 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
735 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000736 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000737 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
738 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000739 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000740 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000741
742 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
743 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
744 | --exec | --exe | --ex)
745 ac_prev=exec_prefix ;;
746 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
747 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
748 | --exec=* | --exe=* | --ex=*)
749 exec_prefix=$ac_optarg ;;
750
751 -gas | --gas | --ga | --g)
752 # Obsolete; use --with-gas.
753 with_gas=yes ;;
754
755 -help | --help | --hel | --he | -h)
756 ac_init_help=long ;;
757 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
758 ac_init_help=recursive ;;
759 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
760 ac_init_help=short ;;
761
762 -host | --host | --hos | --ho)
763 ac_prev=host_alias ;;
764 -host=* | --host=* | --hos=* | --ho=*)
765 host_alias=$ac_optarg ;;
766
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000767 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
768 ac_prev=htmldir ;;
769 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
770 | --ht=*)
771 htmldir=$ac_optarg ;;
772
John Criswell451f67f2003-10-16 01:45:35 +0000773 -includedir | --includedir | --includedi | --included | --include \
774 | --includ | --inclu | --incl | --inc)
775 ac_prev=includedir ;;
776 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
777 | --includ=* | --inclu=* | --incl=* | --inc=*)
778 includedir=$ac_optarg ;;
779
780 -infodir | --infodir | --infodi | --infod | --info | --inf)
781 ac_prev=infodir ;;
782 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
783 infodir=$ac_optarg ;;
784
785 -libdir | --libdir | --libdi | --libd)
786 ac_prev=libdir ;;
787 -libdir=* | --libdir=* | --libdi=* | --libd=*)
788 libdir=$ac_optarg ;;
789
790 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
791 | --libexe | --libex | --libe)
792 ac_prev=libexecdir ;;
793 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
794 | --libexe=* | --libex=* | --libe=*)
795 libexecdir=$ac_optarg ;;
796
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000797 -localedir | --localedir | --localedi | --localed | --locale)
798 ac_prev=localedir ;;
799 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
800 localedir=$ac_optarg ;;
801
John Criswell451f67f2003-10-16 01:45:35 +0000802 -localstatedir | --localstatedir | --localstatedi | --localstated \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000803 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell451f67f2003-10-16 01:45:35 +0000804 ac_prev=localstatedir ;;
805 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000806 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell451f67f2003-10-16 01:45:35 +0000807 localstatedir=$ac_optarg ;;
808
809 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
810 ac_prev=mandir ;;
811 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
812 mandir=$ac_optarg ;;
813
814 -nfp | --nfp | --nf)
815 # Obsolete; use --without-fp.
816 with_fp=no ;;
817
818 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
819 | --no-cr | --no-c | -n)
820 no_create=yes ;;
821
822 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
823 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
824 no_recursion=yes ;;
825
826 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
827 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
828 | --oldin | --oldi | --old | --ol | --o)
829 ac_prev=oldincludedir ;;
830 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
831 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
832 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
833 oldincludedir=$ac_optarg ;;
834
835 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
836 ac_prev=prefix ;;
837 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
838 prefix=$ac_optarg ;;
839
840 -program-prefix | --program-prefix | --program-prefi | --program-pref \
841 | --program-pre | --program-pr | --program-p)
842 ac_prev=program_prefix ;;
843 -program-prefix=* | --program-prefix=* | --program-prefi=* \
844 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
845 program_prefix=$ac_optarg ;;
846
847 -program-suffix | --program-suffix | --program-suffi | --program-suff \
848 | --program-suf | --program-su | --program-s)
849 ac_prev=program_suffix ;;
850 -program-suffix=* | --program-suffix=* | --program-suffi=* \
851 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
852 program_suffix=$ac_optarg ;;
853
854 -program-transform-name | --program-transform-name \
855 | --program-transform-nam | --program-transform-na \
856 | --program-transform-n | --program-transform- \
857 | --program-transform | --program-transfor \
858 | --program-transfo | --program-transf \
859 | --program-trans | --program-tran \
860 | --progr-tra | --program-tr | --program-t)
861 ac_prev=program_transform_name ;;
862 -program-transform-name=* | --program-transform-name=* \
863 | --program-transform-nam=* | --program-transform-na=* \
864 | --program-transform-n=* | --program-transform-=* \
865 | --program-transform=* | --program-transfor=* \
866 | --program-transfo=* | --program-transf=* \
867 | --program-trans=* | --program-tran=* \
868 | --progr-tra=* | --program-tr=* | --program-t=*)
869 program_transform_name=$ac_optarg ;;
870
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000871 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
872 ac_prev=pdfdir ;;
873 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
874 pdfdir=$ac_optarg ;;
875
876 -psdir | --psdir | --psdi | --psd | --ps)
877 ac_prev=psdir ;;
878 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
879 psdir=$ac_optarg ;;
880
John Criswell451f67f2003-10-16 01:45:35 +0000881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
882 | -silent | --silent | --silen | --sile | --sil)
883 silent=yes ;;
884
885 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
886 ac_prev=sbindir ;;
887 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
888 | --sbi=* | --sb=*)
889 sbindir=$ac_optarg ;;
890
891 -sharedstatedir | --sharedstatedir | --sharedstatedi \
892 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
893 | --sharedst | --shareds | --shared | --share | --shar \
894 | --sha | --sh)
895 ac_prev=sharedstatedir ;;
896 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
897 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
898 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
899 | --sha=* | --sh=*)
900 sharedstatedir=$ac_optarg ;;
901
902 -site | --site | --sit)
903 ac_prev=site ;;
904 -site=* | --site=* | --sit=*)
905 site=$ac_optarg ;;
906
907 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
908 ac_prev=srcdir ;;
909 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
910 srcdir=$ac_optarg ;;
911
912 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
913 | --syscon | --sysco | --sysc | --sys | --sy)
914 ac_prev=sysconfdir ;;
915 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
916 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
917 sysconfdir=$ac_optarg ;;
918
919 -target | --target | --targe | --targ | --tar | --ta | --t)
920 ac_prev=target_alias ;;
921 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
922 target_alias=$ac_optarg ;;
923
924 -v | -verbose | --verbose | --verbos | --verbo | --verb)
925 verbose=yes ;;
926
927 -version | --version | --versio | --versi | --vers | -V)
928 ac_init_version=: ;;
929
930 -with-* | --with-*)
931 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000933 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000934 { echo "$as_me: error: invalid package name: $ac_package" >&2
935 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000936 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000937 eval with_$ac_package=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000938
939 -without-* | --without-*)
940 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
941 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000942 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000943 { echo "$as_me: error: invalid package name: $ac_package" >&2
944 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000945 ac_package=`echo $ac_package | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000946 eval with_$ac_package=no ;;
John Criswell451f67f2003-10-16 01:45:35 +0000947
948 --x)
949 # Obsolete; use --with-x.
950 with_x=yes ;;
951
952 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
953 | --x-incl | --x-inc | --x-in | --x-i)
954 ac_prev=x_includes ;;
955 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
956 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
957 x_includes=$ac_optarg ;;
958
959 -x-libraries | --x-libraries | --x-librarie | --x-librari \
960 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
961 ac_prev=x_libraries ;;
962 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
963 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
964 x_libraries=$ac_optarg ;;
965
966 -*) { echo "$as_me: error: unrecognized option: $ac_option
967Try \`$0 --help' for more information." >&2
968 { (exit 1); exit 1; }; }
969 ;;
970
971 *=*)
972 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
975 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
976 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000977 eval $ac_envvar=\$ac_optarg
John Criswell451f67f2003-10-16 01:45:35 +0000978 export $ac_envvar ;;
979
980 *)
981 # FIXME: should be removed in autoconf 3.0.
982 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
983 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
984 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
985 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
986 ;;
987
988 esac
989done
990
991if test -n "$ac_prev"; then
992 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
993 { echo "$as_me: error: missing argument to $ac_option" >&2
994 { (exit 1); exit 1; }; }
995fi
996
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000997# Be sure to have absolute directory names.
998for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
999 datadir sysconfdir sharedstatedir localstatedir includedir \
1000 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1001 libdir localedir mandir
John Criswell451f67f2003-10-16 01:45:35 +00001002do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001003 eval ac_val=\$$ac_var
John Criswell451f67f2003-10-16 01:45:35 +00001004 case $ac_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001005 [\\/$]* | ?:[\\/]* ) continue;;
1006 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell451f67f2003-10-16 01:45:35 +00001007 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001008 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1009 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001010done
1011
1012# There might be people who depend on the old broken behavior: `$host'
1013# used to hold the argument of --host etc.
1014# FIXME: To remove some day.
1015build=$build_alias
1016host=$host_alias
1017target=$target_alias
1018
1019# FIXME: To remove some day.
1020if test "x$host_alias" != x; then
1021 if test "x$build_alias" = x; then
1022 cross_compiling=maybe
1023 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1024 If a cross compiler is detected then cross compile mode will be used." >&2
1025 elif test "x$build_alias" != "x$host_alias"; then
1026 cross_compiling=yes
1027 fi
1028fi
1029
1030ac_tool_prefix=
1031test -n "$host_alias" && ac_tool_prefix=$host_alias-
1032
1033test "$silent" = yes && exec 6>/dev/null
1034
1035
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001036ac_pwd=`pwd` && test -n "$ac_pwd" &&
1037ac_ls_di=`ls -di .` &&
1038ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1039 { echo "$as_me: error: Working directory cannot be determined" >&2
1040 { (exit 1); exit 1; }; }
1041test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1042 { echo "$as_me: error: pwd does not report name of working directory" >&2
1043 { (exit 1); exit 1; }; }
1044
1045
John Criswell451f67f2003-10-16 01:45:35 +00001046# Find the source files, if location was not specified.
1047if test -z "$srcdir"; then
1048 ac_srcdir_defaulted=yes
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001049 # Try the directory containing this script, then the parent directory.
1050 ac_confdir=`$as_dirname -- "$0" ||
John Criswell451f67f2003-10-16 01:45:35 +00001051$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00001052 X"$0" : 'X\(//\)[^/]' \| \
1053 X"$0" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001054 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00001055echo X"$0" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1057 s//\1/
1058 q
1059 }
1060 /^X\(\/\/\)[^/].*/{
1061 s//\1/
1062 q
1063 }
1064 /^X\(\/\/\)$/{
1065 s//\1/
1066 q
1067 }
1068 /^X\(\/\).*/{
1069 s//\1/
1070 q
1071 }
1072 s/.*/./; q'`
John Criswell451f67f2003-10-16 01:45:35 +00001073 srcdir=$ac_confdir
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001074 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell451f67f2003-10-16 01:45:35 +00001075 srcdir=..
1076 fi
1077else
1078 ac_srcdir_defaulted=no
1079fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001080if test ! -r "$srcdir/$ac_unique_file"; then
1081 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1082 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001083 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +00001084fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001085ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1086ac_abs_confdir=`(
1087 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Dan Gohman324f6082009-03-25 00:52:11 +00001088 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001089 pwd)`
1090# When building in place, set srcdir=.
1091if test "$ac_abs_confdir" = "$ac_pwd"; then
1092 srcdir=.
1093fi
1094# Remove unnecessary trailing slashes from srcdir.
1095# Double slashes in file names in object file debugging info
1096# mess up M-x gdb in Emacs.
1097case $srcdir in
1098*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1099esac
1100for ac_var in $ac_precious_vars; do
1101 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1102 eval ac_env_${ac_var}_value=\$${ac_var}
1103 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1104 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1105done
John Criswell451f67f2003-10-16 01:45:35 +00001106
1107#
1108# Report the --help message.
1109#
1110if test "$ac_init_help" = "long"; then
1111 # Omit some internal or obsolete options to make the list less imposing.
1112 # This message is too long to be a string in the A/UX 3.1 sh.
1113 cat <<_ACEOF
1114\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1115
1116Usage: $0 [OPTION]... [VAR=VALUE]...
1117
1118To assign environment variables (e.g., CC, CFLAGS...), specify them as
1119VAR=VALUE. See below for descriptions of some of the useful variables.
1120
1121Defaults for the options are specified in brackets.
1122
1123Configuration:
1124 -h, --help display this help and exit
1125 --help=short display options specific to this package
1126 --help=recursive display the short help of all the included packages
1127 -V, --version display version information and exit
1128 -q, --quiet, --silent do not print \`checking...' messages
1129 --cache-file=FILE cache test results in FILE [disabled]
1130 -C, --config-cache alias for \`--cache-file=config.cache'
1131 -n, --no-create do not create output files
1132 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1133
John Criswell451f67f2003-10-16 01:45:35 +00001134Installation directories:
1135 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001136 [$ac_default_prefix]
John Criswell451f67f2003-10-16 01:45:35 +00001137 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001138 [PREFIX]
John Criswell451f67f2003-10-16 01:45:35 +00001139
1140By default, \`make install' will install all the files in
1141\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1142an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1143for instance \`--prefix=\$HOME'.
1144
1145For better control, use the options below.
1146
1147Fine tuning of the installation directories:
1148 --bindir=DIR user executables [EPREFIX/bin]
1149 --sbindir=DIR system admin executables [EPREFIX/sbin]
1150 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell451f67f2003-10-16 01:45:35 +00001151 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1152 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1153 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1154 --libdir=DIR object code libraries [EPREFIX/lib]
1155 --includedir=DIR C header files [PREFIX/include]
1156 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001157 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1158 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1159 --infodir=DIR info documentation [DATAROOTDIR/info]
1160 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1161 --mandir=DIR man documentation [DATAROOTDIR/man]
1162 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1163 --htmldir=DIR html documentation [DOCDIR]
1164 --dvidir=DIR dvi documentation [DOCDIR]
1165 --pdfdir=DIR pdf documentation [DOCDIR]
1166 --psdir=DIR ps documentation [DOCDIR]
John Criswell451f67f2003-10-16 01:45:35 +00001167_ACEOF
1168
1169 cat <<\_ACEOF
1170_ACEOF
1171fi
1172
1173if test -n "$ac_init_help"; then
1174 case $ac_init_help in
1175 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1176 esac
1177 cat <<\_ACEOF
1178
1179Optional Packages:
1180 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1181 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1182 --with-llvmsrc Location of LLVM Source Code
1183 --with-llvmobj Location of LLVM Object Code
1184
1185Report bugs to <bugs@yourdomain>.
1186_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001187ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001188fi
1189
1190if test "$ac_init_help" = "recursive"; then
1191 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001192 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001193 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001194 ac_builddir=.
1195
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001196case "$ac_dir" in
1197.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1198*)
John Criswell451f67f2003-10-16 01:45:35 +00001199 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001200 # A ".." for each directory in $ac_dir_suffix.
1201 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1202 case $ac_top_builddir_sub in
1203 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1204 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1205 esac ;;
1206esac
1207ac_abs_top_builddir=$ac_pwd
1208ac_abs_builddir=$ac_pwd$ac_dir_suffix
1209# for backward compatibility:
1210ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001211
1212case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001213 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001214 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001215 ac_top_srcdir=$ac_top_builddir_sub
1216 ac_abs_top_srcdir=$ac_pwd ;;
1217 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001218 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001219 ac_top_srcdir=$srcdir
1220 ac_abs_top_srcdir=$srcdir ;;
1221 *) # Relative name.
1222 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1223 ac_top_srcdir=$ac_top_build_prefix$srcdir
1224 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001225esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001226ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001227
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001228 cd "$ac_dir" || { ac_status=$?; continue; }
1229 # Check for guested configure.
1230 if test -f "$ac_srcdir/configure.gnu"; then
1231 echo &&
1232 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1233 elif test -f "$ac_srcdir/configure"; then
1234 echo &&
1235 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001236 else
1237 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001238 fi || ac_status=$?
1239 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001240 done
1241fi
1242
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001243test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001244if $ac_init_version; then
1245 cat <<\_ACEOF
1246[SAMPLE] configure [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001247generated by GNU Autoconf 2.60
John Criswell451f67f2003-10-16 01:45:35 +00001248
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001249Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
12502002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001251This configure script is free software; the Free Software Foundation
1252gives unlimited permission to copy, distribute and modify it.
1253_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001254 exit
John Criswell451f67f2003-10-16 01:45:35 +00001255fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001256cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001257This file contains any messages produced by compilers while
1258running configure, to aid debugging if configure makes a mistake.
1259
1260It was created by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001261generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001262
1263 $ $0 $@
1264
1265_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001266exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001267{
1268cat <<_ASUNAME
1269## --------- ##
1270## Platform. ##
1271## --------- ##
1272
1273hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1274uname -m = `(uname -m) 2>/dev/null || echo unknown`
1275uname -r = `(uname -r) 2>/dev/null || echo unknown`
1276uname -s = `(uname -s) 2>/dev/null || echo unknown`
1277uname -v = `(uname -v) 2>/dev/null || echo unknown`
1278
1279/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1280/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1281
1282/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1283/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1284/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001285/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001286/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1287/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1288/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1289
1290_ASUNAME
1291
1292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1293for as_dir in $PATH
1294do
1295 IFS=$as_save_IFS
1296 test -z "$as_dir" && as_dir=.
1297 echo "PATH: $as_dir"
1298done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001299IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001300
1301} >&5
1302
1303cat >&5 <<_ACEOF
1304
1305
1306## ----------- ##
1307## Core tests. ##
1308## ----------- ##
1309
1310_ACEOF
1311
1312
1313# Keep a trace of the command line.
1314# Strip out --no-create and --no-recursion so they do not pile up.
1315# Strip out --silent because we don't want to record it for future runs.
1316# Also quote any args containing shell meta-characters.
1317# Make two passes to allow for proper duplicate-argument suppression.
1318ac_configure_args=
1319ac_configure_args0=
1320ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001321ac_must_keep_next=false
1322for ac_pass in 1 2
1323do
1324 for ac_arg
1325 do
1326 case $ac_arg in
1327 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1329 | -silent | --silent | --silen | --sile | --sil)
1330 continue ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001331 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001332 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1333 esac
1334 case $ac_pass in
1335 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1336 2)
1337 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1338 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001339 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001340 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001341 case $ac_arg in
1342 *=* | --config-cache | -C | -disable-* | --disable-* \
1343 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1344 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1345 | -with-* | --with-* | -without-* | --without-* | --x)
1346 case "$ac_configure_args0 " in
1347 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1348 esac
1349 ;;
1350 -* ) ac_must_keep_next=true ;;
1351 esac
John Criswell451f67f2003-10-16 01:45:35 +00001352 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001353 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001354 ;;
1355 esac
1356 done
1357done
1358$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1359$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1360
1361# When interrupted or exit'd, cleanup temporary files, and complete
1362# config.log. We remove comments because anyway the quotes in there
1363# would cause problems or look ugly.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001364# WARNING: Use '\'' to represent an apostrophe within the trap.
1365# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001366trap 'exit_status=$?
1367 # Save into config.log some information that might help in debugging.
1368 {
1369 echo
1370
1371 cat <<\_ASBOX
1372## ---------------- ##
1373## Cache variables. ##
1374## ---------------- ##
1375_ASBOX
1376 echo
1377 # The following way of writing the cache mishandles newlines in values,
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001378(
1379 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1380 eval ac_val=\$$ac_var
1381 case $ac_val in #(
1382 *${as_nl}*)
1383 case $ac_var in #(
1384 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1385echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1386 esac
1387 case $ac_var in #(
1388 _ | IFS | as_nl) ;; #(
1389 *) $as_unset $ac_var ;;
1390 esac ;;
1391 esac
1392 done
John Criswell451f67f2003-10-16 01:45:35 +00001393 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001394 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1395 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001396 sed -n \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001397 "s/'\''/'\''\\\\'\'''\''/g;
1398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1399 ;; #(
Dan Gohman324f6082009-03-25 00:52:11 +00001400 *)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Dan Gohman324f6082009-03-25 00:52:11 +00001402 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001403 esac |
1404 sort
1405)
John Criswell451f67f2003-10-16 01:45:35 +00001406 echo
1407
1408 cat <<\_ASBOX
1409## ----------------- ##
1410## Output variables. ##
1411## ----------------- ##
1412_ASBOX
1413 echo
1414 for ac_var in $ac_subst_vars
1415 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001416 eval ac_val=\$$ac_var
1417 case $ac_val in
1418 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1419 esac
1420 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001421 done | sort
1422 echo
1423
1424 if test -n "$ac_subst_files"; then
1425 cat <<\_ASBOX
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001426## ------------------- ##
1427## File substitutions. ##
1428## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001429_ASBOX
1430 echo
1431 for ac_var in $ac_subst_files
1432 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001433 eval ac_val=\$$ac_var
1434 case $ac_val in
1435 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1436 esac
1437 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001438 done | sort
1439 echo
1440 fi
1441
1442 if test -s confdefs.h; then
1443 cat <<\_ASBOX
1444## ----------- ##
1445## confdefs.h. ##
1446## ----------- ##
1447_ASBOX
1448 echo
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001449 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001450 echo
1451 fi
1452 test "$ac_signal" != 0 &&
1453 echo "$as_me: caught signal $ac_signal"
1454 echo "$as_me: exit $exit_status"
1455 } >&5
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001456 rm -f core *.core core.conftest.* &&
1457 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001458 exit $exit_status
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001459' 0
John Criswell451f67f2003-10-16 01:45:35 +00001460for ac_signal in 1 2 13 15; do
1461 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1462done
1463ac_signal=0
1464
1465# confdefs.h avoids OS command line length limits that DEFS can exceed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001466rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001467
1468# Predefined preprocessor variables.
1469
1470cat >>confdefs.h <<_ACEOF
1471#define PACKAGE_NAME "$PACKAGE_NAME"
1472_ACEOF
1473
1474
1475cat >>confdefs.h <<_ACEOF
1476#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1477_ACEOF
1478
1479
1480cat >>confdefs.h <<_ACEOF
1481#define PACKAGE_VERSION "$PACKAGE_VERSION"
1482_ACEOF
1483
1484
1485cat >>confdefs.h <<_ACEOF
1486#define PACKAGE_STRING "$PACKAGE_STRING"
1487_ACEOF
1488
1489
1490cat >>confdefs.h <<_ACEOF
1491#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1492_ACEOF
1493
1494
1495# Let the site file select an alternate cache file if it wants to.
1496# Prefer explicitly selected file to automatically selected ones.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001497if test -n "$CONFIG_SITE"; then
1498 set x "$CONFIG_SITE"
1499elif test "x$prefix" != xNONE; then
1500 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1501else
1502 set x "$ac_default_prefix/share/config.site" \
1503 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001504fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001505shift
1506for ac_site_file
1507do
John Criswell451f67f2003-10-16 01:45:35 +00001508 if test -r "$ac_site_file"; then
1509 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1510echo "$as_me: loading site script $ac_site_file" >&6;}
1511 sed 's/^/| /' "$ac_site_file" >&5
1512 . "$ac_site_file"
1513 fi
1514done
1515
1516if test -r "$cache_file"; then
1517 # Some versions of bash will fail to source /dev/null (special
1518 # files actually), so we avoid doing that.
1519 if test -f "$cache_file"; then
1520 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1521echo "$as_me: loading cache $cache_file" >&6;}
1522 case $cache_file in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001523 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1524 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001525 esac
1526 fi
1527else
1528 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1529echo "$as_me: creating cache $cache_file" >&6;}
1530 >$cache_file
1531fi
1532
1533# Check that the precious variables saved in the cache have kept the same
1534# value.
1535ac_cache_corrupted=false
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001536for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1538 eval ac_new_set=\$ac_env_${ac_var}_set
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1540 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001541 case $ac_old_set,$ac_new_set in
1542 set,)
1543 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1544echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1545 ac_cache_corrupted=: ;;
1546 ,set)
1547 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1548echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1549 ac_cache_corrupted=: ;;
1550 ,);;
1551 *)
1552 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001553 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001554echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001555 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001556echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001557 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001558echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001559 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001560 fi;;
1561 esac
1562 # Pass precious variables to config.status.
1563 if test "$ac_new_set" = set; then
1564 case $ac_new_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001565 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001566 *) ac_arg=$ac_var=$ac_new_val ;;
1567 esac
1568 case " $ac_configure_args " in
1569 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1570 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1571 esac
1572 fi
1573done
1574if $ac_cache_corrupted; then
1575 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1576echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1577 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1578echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1579 { (exit 1); exit 1; }; }
1580fi
1581
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
John Criswell451f67f2003-10-16 01:45:35 +00001606ac_ext=c
1607ac_cpp='$CPP $CPPFLAGS'
1608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1610ac_compiler_gnu=$ac_cv_c_compiler_gnu
1611
1612
1613
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001614LLVM_SRC_ROOT="../.."
1615LLVM_OBJ_ROOT="../.."
1616
1617LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1618LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
Dan Gohman324f6082009-03-25 00:52:11 +00001619
1620
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001621# Check whether --with-llvmsrc was given.
1622if test "${with_llvmsrc+set}" = set; then
1623 withval=$with_llvmsrc; llvm_src="$withval"
1624else
1625 llvm_src="$LLVM_ABS_SRC_ROOT"
1626fi
1627
1628 LLVM_SRC=$llvm_src
Dan Gohman324f6082009-03-25 00:52:11 +00001629
1630
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001631# Check whether --with-llvmobj was given.
1632if test "${with_llvmobj+set}" = set; then
1633 withval=$with_llvmobj; llvm_obj="$withval"
1634else
1635 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1636fi
Dan Gohman324f6082009-03-25 00:52:11 +00001637
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001638 LLVM_OBJ=$llvm_obj
Dan Gohman324f6082009-03-25 00:52:11 +00001639
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001640 ac_config_commands="$ac_config_commands setup"
Dan Gohman324f6082009-03-25 00:52:11 +00001641
1642
1643
John Criswell451f67f2003-10-16 01:45:35 +00001644ac_aux_dir=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001645for ac_dir in $LLVM_SRC/autoconf "$srcdir"/$LLVM_SRC/autoconf; do
1646 if test -f "$ac_dir/install-sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001647 ac_aux_dir=$ac_dir
1648 ac_install_sh="$ac_aux_dir/install-sh -c"
1649 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001650 elif test -f "$ac_dir/install.sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001651 ac_aux_dir=$ac_dir
1652 ac_install_sh="$ac_aux_dir/install.sh -c"
1653 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001654 elif test -f "$ac_dir/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001655 ac_aux_dir=$ac_dir
1656 ac_install_sh="$ac_aux_dir/shtool install -c"
1657 break
1658 fi
1659done
1660if test -z "$ac_aux_dir"; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001661 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $LLVM_SRC/autoconf \"$srcdir\"/$LLVM_SRC/autoconf" >&5
1662echo "$as_me: error: cannot find install-sh or install.sh in $LLVM_SRC/autoconf \"$srcdir\"/$LLVM_SRC/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001663 { (exit 1); exit 1; }; }
1664fi
John Criswell451f67f2003-10-16 01:45:35 +00001665
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001666# These three variables are undocumented and unsupported,
1667# and are intended to be withdrawn in a future Autoconf release.
1668# They can cause serious problems if a builder's source tree is in a directory
1669# whose full name contains unusual characters.
1670ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1671ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1672ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Reid Spencer421ec052005-02-24 18:53:47 +00001673
1674
1675
1676
1677
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001678ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +00001679
1680
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001681ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +00001682
1683
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001684ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +00001685
1686
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001687ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +00001688
1689
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001690ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +00001691
1692
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001693ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +00001694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
John Criswell451f67f2003-10-16 01:45:35 +00001706cat >confcache <<\_ACEOF
1707# This file is a shell script that caches the results of configure
1708# tests run on this system so they can be shared between configure
1709# scripts and configure runs, see configure's option --config-cache.
1710# It is not useful on other systems. If it contains results you don't
1711# want to keep, you may remove or edit it.
1712#
1713# config.status only pays attention to the cache file if you give it
1714# the --recheck option to rerun configure.
1715#
1716# `ac_cv_env_foo' variables (set or unset) will be overridden when
1717# loading this file, other *unset* `ac_cv_foo' will be assigned the
1718# following values.
1719
1720_ACEOF
1721
1722# The following way of writing the cache mishandles newlines in values,
1723# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001724# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +00001725# Ultrix sh set writes to stderr and can't be redirected directly,
1726# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001727(
1728 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1729 eval ac_val=\$$ac_var
1730 case $ac_val in #(
1731 *${as_nl}*)
1732 case $ac_var in #(
1733 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1734echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1735 esac
1736 case $ac_var in #(
1737 _ | IFS | as_nl) ;; #(
1738 *) $as_unset $ac_var ;;
1739 esac ;;
1740 esac
1741 done
1742
John Criswell451f67f2003-10-16 01:45:35 +00001743 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001744 case $as_nl`(ac_space=' '; set) 2>&1` in #(
1745 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001746 # `set' does not quote correctly, so add quotes (double-quote
1747 # substitution turns \\\\ into \\, and sed turns \\ into \).
1748 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +00001749 "s/'/'\\\\''/g;
1750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001751 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +00001752 *)
1753 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +00001755 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001756 esac |
1757 sort
1758) |
John Criswell451f67f2003-10-16 01:45:35 +00001759 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001760 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +00001761 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001762 :clear
John Criswell451f67f2003-10-16 01:45:35 +00001763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1764 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001765 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1766 :end' >>confcache
1767if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1768 if test -w "$cache_file"; then
1769 test "x$cache_file" != "x/dev/null" &&
1770 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
1771echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +00001772 cat confcache >$cache_file
1773 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001774 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
1775echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +00001776 fi
1777fi
1778rm -f confcache
1779
1780test "x$prefix" = xNONE && prefix=$ac_default_prefix
1781# Let make expand exec_prefix.
1782test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1783
John Criswell451f67f2003-10-16 01:45:35 +00001784# Transform confdefs.h into DEFS.
1785# Protect against shell expansion while executing Makefile rules.
1786# Protect against Makefile macro expansion.
1787#
1788# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001789# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +00001790# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001791ac_script='
John Criswell451f67f2003-10-16 01:45:35 +00001792t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001793:clear
1794s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +00001795t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001796s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +00001797t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001798b any
1799:quote
1800s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
1801s/\[/\\&/g
1802s/\]/\\&/g
1803s/\$/$$/g
1804H
1805:any
1806${
1807 g
1808 s/^\n//
1809 s/\n/ /g
1810 p
1811}
1812'
1813DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +00001814
1815
1816ac_libobjs=
1817ac_ltlibobjs=
1818for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1819 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001820 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1821 ac_i=`echo "$ac_i" | sed "$ac_script"`
1822 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
1823 # will be set to the directory where LIBOBJS objects are built.
1824 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1825 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +00001826done
1827LIBOBJS=$ac_libobjs
1828
1829LTLIBOBJS=$ac_ltlibobjs
1830
1831
1832
1833: ${CONFIG_STATUS=./config.status}
1834ac_clean_files_save=$ac_clean_files
1835ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1836{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
1837echo "$as_me: creating $CONFIG_STATUS" >&6;}
1838cat >$CONFIG_STATUS <<_ACEOF
1839#! $SHELL
1840# Generated by $as_me.
1841# Run this file to recreate the current configuration.
1842# Compiler output produced by configure, useful for debugging
1843# configure, is in config.log if it exists.
1844
1845debug=false
1846ac_cs_recheck=false
1847ac_cs_silent=false
1848SHELL=\${CONFIG_SHELL-$SHELL}
1849_ACEOF
1850
1851cat >>$CONFIG_STATUS <<\_ACEOF
1852## --------------------- ##
1853## M4sh Initialization. ##
1854## --------------------- ##
1855
Dan Gohman324f6082009-03-25 00:52:11 +00001856# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +00001857if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1858 emulate sh
1859 NULLCMD=:
1860 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1861 # is contrary to our usage. Disable this feature.
1862 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001863 setopt NO_GLOB_SUBST
1864else
1865 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +00001866fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001867BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +00001868DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +00001869
John Criswell451f67f2003-10-16 01:45:35 +00001870
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001871# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +00001872# Avoid depending upon Character Ranges.
1873as_cr_letters='abcdefghijklmnopqrstuvwxyz'
1874as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1875as_cr_Letters=$as_cr_letters$as_cr_LETTERS
1876as_cr_digits='0123456789'
1877as_cr_alnum=$as_cr_Letters$as_cr_digits
1878
1879# The user is always right.
1880if test "${PATH_SEPARATOR+set}" != set; then
1881 echo "#! /bin/sh" >conf$$.sh
1882 echo "exit 0" >>conf$$.sh
1883 chmod +x conf$$.sh
1884 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1885 PATH_SEPARATOR=';'
1886 else
1887 PATH_SEPARATOR=:
1888 fi
1889 rm -f conf$$.sh
1890fi
1891
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001892# Support unset when possible.
1893if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1894 as_unset=unset
1895else
1896 as_unset=false
1897fi
John Criswell451f67f2003-10-16 01:45:35 +00001898
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001899
1900# IFS
1901# We need space, tab and new line, in precisely that order. Quoting is
1902# there to prevent editors from complaining about space-tab.
1903# (If _AS_PATH_WALK were called with IFS unset, it would disable word
1904# splitting by setting IFS to empty value.)
1905as_nl='
1906'
1907IFS=" "" $as_nl"
1908
1909# Find who we are. Look in the path if we contain no directory separator.
1910case $0 in
1911 *[\\/]* ) as_myself=$0 ;;
1912 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +00001913for as_dir in $PATH
1914do
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1918done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001919IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001920
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001921 ;;
1922esac
1923# We did not find ourselves, most probably we were run as `sh COMMAND'
1924# in which case we are not to be found in the path.
1925if test "x$as_myself" = x; then
1926 as_myself=$0
1927fi
1928if test ! -f "$as_myself"; then
1929 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1930 { (exit 1); exit 1; }
1931fi
1932
1933# Work around bugs in pre-3.0 UWIN ksh.
1934for as_var in ENV MAIL MAILPATH
1935do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1936done
1937PS1='$ '
1938PS2='> '
1939PS4='+ '
1940
1941# NLS nuisances.
1942for as_var in \
1943 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
1944 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
1945 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +00001946do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001947 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1948 eval $as_var=C; export $as_var
1949 else
1950 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1951 fi
1952done
1953
1954# Required to use basename.
1955if expr a : '\(a\)' >/dev/null 2>&1 &&
1956 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1957 as_expr=expr
1958else
1959 as_expr=false
1960fi
1961
1962if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1963 as_basename=basename
1964else
1965 as_basename=false
1966fi
1967
1968
1969# Name of the executable.
1970as_me=`$as_basename -- "$0" ||
1971$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1972 X"$0" : 'X\(//\)$' \| \
1973 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1974echo X/"$0" |
1975 sed '/^.*\/\([^/][^/]*\)\/*$/{
1976 s//\1/
1977 q
1978 }
1979 /^X\/\(\/\/\)$/{
1980 s//\1/
1981 q
1982 }
1983 /^X\/\(\/\).*/{
1984 s//\1/
1985 q
1986 }
1987 s/.*/./; q'`
1988
1989# CDPATH.
1990$as_unset CDPATH
1991
1992
1993
John Criswell451f67f2003-10-16 01:45:35 +00001994 as_lineno_1=$LINENO
1995 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +00001996 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001997 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +00001998
1999 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2000 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002001 # line-number line after each line using $LINENO; the second 'sed'
2002 # does the real work. The second script uses 'N' to pair each
2003 # line-number line with the line containing $LINENO, and appends
2004 # trailing '-' during substitution so that $LINENO is not a special
2005 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +00002006 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002007 # scripts with optimization help from Paolo Bonzini. Blame Lee
2008 # E. McMahon (1931-1989) for sed's syntax. :-)
2009 sed -n '
2010 p
2011 /[$]LINENO/=
2012 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +00002013 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002014 s/[$]LINENO.*/&-/
2015 t lineno
2016 b
2017 :lineno
John Criswell451f67f2003-10-16 01:45:35 +00002018 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002019 :loop
2020 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +00002021 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002022 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +00002023 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002024 chmod +x "$as_me.lineno" ||
2025 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +00002026 { (exit 1); exit 1; }; }
2027
2028 # Don't try to exec as it changes $[0], causing all sort of problems
2029 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002030 # original and so on. Autoconf is especially sensitive to this).
2031 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +00002032 # Exit status is that of the last command.
2033 exit
2034}
2035
2036
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002037if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2038 as_dirname=dirname
2039else
2040 as_dirname=false
2041fi
2042
2043ECHO_C= ECHO_N= ECHO_T=
2044case `echo -n x` in
2045-n*)
2046 case `echo 'x\c'` in
2047 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2048 *) ECHO_C='\c';;
2049 esac;;
2050*)
2051 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +00002052esac
2053
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002054if expr a : '\(a\)' >/dev/null 2>&1 &&
2055 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +00002056 as_expr=expr
2057else
2058 as_expr=false
2059fi
2060
2061rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002062if test -d conf$$.dir; then
2063 rm -f conf$$.dir/conf$$.file
2064else
2065 rm -f conf$$.dir
2066 mkdir conf$$.dir
2067fi
John Criswell451f67f2003-10-16 01:45:35 +00002068echo >conf$$.file
2069if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002070 as_ln_s='ln -s'
2071 # ... but there are two gotchas:
2072 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2073 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2074 # In both cases, we have to default to `cp -p'.
2075 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +00002076 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +00002077elif ln conf$$.file conf$$ 2>/dev/null; then
2078 as_ln_s=ln
2079else
2080 as_ln_s='cp -p'
2081fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002082rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2083rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +00002084
2085if mkdir -p . 2>/dev/null; then
2086 as_mkdir_p=:
2087else
Reid Spencer9964cd82005-01-01 09:26:55 +00002088 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +00002089 as_mkdir_p=false
2090fi
2091
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002092# Find out whether ``test -x'' works. Don't use a zero-byte file, as
2093# systems may use methods other than mode bits to determine executability.
2094cat >conf$$.file <<_ASEOF
2095#! /bin/sh
2096exit 0
2097_ASEOF
2098chmod +x conf$$.file
2099if test -x conf$$.file >/dev/null 2>&1; then
2100 as_executable_p="test -x"
2101else
2102 as_executable_p=:
2103fi
2104rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +00002105
2106# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +00002107as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +00002108
2109# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +00002110as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +00002111
2112
John Criswell451f67f2003-10-16 01:45:35 +00002113exec 6>&1
2114
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002115# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +00002116# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002117# values after options handling.
2118ac_log="
John Criswell451f67f2003-10-16 01:45:35 +00002119This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002120generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00002121
2122 CONFIG_FILES = $CONFIG_FILES
2123 CONFIG_HEADERS = $CONFIG_HEADERS
2124 CONFIG_LINKS = $CONFIG_LINKS
2125 CONFIG_COMMANDS = $CONFIG_COMMANDS
2126 $ $0 $@
2127
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002128on `(hostname || uname -n) 2>/dev/null | sed 1q`
2129"
2130
John Criswell451f67f2003-10-16 01:45:35 +00002131_ACEOF
2132
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002133cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00002134# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002135config_files="$ac_config_files"
2136config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +00002137
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002138_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00002139
2140cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00002141ac_cs_usage="\
2142\`$as_me' instantiates files from templates according to the
2143current configuration.
2144
2145Usage: $0 [OPTIONS] [FILE]...
2146
2147 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +00002148 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +00002149 -q, --quiet do not print progress messages
2150 -d, --debug don't remove temporary files
2151 --recheck update $as_me by reconfiguring in the same conditions
2152 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +00002153 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +00002154
2155Configuration files:
2156$config_files
2157
2158Configuration commands:
2159$config_commands
2160
2161Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +00002162
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002163_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00002164cat >>$CONFIG_STATUS <<_ACEOF
2165ac_cs_version="\\
2166[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002167configured by $0, generated by GNU Autoconf 2.60,
2168 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +00002169
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002170Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00002171This config.status script is free software; the Free Software Foundation
2172gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002173
2174ac_pwd='$ac_pwd'
2175srcdir='$srcdir'
John Criswell451f67f2003-10-16 01:45:35 +00002176_ACEOF
2177
2178cat >>$CONFIG_STATUS <<\_ACEOF
2179# If no file are specified by the user, then we need to provide default
2180# value. By we need to know if files were specified by the user.
2181ac_need_defaults=:
2182while test $# != 0
2183do
2184 case $1 in
2185 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002186 ac_option=`expr "X$1" : 'X\([^=]*\)='`
2187 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +00002188 ac_shift=:
2189 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002190 *)
John Criswell451f67f2003-10-16 01:45:35 +00002191 ac_option=$1
2192 ac_optarg=$2
2193 ac_shift=shift
2194 ;;
John Criswell451f67f2003-10-16 01:45:35 +00002195 esac
2196
2197 case $ac_option in
2198 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +00002199 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2200 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002201 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2202 echo "$ac_cs_version"; exit ;;
2203 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +00002204 debug=: ;;
2205 --file | --fil | --fi | --f )
2206 $ac_shift
2207 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2208 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002209 --he | --h | --help | --hel | -h )
2210 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +00002211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2212 | -silent | --silent | --silen | --sile | --sil | --si | --s)
2213 ac_cs_silent=: ;;
2214
2215 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002216 -*) { echo "$as_me: error: unrecognized option: $1
2217Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +00002218 { (exit 1); exit 1; }; } ;;
2219
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002220 *) ac_config_targets="$ac_config_targets $1"
2221 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +00002222
2223 esac
2224 shift
2225done
2226
2227ac_configure_extra_args=
2228
2229if $ac_cs_silent; then
2230 exec 6>/dev/null
2231 ac_configure_extra_args="$ac_configure_extra_args --silent"
2232fi
2233
2234_ACEOF
2235cat >>$CONFIG_STATUS <<_ACEOF
2236if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002237 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2238 CONFIG_SHELL=$SHELL
2239 export CONFIG_SHELL
2240 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +00002241fi
2242
2243_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002244cat >>$CONFIG_STATUS <<\_ACEOF
2245exec 5>>config.log
2246{
2247 echo
2248 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2249## Running $as_me. ##
2250_ASBOX
2251 echo "$ac_log"
2252} >&5
John Criswell451f67f2003-10-16 01:45:35 +00002253
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002254_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00002255cat >>$CONFIG_STATUS <<_ACEOF
2256#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002257# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +00002258#
Reid Spencer421ec052005-02-24 18:53:47 +00002259llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +00002260
2261_ACEOF
2262
Dan Gohman324f6082009-03-25 00:52:11 +00002263cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002264
2265# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +00002266for ac_config_target in $ac_config_targets
2267do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002268 case $ac_config_target in
2269 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
2270 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
2271 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
2272 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
2273 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
2274 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
2275 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
2276
John Criswell451f67f2003-10-16 01:45:35 +00002277 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2278echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2279 { (exit 1); exit 1; }; };;
2280 esac
2281done
2282
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002283
John Criswell451f67f2003-10-16 01:45:35 +00002284# If the user did not use the arguments to specify the items to instantiate,
2285# then the envvar interface is used. Set only those that are not.
2286# We use the long form for the default assignment because of an extremely
2287# bizarre bug on SunOS 4.1.3.
2288if $ac_need_defaults; then
2289 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2290 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
2291fi
2292
2293# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002294# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +00002295# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002296# Hook for its removal unless debugging.
2297# Note that there is a small window in which the directory will not be cleaned:
2298# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +00002299$debug ||
2300{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002301 tmp=
2302 trap 'exit_status=$?
2303 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
2304' 0
John Criswell451f67f2003-10-16 01:45:35 +00002305 trap '{ (exit 1); exit 1; }' 1 2 13 15
2306}
John Criswell451f67f2003-10-16 01:45:35 +00002307# Create a (secure) tmp directory for tmp files.
2308
2309{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002310 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +00002311 test -n "$tmp" && test -d "$tmp"
2312} ||
2313{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002314 tmp=./conf$$-$RANDOM
2315 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +00002316} ||
2317{
2318 echo "$me: cannot create a temporary directory in ." >&2
2319 { (exit 1); exit 1; }
2320}
2321
John Criswell451f67f2003-10-16 01:45:35 +00002322#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002323# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +00002324#
2325
2326# No need to generate the scripts if there are no CONFIG_FILES.
2327# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002328if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +00002329
2330_ACEOF
2331
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002332
2333
2334ac_delim='%!_!# '
2335for ac_last_try in false false false false false :; do
2336 cat >conf$$subs.sed <<_ACEOF
2337SHELL!$SHELL$ac_delim
2338PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
2339PACKAGE_NAME!$PACKAGE_NAME$ac_delim
2340PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
2341PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
2342PACKAGE_STRING!$PACKAGE_STRING$ac_delim
2343PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
2344exec_prefix!$exec_prefix$ac_delim
2345prefix!$prefix$ac_delim
2346program_transform_name!$program_transform_name$ac_delim
2347bindir!$bindir$ac_delim
2348sbindir!$sbindir$ac_delim
2349libexecdir!$libexecdir$ac_delim
2350datarootdir!$datarootdir$ac_delim
2351datadir!$datadir$ac_delim
2352sysconfdir!$sysconfdir$ac_delim
2353sharedstatedir!$sharedstatedir$ac_delim
2354localstatedir!$localstatedir$ac_delim
2355includedir!$includedir$ac_delim
2356oldincludedir!$oldincludedir$ac_delim
2357docdir!$docdir$ac_delim
2358infodir!$infodir$ac_delim
2359htmldir!$htmldir$ac_delim
2360dvidir!$dvidir$ac_delim
2361pdfdir!$pdfdir$ac_delim
2362psdir!$psdir$ac_delim
2363libdir!$libdir$ac_delim
2364localedir!$localedir$ac_delim
2365mandir!$mandir$ac_delim
2366DEFS!$DEFS$ac_delim
2367ECHO_C!$ECHO_C$ac_delim
2368ECHO_N!$ECHO_N$ac_delim
2369ECHO_T!$ECHO_T$ac_delim
2370LIBS!$LIBS$ac_delim
2371build_alias!$build_alias$ac_delim
2372host_alias!$host_alias$ac_delim
2373target_alias!$target_alias$ac_delim
2374LLVM_SRC!$LLVM_SRC$ac_delim
2375LLVM_OBJ!$LLVM_OBJ$ac_delim
2376LIBOBJS!$LIBOBJS$ac_delim
2377LTLIBOBJS!$LTLIBOBJS$ac_delim
2378_ACEOF
2379
2380 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 41; then
2381 break
2382 elif $ac_last_try; then
2383 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
2384echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
2385 { (exit 1); exit 1; }; }
2386 else
2387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +00002388 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002389done
2390
2391ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
2392if test -n "$ac_eof"; then
2393 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
2394 ac_eof=`expr $ac_eof + 1`
2395fi
2396
2397cat >>$CONFIG_STATUS <<_ACEOF
2398cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
2399/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
2400_ACEOF
2401sed '
2402s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
2403s/^/s,@/; s/!/@,|#_!!_#|/
2404:n
2405t n
2406s/'"$ac_delim"'$/,g/; t
2407s/$/\\/; p
2408N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
2409' >>$CONFIG_STATUS <conf$$subs.sed
2410rm -f conf$$subs.sed
2411cat >>$CONFIG_STATUS <<_ACEOF
2412:end
2413s/|#_!!_#|//g
2414CEOF$ac_eof
2415_ACEOF
2416
2417
2418# VPATH may cause trouble with some makes, so we remove $(srcdir),
2419# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2420# trailing colons and then remove the whole line if VPATH becomes empty
2421# (actually we leave an empty line to preserve line numbers).
2422if test "x$srcdir" = x.; then
2423 ac_vpsub='/^[ ]*VPATH[ ]*=/{
2424s/:*\$(srcdir):*/:/
2425s/:*\${srcdir}:*/:/
2426s/:*@srcdir@:*/:/
2427s/^\([^=]*=[ ]*\):*/\1/
2428s/:*$//
2429s/^[^=]*=[ ]*$//
2430}'
2431fi
2432
2433cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00002434fi # test -n "$CONFIG_FILES"
2435
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002436
2437for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
2438do
2439 case $ac_tag in
2440 :[FHLC]) ac_mode=$ac_tag; continue;;
2441 esac
2442 case $ac_mode$ac_tag in
2443 :[FHL]*:*);;
2444 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
2445echo "$as_me: error: Invalid tag $ac_tag." >&2;}
2446 { (exit 1); exit 1; }; };;
2447 :[FH]-) ac_tag=-:-;;
2448 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
2449 esac
2450 ac_save_IFS=$IFS
2451 IFS=:
2452 set x $ac_tag
2453 IFS=$ac_save_IFS
2454 shift
2455 ac_file=$1
2456 shift
2457
2458 case $ac_mode in
2459 :L) ac_source=$1;;
2460 :[FH])
2461 ac_file_inputs=
2462 for ac_f
2463 do
2464 case $ac_f in
2465 -) ac_f="$tmp/stdin";;
2466 *) # Look for the file first in the build tree, then in the source tree
2467 # (if the path is not absolute). The absolute path cannot be DOS-style,
2468 # because $ac_f cannot contain `:'.
2469 test -f "$ac_f" ||
2470 case $ac_f in
2471 [\\/$]*) false;;
2472 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
2473 esac ||
2474 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
2475echo "$as_me: error: cannot find input file: $ac_f" >&2;}
2476 { (exit 1); exit 1; }; };;
2477 esac
2478 ac_file_inputs="$ac_file_inputs $ac_f"
2479 done
2480
2481 # Let's still pretend it is `configure' which instantiates (i.e., don't
2482 # use $as_me), people would be surprised to read:
2483 # /* config.h. Generated by config.status. */
2484 configure_input="Generated from "`IFS=:
2485 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
2486 if test x"$ac_file" != x-; then
2487 configure_input="$ac_file. $configure_input"
2488 { echo "$as_me:$LINENO: creating $ac_file" >&5
2489echo "$as_me: creating $ac_file" >&6;}
2490 fi
2491
2492 case $ac_tag in
2493 *:-:* | *:-) cat >"$tmp/stdin";;
2494 esac
2495 ;;
John Criswell451f67f2003-10-16 01:45:35 +00002496 esac
2497
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002498 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +00002499$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00002500 X"$ac_file" : 'X\(//\)[^/]' \| \
2501 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002502 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00002503echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2505 s//\1/
2506 q
2507 }
2508 /^X\(\/\/\)[^/].*/{
2509 s//\1/
2510 q
2511 }
2512 /^X\(\/\/\)$/{
2513 s//\1/
2514 q
2515 }
2516 /^X\(\/\).*/{
2517 s//\1/
2518 q
2519 }
2520 s/.*/./; q'`
2521 { as_dir="$ac_dir"
2522 case $as_dir in #(
2523 -*) as_dir=./$as_dir;;
2524 esac
2525 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +00002526 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002527 while :; do
2528 case $as_dir in #(
2529 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
2530 *) as_qdir=$as_dir;;
2531 esac
2532 as_dirs="'$as_qdir' $as_dirs"
2533 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +00002534$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00002535 X"$as_dir" : 'X\(//\)[^/]' \| \
2536 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002537 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00002538echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2540 s//\1/
2541 q
2542 }
2543 /^X\(\/\/\)[^/].*/{
2544 s//\1/
2545 q
2546 }
2547 /^X\(\/\/\)$/{
2548 s//\1/
2549 q
2550 }
2551 /^X\(\/\).*/{
2552 s//\1/
2553 q
2554 }
2555 s/.*/./; q'`
2556 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +00002557 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002558 test -z "$as_dirs" || eval "mkdir $as_dirs"
2559 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
2560echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00002561 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +00002562 ac_builddir=.
2563
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002564case "$ac_dir" in
2565.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2566*)
John Criswell451f67f2003-10-16 01:45:35 +00002567 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002568 # A ".." for each directory in $ac_dir_suffix.
2569 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2570 case $ac_top_builddir_sub in
2571 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2572 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2573 esac ;;
2574esac
2575ac_abs_top_builddir=$ac_pwd
2576ac_abs_builddir=$ac_pwd$ac_dir_suffix
2577# for backward compatibility:
2578ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00002579
2580case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002581 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00002582 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002583 ac_top_srcdir=$ac_top_builddir_sub
2584 ac_abs_top_srcdir=$ac_pwd ;;
2585 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00002586 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002587 ac_top_srcdir=$srcdir
2588 ac_abs_top_srcdir=$srcdir ;;
2589 *) # Relative name.
2590 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2591 ac_top_srcdir=$ac_top_build_prefix$srcdir
2592 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00002593esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002594ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +00002595
Dan Gohman324f6082009-03-25 00:52:11 +00002596
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002597 case $ac_mode in
2598 :F)
2599 #
2600 # CONFIG_FILE
2601 #
Dan Gohman324f6082009-03-25 00:52:11 +00002602
Dan Gohman324f6082009-03-25 00:52:11 +00002603_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002604
2605cat >>$CONFIG_STATUS <<\_ACEOF
2606# If the template does not know about datarootdir, expand it.
2607# FIXME: This hack should be removed a few years after 2.60.
2608ac_datarootdir_hack=; ac_datarootdir_seen=
2609
2610case `sed -n '/datarootdir/ {
2611 p
2612 q
2613}
2614/@datadir@/p
2615/@docdir@/p
2616/@infodir@/p
2617/@localedir@/p
2618/@mandir@/p
2619' $ac_file_inputs` in
2620*datarootdir*) ac_datarootdir_seen=yes;;
2621*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
2622 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
2623echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
2624_ACEOF
2625cat >>$CONFIG_STATUS <<_ACEOF
2626 ac_datarootdir_hack='
2627 s&@datadir@&$datadir&g
2628 s&@docdir@&$docdir&g
2629 s&@infodir@&$infodir&g
2630 s&@localedir@&$localedir&g
2631 s&@mandir@&$mandir&g
2632 s&\\\${datarootdir}&$datarootdir&g' ;;
2633esac
2634_ACEOF
2635
2636# Neutralize VPATH when `$srcdir' = `.'.
2637# Shell code in configure.ac might set extrasub.
2638# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +00002639cat >>$CONFIG_STATUS <<_ACEOF
2640 sed "$ac_vpsub
2641$extrasub
2642_ACEOF
2643cat >>$CONFIG_STATUS <<\_ACEOF
2644:t
2645/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002646s&@configure_input@&$configure_input&;t t
2647s&@top_builddir@&$ac_top_builddir_sub&;t t
2648s&@srcdir@&$ac_srcdir&;t t
2649s&@abs_srcdir@&$ac_abs_srcdir&;t t
2650s&@top_srcdir@&$ac_top_srcdir&;t t
2651s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
2652s&@builddir@&$ac_builddir&;t t
2653s&@abs_builddir@&$ac_abs_builddir&;t t
2654s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
2655$ac_datarootdir_hack
2656" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +00002657
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002658test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
2659 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
2660 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
2661 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2662which seems to be undefined. Please make sure it is defined." >&5
2663echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2664which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00002665
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002666 rm -f "$tmp/stdin"
2667 case $ac_file in
2668 -) cat "$tmp/out"; rm -f "$tmp/out";;
2669 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +00002670 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002671 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +00002672
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00002673
2674 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
2675echo "$as_me: executing $ac_file commands" >&6;}
2676 ;;
2677 esac
2678
2679
2680 case $ac_file$ac_mode in
2681 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
2682 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
2683 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
2684 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
2685 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
2686 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
2687 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
2688 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
2689 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
2690 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
2691
2692 esac
2693done # for ac_tag
2694
John Criswell451f67f2003-10-16 01:45:35 +00002695
2696{ (exit 0); exit 0; }
2697_ACEOF
2698chmod +x $CONFIG_STATUS
2699ac_clean_files=$ac_clean_files_save
2700
2701
2702# configure is writing to config.log, and then calls config.status.
2703# config.status does its own redirection, appending to config.log.
2704# Unfortunately, on DOS this fails, as config.log is still kept open
2705# by configure, so config.status won't be able to write to it; its
2706# output is simply discarded. So we exec the FD to /dev/null,
2707# effectively closing config.log, so it can be properly (re)opened and
2708# appended to by config.status. When coming back to configure, we
2709# need to make the FD available again.
2710if test "$no_create" != yes; then
2711 ac_cs_success=:
2712 ac_config_status_args=
2713 test "$silent" = yes &&
2714 ac_config_status_args="$ac_config_status_args --quiet"
2715 exec 5>/dev/null
2716 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2717 exec 5>>config.log
2718 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2719 # would make configure fail if this is the last instruction.
2720 $ac_cs_success || { (exit 1); exit 1; }
2721fi
2722