comparison ezBAMQC/src/htslib/configure @ 0:dfa3745e5fd8

Uploaded
author youngkim
date Thu, 24 Mar 2016 17:12:52 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:dfa3745e5fd8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for HTSlib 1.2.1.
4 #
5 # Report bugs to <samtools-help@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 #
16 # Portions copyright (C) 2015 Genome Research Ltd.
17 #
18 # This configure script is free software: you are free to change and
19 # redistribute it. There is NO WARRANTY, to the extent permitted by law.
20 ## -------------------- ##
21 ## M4sh Initialization. ##
22 ## -------------------- ##
23
24 # Be more Bourne compatible
25 DUALCASE=1; export DUALCASE # for MKS sh
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27 emulate sh
28 NULLCMD=:
29 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30 # is contrary to our usage. Disable this feature.
31 alias -g '${1+"$@"}'='"$@"'
32 setopt NO_GLOB_SUBST
33 else
34 case `(set -o) 2>/dev/null` in #(
35 *posix*) :
36 set -o posix ;; #(
37 *) :
38 ;;
39 esac
40 fi
41
42
43 as_nl='
44 '
45 export as_nl
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 # Prefer a ksh shell builtin over an external printf program on Solaris,
51 # but without wasting forks for bash or zsh.
52 if test -z "$BASH_VERSION$ZSH_VERSION" \
53 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
54 as_echo='print -r --'
55 as_echo_n='print -rn --'
56 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
57 as_echo='printf %s\n'
58 as_echo_n='printf %s'
59 else
60 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
61 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
62 as_echo_n='/usr/ucb/echo -n'
63 else
64 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 as_echo_n_body='eval
66 arg=$1;
67 case $arg in #(
68 *"$as_nl"*)
69 expr "X$arg" : "X\\(.*\\)$as_nl";
70 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
71 esac;
72 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
73 '
74 export as_echo_n_body
75 as_echo_n='sh -c $as_echo_n_body as_echo'
76 fi
77 export as_echo_body
78 as_echo='sh -c $as_echo_body as_echo'
79 fi
80
81 # The user is always right.
82 if test "${PATH_SEPARATOR+set}" != set; then
83 PATH_SEPARATOR=:
84 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
85 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 PATH_SEPARATOR=';'
87 }
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 as_myself=
100 case $0 in #((
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 for as_dir in $PATH
104 do
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 done
109 IFS=$as_save_IFS
110
111 ;;
112 esac
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
116 as_myself=$0
117 fi
118 if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 exit 1
121 fi
122
123 # Unset variables that we do not need and which cause bugs (e.g. in
124 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
125 # suppresses any "Segmentation fault" message there. '((' could
126 # trigger a bug in pdksh 5.2.14.
127 for as_var in BASH_ENV ENV MAIL MAILPATH
128 do eval test x\${$as_var+set} = xset \
129 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
130 done
131 PS1='$ '
132 PS2='> '
133 PS4='+ '
134
135 # NLS nuisances.
136 LC_ALL=C
137 export LC_ALL
138 LANGUAGE=C
139 export LANGUAGE
140
141 # CDPATH.
142 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
143
144 if test "x$CONFIG_SHELL" = x; then
145 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
173
174 else
175 exitcode=1; echo positional parameters were not saved.
176 fi
177 test x\$exitcode = x0 || exit 1"
178 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
179 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
180 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
181 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
182 if (eval "$as_required") 2>/dev/null; then :
183 as_have_required=yes
184 else
185 as_have_required=no
186 fi
187 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188
189 else
190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 as_found=false
192 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 do
194 IFS=$as_save_IFS
195 test -z "$as_dir" && as_dir=.
196 as_found=:
197 case $as_dir in #(
198 /*)
199 for as_base in sh bash ksh sh5; do
200 # Try only shells that exist, to save several forks.
201 as_shell=$as_dir/$as_base
202 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
203 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 CONFIG_SHELL=$as_shell as_have_required=yes
205 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 break 2
207 fi
208 fi
209 done;;
210 esac
211 as_found=false
212 done
213 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
214 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
215 CONFIG_SHELL=$SHELL as_have_required=yes
216 fi; }
217 IFS=$as_save_IFS
218
219
220 if test "x$CONFIG_SHELL" != x; then :
221 # We cannot yet assume a decent shell, so we have to provide a
222 # neutralization value for shells without unset; and this also
223 # works around shells that cannot unset nonexistent variables.
224 # Preserve -v and -x to the replacement shell.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 case $- in # ((((
230 *v*x* | *x*v* ) as_opts=-vx ;;
231 *v* ) as_opts=-v ;;
232 *x* ) as_opts=-x ;;
233 * ) as_opts= ;;
234 esac
235 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
236 fi
237
238 if test x$as_have_required = xno; then :
239 $as_echo "$0: This script requires a shell more modern than all"
240 $as_echo "$0: the shells that I found on your system."
241 if test x${ZSH_VERSION+set} = xset ; then
242 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
243 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
244 else
245 $as_echo "$0: Please tell bug-autoconf@gnu.org and
246 $0: samtools-help@lists.sourceforge.net about your system,
247 $0: including any error possibly output before this
248 $0: message. Then install a modern shell, or manually run
249 $0: the script under such a shell if you do have one."
250 fi
251 exit 1
252 fi
253 fi
254 fi
255 SHELL=${CONFIG_SHELL-/bin/sh}
256 export SHELL
257 # Unset more variables known to interfere with behavior of common tools.
258 CLICOLOR_FORCE= GREP_OPTIONS=
259 unset CLICOLOR_FORCE GREP_OPTIONS
260
261 ## --------------------- ##
262 ## M4sh Shell Functions. ##
263 ## --------------------- ##
264 # as_fn_unset VAR
265 # ---------------
266 # Portably unset VAR.
267 as_fn_unset ()
268 {
269 { eval $1=; unset $1;}
270 }
271 as_unset=as_fn_unset
272
273 # as_fn_set_status STATUS
274 # -----------------------
275 # Set $? to STATUS, without forking.
276 as_fn_set_status ()
277 {
278 return $1
279 } # as_fn_set_status
280
281 # as_fn_exit STATUS
282 # -----------------
283 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 as_fn_exit ()
285 {
286 set +e
287 as_fn_set_status $1
288 exit $1
289 } # as_fn_exit
290
291 # as_fn_mkdir_p
292 # -------------
293 # Create "$as_dir" as a directory, including parents if necessary.
294 as_fn_mkdir_p ()
295 {
296
297 case $as_dir in #(
298 -*) as_dir=./$as_dir;;
299 esac
300 test -d "$as_dir" || eval $as_mkdir_p || {
301 as_dirs=
302 while :; do
303 case $as_dir in #(
304 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
305 *) as_qdir=$as_dir;;
306 esac
307 as_dirs="'$as_qdir' $as_dirs"
308 as_dir=`$as_dirname -- "$as_dir" ||
309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
310 X"$as_dir" : 'X\(//\)[^/]' \| \
311 X"$as_dir" : 'X\(//\)$' \| \
312 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
313 $as_echo X"$as_dir" |
314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)[^/].*/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)$/{
323 s//\1/
324 q
325 }
326 /^X\(\/\).*/{
327 s//\1/
328 q
329 }
330 s/.*/./; q'`
331 test -d "$as_dir" && break
332 done
333 test -z "$as_dirs" || eval "mkdir $as_dirs"
334 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335
336
337 } # as_fn_mkdir_p
338 # as_fn_append VAR VALUE
339 # ----------------------
340 # Append the text in VALUE to the end of the definition contained in VAR. Take
341 # advantage of any shell optimizations that allow amortized linear growth over
342 # repeated appends, instead of the typical quadratic growth present in naive
343 # implementations.
344 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
345 eval 'as_fn_append ()
346 {
347 eval $1+=\$2
348 }'
349 else
350 as_fn_append ()
351 {
352 eval $1=\$$1\$2
353 }
354 fi # as_fn_append
355
356 # as_fn_arith ARG...
357 # ------------------
358 # Perform arithmetic evaluation on the ARGs, and store the result in the
359 # global $as_val. Take advantage of shells that can avoid forks. The arguments
360 # must be portable across $(()) and expr.
361 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 eval 'as_fn_arith ()
363 {
364 as_val=$(( $* ))
365 }'
366 else
367 as_fn_arith ()
368 {
369 as_val=`expr "$@" || test $? -eq 1`
370 }
371 fi # as_fn_arith
372
373
374 # as_fn_error STATUS ERROR [LINENO LOG_FD]
375 # ----------------------------------------
376 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
377 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
378 # script with STATUS, using 1 if that was 0.
379 as_fn_error ()
380 {
381 as_status=$1; test $as_status -eq 0 && as_status=1
382 if test "$4"; then
383 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
384 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
385 fi
386 $as_echo "$as_me: error: $2" >&2
387 as_fn_exit $as_status
388 } # as_fn_error
389
390 if expr a : '\(a\)' >/dev/null 2>&1 &&
391 test "X`expr 00001 : '.*\(...\)'`" = X001; then
392 as_expr=expr
393 else
394 as_expr=false
395 fi
396
397 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
398 as_basename=basename
399 else
400 as_basename=false
401 fi
402
403 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
404 as_dirname=dirname
405 else
406 as_dirname=false
407 fi
408
409 as_me=`$as_basename -- "$0" ||
410 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
411 X"$0" : 'X\(//\)$' \| \
412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
413 $as_echo X/"$0" |
414 sed '/^.*\/\([^/][^/]*\)\/*$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\/\)$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\).*/{
423 s//\1/
424 q
425 }
426 s/.*/./; q'`
427
428 # Avoid depending upon Character Ranges.
429 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
430 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
431 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
432 as_cr_digits='0123456789'
433 as_cr_alnum=$as_cr_Letters$as_cr_digits
434
435
436 as_lineno_1=$LINENO as_lineno_1a=$LINENO
437 as_lineno_2=$LINENO as_lineno_2a=$LINENO
438 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
439 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
440 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
450 N
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467 ECHO_C= ECHO_N= ECHO_T=
468 case `echo -n x` in #(((((
469 -n*)
470 case `echo 'xy\c'` in
471 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
472 xy) ECHO_C='\c';;
473 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
474 ECHO_T=' ';;
475 esac;;
476 *)
477 ECHO_N='-n';;
478 esac
479
480 rm -f conf$$ conf$$.exe conf$$.file
481 if test -d conf$$.dir; then
482 rm -f conf$$.dir/conf$$.file
483 else
484 rm -f conf$$.dir
485 mkdir conf$$.dir 2>/dev/null
486 fi
487 if (echo >conf$$.file) 2>/dev/null; then
488 if ln -s conf$$.file conf$$ 2>/dev/null; then
489 as_ln_s='ln -s'
490 # ... but there are two gotchas:
491 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
492 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
493 # In both cases, we have to default to `cp -p'.
494 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
495 as_ln_s='cp -p'
496 elif ln conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s=ln
498 else
499 as_ln_s='cp -p'
500 fi
501 else
502 as_ln_s='cp -p'
503 fi
504 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
505 rmdir conf$$.dir 2>/dev/null
506
507 if mkdir -p . 2>/dev/null; then
508 as_mkdir_p='mkdir -p "$as_dir"'
509 else
510 test -d ./-p && rmdir ./-p
511 as_mkdir_p=false
512 fi
513
514 if test -x / >/dev/null 2>&1; then
515 as_test_x='test -x'
516 else
517 if ls -dL / >/dev/null 2>&1; then
518 as_ls_L_option=L
519 else
520 as_ls_L_option=
521 fi
522 as_test_x='
523 eval sh -c '\''
524 if test -d "$1"; then
525 test -d "$1/.";
526 else
527 case $1 in #(
528 -*)set "./$1";;
529 esac;
530 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
531 ???[sx]*):;;*)false;;esac;fi
532 '\'' sh
533 '
534 fi
535 as_executable_p=$as_test_x
536
537 # Sed expression to map a string onto a valid CPP name.
538 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
539
540 # Sed expression to map a string onto a valid variable name.
541 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542
543
544 test -n "$DJDIR" || exec 7<&0 </dev/null
545 exec 6>&1
546
547 # Name of the host.
548 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
549 # so uname gets run too.
550 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551
552 #
553 # Initializations.
554 #
555 ac_default_prefix=/usr/local
556 ac_clean_files=
557 ac_config_libobj_dir=.
558 LIBOBJS=
559 cross_compiling=no
560 subdirs=
561 MFLAGS=
562 MAKEFLAGS=
563
564 # Identity of this package.
565 PACKAGE_NAME='HTSlib'
566 PACKAGE_TARNAME='htslib'
567 PACKAGE_VERSION='1.2.1'
568 PACKAGE_STRING='HTSlib 1.2.1'
569 PACKAGE_BUGREPORT='samtools-help@lists.sourceforge.net'
570 PACKAGE_URL='http://www.htslib.org/'
571
572 ac_unique_file="hts.c"
573 ac_subst_vars='LTLIBOBJS
574 LIBOBJS
575 define_IRODS_HOME
576 irods
577 RANLIB
578 OBJEXT
579 EXEEXT
580 ac_ct_CC
581 CPPFLAGS
582 LDFLAGS
583 CFLAGS
584 CC
585 target_alias
586 host_alias
587 build_alias
588 LIBS
589 ECHO_T
590 ECHO_N
591 ECHO_C
592 DEFS
593 mandir
594 localedir
595 libdir
596 psdir
597 pdfdir
598 dvidir
599 htmldir
600 infodir
601 docdir
602 oldincludedir
603 includedir
604 localstatedir
605 sharedstatedir
606 sysconfdir
607 datadir
608 datarootdir
609 libexecdir
610 sbindir
611 bindir
612 program_transform_name
613 prefix
614 exec_prefix
615 PACKAGE_URL
616 PACKAGE_BUGREPORT
617 PACKAGE_STRING
618 PACKAGE_VERSION
619 PACKAGE_TARNAME
620 PACKAGE_NAME
621 PATH_SEPARATOR
622 SHELL'
623 ac_subst_files=''
624 ac_user_opts='
625 enable_option_checking
626 with_irods
627 '
628 ac_precious_vars='build_alias
629 host_alias
630 target_alias
631 CC
632 CFLAGS
633 LDFLAGS
634 LIBS
635 CPPFLAGS'
636
637
638 # Initialize some variables set by options.
639 ac_init_help=
640 ac_init_version=false
641 ac_unrecognized_opts=
642 ac_unrecognized_sep=
643 # The variables have the same names as the options, with
644 # dashes changed to underlines.
645 cache_file=/dev/null
646 exec_prefix=NONE
647 no_create=
648 no_recursion=
649 prefix=NONE
650 program_prefix=NONE
651 program_suffix=NONE
652 program_transform_name=s,x,x,
653 silent=
654 site=
655 srcdir=
656 verbose=
657 x_includes=NONE
658 x_libraries=NONE
659
660 # Installation directory options.
661 # These are left unexpanded so users can "make install exec_prefix=/foo"
662 # and all the variables that are supposed to be based on exec_prefix
663 # by default will actually change.
664 # Use braces instead of parens because sh, perl, etc. also accept them.
665 # (The list follows the same order as the GNU Coding Standards.)
666 bindir='${exec_prefix}/bin'
667 sbindir='${exec_prefix}/sbin'
668 libexecdir='${exec_prefix}/libexec'
669 datarootdir='${prefix}/share'
670 datadir='${datarootdir}'
671 sysconfdir='${prefix}/etc'
672 sharedstatedir='${prefix}/com'
673 localstatedir='${prefix}/var'
674 includedir='${prefix}/include'
675 oldincludedir='/usr/include'
676 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
677 infodir='${datarootdir}/info'
678 htmldir='${docdir}'
679 dvidir='${docdir}'
680 pdfdir='${docdir}'
681 psdir='${docdir}'
682 libdir='${exec_prefix}/lib'
683 localedir='${datarootdir}/locale'
684 mandir='${datarootdir}/man'
685
686 ac_prev=
687 ac_dashdash=
688 for ac_option
689 do
690 # If the previous option needs an argument, assign it.
691 if test -n "$ac_prev"; then
692 eval $ac_prev=\$ac_option
693 ac_prev=
694 continue
695 fi
696
697 case $ac_option in
698 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
699 *=) ac_optarg= ;;
700 *) ac_optarg=yes ;;
701 esac
702
703 # Accept the important Cygnus configure options, so we can diagnose typos.
704
705 case $ac_dashdash$ac_option in
706 --)
707 ac_dashdash=yes ;;
708
709 -bindir | --bindir | --bindi | --bind | --bin | --bi)
710 ac_prev=bindir ;;
711 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
712 bindir=$ac_optarg ;;
713
714 -build | --build | --buil | --bui | --bu)
715 ac_prev=build_alias ;;
716 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
717 build_alias=$ac_optarg ;;
718
719 -cache-file | --cache-file | --cache-fil | --cache-fi \
720 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
721 ac_prev=cache_file ;;
722 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
723 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
724 cache_file=$ac_optarg ;;
725
726 --config-cache | -C)
727 cache_file=config.cache ;;
728
729 -datadir | --datadir | --datadi | --datad)
730 ac_prev=datadir ;;
731 -datadir=* | --datadir=* | --datadi=* | --datad=*)
732 datadir=$ac_optarg ;;
733
734 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
735 | --dataroo | --dataro | --datar)
736 ac_prev=datarootdir ;;
737 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
738 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
739 datarootdir=$ac_optarg ;;
740
741 -disable-* | --disable-*)
742 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
745 as_fn_error $? "invalid feature name: $ac_useropt"
746 ac_useropt_orig=$ac_useropt
747 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
748 case $ac_user_opts in
749 *"
750 "enable_$ac_useropt"
751 "*) ;;
752 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
753 ac_unrecognized_sep=', ';;
754 esac
755 eval enable_$ac_useropt=no ;;
756
757 -docdir | --docdir | --docdi | --doc | --do)
758 ac_prev=docdir ;;
759 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
760 docdir=$ac_optarg ;;
761
762 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
763 ac_prev=dvidir ;;
764 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
765 dvidir=$ac_optarg ;;
766
767 -enable-* | --enable-*)
768 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
769 # Reject names that are not valid shell variable names.
770 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
771 as_fn_error $? "invalid feature name: $ac_useropt"
772 ac_useropt_orig=$ac_useropt
773 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
774 case $ac_user_opts in
775 *"
776 "enable_$ac_useropt"
777 "*) ;;
778 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
779 ac_unrecognized_sep=', ';;
780 esac
781 eval enable_$ac_useropt=\$ac_optarg ;;
782
783 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
784 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
785 | --exec | --exe | --ex)
786 ac_prev=exec_prefix ;;
787 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
788 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
789 | --exec=* | --exe=* | --ex=*)
790 exec_prefix=$ac_optarg ;;
791
792 -gas | --gas | --ga | --g)
793 # Obsolete; use --with-gas.
794 with_gas=yes ;;
795
796 -help | --help | --hel | --he | -h)
797 ac_init_help=long ;;
798 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
799 ac_init_help=recursive ;;
800 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
801 ac_init_help=short ;;
802
803 -host | --host | --hos | --ho)
804 ac_prev=host_alias ;;
805 -host=* | --host=* | --hos=* | --ho=*)
806 host_alias=$ac_optarg ;;
807
808 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
809 ac_prev=htmldir ;;
810 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
811 | --ht=*)
812 htmldir=$ac_optarg ;;
813
814 -includedir | --includedir | --includedi | --included | --include \
815 | --includ | --inclu | --incl | --inc)
816 ac_prev=includedir ;;
817 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
818 | --includ=* | --inclu=* | --incl=* | --inc=*)
819 includedir=$ac_optarg ;;
820
821 -infodir | --infodir | --infodi | --infod | --info | --inf)
822 ac_prev=infodir ;;
823 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
824 infodir=$ac_optarg ;;
825
826 -libdir | --libdir | --libdi | --libd)
827 ac_prev=libdir ;;
828 -libdir=* | --libdir=* | --libdi=* | --libd=*)
829 libdir=$ac_optarg ;;
830
831 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
832 | --libexe | --libex | --libe)
833 ac_prev=libexecdir ;;
834 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
835 | --libexe=* | --libex=* | --libe=*)
836 libexecdir=$ac_optarg ;;
837
838 -localedir | --localedir | --localedi | --localed | --locale)
839 ac_prev=localedir ;;
840 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
841 localedir=$ac_optarg ;;
842
843 -localstatedir | --localstatedir | --localstatedi | --localstated \
844 | --localstate | --localstat | --localsta | --localst | --locals)
845 ac_prev=localstatedir ;;
846 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
847 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
848 localstatedir=$ac_optarg ;;
849
850 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
851 ac_prev=mandir ;;
852 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
853 mandir=$ac_optarg ;;
854
855 -nfp | --nfp | --nf)
856 # Obsolete; use --without-fp.
857 with_fp=no ;;
858
859 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
860 | --no-cr | --no-c | -n)
861 no_create=yes ;;
862
863 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
864 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
865 no_recursion=yes ;;
866
867 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
868 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
869 | --oldin | --oldi | --old | --ol | --o)
870 ac_prev=oldincludedir ;;
871 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
872 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
873 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
874 oldincludedir=$ac_optarg ;;
875
876 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
877 ac_prev=prefix ;;
878 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
879 prefix=$ac_optarg ;;
880
881 -program-prefix | --program-prefix | --program-prefi | --program-pref \
882 | --program-pre | --program-pr | --program-p)
883 ac_prev=program_prefix ;;
884 -program-prefix=* | --program-prefix=* | --program-prefi=* \
885 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
886 program_prefix=$ac_optarg ;;
887
888 -program-suffix | --program-suffix | --program-suffi | --program-suff \
889 | --program-suf | --program-su | --program-s)
890 ac_prev=program_suffix ;;
891 -program-suffix=* | --program-suffix=* | --program-suffi=* \
892 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
893 program_suffix=$ac_optarg ;;
894
895 -program-transform-name | --program-transform-name \
896 | --program-transform-nam | --program-transform-na \
897 | --program-transform-n | --program-transform- \
898 | --program-transform | --program-transfor \
899 | --program-transfo | --program-transf \
900 | --program-trans | --program-tran \
901 | --progr-tra | --program-tr | --program-t)
902 ac_prev=program_transform_name ;;
903 -program-transform-name=* | --program-transform-name=* \
904 | --program-transform-nam=* | --program-transform-na=* \
905 | --program-transform-n=* | --program-transform-=* \
906 | --program-transform=* | --program-transfor=* \
907 | --program-transfo=* | --program-transf=* \
908 | --program-trans=* | --program-tran=* \
909 | --progr-tra=* | --program-tr=* | --program-t=*)
910 program_transform_name=$ac_optarg ;;
911
912 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
913 ac_prev=pdfdir ;;
914 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
915 pdfdir=$ac_optarg ;;
916
917 -psdir | --psdir | --psdi | --psd | --ps)
918 ac_prev=psdir ;;
919 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
920 psdir=$ac_optarg ;;
921
922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
923 | -silent | --silent | --silen | --sile | --sil)
924 silent=yes ;;
925
926 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
927 ac_prev=sbindir ;;
928 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
929 | --sbi=* | --sb=*)
930 sbindir=$ac_optarg ;;
931
932 -sharedstatedir | --sharedstatedir | --sharedstatedi \
933 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
934 | --sharedst | --shareds | --shared | --share | --shar \
935 | --sha | --sh)
936 ac_prev=sharedstatedir ;;
937 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
938 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
939 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
940 | --sha=* | --sh=*)
941 sharedstatedir=$ac_optarg ;;
942
943 -site | --site | --sit)
944 ac_prev=site ;;
945 -site=* | --site=* | --sit=*)
946 site=$ac_optarg ;;
947
948 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
949 ac_prev=srcdir ;;
950 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
951 srcdir=$ac_optarg ;;
952
953 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
954 | --syscon | --sysco | --sysc | --sys | --sy)
955 ac_prev=sysconfdir ;;
956 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
957 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
958 sysconfdir=$ac_optarg ;;
959
960 -target | --target | --targe | --targ | --tar | --ta | --t)
961 ac_prev=target_alias ;;
962 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
963 target_alias=$ac_optarg ;;
964
965 -v | -verbose | --verbose | --verbos | --verbo | --verb)
966 verbose=yes ;;
967
968 -version | --version | --versio | --versi | --vers | -V)
969 ac_init_version=: ;;
970
971 -with-* | --with-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error $? "invalid package name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
979 *"
980 "with_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval with_$ac_useropt=\$ac_optarg ;;
986
987 -without-* | --without-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid package name: $ac_useropt"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996 "with_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval with_$ac_useropt=no ;;
1002
1003 --x)
1004 # Obsolete; use --with-x.
1005 with_x=yes ;;
1006
1007 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1008 | --x-incl | --x-inc | --x-in | --x-i)
1009 ac_prev=x_includes ;;
1010 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1011 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1012 x_includes=$ac_optarg ;;
1013
1014 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1015 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1016 ac_prev=x_libraries ;;
1017 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1018 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1019 x_libraries=$ac_optarg ;;
1020
1021 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1022 Try \`$0 --help' for more information"
1023 ;;
1024
1025 *=*)
1026 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1027 # Reject names that are not valid shell variable names.
1028 case $ac_envvar in #(
1029 '' | [0-9]* | *[!_$as_cr_alnum]* )
1030 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1031 esac
1032 eval $ac_envvar=\$ac_optarg
1033 export $ac_envvar ;;
1034
1035 *)
1036 # FIXME: should be removed in autoconf 3.0.
1037 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1038 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1040 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1041 ;;
1042
1043 esac
1044 done
1045
1046 if test -n "$ac_prev"; then
1047 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1048 as_fn_error $? "missing argument to $ac_option"
1049 fi
1050
1051 if test -n "$ac_unrecognized_opts"; then
1052 case $enable_option_checking in
1053 no) ;;
1054 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1055 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1056 esac
1057 fi
1058
1059 # Check all directory arguments for consistency.
1060 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1061 datadir sysconfdir sharedstatedir localstatedir includedir \
1062 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1063 libdir localedir mandir
1064 do
1065 eval ac_val=\$$ac_var
1066 # Remove trailing slashes.
1067 case $ac_val in
1068 */ )
1069 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1070 eval $ac_var=\$ac_val;;
1071 esac
1072 # Be sure to have absolute directory names.
1073 case $ac_val in
1074 [\\/$]* | ?:[\\/]* ) continue;;
1075 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1076 esac
1077 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1078 done
1079
1080 # There might be people who depend on the old broken behavior: `$host'
1081 # used to hold the argument of --host etc.
1082 # FIXME: To remove some day.
1083 build=$build_alias
1084 host=$host_alias
1085 target=$target_alias
1086
1087 # FIXME: To remove some day.
1088 if test "x$host_alias" != x; then
1089 if test "x$build_alias" = x; then
1090 cross_compiling=maybe
1091 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1092 If a cross compiler is detected then cross compile mode will be used" >&2
1093 elif test "x$build_alias" != "x$host_alias"; then
1094 cross_compiling=yes
1095 fi
1096 fi
1097
1098 ac_tool_prefix=
1099 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1100
1101 test "$silent" = yes && exec 6>/dev/null
1102
1103
1104 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1105 ac_ls_di=`ls -di .` &&
1106 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1107 as_fn_error $? "working directory cannot be determined"
1108 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1109 as_fn_error $? "pwd does not report name of working directory"
1110
1111
1112 # Find the source files, if location was not specified.
1113 if test -z "$srcdir"; then
1114 ac_srcdir_defaulted=yes
1115 # Try the directory containing this script, then the parent directory.
1116 ac_confdir=`$as_dirname -- "$as_myself" ||
1117 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1118 X"$as_myself" : 'X\(//\)[^/]' \| \
1119 X"$as_myself" : 'X\(//\)$' \| \
1120 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1121 $as_echo X"$as_myself" |
1122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1123 s//\1/
1124 q
1125 }
1126 /^X\(\/\/\)[^/].*/{
1127 s//\1/
1128 q
1129 }
1130 /^X\(\/\/\)$/{
1131 s//\1/
1132 q
1133 }
1134 /^X\(\/\).*/{
1135 s//\1/
1136 q
1137 }
1138 s/.*/./; q'`
1139 srcdir=$ac_confdir
1140 if test ! -r "$srcdir/$ac_unique_file"; then
1141 srcdir=..
1142 fi
1143 else
1144 ac_srcdir_defaulted=no
1145 fi
1146 if test ! -r "$srcdir/$ac_unique_file"; then
1147 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1148 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1149 fi
1150 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1151 ac_abs_confdir=`(
1152 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1153 pwd)`
1154 # When building in place, set srcdir=.
1155 if test "$ac_abs_confdir" = "$ac_pwd"; then
1156 srcdir=.
1157 fi
1158 # Remove unnecessary trailing slashes from srcdir.
1159 # Double slashes in file names in object file debugging info
1160 # mess up M-x gdb in Emacs.
1161 case $srcdir in
1162 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1163 esac
1164 for ac_var in $ac_precious_vars; do
1165 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1166 eval ac_env_${ac_var}_value=\$${ac_var}
1167 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1168 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1169 done
1170
1171 #
1172 # Report the --help message.
1173 #
1174 if test "$ac_init_help" = "long"; then
1175 # Omit some internal or obsolete options to make the list less imposing.
1176 # This message is too long to be a string in the A/UX 3.1 sh.
1177 cat <<_ACEOF
1178 \`configure' configures HTSlib 1.2.1 to adapt to many kinds of systems.
1179
1180 Usage: $0 [OPTION]... [VAR=VALUE]...
1181
1182 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1183 VAR=VALUE. See below for descriptions of some of the useful variables.
1184
1185 Defaults for the options are specified in brackets.
1186
1187 Configuration:
1188 -h, --help display this help and exit
1189 --help=short display options specific to this package
1190 --help=recursive display the short help of all the included packages
1191 -V, --version display version information and exit
1192 -q, --quiet, --silent do not print \`checking ...' messages
1193 --cache-file=FILE cache test results in FILE [disabled]
1194 -C, --config-cache alias for \`--cache-file=config.cache'
1195 -n, --no-create do not create output files
1196 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1197
1198 Installation directories:
1199 --prefix=PREFIX install architecture-independent files in PREFIX
1200 [$ac_default_prefix]
1201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1202 [PREFIX]
1203
1204 By default, \`make install' will install all the files in
1205 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1206 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1207 for instance \`--prefix=\$HOME'.
1208
1209 For better control, use the options below.
1210
1211 Fine tuning of the installation directories:
1212 --bindir=DIR user executables [EPREFIX/bin]
1213 --sbindir=DIR system admin executables [EPREFIX/sbin]
1214 --libexecdir=DIR program executables [EPREFIX/libexec]
1215 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1216 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1217 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1218 --libdir=DIR object code libraries [EPREFIX/lib]
1219 --includedir=DIR C header files [PREFIX/include]
1220 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1221 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1222 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1223 --infodir=DIR info documentation [DATAROOTDIR/info]
1224 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1225 --mandir=DIR man documentation [DATAROOTDIR/man]
1226 --docdir=DIR documentation root [DATAROOTDIR/doc/htslib]
1227 --htmldir=DIR html documentation [DOCDIR]
1228 --dvidir=DIR dvi documentation [DOCDIR]
1229 --pdfdir=DIR pdf documentation [DOCDIR]
1230 --psdir=DIR ps documentation [DOCDIR]
1231 _ACEOF
1232
1233 cat <<\_ACEOF
1234 _ACEOF
1235 fi
1236
1237 if test -n "$ac_init_help"; then
1238 case $ac_init_help in
1239 short | recursive ) echo "Configuration of HTSlib 1.2.1:";;
1240 esac
1241 cat <<\_ACEOF
1242
1243 Optional Packages:
1244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1246 --with-irods[=DIR] use RodsAPIs library (in DIR) to support iRODS URLs
1247
1248 Some influential environment variables:
1249 CC C compiler command
1250 CFLAGS C compiler flags
1251 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1252 nonstandard directory <lib dir>
1253 LIBS libraries to pass to the linker, e.g. -l<library>
1254 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1255 you have headers in a nonstandard directory <include dir>
1256
1257 Use these variables to override the choices made by `configure' or to help
1258 it to find libraries and programs with nonstandard names/locations.
1259
1260 Report bugs to <samtools-help@lists.sourceforge.net>.
1261 HTSlib home page: <http://www.htslib.org/>.
1262 _ACEOF
1263 ac_status=$?
1264 fi
1265
1266 if test "$ac_init_help" = "recursive"; then
1267 # If there are subdirs, report their specific --help.
1268 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1269 test -d "$ac_dir" ||
1270 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1271 continue
1272 ac_builddir=.
1273
1274 case "$ac_dir" in
1275 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1276 *)
1277 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1278 # A ".." for each directory in $ac_dir_suffix.
1279 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1280 case $ac_top_builddir_sub in
1281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1283 esac ;;
1284 esac
1285 ac_abs_top_builddir=$ac_pwd
1286 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1287 # for backward compatibility:
1288 ac_top_builddir=$ac_top_build_prefix
1289
1290 case $srcdir in
1291 .) # We are building in place.
1292 ac_srcdir=.
1293 ac_top_srcdir=$ac_top_builddir_sub
1294 ac_abs_top_srcdir=$ac_pwd ;;
1295 [\\/]* | ?:[\\/]* ) # Absolute name.
1296 ac_srcdir=$srcdir$ac_dir_suffix;
1297 ac_top_srcdir=$srcdir
1298 ac_abs_top_srcdir=$srcdir ;;
1299 *) # Relative name.
1300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1301 ac_top_srcdir=$ac_top_build_prefix$srcdir
1302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1303 esac
1304 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1305
1306 cd "$ac_dir" || { ac_status=$?; continue; }
1307 # Check for guested configure.
1308 if test -f "$ac_srcdir/configure.gnu"; then
1309 echo &&
1310 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1311 elif test -f "$ac_srcdir/configure"; then
1312 echo &&
1313 $SHELL "$ac_srcdir/configure" --help=recursive
1314 else
1315 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1316 fi || ac_status=$?
1317 cd "$ac_pwd" || { ac_status=$?; break; }
1318 done
1319 fi
1320
1321 test -n "$ac_init_help" && exit $ac_status
1322 if $ac_init_version; then
1323 cat <<\_ACEOF
1324 HTSlib configure 1.2.1
1325 generated by GNU Autoconf 2.68
1326
1327 Copyright (C) 2010 Free Software Foundation, Inc.
1328 This configure script is free software; the Free Software Foundation
1329 gives unlimited permission to copy, distribute and modify it.
1330
1331 Portions copyright (C) 2015 Genome Research Ltd.
1332
1333 This configure script is free software: you are free to change and
1334 redistribute it. There is NO WARRANTY, to the extent permitted by law.
1335 _ACEOF
1336 exit
1337 fi
1338
1339 ## ------------------------ ##
1340 ## Autoconf initialization. ##
1341 ## ------------------------ ##
1342
1343 # ac_fn_c_try_compile LINENO
1344 # --------------------------
1345 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1346 ac_fn_c_try_compile ()
1347 {
1348 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1349 rm -f conftest.$ac_objext
1350 if { { ac_try="$ac_compile"
1351 case "(($ac_try" in
1352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1353 *) ac_try_echo=$ac_try;;
1354 esac
1355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1356 $as_echo "$ac_try_echo"; } >&5
1357 (eval "$ac_compile") 2>conftest.err
1358 ac_status=$?
1359 if test -s conftest.err; then
1360 grep -v '^ *+' conftest.err >conftest.er1
1361 cat conftest.er1 >&5
1362 mv -f conftest.er1 conftest.err
1363 fi
1364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1365 test $ac_status = 0; } && {
1366 test -z "$ac_c_werror_flag" ||
1367 test ! -s conftest.err
1368 } && test -s conftest.$ac_objext; then :
1369 ac_retval=0
1370 else
1371 $as_echo "$as_me: failed program was:" >&5
1372 sed 's/^/| /' conftest.$ac_ext >&5
1373
1374 ac_retval=1
1375 fi
1376 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1377 as_fn_set_status $ac_retval
1378
1379 } # ac_fn_c_try_compile
1380
1381 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1382 # -------------------------------------------------------
1383 # Tests whether HEADER exists and can be compiled using the include files in
1384 # INCLUDES, setting the cache variable VAR accordingly.
1385 ac_fn_c_check_header_compile ()
1386 {
1387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1389 $as_echo_n "checking for $2... " >&6; }
1390 if eval \${$3+:} false; then :
1391 $as_echo_n "(cached) " >&6
1392 else
1393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1394 /* end confdefs.h. */
1395 $4
1396 #include <$2>
1397 _ACEOF
1398 if ac_fn_c_try_compile "$LINENO"; then :
1399 eval "$3=yes"
1400 else
1401 eval "$3=no"
1402 fi
1403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1404 fi
1405 eval ac_res=\$$3
1406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1407 $as_echo "$ac_res" >&6; }
1408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1409
1410 } # ac_fn_c_check_header_compile
1411
1412 # ac_fn_c_try_link LINENO
1413 # -----------------------
1414 # Try to link conftest.$ac_ext, and return whether this succeeded.
1415 ac_fn_c_try_link ()
1416 {
1417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1418 rm -f conftest.$ac_objext conftest$ac_exeext
1419 if { { ac_try="$ac_link"
1420 case "(($ac_try" in
1421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1422 *) ac_try_echo=$ac_try;;
1423 esac
1424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1425 $as_echo "$ac_try_echo"; } >&5
1426 (eval "$ac_link") 2>conftest.err
1427 ac_status=$?
1428 if test -s conftest.err; then
1429 grep -v '^ *+' conftest.err >conftest.er1
1430 cat conftest.er1 >&5
1431 mv -f conftest.er1 conftest.err
1432 fi
1433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1434 test $ac_status = 0; } && {
1435 test -z "$ac_c_werror_flag" ||
1436 test ! -s conftest.err
1437 } && test -s conftest$ac_exeext && {
1438 test "$cross_compiling" = yes ||
1439 $as_test_x conftest$ac_exeext
1440 }; then :
1441 ac_retval=0
1442 else
1443 $as_echo "$as_me: failed program was:" >&5
1444 sed 's/^/| /' conftest.$ac_ext >&5
1445
1446 ac_retval=1
1447 fi
1448 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1449 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1450 # interfere with the next link command; also delete a directory that is
1451 # left behind by Apple's compiler. We do this before executing the actions.
1452 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1454 as_fn_set_status $ac_retval
1455
1456 } # ac_fn_c_try_link
1457 cat >config.log <<_ACEOF
1458 This file contains any messages produced by compilers while
1459 running configure, to aid debugging if configure makes a mistake.
1460
1461 It was created by HTSlib $as_me 1.2.1, which was
1462 generated by GNU Autoconf 2.68. Invocation command line was
1463
1464 $ $0 $@
1465
1466 _ACEOF
1467 exec 5>>config.log
1468 {
1469 cat <<_ASUNAME
1470 ## --------- ##
1471 ## Platform. ##
1472 ## --------- ##
1473
1474 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1475 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1476 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1477 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1478 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1479
1480 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1481 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1482
1483 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1484 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1485 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1486 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1487 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1488 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1489 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1490
1491 _ASUNAME
1492
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1495 do
1496 IFS=$as_save_IFS
1497 test -z "$as_dir" && as_dir=.
1498 $as_echo "PATH: $as_dir"
1499 done
1500 IFS=$as_save_IFS
1501
1502 } >&5
1503
1504 cat >&5 <<_ACEOF
1505
1506
1507 ## ----------- ##
1508 ## Core tests. ##
1509 ## ----------- ##
1510
1511 _ACEOF
1512
1513
1514 # Keep a trace of the command line.
1515 # Strip out --no-create and --no-recursion so they do not pile up.
1516 # Strip out --silent because we don't want to record it for future runs.
1517 # Also quote any args containing shell meta-characters.
1518 # Make two passes to allow for proper duplicate-argument suppression.
1519 ac_configure_args=
1520 ac_configure_args0=
1521 ac_configure_args1=
1522 ac_must_keep_next=false
1523 for ac_pass in 1 2
1524 do
1525 for ac_arg
1526 do
1527 case $ac_arg in
1528 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1530 | -silent | --silent | --silen | --sile | --sil)
1531 continue ;;
1532 *\'*)
1533 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1534 esac
1535 case $ac_pass in
1536 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1537 2)
1538 as_fn_append ac_configure_args1 " '$ac_arg'"
1539 if test $ac_must_keep_next = true; then
1540 ac_must_keep_next=false # Got value, back to normal.
1541 else
1542 case $ac_arg in
1543 *=* | --config-cache | -C | -disable-* | --disable-* \
1544 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1545 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1546 | -with-* | --with-* | -without-* | --without-* | --x)
1547 case "$ac_configure_args0 " in
1548 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1549 esac
1550 ;;
1551 -* ) ac_must_keep_next=true ;;
1552 esac
1553 fi
1554 as_fn_append ac_configure_args " '$ac_arg'"
1555 ;;
1556 esac
1557 done
1558 done
1559 { ac_configure_args0=; unset ac_configure_args0;}
1560 { ac_configure_args1=; unset ac_configure_args1;}
1561
1562 # When interrupted or exit'd, cleanup temporary files, and complete
1563 # config.log. We remove comments because anyway the quotes in there
1564 # would cause problems or look ugly.
1565 # WARNING: Use '\'' to represent an apostrophe within the trap.
1566 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1567 trap 'exit_status=$?
1568 # Save into config.log some information that might help in debugging.
1569 {
1570 echo
1571
1572 $as_echo "## ---------------- ##
1573 ## Cache variables. ##
1574 ## ---------------- ##"
1575 echo
1576 # The following way of writing the cache mishandles newlines in values,
1577 (
1578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1579 eval ac_val=\$$ac_var
1580 case $ac_val in #(
1581 *${as_nl}*)
1582 case $ac_var in #(
1583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1584 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1585 esac
1586 case $ac_var in #(
1587 _ | IFS | as_nl) ;; #(
1588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1589 *) { eval $ac_var=; unset $ac_var;} ;;
1590 esac ;;
1591 esac
1592 done
1593 (set) 2>&1 |
1594 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1595 *${as_nl}ac_space=\ *)
1596 sed -n \
1597 "s/'\''/'\''\\\\'\'''\''/g;
1598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1599 ;; #(
1600 *)
1601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1602 ;;
1603 esac |
1604 sort
1605 )
1606 echo
1607
1608 $as_echo "## ----------------- ##
1609 ## Output variables. ##
1610 ## ----------------- ##"
1611 echo
1612 for ac_var in $ac_subst_vars
1613 do
1614 eval ac_val=\$$ac_var
1615 case $ac_val in
1616 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 esac
1618 $as_echo "$ac_var='\''$ac_val'\''"
1619 done | sort
1620 echo
1621
1622 if test -n "$ac_subst_files"; then
1623 $as_echo "## ------------------- ##
1624 ## File substitutions. ##
1625 ## ------------------- ##"
1626 echo
1627 for ac_var in $ac_subst_files
1628 do
1629 eval ac_val=\$$ac_var
1630 case $ac_val in
1631 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1632 esac
1633 $as_echo "$ac_var='\''$ac_val'\''"
1634 done | sort
1635 echo
1636 fi
1637
1638 if test -s confdefs.h; then
1639 $as_echo "## ----------- ##
1640 ## confdefs.h. ##
1641 ## ----------- ##"
1642 echo
1643 cat confdefs.h
1644 echo
1645 fi
1646 test "$ac_signal" != 0 &&
1647 $as_echo "$as_me: caught signal $ac_signal"
1648 $as_echo "$as_me: exit $exit_status"
1649 } >&5
1650 rm -f core *.core core.conftest.* &&
1651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1652 exit $exit_status
1653 ' 0
1654 for ac_signal in 1 2 13 15; do
1655 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1656 done
1657 ac_signal=0
1658
1659 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1660 rm -f -r conftest* confdefs.h
1661
1662 $as_echo "/* confdefs.h */" > confdefs.h
1663
1664 # Predefined preprocessor variables.
1665
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_NAME "$PACKAGE_NAME"
1668 _ACEOF
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1672 _ACEOF
1673
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1676 _ACEOF
1677
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_STRING "$PACKAGE_STRING"
1680 _ACEOF
1681
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1684 _ACEOF
1685
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_URL "$PACKAGE_URL"
1688 _ACEOF
1689
1690
1691 # Let the site file select an alternate cache file if it wants to.
1692 # Prefer an explicitly selected file to automatically selected ones.
1693 ac_site_file1=NONE
1694 ac_site_file2=NONE
1695 if test -n "$CONFIG_SITE"; then
1696 # We do not want a PATH search for config.site.
1697 case $CONFIG_SITE in #((
1698 -*) ac_site_file1=./$CONFIG_SITE;;
1699 */*) ac_site_file1=$CONFIG_SITE;;
1700 *) ac_site_file1=./$CONFIG_SITE;;
1701 esac
1702 elif test "x$prefix" != xNONE; then
1703 ac_site_file1=$prefix/share/config.site
1704 ac_site_file2=$prefix/etc/config.site
1705 else
1706 ac_site_file1=$ac_default_prefix/share/config.site
1707 ac_site_file2=$ac_default_prefix/etc/config.site
1708 fi
1709 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1710 do
1711 test "x$ac_site_file" = xNONE && continue
1712 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1714 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1715 sed 's/^/| /' "$ac_site_file" >&5
1716 . "$ac_site_file" \
1717 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1719 as_fn_error $? "failed to load site script $ac_site_file
1720 See \`config.log' for more details" "$LINENO" 5; }
1721 fi
1722 done
1723
1724 if test -r "$cache_file"; then
1725 # Some versions of bash will fail to source /dev/null (special files
1726 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1727 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1729 $as_echo "$as_me: loading cache $cache_file" >&6;}
1730 case $cache_file in
1731 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1732 *) . "./$cache_file";;
1733 esac
1734 fi
1735 else
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1737 $as_echo "$as_me: creating cache $cache_file" >&6;}
1738 >$cache_file
1739 fi
1740
1741 # Check that the precious variables saved in the cache have kept the same
1742 # value.
1743 ac_cache_corrupted=false
1744 for ac_var in $ac_precious_vars; do
1745 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1746 eval ac_new_set=\$ac_env_${ac_var}_set
1747 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1748 eval ac_new_val=\$ac_env_${ac_var}_value
1749 case $ac_old_set,$ac_new_set in
1750 set,)
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1752 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1753 ac_cache_corrupted=: ;;
1754 ,set)
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1756 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1757 ac_cache_corrupted=: ;;
1758 ,);;
1759 *)
1760 if test "x$ac_old_val" != "x$ac_new_val"; then
1761 # differences in whitespace do not lead to failure.
1762 ac_old_val_w=`echo x $ac_old_val`
1763 ac_new_val_w=`echo x $ac_new_val`
1764 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1766 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1767 ac_cache_corrupted=:
1768 else
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1770 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1771 eval $ac_var=\$ac_old_val
1772 fi
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1774 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1776 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1777 fi;;
1778 esac
1779 # Pass precious variables to config.status.
1780 if test "$ac_new_set" = set; then
1781 case $ac_new_val in
1782 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1783 *) ac_arg=$ac_var=$ac_new_val ;;
1784 esac
1785 case " $ac_configure_args " in
1786 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1787 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1788 esac
1789 fi
1790 done
1791 if $ac_cache_corrupted; then
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1795 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1796 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1797 fi
1798 ## -------------------- ##
1799 ## Main body of script. ##
1800 ## -------------------- ##
1801
1802 ac_ext=c
1803 ac_cpp='$CPP $CPPFLAGS'
1804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1807
1808
1809
1810
1811
1812
1813 ac_ext=c
1814 ac_cpp='$CPP $CPPFLAGS'
1815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1818 if test -n "$ac_tool_prefix"; then
1819 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1820 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1822 $as_echo_n "checking for $ac_word... " >&6; }
1823 if ${ac_cv_prog_CC+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 if test -n "$CC"; then
1827 ac_cv_prog_CC="$CC" # Let the user override the test.
1828 else
1829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830 for as_dir in $PATH
1831 do
1832 IFS=$as_save_IFS
1833 test -z "$as_dir" && as_dir=.
1834 for ac_exec_ext in '' $ac_executable_extensions; do
1835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1836 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1838 break 2
1839 fi
1840 done
1841 done
1842 IFS=$as_save_IFS
1843
1844 fi
1845 fi
1846 CC=$ac_cv_prog_CC
1847 if test -n "$CC"; then
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1849 $as_echo "$CC" >&6; }
1850 else
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1852 $as_echo "no" >&6; }
1853 fi
1854
1855
1856 fi
1857 if test -z "$ac_cv_prog_CC"; then
1858 ac_ct_CC=$CC
1859 # Extract the first word of "gcc", so it can be a program name with args.
1860 set dummy gcc; ac_word=$2
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1862 $as_echo_n "checking for $ac_word... " >&6; }
1863 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 if test -n "$ac_ct_CC"; then
1867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868 else
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 for as_dir in $PATH
1871 do
1872 IFS=$as_save_IFS
1873 test -z "$as_dir" && as_dir=.
1874 for ac_exec_ext in '' $ac_executable_extensions; do
1875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1876 ac_cv_prog_ac_ct_CC="gcc"
1877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1878 break 2
1879 fi
1880 done
1881 done
1882 IFS=$as_save_IFS
1883
1884 fi
1885 fi
1886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1887 if test -n "$ac_ct_CC"; then
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1889 $as_echo "$ac_ct_CC" >&6; }
1890 else
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1892 $as_echo "no" >&6; }
1893 fi
1894
1895 if test "x$ac_ct_CC" = x; then
1896 CC=""
1897 else
1898 case $cross_compiling:$ac_tool_warned in
1899 yes:)
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1902 ac_tool_warned=yes ;;
1903 esac
1904 CC=$ac_ct_CC
1905 fi
1906 else
1907 CC="$ac_cv_prog_CC"
1908 fi
1909
1910 if test -z "$CC"; then
1911 if test -n "$ac_tool_prefix"; then
1912 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1913 set dummy ${ac_tool_prefix}cc; ac_word=$2
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1915 $as_echo_n "checking for $ac_word... " >&6; }
1916 if ${ac_cv_prog_CC+:} false; then :
1917 $as_echo_n "(cached) " >&6
1918 else
1919 if test -n "$CC"; then
1920 ac_cv_prog_CC="$CC" # Let the user override the test.
1921 else
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925 IFS=$as_save_IFS
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1929 ac_cv_prog_CC="${ac_tool_prefix}cc"
1930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1931 break 2
1932 fi
1933 done
1934 done
1935 IFS=$as_save_IFS
1936
1937 fi
1938 fi
1939 CC=$ac_cv_prog_CC
1940 if test -n "$CC"; then
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1942 $as_echo "$CC" >&6; }
1943 else
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1945 $as_echo "no" >&6; }
1946 fi
1947
1948
1949 fi
1950 fi
1951 if test -z "$CC"; then
1952 # Extract the first word of "cc", so it can be a program name with args.
1953 set dummy cc; ac_word=$2
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1955 $as_echo_n "checking for $ac_word... " >&6; }
1956 if ${ac_cv_prog_CC+:} false; then :
1957 $as_echo_n "(cached) " >&6
1958 else
1959 if test -n "$CC"; then
1960 ac_cv_prog_CC="$CC" # Let the user override the test.
1961 else
1962 ac_prog_rejected=no
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1970 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1971 ac_prog_rejected=yes
1972 continue
1973 fi
1974 ac_cv_prog_CC="cc"
1975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1976 break 2
1977 fi
1978 done
1979 done
1980 IFS=$as_save_IFS
1981
1982 if test $ac_prog_rejected = yes; then
1983 # We found a bogon in the path, so make sure we never use it.
1984 set dummy $ac_cv_prog_CC
1985 shift
1986 if test $# != 0; then
1987 # We chose a different compiler from the bogus one.
1988 # However, it has the same basename, so the bogon will be chosen
1989 # first if we set CC to just the basename; use the full file name.
1990 shift
1991 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1992 fi
1993 fi
1994 fi
1995 fi
1996 CC=$ac_cv_prog_CC
1997 if test -n "$CC"; then
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1999 $as_echo "$CC" >&6; }
2000 else
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2002 $as_echo "no" >&6; }
2003 fi
2004
2005
2006 fi
2007 if test -z "$CC"; then
2008 if test -n "$ac_tool_prefix"; then
2009 for ac_prog in cl.exe
2010 do
2011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2014 $as_echo_n "checking for $ac_word... " >&6; }
2015 if ${ac_cv_prog_CC+:} false; then :
2016 $as_echo_n "(cached) " >&6
2017 else
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC="$CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 break 2
2031 fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2041 $as_echo "$CC" >&6; }
2042 else
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2044 $as_echo "no" >&6; }
2045 fi
2046
2047
2048 test -n "$CC" && break
2049 done
2050 fi
2051 if test -z "$CC"; then
2052 ac_ct_CC=$CC
2053 for ac_prog in cl.exe
2054 do
2055 # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy $ac_prog; ac_word=$2
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2058 $as_echo_n "checking for $ac_word... " >&6; }
2059 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2060 $as_echo_n "(cached) " >&6
2061 else
2062 if test -n "$ac_ct_CC"; then
2063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064 else
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2067 do
2068 IFS=$as_save_IFS
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2072 ac_cv_prog_ac_ct_CC="$ac_prog"
2073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 break 2
2075 fi
2076 done
2077 done
2078 IFS=$as_save_IFS
2079
2080 fi
2081 fi
2082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083 if test -n "$ac_ct_CC"; then
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2085 $as_echo "$ac_ct_CC" >&6; }
2086 else
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2088 $as_echo "no" >&6; }
2089 fi
2090
2091
2092 test -n "$ac_ct_CC" && break
2093 done
2094
2095 if test "x$ac_ct_CC" = x; then
2096 CC=""
2097 else
2098 case $cross_compiling:$ac_tool_warned in
2099 yes:)
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2102 ac_tool_warned=yes ;;
2103 esac
2104 CC=$ac_ct_CC
2105 fi
2106 fi
2107
2108 fi
2109
2110
2111 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2113 as_fn_error $? "no acceptable C compiler found in \$PATH
2114 See \`config.log' for more details" "$LINENO" 5; }
2115
2116 # Provide some information about the compiler.
2117 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2118 set X $ac_compile
2119 ac_compiler=$2
2120 for ac_option in --version -v -V -qversion; do
2121 { { ac_try="$ac_compiler $ac_option >&5"
2122 case "(($ac_try" in
2123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124 *) ac_try_echo=$ac_try;;
2125 esac
2126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127 $as_echo "$ac_try_echo"; } >&5
2128 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2129 ac_status=$?
2130 if test -s conftest.err; then
2131 sed '10a\
2132 ... rest of stderr output deleted ...
2133 10q' conftest.err >conftest.er1
2134 cat conftest.er1 >&5
2135 fi
2136 rm -f conftest.er1 conftest.err
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; }
2139 done
2140
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2143
2144 int
2145 main ()
2146 {
2147
2148 ;
2149 return 0;
2150 }
2151 _ACEOF
2152 ac_clean_files_save=$ac_clean_files
2153 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2154 # Try to create an executable without -o first, disregard a.out.
2155 # It will help us diagnose broken compilers, and finding out an intuition
2156 # of exeext.
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2158 $as_echo_n "checking whether the C compiler works... " >&6; }
2159 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2160
2161 # The possible output files:
2162 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2163
2164 ac_rmfiles=
2165 for ac_file in $ac_files
2166 do
2167 case $ac_file in
2168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2169 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2170 esac
2171 done
2172 rm -f $ac_rmfiles
2173
2174 if { { ac_try="$ac_link_default"
2175 case "(($ac_try" in
2176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177 *) ac_try_echo=$ac_try;;
2178 esac
2179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2180 $as_echo "$ac_try_echo"; } >&5
2181 (eval "$ac_link_default") 2>&5
2182 ac_status=$?
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; }; then :
2185 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2186 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2187 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2188 # so that the user can short-circuit this test for compilers unknown to
2189 # Autoconf.
2190 for ac_file in $ac_files ''
2191 do
2192 test -f "$ac_file" || continue
2193 case $ac_file in
2194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2195 ;;
2196 [ab].out )
2197 # We found the default executable, but exeext='' is most
2198 # certainly right.
2199 break;;
2200 *.* )
2201 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2202 then :; else
2203 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2204 fi
2205 # We set ac_cv_exeext here because the later test for it is not
2206 # safe: cross compilers may not add the suffix if given an `-o'
2207 # argument, so we may need to know it at that point already.
2208 # Even if this section looks crufty: it has the advantage of
2209 # actually working.
2210 break;;
2211 * )
2212 break;;
2213 esac
2214 done
2215 test "$ac_cv_exeext" = no && ac_cv_exeext=
2216
2217 else
2218 ac_file=''
2219 fi
2220 if test -z "$ac_file"; then :
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2222 $as_echo "no" >&6; }
2223 $as_echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228 as_fn_error 77 "C compiler cannot create executables
2229 See \`config.log' for more details" "$LINENO" 5; }
2230 else
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2232 $as_echo "yes" >&6; }
2233 fi
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2235 $as_echo_n "checking for C compiler default output file name... " >&6; }
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2237 $as_echo "$ac_file" >&6; }
2238 ac_exeext=$ac_cv_exeext
2239
2240 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2241 ac_clean_files=$ac_clean_files_save
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2243 $as_echo_n "checking for suffix of executables... " >&6; }
2244 if { { ac_try="$ac_link"
2245 case "(($ac_try" in
2246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247 *) ac_try_echo=$ac_try;;
2248 esac
2249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2250 $as_echo "$ac_try_echo"; } >&5
2251 (eval "$ac_link") 2>&5
2252 ac_status=$?
2253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2254 test $ac_status = 0; }; then :
2255 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2258 # `rm'.
2259 for ac_file in conftest.exe conftest conftest.*; do
2260 test -f "$ac_file" || continue
2261 case $ac_file in
2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264 break;;
2265 * ) break;;
2266 esac
2267 done
2268 else
2269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2271 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2272 See \`config.log' for more details" "$LINENO" 5; }
2273 fi
2274 rm -f conftest conftest$ac_cv_exeext
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2276 $as_echo "$ac_cv_exeext" >&6; }
2277
2278 rm -f conftest.$ac_ext
2279 EXEEXT=$ac_cv_exeext
2280 ac_exeext=$EXEEXT
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2283 #include <stdio.h>
2284 int
2285 main ()
2286 {
2287 FILE *f = fopen ("conftest.out", "w");
2288 return ferror (f) || fclose (f) != 0;
2289
2290 ;
2291 return 0;
2292 }
2293 _ACEOF
2294 ac_clean_files="$ac_clean_files conftest.out"
2295 # Check that the compiler produces executables we can run. If not, either
2296 # the compiler is broken, or we cross compile.
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2298 $as_echo_n "checking whether we are cross compiling... " >&6; }
2299 if test "$cross_compiling" != yes; then
2300 { { ac_try="$ac_link"
2301 case "(($ac_try" in
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2304 esac
2305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306 $as_echo "$ac_try_echo"; } >&5
2307 (eval "$ac_link") 2>&5
2308 ac_status=$?
2309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; }
2311 if { ac_try='./conftest$ac_cv_exeext'
2312 { { case "(($ac_try" in
2313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2314 *) ac_try_echo=$ac_try;;
2315 esac
2316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2317 $as_echo "$ac_try_echo"; } >&5
2318 (eval "$ac_try") 2>&5
2319 ac_status=$?
2320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2321 test $ac_status = 0; }; }; then
2322 cross_compiling=no
2323 else
2324 if test "$cross_compiling" = maybe; then
2325 cross_compiling=yes
2326 else
2327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2329 as_fn_error $? "cannot run C compiled programs.
2330 If you meant to cross compile, use \`--host'.
2331 See \`config.log' for more details" "$LINENO" 5; }
2332 fi
2333 fi
2334 fi
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2336 $as_echo "$cross_compiling" >&6; }
2337
2338 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2339 ac_clean_files=$ac_clean_files_save
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2341 $as_echo_n "checking for suffix of object files... " >&6; }
2342 if ${ac_cv_objext+:} false; then :
2343 $as_echo_n "(cached) " >&6
2344 else
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2347
2348 int
2349 main ()
2350 {
2351
2352 ;
2353 return 0;
2354 }
2355 _ACEOF
2356 rm -f conftest.o conftest.obj
2357 if { { ac_try="$ac_compile"
2358 case "(($ac_try" in
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2361 esac
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 $as_echo "$ac_try_echo"; } >&5
2364 (eval "$ac_compile") 2>&5
2365 ac_status=$?
2366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2367 test $ac_status = 0; }; then :
2368 for ac_file in conftest.o conftest.obj conftest.*; do
2369 test -f "$ac_file" || continue;
2370 case $ac_file in
2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2372 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2373 break;;
2374 esac
2375 done
2376 else
2377 $as_echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2379
2380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2382 as_fn_error $? "cannot compute suffix of object files: cannot compile
2383 See \`config.log' for more details" "$LINENO" 5; }
2384 fi
2385 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2386 fi
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2388 $as_echo "$ac_cv_objext" >&6; }
2389 OBJEXT=$ac_cv_objext
2390 ac_objext=$OBJEXT
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2392 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2393 if ${ac_cv_c_compiler_gnu+:} false; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2398
2399 int
2400 main ()
2401 {
2402 #ifndef __GNUC__
2403 choke me
2404 #endif
2405
2406 ;
2407 return 0;
2408 }
2409 _ACEOF
2410 if ac_fn_c_try_compile "$LINENO"; then :
2411 ac_compiler_gnu=yes
2412 else
2413 ac_compiler_gnu=no
2414 fi
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2417
2418 fi
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2420 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2421 if test $ac_compiler_gnu = yes; then
2422 GCC=yes
2423 else
2424 GCC=
2425 fi
2426 ac_test_CFLAGS=${CFLAGS+set}
2427 ac_save_CFLAGS=$CFLAGS
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2429 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2430 if ${ac_cv_prog_cc_g+:} false; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 ac_save_c_werror_flag=$ac_c_werror_flag
2434 ac_c_werror_flag=yes
2435 ac_cv_prog_cc_g=no
2436 CFLAGS="-g"
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2439
2440 int
2441 main ()
2442 {
2443
2444 ;
2445 return 0;
2446 }
2447 _ACEOF
2448 if ac_fn_c_try_compile "$LINENO"; then :
2449 ac_cv_prog_cc_g=yes
2450 else
2451 CFLAGS=""
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2454
2455 int
2456 main ()
2457 {
2458
2459 ;
2460 return 0;
2461 }
2462 _ACEOF
2463 if ac_fn_c_try_compile "$LINENO"; then :
2464
2465 else
2466 ac_c_werror_flag=$ac_save_c_werror_flag
2467 CFLAGS="-g"
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2470
2471 int
2472 main ()
2473 {
2474
2475 ;
2476 return 0;
2477 }
2478 _ACEOF
2479 if ac_fn_c_try_compile "$LINENO"; then :
2480 ac_cv_prog_cc_g=yes
2481 fi
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2483 fi
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 fi
2486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 ac_c_werror_flag=$ac_save_c_werror_flag
2488 fi
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2490 $as_echo "$ac_cv_prog_cc_g" >&6; }
2491 if test "$ac_test_CFLAGS" = set; then
2492 CFLAGS=$ac_save_CFLAGS
2493 elif test $ac_cv_prog_cc_g = yes; then
2494 if test "$GCC" = yes; then
2495 CFLAGS="-g -O2"
2496 else
2497 CFLAGS="-g"
2498 fi
2499 else
2500 if test "$GCC" = yes; then
2501 CFLAGS="-O2"
2502 else
2503 CFLAGS=
2504 fi
2505 fi
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2507 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2508 if ${ac_cv_prog_cc_c89+:} false; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 ac_cv_prog_cc_c89=no
2512 ac_save_CC=$CC
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2515 #include <stdarg.h>
2516 #include <stdio.h>
2517 #include <sys/types.h>
2518 #include <sys/stat.h>
2519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2520 struct buf { int x; };
2521 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2522 static char *e (p, i)
2523 char **p;
2524 int i;
2525 {
2526 return p[i];
2527 }
2528 static char *f (char * (*g) (char **, int), char **p, ...)
2529 {
2530 char *s;
2531 va_list v;
2532 va_start (v,p);
2533 s = g (p, va_arg (v,int));
2534 va_end (v);
2535 return s;
2536 }
2537
2538 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2539 function prototypes and stuff, but not '\xHH' hex character constants.
2540 These don't provoke an error unfortunately, instead are silently treated
2541 as 'x'. The following induces an error, until -std is added to get
2542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2543 array size at least. It's necessary to write '\x00'==0 to get something
2544 that's true only with -std. */
2545 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2546
2547 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2548 inside strings and character constants. */
2549 #define FOO(x) 'x'
2550 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2551
2552 int test (int i, double x);
2553 struct s1 {int (*f) (int a);};
2554 struct s2 {int (*f) (double a);};
2555 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2556 int argc;
2557 char **argv;
2558 int
2559 main ()
2560 {
2561 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2562 ;
2563 return 0;
2564 }
2565 _ACEOF
2566 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2567 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2568 do
2569 CC="$ac_save_CC $ac_arg"
2570 if ac_fn_c_try_compile "$LINENO"; then :
2571 ac_cv_prog_cc_c89=$ac_arg
2572 fi
2573 rm -f core conftest.err conftest.$ac_objext
2574 test "x$ac_cv_prog_cc_c89" != "xno" && break
2575 done
2576 rm -f conftest.$ac_ext
2577 CC=$ac_save_CC
2578
2579 fi
2580 # AC_CACHE_VAL
2581 case "x$ac_cv_prog_cc_c89" in
2582 x)
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2584 $as_echo "none needed" >&6; } ;;
2585 xno)
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2587 $as_echo "unsupported" >&6; } ;;
2588 *)
2589 CC="$CC $ac_cv_prog_cc_c89"
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2591 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2592 esac
2593 if test "x$ac_cv_prog_cc_c89" != xno; then :
2594
2595 fi
2596
2597 ac_ext=c
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602
2603 if test -n "$ac_tool_prefix"; then
2604 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2605 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if ${ac_cv_prog_RANLIB+:} false; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 if test -n "$RANLIB"; then
2612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2624 fi
2625 done
2626 done
2627 IFS=$as_save_IFS
2628
2629 fi
2630 fi
2631 RANLIB=$ac_cv_prog_RANLIB
2632 if test -n "$RANLIB"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2634 $as_echo "$RANLIB" >&6; }
2635 else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2638 fi
2639
2640
2641 fi
2642 if test -z "$ac_cv_prog_RANLIB"; then
2643 ac_ct_RANLIB=$RANLIB
2644 # Extract the first word of "ranlib", so it can be a program name with args.
2645 set dummy ranlib; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 if test -n "$ac_ct_RANLIB"; then
2652 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_ac_ct_RANLIB="ranlib"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665 done
2666 done
2667 IFS=$as_save_IFS
2668
2669 fi
2670 fi
2671 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2672 if test -n "$ac_ct_RANLIB"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2674 $as_echo "$ac_ct_RANLIB" >&6; }
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 fi
2679
2680 if test "x$ac_ct_RANLIB" = x; then
2681 RANLIB=":"
2682 else
2683 case $cross_compiling:$ac_tool_warned in
2684 yes:)
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2687 ac_tool_warned=yes ;;
2688 esac
2689 RANLIB=$ac_ct_RANLIB
2690 fi
2691 else
2692 RANLIB="$ac_cv_prog_RANLIB"
2693 fi
2694
2695
2696
2697 # Check whether --with-irods was given.
2698 if test "${with_irods+set}" = set; then :
2699 withval=$with_irods; case $withval in
2700 no) irods=disabled ;;
2701 yes) irods=enabled ;;
2702 *) irods=enabled; IRODS_HOME=$withval ;;
2703 esac
2704 else
2705 irods=disabled
2706 fi
2707
2708
2709 save_LIBS=$LIBS
2710 zlib_devel=ok
2711
2712 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" ";
2713 "
2714 if test "x$ac_cv_header_zlib_h" = xyes; then :
2715
2716 else
2717 zlib_devel=missing
2718 fi
2719
2720
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
2722 $as_echo_n "checking for inflate in -lz... " >&6; }
2723 if ${ac_cv_lib_z_inflate+:} false; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 ac_check_lib_save_LIBS=$LIBS
2727 LIBS="-lz $LIBS"
2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h. */
2730
2731 /* Override any GCC internal prototype to avoid an error.
2732 Use char because int might match the return type of a GCC
2733 builtin and then its argument prototype would still apply. */
2734 #ifdef __cplusplus
2735 extern "C"
2736 #endif
2737 char inflate ();
2738 int
2739 main ()
2740 {
2741 return inflate ();
2742 ;
2743 return 0;
2744 }
2745 _ACEOF
2746 if ac_fn_c_try_link "$LINENO"; then :
2747 ac_cv_lib_z_inflate=yes
2748 else
2749 ac_cv_lib_z_inflate=no
2750 fi
2751 rm -f core conftest.err conftest.$ac_objext \
2752 conftest$ac_exeext conftest.$ac_ext
2753 LIBS=$ac_check_lib_save_LIBS
2754 fi
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
2756 $as_echo "$ac_cv_lib_z_inflate" >&6; }
2757 if test "x$ac_cv_lib_z_inflate" = xyes; then :
2758 cat >>confdefs.h <<_ACEOF
2759 #define HAVE_LIBZ 1
2760 _ACEOF
2761
2762 LIBS="-lz $LIBS"
2763
2764 else
2765 zlib_devel=missing
2766 fi
2767
2768 LIBS=$save_LIBS
2769
2770 if test $zlib_devel != ok; then
2771 as_fn_error $? "zlib development files not found
2772
2773 HTSlib uses compression routines from the zlib library <http://zlib.net>.
2774 Building HTSlib requires zlib development files to be installed on the build
2775 machine; you may need to ensure a package such as zlib1g-dev (on Debian or
2776 Ubuntu Linux) or zlib-devel (on RPM-based Linux distributions) is installed.
2777
2778 FAILED. This error must be resolved in order to build HTSlib successfully." "$LINENO" 5
2779 fi
2780
2781 if test $irods = enabled; then
2782 # TODO Also test whether we require libgssapi_krb5 and AC_CHECK_LIB it
2783 save_LDFLAGS=$LDFLAGS
2784 LDFLAGS="$LDFLAGS -L$IRODS_HOME/lib/core/obj"
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getRodsEnvFileName in -lRodsAPIs" >&5
2786 $as_echo_n "checking for getRodsEnvFileName in -lRodsAPIs... " >&6; }
2787 if ${ac_cv_lib_RodsAPIs_getRodsEnvFileName+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 ac_check_lib_save_LIBS=$LIBS
2791 LIBS="-lRodsAPIs -lgssapi_krb5 -lpthread $LIBS"
2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h. */
2794
2795 /* Override any GCC internal prototype to avoid an error.
2796 Use char because int might match the return type of a GCC
2797 builtin and then its argument prototype would still apply. */
2798 #ifdef __cplusplus
2799 extern "C"
2800 #endif
2801 char getRodsEnvFileName ();
2802 int
2803 main ()
2804 {
2805 return getRodsEnvFileName ();
2806 ;
2807 return 0;
2808 }
2809 _ACEOF
2810 if ac_fn_c_try_link "$LINENO"; then :
2811 ac_cv_lib_RodsAPIs_getRodsEnvFileName=yes
2812 else
2813 ac_cv_lib_RodsAPIs_getRodsEnvFileName=no
2814 fi
2815 rm -f core conftest.err conftest.$ac_objext \
2816 conftest$ac_exeext conftest.$ac_ext
2817 LIBS=$ac_check_lib_save_LIBS
2818 fi
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_RodsAPIs_getRodsEnvFileName" >&5
2820 $as_echo "$ac_cv_lib_RodsAPIs_getRodsEnvFileName" >&6; }
2821 if test "x$ac_cv_lib_RodsAPIs_getRodsEnvFileName" = xyes; then :
2822 case $with_irods in
2823 yes) define_IRODS_HOME='# Uses $(IRODS_HOME) from the environment' ;;
2824 *) define_IRODS_HOME="IRODS_HOME = $with_irods" ;;
2825 esac
2826 else
2827 as_fn_error $? "iRODS development files not found
2828
2829 Support for iRODS URLs requires the libRodsAPI client library and headers.
2830 Configure with --with-irods=DIR (or just --with-irods if \$IRODS_HOME has
2831 been exported with a suitable value), where DIR is the base of an iRODS tree
2832 such that the library is present as DIR/lib/core/obj/libRodsAPI.* and headers
2833 are present under DIR/lib/api/include and so on." "$LINENO" 5
2834 fi
2835
2836 LDFLAGS=$save_LDFLAGS
2837 else
2838 define_IRODS_HOME='IRODS_HOME ?= /disabled'
2839 fi
2840
2841
2842
2843 ac_config_files="$ac_config_files config.mk"
2844
2845 cat >confcache <<\_ACEOF
2846 # This file is a shell script that caches the results of configure
2847 # tests run on this system so they can be shared between configure
2848 # scripts and configure runs, see configure's option --config-cache.
2849 # It is not useful on other systems. If it contains results you don't
2850 # want to keep, you may remove or edit it.
2851 #
2852 # config.status only pays attention to the cache file if you give it
2853 # the --recheck option to rerun configure.
2854 #
2855 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2856 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2857 # following values.
2858
2859 _ACEOF
2860
2861 # The following way of writing the cache mishandles newlines in values,
2862 # but we know of no workaround that is simple, portable, and efficient.
2863 # So, we kill variables containing newlines.
2864 # Ultrix sh set writes to stderr and can't be redirected directly,
2865 # and sets the high bit in the cache file unless we assign to the vars.
2866 (
2867 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2868 eval ac_val=\$$ac_var
2869 case $ac_val in #(
2870 *${as_nl}*)
2871 case $ac_var in #(
2872 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2873 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2874 esac
2875 case $ac_var in #(
2876 _ | IFS | as_nl) ;; #(
2877 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2878 *) { eval $ac_var=; unset $ac_var;} ;;
2879 esac ;;
2880 esac
2881 done
2882
2883 (set) 2>&1 |
2884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2885 *${as_nl}ac_space=\ *)
2886 # `set' does not quote correctly, so add quotes: double-quote
2887 # substitution turns \\\\ into \\, and sed turns \\ into \.
2888 sed -n \
2889 "s/'/'\\\\''/g;
2890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2891 ;; #(
2892 *)
2893 # `set' quotes correctly as required by POSIX, so do not add quotes.
2894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2895 ;;
2896 esac |
2897 sort
2898 ) |
2899 sed '
2900 /^ac_cv_env_/b end
2901 t clear
2902 :clear
2903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2904 t end
2905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2906 :end' >>confcache
2907 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2908 if test -w "$cache_file"; then
2909 if test "x$cache_file" != "x/dev/null"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2911 $as_echo "$as_me: updating cache $cache_file" >&6;}
2912 if test ! -f "$cache_file" || test -h "$cache_file"; then
2913 cat confcache >"$cache_file"
2914 else
2915 case $cache_file in #(
2916 */* | ?:*)
2917 mv -f confcache "$cache_file"$$ &&
2918 mv -f "$cache_file"$$ "$cache_file" ;; #(
2919 *)
2920 mv -f confcache "$cache_file" ;;
2921 esac
2922 fi
2923 fi
2924 else
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2926 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2927 fi
2928 fi
2929 rm -f confcache
2930
2931 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2932 # Let make expand exec_prefix.
2933 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2934
2935 # Transform confdefs.h into DEFS.
2936 # Protect against shell expansion while executing Makefile rules.
2937 # Protect against Makefile macro expansion.
2938 #
2939 # If the first sed substitution is executed (which looks for macros that
2940 # take arguments), then branch to the quote section. Otherwise,
2941 # look for a macro that doesn't take arguments.
2942 ac_script='
2943 :mline
2944 /\\$/{
2945 N
2946 s,\\\n,,
2947 b mline
2948 }
2949 t clear
2950 :clear
2951 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2952 t quote
2953 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2954 t quote
2955 b any
2956 :quote
2957 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2958 s/\[/\\&/g
2959 s/\]/\\&/g
2960 s/\$/$$/g
2961 H
2962 :any
2963 ${
2964 g
2965 s/^\n//
2966 s/\n/ /g
2967 p
2968 }
2969 '
2970 DEFS=`sed -n "$ac_script" confdefs.h`
2971
2972
2973 ac_libobjs=
2974 ac_ltlibobjs=
2975 U=
2976 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2977 # 1. Remove the extension, and $U if already installed.
2978 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2979 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2980 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2981 # will be set to the directory where LIBOBJS objects are built.
2982 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2983 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2984 done
2985 LIBOBJS=$ac_libobjs
2986
2987 LTLIBOBJS=$ac_ltlibobjs
2988
2989
2990
2991 : "${CONFIG_STATUS=./config.status}"
2992 ac_write_fail=0
2993 ac_clean_files_save=$ac_clean_files
2994 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2996 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2997 as_write_fail=0
2998 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2999 #! $SHELL
3000 # Generated by $as_me.
3001 # Run this file to recreate the current configuration.
3002 # Compiler output produced by configure, useful for debugging
3003 # configure, is in config.log if it exists.
3004
3005 debug=false
3006 ac_cs_recheck=false
3007 ac_cs_silent=false
3008
3009 SHELL=\${CONFIG_SHELL-$SHELL}
3010 export SHELL
3011 _ASEOF
3012 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3013 ## -------------------- ##
3014 ## M4sh Initialization. ##
3015 ## -------------------- ##
3016
3017 # Be more Bourne compatible
3018 DUALCASE=1; export DUALCASE # for MKS sh
3019 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3020 emulate sh
3021 NULLCMD=:
3022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3023 # is contrary to our usage. Disable this feature.
3024 alias -g '${1+"$@"}'='"$@"'
3025 setopt NO_GLOB_SUBST
3026 else
3027 case `(set -o) 2>/dev/null` in #(
3028 *posix*) :
3029 set -o posix ;; #(
3030 *) :
3031 ;;
3032 esac
3033 fi
3034
3035
3036 as_nl='
3037 '
3038 export as_nl
3039 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3040 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3041 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3042 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3043 # Prefer a ksh shell builtin over an external printf program on Solaris,
3044 # but without wasting forks for bash or zsh.
3045 if test -z "$BASH_VERSION$ZSH_VERSION" \
3046 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3047 as_echo='print -r --'
3048 as_echo_n='print -rn --'
3049 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3050 as_echo='printf %s\n'
3051 as_echo_n='printf %s'
3052 else
3053 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3054 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3055 as_echo_n='/usr/ucb/echo -n'
3056 else
3057 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3058 as_echo_n_body='eval
3059 arg=$1;
3060 case $arg in #(
3061 *"$as_nl"*)
3062 expr "X$arg" : "X\\(.*\\)$as_nl";
3063 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3064 esac;
3065 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3066 '
3067 export as_echo_n_body
3068 as_echo_n='sh -c $as_echo_n_body as_echo'
3069 fi
3070 export as_echo_body
3071 as_echo='sh -c $as_echo_body as_echo'
3072 fi
3073
3074 # The user is always right.
3075 if test "${PATH_SEPARATOR+set}" != set; then
3076 PATH_SEPARATOR=:
3077 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3078 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3079 PATH_SEPARATOR=';'
3080 }
3081 fi
3082
3083
3084 # IFS
3085 # We need space, tab and new line, in precisely that order. Quoting is
3086 # there to prevent editors from complaining about space-tab.
3087 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3088 # splitting by setting IFS to empty value.)
3089 IFS=" "" $as_nl"
3090
3091 # Find who we are. Look in the path if we contain no directory separator.
3092 as_myself=
3093 case $0 in #((
3094 *[\\/]* ) as_myself=$0 ;;
3095 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3101 done
3102 IFS=$as_save_IFS
3103
3104 ;;
3105 esac
3106 # We did not find ourselves, most probably we were run as `sh COMMAND'
3107 # in which case we are not to be found in the path.
3108 if test "x$as_myself" = x; then
3109 as_myself=$0
3110 fi
3111 if test ! -f "$as_myself"; then
3112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3113 exit 1
3114 fi
3115
3116 # Unset variables that we do not need and which cause bugs (e.g. in
3117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3118 # suppresses any "Segmentation fault" message there. '((' could
3119 # trigger a bug in pdksh 5.2.14.
3120 for as_var in BASH_ENV ENV MAIL MAILPATH
3121 do eval test x\${$as_var+set} = xset \
3122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3123 done
3124 PS1='$ '
3125 PS2='> '
3126 PS4='+ '
3127
3128 # NLS nuisances.
3129 LC_ALL=C
3130 export LC_ALL
3131 LANGUAGE=C
3132 export LANGUAGE
3133
3134 # CDPATH.
3135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3136
3137
3138 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3139 # ----------------------------------------
3140 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3141 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3142 # script with STATUS, using 1 if that was 0.
3143 as_fn_error ()
3144 {
3145 as_status=$1; test $as_status -eq 0 && as_status=1
3146 if test "$4"; then
3147 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3148 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3149 fi
3150 $as_echo "$as_me: error: $2" >&2
3151 as_fn_exit $as_status
3152 } # as_fn_error
3153
3154
3155 # as_fn_set_status STATUS
3156 # -----------------------
3157 # Set $? to STATUS, without forking.
3158 as_fn_set_status ()
3159 {
3160 return $1
3161 } # as_fn_set_status
3162
3163 # as_fn_exit STATUS
3164 # -----------------
3165 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3166 as_fn_exit ()
3167 {
3168 set +e
3169 as_fn_set_status $1
3170 exit $1
3171 } # as_fn_exit
3172
3173 # as_fn_unset VAR
3174 # ---------------
3175 # Portably unset VAR.
3176 as_fn_unset ()
3177 {
3178 { eval $1=; unset $1;}
3179 }
3180 as_unset=as_fn_unset
3181 # as_fn_append VAR VALUE
3182 # ----------------------
3183 # Append the text in VALUE to the end of the definition contained in VAR. Take
3184 # advantage of any shell optimizations that allow amortized linear growth over
3185 # repeated appends, instead of the typical quadratic growth present in naive
3186 # implementations.
3187 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3188 eval 'as_fn_append ()
3189 {
3190 eval $1+=\$2
3191 }'
3192 else
3193 as_fn_append ()
3194 {
3195 eval $1=\$$1\$2
3196 }
3197 fi # as_fn_append
3198
3199 # as_fn_arith ARG...
3200 # ------------------
3201 # Perform arithmetic evaluation on the ARGs, and store the result in the
3202 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3203 # must be portable across $(()) and expr.
3204 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3205 eval 'as_fn_arith ()
3206 {
3207 as_val=$(( $* ))
3208 }'
3209 else
3210 as_fn_arith ()
3211 {
3212 as_val=`expr "$@" || test $? -eq 1`
3213 }
3214 fi # as_fn_arith
3215
3216
3217 if expr a : '\(a\)' >/dev/null 2>&1 &&
3218 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3219 as_expr=expr
3220 else
3221 as_expr=false
3222 fi
3223
3224 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3225 as_basename=basename
3226 else
3227 as_basename=false
3228 fi
3229
3230 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3231 as_dirname=dirname
3232 else
3233 as_dirname=false
3234 fi
3235
3236 as_me=`$as_basename -- "$0" ||
3237 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3238 X"$0" : 'X\(//\)$' \| \
3239 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3240 $as_echo X/"$0" |
3241 sed '/^.*\/\([^/][^/]*\)\/*$/{
3242 s//\1/
3243 q
3244 }
3245 /^X\/\(\/\/\)$/{
3246 s//\1/
3247 q
3248 }
3249 /^X\/\(\/\).*/{
3250 s//\1/
3251 q
3252 }
3253 s/.*/./; q'`
3254
3255 # Avoid depending upon Character Ranges.
3256 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3257 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3258 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3259 as_cr_digits='0123456789'
3260 as_cr_alnum=$as_cr_Letters$as_cr_digits
3261
3262 ECHO_C= ECHO_N= ECHO_T=
3263 case `echo -n x` in #(((((
3264 -n*)
3265 case `echo 'xy\c'` in
3266 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3267 xy) ECHO_C='\c';;
3268 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3269 ECHO_T=' ';;
3270 esac;;
3271 *)
3272 ECHO_N='-n';;
3273 esac
3274
3275 rm -f conf$$ conf$$.exe conf$$.file
3276 if test -d conf$$.dir; then
3277 rm -f conf$$.dir/conf$$.file
3278 else
3279 rm -f conf$$.dir
3280 mkdir conf$$.dir 2>/dev/null
3281 fi
3282 if (echo >conf$$.file) 2>/dev/null; then
3283 if ln -s conf$$.file conf$$ 2>/dev/null; then
3284 as_ln_s='ln -s'
3285 # ... but there are two gotchas:
3286 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3287 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3288 # In both cases, we have to default to `cp -p'.
3289 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3290 as_ln_s='cp -p'
3291 elif ln conf$$.file conf$$ 2>/dev/null; then
3292 as_ln_s=ln
3293 else
3294 as_ln_s='cp -p'
3295 fi
3296 else
3297 as_ln_s='cp -p'
3298 fi
3299 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3300 rmdir conf$$.dir 2>/dev/null
3301
3302
3303 # as_fn_mkdir_p
3304 # -------------
3305 # Create "$as_dir" as a directory, including parents if necessary.
3306 as_fn_mkdir_p ()
3307 {
3308
3309 case $as_dir in #(
3310 -*) as_dir=./$as_dir;;
3311 esac
3312 test -d "$as_dir" || eval $as_mkdir_p || {
3313 as_dirs=
3314 while :; do
3315 case $as_dir in #(
3316 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3317 *) as_qdir=$as_dir;;
3318 esac
3319 as_dirs="'$as_qdir' $as_dirs"
3320 as_dir=`$as_dirname -- "$as_dir" ||
3321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3322 X"$as_dir" : 'X\(//\)[^/]' \| \
3323 X"$as_dir" : 'X\(//\)$' \| \
3324 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3325 $as_echo X"$as_dir" |
3326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3327 s//\1/
3328 q
3329 }
3330 /^X\(\/\/\)[^/].*/{
3331 s//\1/
3332 q
3333 }
3334 /^X\(\/\/\)$/{
3335 s//\1/
3336 q
3337 }
3338 /^X\(\/\).*/{
3339 s//\1/
3340 q
3341 }
3342 s/.*/./; q'`
3343 test -d "$as_dir" && break
3344 done
3345 test -z "$as_dirs" || eval "mkdir $as_dirs"
3346 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3347
3348
3349 } # as_fn_mkdir_p
3350 if mkdir -p . 2>/dev/null; then
3351 as_mkdir_p='mkdir -p "$as_dir"'
3352 else
3353 test -d ./-p && rmdir ./-p
3354 as_mkdir_p=false
3355 fi
3356
3357 if test -x / >/dev/null 2>&1; then
3358 as_test_x='test -x'
3359 else
3360 if ls -dL / >/dev/null 2>&1; then
3361 as_ls_L_option=L
3362 else
3363 as_ls_L_option=
3364 fi
3365 as_test_x='
3366 eval sh -c '\''
3367 if test -d "$1"; then
3368 test -d "$1/.";
3369 else
3370 case $1 in #(
3371 -*)set "./$1";;
3372 esac;
3373 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3374 ???[sx]*):;;*)false;;esac;fi
3375 '\'' sh
3376 '
3377 fi
3378 as_executable_p=$as_test_x
3379
3380 # Sed expression to map a string onto a valid CPP name.
3381 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3382
3383 # Sed expression to map a string onto a valid variable name.
3384 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3385
3386
3387 exec 6>&1
3388 ## ----------------------------------- ##
3389 ## Main body of $CONFIG_STATUS script. ##
3390 ## ----------------------------------- ##
3391 _ASEOF
3392 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3393
3394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3395 # Save the log message, to keep $0 and so on meaningful, and to
3396 # report actual input values of CONFIG_FILES etc. instead of their
3397 # values after options handling.
3398 ac_log="
3399 This file was extended by HTSlib $as_me 1.2.1, which was
3400 generated by GNU Autoconf 2.68. Invocation command line was
3401
3402 CONFIG_FILES = $CONFIG_FILES
3403 CONFIG_HEADERS = $CONFIG_HEADERS
3404 CONFIG_LINKS = $CONFIG_LINKS
3405 CONFIG_COMMANDS = $CONFIG_COMMANDS
3406 $ $0 $@
3407
3408 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3409 "
3410
3411 _ACEOF
3412
3413 case $ac_config_files in *"
3414 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3415 esac
3416
3417
3418
3419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3420 # Files that config.status was made for.
3421 config_files="$ac_config_files"
3422
3423 _ACEOF
3424
3425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3426 ac_cs_usage="\
3427 \`$as_me' instantiates files and other configuration actions
3428 from templates according to the current configuration. Unless the files
3429 and actions are specified as TAGs, all are instantiated by default.
3430
3431 Usage: $0 [OPTION]... [TAG]...
3432
3433 -h, --help print this help, then exit
3434 -V, --version print version number and configuration settings, then exit
3435 --config print configuration, then exit
3436 -q, --quiet, --silent
3437 do not print progress messages
3438 -d, --debug don't remove temporary files
3439 --recheck update $as_me by reconfiguring in the same conditions
3440 --file=FILE[:TEMPLATE]
3441 instantiate the configuration file FILE
3442
3443 Configuration files:
3444 $config_files
3445
3446 Report bugs to <samtools-help@lists.sourceforge.net>.
3447 HTSlib home page: <http://www.htslib.org/>."
3448
3449 _ACEOF
3450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3451 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3452 ac_cs_version="\\
3453 HTSlib config.status 1.2.1
3454 configured by $0, generated by GNU Autoconf 2.68,
3455 with options \\"\$ac_cs_config\\"
3456
3457 Copyright (C) 2010 Free Software Foundation, Inc.
3458 This config.status script is free software; the Free Software Foundation
3459 gives unlimited permission to copy, distribute and modify it."
3460
3461 ac_pwd='$ac_pwd'
3462 srcdir='$srcdir'
3463 test -n "\$AWK" || AWK=awk
3464 _ACEOF
3465
3466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3467 # The default lists apply if the user does not specify any file.
3468 ac_need_defaults=:
3469 while test $# != 0
3470 do
3471 case $1 in
3472 --*=?*)
3473 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3474 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3475 ac_shift=:
3476 ;;
3477 --*=)
3478 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3479 ac_optarg=
3480 ac_shift=:
3481 ;;
3482 *)
3483 ac_option=$1
3484 ac_optarg=$2
3485 ac_shift=shift
3486 ;;
3487 esac
3488
3489 case $ac_option in
3490 # Handling of the options.
3491 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3492 ac_cs_recheck=: ;;
3493 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3494 $as_echo "$ac_cs_version"; exit ;;
3495 --config | --confi | --conf | --con | --co | --c )
3496 $as_echo "$ac_cs_config"; exit ;;
3497 --debug | --debu | --deb | --de | --d | -d )
3498 debug=: ;;
3499 --file | --fil | --fi | --f )
3500 $ac_shift
3501 case $ac_optarg in
3502 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3503 '') as_fn_error $? "missing file argument" ;;
3504 esac
3505 as_fn_append CONFIG_FILES " '$ac_optarg'"
3506 ac_need_defaults=false;;
3507 --he | --h | --help | --hel | -h )
3508 $as_echo "$ac_cs_usage"; exit ;;
3509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3510 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3511 ac_cs_silent=: ;;
3512
3513 # This is an error.
3514 -*) as_fn_error $? "unrecognized option: \`$1'
3515 Try \`$0 --help' for more information." ;;
3516
3517 *) as_fn_append ac_config_targets " $1"
3518 ac_need_defaults=false ;;
3519
3520 esac
3521 shift
3522 done
3523
3524 ac_configure_extra_args=
3525
3526 if $ac_cs_silent; then
3527 exec 6>/dev/null
3528 ac_configure_extra_args="$ac_configure_extra_args --silent"
3529 fi
3530
3531 _ACEOF
3532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3533 if \$ac_cs_recheck; then
3534 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3535 shift
3536 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3537 CONFIG_SHELL='$SHELL'
3538 export CONFIG_SHELL
3539 exec "\$@"
3540 fi
3541
3542 _ACEOF
3543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3544 exec 5>>config.log
3545 {
3546 echo
3547 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3548 ## Running $as_me. ##
3549 _ASBOX
3550 $as_echo "$ac_log"
3551 } >&5
3552
3553 _ACEOF
3554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3555 _ACEOF
3556
3557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3558
3559 # Handling of arguments.
3560 for ac_config_target in $ac_config_targets
3561 do
3562 case $ac_config_target in
3563 "config.mk") CONFIG_FILES="$CONFIG_FILES config.mk" ;;
3564
3565 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3566 esac
3567 done
3568
3569
3570 # If the user did not use the arguments to specify the items to instantiate,
3571 # then the envvar interface is used. Set only those that are not.
3572 # We use the long form for the default assignment because of an extremely
3573 # bizarre bug on SunOS 4.1.3.
3574 if $ac_need_defaults; then
3575 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3576 fi
3577
3578 # Have a temporary directory for convenience. Make it in the build tree
3579 # simply because there is no reason against having it here, and in addition,
3580 # creating and moving files from /tmp can sometimes cause problems.
3581 # Hook for its removal unless debugging.
3582 # Note that there is a small window in which the directory will not be cleaned:
3583 # after its creation but before its name has been assigned to `$tmp'.
3584 $debug ||
3585 {
3586 tmp= ac_tmp=
3587 trap 'exit_status=$?
3588 : "${ac_tmp:=$tmp}"
3589 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3590 ' 0
3591 trap 'as_fn_exit 1' 1 2 13 15
3592 }
3593 # Create a (secure) tmp directory for tmp files.
3594
3595 {
3596 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3597 test -d "$tmp"
3598 } ||
3599 {
3600 tmp=./conf$$-$RANDOM
3601 (umask 077 && mkdir "$tmp")
3602 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3603 ac_tmp=$tmp
3604
3605 # Set up the scripts for CONFIG_FILES section.
3606 # No need to generate them if there are no CONFIG_FILES.
3607 # This happens for instance with `./config.status config.h'.
3608 if test -n "$CONFIG_FILES"; then
3609
3610
3611 ac_cr=`echo X | tr X '\015'`
3612 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3613 # But we know of no other shell where ac_cr would be empty at this
3614 # point, so we can use a bashism as a fallback.
3615 if test "x$ac_cr" = x; then
3616 eval ac_cr=\$\'\\r\'
3617 fi
3618 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3619 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3620 ac_cs_awk_cr='\\r'
3621 else
3622 ac_cs_awk_cr=$ac_cr
3623 fi
3624
3625 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3626 _ACEOF
3627
3628
3629 {
3630 echo "cat >conf$$subs.awk <<_ACEOF" &&
3631 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3632 echo "_ACEOF"
3633 } >conf$$subs.sh ||
3634 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3635 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3636 ac_delim='%!_!# '
3637 for ac_last_try in false false false false false :; do
3638 . ./conf$$subs.sh ||
3639 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3640
3641 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3642 if test $ac_delim_n = $ac_delim_num; then
3643 break
3644 elif $ac_last_try; then
3645 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3646 else
3647 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3648 fi
3649 done
3650 rm -f conf$$subs.sh
3651
3652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3653 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3654 _ACEOF
3655 sed -n '
3656 h
3657 s/^/S["/; s/!.*/"]=/
3658 p
3659 g
3660 s/^[^!]*!//
3661 :repl
3662 t repl
3663 s/'"$ac_delim"'$//
3664 t delim
3665 :nl
3666 h
3667 s/\(.\{148\}\)..*/\1/
3668 t more1
3669 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3670 p
3671 n
3672 b repl
3673 :more1
3674 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3675 p
3676 g
3677 s/.\{148\}//
3678 t nl
3679 :delim
3680 h
3681 s/\(.\{148\}\)..*/\1/
3682 t more2
3683 s/["\\]/\\&/g; s/^/"/; s/$/"/
3684 p
3685 b
3686 :more2
3687 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3688 p
3689 g
3690 s/.\{148\}//
3691 t delim
3692 ' <conf$$subs.awk | sed '
3693 /^[^""]/{
3694 N
3695 s/\n//
3696 }
3697 ' >>$CONFIG_STATUS || ac_write_fail=1
3698 rm -f conf$$subs.awk
3699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3700 _ACAWK
3701 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3702 for (key in S) S_is_set[key] = 1
3703 FS = ""
3704
3705 }
3706 {
3707 line = $ 0
3708 nfields = split(line, field, "@")
3709 substed = 0
3710 len = length(field[1])
3711 for (i = 2; i < nfields; i++) {
3712 key = field[i]
3713 keylen = length(key)
3714 if (S_is_set[key]) {
3715 value = S[key]
3716 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3717 len += length(value) + length(field[++i])
3718 substed = 1
3719 } else
3720 len += 1 + keylen
3721 }
3722
3723 print line
3724 }
3725
3726 _ACAWK
3727 _ACEOF
3728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3729 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3730 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3731 else
3732 cat
3733 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3734 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3735 _ACEOF
3736
3737 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3738 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3739 # trailing colons and then remove the whole line if VPATH becomes empty
3740 # (actually we leave an empty line to preserve line numbers).
3741 if test "x$srcdir" = x.; then
3742 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3743 h
3744 s///
3745 s/^/:/
3746 s/[ ]*$/:/
3747 s/:\$(srcdir):/:/g
3748 s/:\${srcdir}:/:/g
3749 s/:@srcdir@:/:/g
3750 s/^:*//
3751 s/:*$//
3752 x
3753 s/\(=[ ]*\).*/\1/
3754 G
3755 s/\n//
3756 s/^[^=]*=[ ]*$//
3757 }'
3758 fi
3759
3760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3761 fi # test -n "$CONFIG_FILES"
3762
3763
3764 eval set X " :F $CONFIG_FILES "
3765 shift
3766 for ac_tag
3767 do
3768 case $ac_tag in
3769 :[FHLC]) ac_mode=$ac_tag; continue;;
3770 esac
3771 case $ac_mode$ac_tag in
3772 :[FHL]*:*);;
3773 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3774 :[FH]-) ac_tag=-:-;;
3775 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3776 esac
3777 ac_save_IFS=$IFS
3778 IFS=:
3779 set x $ac_tag
3780 IFS=$ac_save_IFS
3781 shift
3782 ac_file=$1
3783 shift
3784
3785 case $ac_mode in
3786 :L) ac_source=$1;;
3787 :[FH])
3788 ac_file_inputs=
3789 for ac_f
3790 do
3791 case $ac_f in
3792 -) ac_f="$ac_tmp/stdin";;
3793 *) # Look for the file first in the build tree, then in the source tree
3794 # (if the path is not absolute). The absolute path cannot be DOS-style,
3795 # because $ac_f cannot contain `:'.
3796 test -f "$ac_f" ||
3797 case $ac_f in
3798 [\\/$]*) false;;
3799 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3800 esac ||
3801 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3802 esac
3803 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3804 as_fn_append ac_file_inputs " '$ac_f'"
3805 done
3806
3807 # Let's still pretend it is `configure' which instantiates (i.e., don't
3808 # use $as_me), people would be surprised to read:
3809 # /* config.h. Generated by config.status. */
3810 configure_input='Generated from '`
3811 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3812 `' by configure.'
3813 if test x"$ac_file" != x-; then
3814 configure_input="$ac_file. $configure_input"
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3816 $as_echo "$as_me: creating $ac_file" >&6;}
3817 fi
3818 # Neutralize special characters interpreted by sed in replacement strings.
3819 case $configure_input in #(
3820 *\&* | *\|* | *\\* )
3821 ac_sed_conf_input=`$as_echo "$configure_input" |
3822 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3823 *) ac_sed_conf_input=$configure_input;;
3824 esac
3825
3826 case $ac_tag in
3827 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3828 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3829 esac
3830 ;;
3831 esac
3832
3833 ac_dir=`$as_dirname -- "$ac_file" ||
3834 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3835 X"$ac_file" : 'X\(//\)[^/]' \| \
3836 X"$ac_file" : 'X\(//\)$' \| \
3837 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3838 $as_echo X"$ac_file" |
3839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3840 s//\1/
3841 q
3842 }
3843 /^X\(\/\/\)[^/].*/{
3844 s//\1/
3845 q
3846 }
3847 /^X\(\/\/\)$/{
3848 s//\1/
3849 q
3850 }
3851 /^X\(\/\).*/{
3852 s//\1/
3853 q
3854 }
3855 s/.*/./; q'`
3856 as_dir="$ac_dir"; as_fn_mkdir_p
3857 ac_builddir=.
3858
3859 case "$ac_dir" in
3860 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3861 *)
3862 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3863 # A ".." for each directory in $ac_dir_suffix.
3864 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3865 case $ac_top_builddir_sub in
3866 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3867 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3868 esac ;;
3869 esac
3870 ac_abs_top_builddir=$ac_pwd
3871 ac_abs_builddir=$ac_pwd$ac_dir_suffix
3872 # for backward compatibility:
3873 ac_top_builddir=$ac_top_build_prefix
3874
3875 case $srcdir in
3876 .) # We are building in place.
3877 ac_srcdir=.
3878 ac_top_srcdir=$ac_top_builddir_sub
3879 ac_abs_top_srcdir=$ac_pwd ;;
3880 [\\/]* | ?:[\\/]* ) # Absolute name.
3881 ac_srcdir=$srcdir$ac_dir_suffix;
3882 ac_top_srcdir=$srcdir
3883 ac_abs_top_srcdir=$srcdir ;;
3884 *) # Relative name.
3885 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3886 ac_top_srcdir=$ac_top_build_prefix$srcdir
3887 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3888 esac
3889 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3890
3891
3892 case $ac_mode in
3893 :F)
3894 #
3895 # CONFIG_FILE
3896 #
3897
3898 _ACEOF
3899
3900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3901 # If the template does not know about datarootdir, expand it.
3902 # FIXME: This hack should be removed a few years after 2.60.
3903 ac_datarootdir_hack=; ac_datarootdir_seen=
3904 ac_sed_dataroot='
3905 /datarootdir/ {
3906 p
3907 q
3908 }
3909 /@datadir@/p
3910 /@docdir@/p
3911 /@infodir@/p
3912 /@localedir@/p
3913 /@mandir@/p'
3914 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3915 *datarootdir*) ac_datarootdir_seen=yes;;
3916 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3918 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3919 _ACEOF
3920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3921 ac_datarootdir_hack='
3922 s&@datadir@&$datadir&g
3923 s&@docdir@&$docdir&g
3924 s&@infodir@&$infodir&g
3925 s&@localedir@&$localedir&g
3926 s&@mandir@&$mandir&g
3927 s&\\\${datarootdir}&$datarootdir&g' ;;
3928 esac
3929 _ACEOF
3930
3931 # Neutralize VPATH when `$srcdir' = `.'.
3932 # Shell code in configure.ac might set extrasub.
3933 # FIXME: do we really want to maintain this feature?
3934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3935 ac_sed_extra="$ac_vpsub
3936 $extrasub
3937 _ACEOF
3938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3939 :t
3940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3941 s|@configure_input@|$ac_sed_conf_input|;t t
3942 s&@top_builddir@&$ac_top_builddir_sub&;t t
3943 s&@top_build_prefix@&$ac_top_build_prefix&;t t
3944 s&@srcdir@&$ac_srcdir&;t t
3945 s&@abs_srcdir@&$ac_abs_srcdir&;t t
3946 s&@top_srcdir@&$ac_top_srcdir&;t t
3947 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3948 s&@builddir@&$ac_builddir&;t t
3949 s&@abs_builddir@&$ac_abs_builddir&;t t
3950 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3951 $ac_datarootdir_hack
3952 "
3953 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3954 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3955
3956 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3957 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3958 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3959 "$ac_tmp/out"`; test -z "$ac_out"; } &&
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3961 which seems to be undefined. Please make sure it is defined" >&5
3962 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3963 which seems to be undefined. Please make sure it is defined" >&2;}
3964
3965 rm -f "$ac_tmp/stdin"
3966 case $ac_file in
3967 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3968 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3969 esac \
3970 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3971 ;;
3972
3973
3974
3975 esac
3976
3977 done # for ac_tag
3978
3979
3980 as_fn_exit 0
3981 _ACEOF
3982 ac_clean_files=$ac_clean_files_save
3983
3984 test $ac_write_fail = 0 ||
3985 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3986
3987
3988 # configure is writing to config.log, and then calls config.status.
3989 # config.status does its own redirection, appending to config.log.
3990 # Unfortunately, on DOS this fails, as config.log is still kept open
3991 # by configure, so config.status won't be able to write to it; its
3992 # output is simply discarded. So we exec the FD to /dev/null,
3993 # effectively closing config.log, so it can be properly (re)opened and
3994 # appended to by config.status. When coming back to configure, we
3995 # need to make the FD available again.
3996 if test "$no_create" != yes; then
3997 ac_cs_success=:
3998 ac_config_status_args=
3999 test "$silent" = yes &&
4000 ac_config_status_args="$ac_config_status_args --quiet"
4001 exec 5>/dev/null
4002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4003 exec 5>>config.log
4004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4005 # would make configure fail if this is the last instruction.
4006 $ac_cs_success || as_fn_exit 1
4007 fi
4008 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4010 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4011 fi
4012