2 # From configure.in Revision: 1.12 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
222 test -d ./-p && rmdir ./-p
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
275 ac_unique_file="sql_mysql.c"
276 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MYSQL_CONFIG sql_mysql_ldflags sql_mysql_cflags targetname LIBOBJS LTLIBOBJS'
279 # Initialize some variables set by options.
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
291 program_transform_name=s,x,x,
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329 # Accept the important Cygnus configure options, so we can diagnose typos.
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
351 cache_file=config.cache ;;
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357 datadir=$ac_optarg ;;
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
379 eval "enable_$ac_feature='$ac_optarg'" ;;
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
394 -help | --help | --hel | --he | -h)
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
418 -libdir | --libdir | --libdi | --libd)
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
445 # Obsolete; use --without-fp.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
509 sbindir=$ac_optarg ;;
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
520 sharedstatedir=$ac_optarg ;;
522 -site | --site | --sit)
524 -site=* | --site=* | --sit=*)
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
547 -version | --version | --versio | --versi | --vers | -V)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 eval "with_$ac_package='$ac_optarg'" ;;
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
573 # Obsolete; use --with-x.
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
616 if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
625 eval ac_val=$`echo $ac_var`
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
637 eval ac_val=$`echo $ac_var`
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
666 test "$silent" = yes && exec 6>/dev/null
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
686 if test ! -r $srcdir/$ac_unique_file; then
690 ac_srcdir_defaulted=no
692 if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_CC_set=${CC+set}
719 ac_cv_env_CC_set=${CC+set}
720 ac_cv_env_CC_value=$CC
721 ac_env_CFLAGS_set=${CFLAGS+set}
722 ac_env_CFLAGS_value=$CFLAGS
723 ac_cv_env_CFLAGS_set=${CFLAGS+set}
724 ac_cv_env_CFLAGS_value=$CFLAGS
725 ac_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_env_LDFLAGS_value=$LDFLAGS
727 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_cv_env_LDFLAGS_value=$LDFLAGS
729 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_env_CPPFLAGS_value=$CPPFLAGS
731 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735 # Report the --help message.
737 if test "$ac_init_help" = "long"; then
738 # Omit some internal or obsolete options to make the list less imposing.
739 # This message is too long to be a string in the A/UX 3.1 sh.
741 \`configure' configures this package to adapt to many kinds of systems.
743 Usage: $0 [OPTION]... [VAR=VALUE]...
745 To assign environment variables (e.g., CC, CFLAGS...), specify them as
746 VAR=VALUE. See below for descriptions of some of the useful variables.
748 Defaults for the options are specified in brackets.
751 -h, --help display this help and exit
752 --help=short display options specific to this package
753 --help=recursive display the short help of all the included packages
754 -V, --version display version information and exit
755 -q, --quiet, --silent do not print \`checking...' messages
756 --cache-file=FILE cache test results in FILE [disabled]
757 -C, --config-cache alias for \`--cache-file=config.cache'
758 -n, --no-create do not create output files
759 --srcdir=DIR find the sources in DIR [configure dir or \`..']
764 Installation directories:
765 --prefix=PREFIX install architecture-independent files in PREFIX
767 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
770 By default, \`make install' will install all the files in
771 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
772 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
773 for instance \`--prefix=\$HOME'.
775 For better control, use the options below.
777 Fine tuning of the installation directories:
778 --bindir=DIR user executables [EPREFIX/bin]
779 --sbindir=DIR system admin executables [EPREFIX/sbin]
780 --libexecdir=DIR program executables [EPREFIX/libexec]
781 --datadir=DIR read-only architecture-independent data [PREFIX/share]
782 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
783 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
784 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
785 --libdir=DIR object code libraries [EPREFIX/lib]
786 --includedir=DIR C header files [PREFIX/include]
787 --oldincludedir=DIR C header files for non-gcc [/usr/include]
788 --infodir=DIR info documentation [PREFIX/info]
789 --mandir=DIR man documentation [PREFIX/man]
796 if test -n "$ac_init_help"; then
801 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
802 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
803 --with-mysql-dir=DIR base directory where MySQL is installed
804 --with-mysql-lib-dir=DIR directory where the MySQL libraries may be found
805 --with-mysql-include-dir=DIR directory where the MySQL includes may be found
806 --with-threads use threads, if available. (default=yes)
808 Some influential environment variables:
809 CC C compiler command
810 CFLAGS C compiler flags
811 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
812 nonstandard directory <lib dir>
813 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
814 headers in a nonstandard directory <include dir>
816 Use these variables to override the choices made by `configure' or to help
817 it to find libraries and programs with nonstandard names/locations.
822 if test "$ac_init_help" = "recursive"; then
823 # If there are subdirs, report their specific --help.
825 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
826 test -d $ac_dir || continue
829 if test "$ac_dir" != .; then
830 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
831 # A "../" for each directory in $ac_dir_suffix.
832 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
834 ac_dir_suffix= ac_top_builddir=
838 .) # No --srcdir option. We are building in place.
840 if test -z "$ac_top_builddir"; then
843 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
845 [\\/]* | ?:[\\/]* ) # Absolute path.
846 ac_srcdir=$srcdir$ac_dir_suffix;
847 ac_top_srcdir=$srcdir ;;
849 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
850 ac_top_srcdir=$ac_top_builddir$srcdir ;;
853 # Do not use `cd foo && pwd` to compute absolute paths, because
854 # the directories may not exist.
856 .) ac_abs_builddir="$ac_dir";;
859 .) ac_abs_builddir=`pwd`;;
860 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
861 *) ac_abs_builddir=`pwd`/"$ac_dir";;
864 case $ac_abs_builddir in
865 .) ac_abs_top_builddir=${ac_top_builddir}.;;
867 case ${ac_top_builddir}. in
868 .) ac_abs_top_builddir=$ac_abs_builddir;;
869 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
870 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
873 case $ac_abs_builddir in
874 .) ac_abs_srcdir=$ac_srcdir;;
877 .) ac_abs_srcdir=$ac_abs_builddir;;
878 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
879 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
882 case $ac_abs_builddir in
883 .) ac_abs_top_srcdir=$ac_top_srcdir;;
885 case $ac_top_srcdir in
886 .) ac_abs_top_srcdir=$ac_abs_builddir;;
887 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
888 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
893 # Check for guested configure; otherwise get Cygnus style configure.
894 if test -f $ac_srcdir/configure.gnu; then
896 $SHELL $ac_srcdir/configure.gnu --help=recursive
897 elif test -f $ac_srcdir/configure; then
899 $SHELL $ac_srcdir/configure --help=recursive
900 elif test -f $ac_srcdir/configure.ac ||
901 test -f $ac_srcdir/configure.in; then
905 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
911 test -n "$ac_init_help" && exit 0
912 if $ac_init_version; then
915 Copyright (C) 2003 Free Software Foundation, Inc.
916 This configure script is free software; the Free Software Foundation
917 gives unlimited permission to copy, distribute and modify it.
923 This file contains any messages produced by compilers while
924 running configure, to aid debugging if configure makes a mistake.
926 It was created by $as_me, which was
927 generated by GNU Autoconf 2.59. Invocation command line was
938 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
939 uname -m = `(uname -m) 2>/dev/null || echo unknown`
940 uname -r = `(uname -r) 2>/dev/null || echo unknown`
941 uname -s = `(uname -s) 2>/dev/null || echo unknown`
942 uname -v = `(uname -v) 2>/dev/null || echo unknown`
944 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
945 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
947 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
948 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
949 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
950 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
951 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
952 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
953 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
961 test -z "$as_dir" && as_dir=.
977 # Keep a trace of the command line.
978 # Strip out --no-create and --no-recursion so they do not pile up.
979 # Strip out --silent because we don't want to record it for future runs.
980 # Also quote any args containing shell meta-characters.
981 # Make two passes to allow for proper duplicate-argument suppression.
986 ac_must_keep_next=false
992 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994 | -silent | --silent | --silen | --sile | --sil)
996 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
997 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1000 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1002 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1003 if test $ac_must_keep_next = true; then
1004 ac_must_keep_next=false # Got value, back to normal.
1007 *=* | --config-cache | -C | -disable-* | --disable-* \
1008 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1009 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1010 | -with-* | --with-* | -without-* | --without-* | --x)
1011 case "$ac_configure_args0 " in
1012 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1015 -* ) ac_must_keep_next=true ;;
1018 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1019 # Get rid of the leading space.
1025 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1026 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1028 # When interrupted or exit'd, cleanup temporary files, and complete
1029 # config.log. We remove comments because anyway the quotes in there
1030 # would cause problems or look ugly.
1031 # WARNING: Be sure not to use single quotes in there, as some shells,
1032 # such as our DU 5.0 friend, will then `close' the trap.
1033 trap 'exit_status=$?
1034 # Save into config.log some information that might help in debugging.
1039 ## ---------------- ##
1040 ## Cache variables. ##
1041 ## ---------------- ##
1044 # The following way of writing the cache mishandles newlines in values,
1047 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1050 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1055 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1062 ## ----------------- ##
1063 ## Output variables. ##
1064 ## ----------------- ##
1067 for ac_var in $ac_subst_vars
1069 eval ac_val=$`echo $ac_var`
1070 echo "$ac_var='"'"'$ac_val'"'"'"
1074 if test -n "$ac_subst_files"; then
1081 for ac_var in $ac_subst_files
1083 eval ac_val=$`echo $ac_var`
1084 echo "$ac_var='"'"'$ac_val'"'"'"
1089 if test -s confdefs.h; then
1096 sed "/^$/d" confdefs.h | sort
1099 test "$ac_signal" != 0 &&
1100 echo "$as_me: caught signal $ac_signal"
1101 echo "$as_me: exit $exit_status"
1103 rm -f core *.core &&
1104 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1107 for ac_signal in 1 2 13 15; do
1108 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1112 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1113 rm -rf conftest* confdefs.h
1114 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1117 # Predefined preprocessor variables.
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_NAME "$PACKAGE_NAME"
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_STRING "$PACKAGE_STRING"
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1144 # Let the site file select an alternate cache file if it wants to.
1145 # Prefer explicitly selected file to automatically selected ones.
1146 if test -z "$CONFIG_SITE"; then
1147 if test "x$prefix" != xNONE; then
1148 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1150 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1153 for ac_site_file in $CONFIG_SITE; do
1154 if test -r "$ac_site_file"; then
1155 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1156 echo "$as_me: loading site script $ac_site_file" >&6;}
1157 sed 's/^/| /' "$ac_site_file" >&5
1162 if test -r "$cache_file"; then
1163 # Some versions of bash will fail to source /dev/null (special
1164 # files actually), so we avoid doing that.
1165 if test -f "$cache_file"; then
1166 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1167 echo "$as_me: loading cache $cache_file" >&6;}
1169 [\\/]* | ?:[\\/]* ) . $cache_file;;
1170 *) . ./$cache_file;;
1174 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1175 echo "$as_me: creating cache $cache_file" >&6;}
1179 # Check that the precious variables saved in the cache have kept the same
1181 ac_cache_corrupted=false
1182 for ac_var in `(set) 2>&1 |
1183 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1184 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1185 eval ac_new_set=\$ac_env_${ac_var}_set
1186 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1187 eval ac_new_val="\$ac_env_${ac_var}_value"
1188 case $ac_old_set,$ac_new_set in
1190 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1191 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1192 ac_cache_corrupted=: ;;
1194 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1195 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1196 ac_cache_corrupted=: ;;
1199 if test "x$ac_old_val" != "x$ac_new_val"; then
1200 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1201 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1202 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1203 echo "$as_me: former value: $ac_old_val" >&2;}
1204 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1205 echo "$as_me: current value: $ac_new_val" >&2;}
1206 ac_cache_corrupted=:
1209 # Pass precious variables to config.status.
1210 if test "$ac_new_set" = set; then
1212 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1213 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1214 *) ac_arg=$ac_var=$ac_new_val ;;
1216 case " $ac_configure_args " in
1217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1218 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1222 if $ac_cache_corrupted; then
1223 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1224 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1225 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1226 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1227 { (exit 1); exit 1; }; }
1231 ac_cpp='$CPP $CPPFLAGS'
1232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256 ac_config_headers="$ac_config_headers config.h"
1262 mysql_include_dir=""
1264 if test x$with_rlm_sql_mysql != xno; then
1266 targetname=rlm_sql_mysql # we change this if a test fails
1270 # Check whether --with-mysql-dir or --without-mysql-dir was given.
1271 if test "${with_mysql_dir+set}" = set; then
1272 withval="$with_mysql_dir"
1273 mysql_lib_dir="$withval/lib/mysql"
1274 mysql_include_dir="$withval/include"
1279 # Check whether --with-mysql-lib-dir or --without-mysql-lib-dir was given.
1280 if test "${with_mysql_lib_dir+set}" = set; then
1281 withval="$with_mysql_lib_dir"
1282 mysql_lib_dir="$withval"
1287 # Check whether --with-mysql-include-dir or --without-mysql-include-dir was given.
1288 if test "${with_mysql_include_dir+set}" = set; then
1289 withval="$with_mysql_include_dir"
1290 mysql_include_dir="$withval"
1294 mysql_with_threads=yes
1296 # Check whether --with-threads or --without-threads was given.
1297 if test "${with_threads+set}" = set; then
1298 withval="$with_threads"
1301 mysql_with_threads=no
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315 if test -n "$ac_tool_prefix"; then
1316 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1317 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1318 echo "$as_me:$LINENO: checking for $ac_word" >&5
1319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1320 if test "${ac_cv_prog_CC+set}" = set; then
1321 echo $ECHO_N "(cached) $ECHO_C" >&6
1323 if test -n "$CC"; then
1324 ac_cv_prog_CC="$CC" # Let the user override the test.
1326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1330 test -z "$as_dir" && as_dir=.
1331 for ac_exec_ext in '' $ac_executable_extensions; do
1332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1333 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1343 if test -n "$CC"; then
1344 echo "$as_me:$LINENO: result: $CC" >&5
1345 echo "${ECHO_T}$CC" >&6
1347 echo "$as_me:$LINENO: result: no" >&5
1348 echo "${ECHO_T}no" >&6
1352 if test -z "$ac_cv_prog_CC"; then
1354 # Extract the first word of "gcc", so it can be a program name with args.
1355 set dummy gcc; ac_word=$2
1356 echo "$as_me:$LINENO: checking for $ac_word" >&5
1357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1358 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 if test -n "$ac_ct_CC"; then
1362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368 test -z "$as_dir" && as_dir=.
1369 for ac_exec_ext in '' $ac_executable_extensions; do
1370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1371 ac_cv_prog_ac_ct_CC="gcc"
1372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1380 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1381 if test -n "$ac_ct_CC"; then
1382 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1383 echo "${ECHO_T}$ac_ct_CC" >&6
1385 echo "$as_me:$LINENO: result: no" >&5
1386 echo "${ECHO_T}no" >&6
1394 if test -z "$CC"; then
1395 if test -n "$ac_tool_prefix"; then
1396 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1397 set dummy ${ac_tool_prefix}cc; ac_word=$2
1398 echo "$as_me:$LINENO: checking for $ac_word" >&5
1399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1400 if test "${ac_cv_prog_CC+set}" = set; then
1401 echo $ECHO_N "(cached) $ECHO_C" >&6
1403 if test -n "$CC"; then
1404 ac_cv_prog_CC="$CC" # Let the user override the test.
1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410 test -z "$as_dir" && as_dir=.
1411 for ac_exec_ext in '' $ac_executable_extensions; do
1412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1413 ac_cv_prog_CC="${ac_tool_prefix}cc"
1414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1423 if test -n "$CC"; then
1424 echo "$as_me:$LINENO: result: $CC" >&5
1425 echo "${ECHO_T}$CC" >&6
1427 echo "$as_me:$LINENO: result: no" >&5
1428 echo "${ECHO_T}no" >&6
1432 if test -z "$ac_cv_prog_CC"; then
1434 # Extract the first word of "cc", so it can be a program name with args.
1435 set dummy cc; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 if test -n "$ac_ct_CC"; then
1442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 test -z "$as_dir" && as_dir=.
1449 for ac_exec_ext in '' $ac_executable_extensions; do
1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451 ac_cv_prog_ac_ct_CC="cc"
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1461 if test -n "$ac_ct_CC"; then
1462 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1463 echo "${ECHO_T}$ac_ct_CC" >&6
1465 echo "$as_me:$LINENO: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1475 if test -z "$CC"; then
1476 # Extract the first word of "cc", so it can be a program name with args.
1477 set dummy cc; ac_word=$2
1478 echo "$as_me:$LINENO: checking for $ac_word" >&5
1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480 if test "${ac_cv_prog_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 if test -n "$CC"; then
1484 ac_cv_prog_CC="$CC" # Let the user override the test.
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1495 ac_prog_rejected=yes
1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 if test $ac_prog_rejected = yes; then
1506 # We found a bogon in the path, so make sure we never use it.
1507 set dummy $ac_cv_prog_CC
1509 if test $# != 0; then
1510 # We chose a different compiler from the bogus one.
1511 # However, it has the same basename, so the bogon will be chosen
1512 # first if we set CC to just the basename; use the full file name.
1514 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1520 if test -n "$CC"; then
1521 echo "$as_me:$LINENO: result: $CC" >&5
1522 echo "${ECHO_T}$CC" >&6
1524 echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1529 if test -z "$CC"; then
1530 if test -n "$ac_tool_prefix"; then
1533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1535 echo "$as_me:$LINENO: checking for $ac_word" >&5
1536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537 if test "${ac_cv_prog_CC+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 if test -n "$CC"; then
1541 ac_cv_prog_CC="$CC" # Let the user override the test.
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 test -z "$as_dir" && as_dir=.
1548 for ac_exec_ext in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 if test -n "$CC"; then
1561 echo "$as_me:$LINENO: result: $CC" >&5
1562 echo "${ECHO_T}$CC" >&6
1564 echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1568 test -n "$CC" && break
1571 if test -z "$CC"; then
1575 # Extract the first word of "$ac_prog", so it can be a program name with args.
1576 set dummy $ac_prog; ac_word=$2
1577 echo "$as_me:$LINENO: checking for $ac_word" >&5
1578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1582 if test -n "$ac_ct_CC"; then
1583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 test -z "$as_dir" && as_dir=.
1590 for ac_exec_ext in '' $ac_executable_extensions; do
1591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592 ac_cv_prog_ac_ct_CC="$ac_prog"
1593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1602 if test -n "$ac_ct_CC"; then
1603 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1604 echo "${ECHO_T}$ac_ct_CC" >&6
1606 echo "$as_me:$LINENO: result: no" >&5
1607 echo "${ECHO_T}no" >&6
1610 test -n "$ac_ct_CC" && break
1619 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1620 See \`config.log' for more details." >&5
1621 echo "$as_me: error: no acceptable C compiler found in \$PATH
1622 See \`config.log' for more details." >&2;}
1623 { (exit 1); exit 1; }; }
1625 # Provide some information about the compiler.
1626 echo "$as_me:$LINENO:" \
1627 "checking for C compiler version" >&5
1628 ac_compiler=`set X $ac_compile; echo $2`
1629 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1630 (eval $ac_compiler --version </dev/null >&5) 2>&5
1632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1633 (exit $ac_status); }
1634 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1635 (eval $ac_compiler -v </dev/null >&5) 2>&5
1637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1638 (exit $ac_status); }
1639 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1640 (eval $ac_compiler -V </dev/null >&5) 2>&5
1642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1643 (exit $ac_status); }
1645 cat >conftest.$ac_ext <<_ACEOF
1648 cat confdefs.h >>conftest.$ac_ext
1649 cat >>conftest.$ac_ext <<_ACEOF
1650 /* end confdefs.h. */
1660 ac_clean_files_save=$ac_clean_files
1661 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1662 # Try to create an executable without -o first, disregard a.out.
1663 # It will help us diagnose broken compilers, and finding out an intuition
1665 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1666 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1667 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1668 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1669 (eval $ac_link_default) 2>&5
1671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1672 (exit $ac_status); }; then
1673 # Find the output, starting from the most likely. This scheme is
1674 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1677 # Be careful to initialize this variable, since it used to be cached.
1678 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1680 # b.out is created by i960 compilers.
1681 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1683 test -f "$ac_file" || continue
1685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1688 # This is the source file.
1691 # We found the default executable, but exeext='' is most
1695 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1696 # FIXME: I believe we export ac_cv_exeext for Libtool,
1697 # but it would be cool to find out if it's true. Does anybody
1698 # maintain Libtool? --akim.
1706 echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1709 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1710 See \`config.log' for more details." >&5
1711 echo "$as_me: error: C compiler cannot create executables
1712 See \`config.log' for more details." >&2;}
1713 { (exit 77); exit 77; }; }
1716 ac_exeext=$ac_cv_exeext
1717 echo "$as_me:$LINENO: result: $ac_file" >&5
1718 echo "${ECHO_T}$ac_file" >&6
1720 # Check the compiler produces executables we can run. If not, either
1721 # the compiler is broken, or we cross compile.
1722 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1723 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1724 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1725 # If not cross compiling, check that we can run a simple program.
1726 if test "$cross_compiling" != yes; then
1727 if { ac_try='./$ac_file'
1728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }; }; then
1735 if test "$cross_compiling" = maybe; then
1738 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1739 If you meant to cross compile, use \`--host'.
1740 See \`config.log' for more details." >&5
1741 echo "$as_me: error: cannot run C compiled programs.
1742 If you meant to cross compile, use \`--host'.
1743 See \`config.log' for more details." >&2;}
1744 { (exit 1); exit 1; }; }
1748 echo "$as_me:$LINENO: result: yes" >&5
1749 echo "${ECHO_T}yes" >&6
1751 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1752 ac_clean_files=$ac_clean_files_save
1753 # Check the compiler produces executables we can run. If not, either
1754 # the compiler is broken, or we cross compile.
1755 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1756 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1757 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1758 echo "${ECHO_T}$cross_compiling" >&6
1760 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1761 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1763 (eval $ac_link) 2>&5
1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766 (exit $ac_status); }; then
1767 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1768 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1769 # work properly (i.e., refer to `conftest.exe'), while it won't with
1771 for ac_file in conftest.exe conftest conftest.*; do
1772 test -f "$ac_file" || continue
1774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1775 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1782 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1783 See \`config.log' for more details." >&5
1784 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1785 See \`config.log' for more details." >&2;}
1786 { (exit 1); exit 1; }; }
1789 rm -f conftest$ac_cv_exeext
1790 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1791 echo "${ECHO_T}$ac_cv_exeext" >&6
1793 rm -f conftest.$ac_ext
1794 EXEEXT=$ac_cv_exeext
1796 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1797 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1798 if test "${ac_cv_objext+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 cat >conftest.$ac_ext <<_ACEOF
1804 cat confdefs.h >>conftest.$ac_ext
1805 cat >>conftest.$ac_ext <<_ACEOF
1806 /* end confdefs.h. */
1816 rm -f conftest.o conftest.obj
1817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1818 (eval $ac_compile) 2>&5
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }; then
1822 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1825 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1830 echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1834 See \`config.log' for more details." >&5
1835 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1836 See \`config.log' for more details." >&2;}
1837 { (exit 1); exit 1; }; }
1840 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1842 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1843 echo "${ECHO_T}$ac_cv_objext" >&6
1844 OBJEXT=$ac_cv_objext
1846 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1847 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1848 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 cat >conftest.$ac_ext <<_ACEOF
1854 cat confdefs.h >>conftest.$ac_ext
1855 cat >>conftest.$ac_ext <<_ACEOF
1856 /* end confdefs.h. */
1869 rm -f conftest.$ac_objext
1870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1871 (eval $ac_compile) 2>conftest.er1
1873 grep -v '^ *+' conftest.er1 >conftest.err
1875 cat conftest.err >&5
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); } &&
1878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; } &&
1884 { ac_try='test -s conftest.$ac_objext'
1885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; }; then
1892 echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1898 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1901 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1902 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1903 GCC=`test $ac_compiler_gnu = yes && echo yes`
1904 ac_test_CFLAGS=${CFLAGS+set}
1905 ac_save_CFLAGS=$CFLAGS
1907 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1908 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1909 if test "${ac_cv_prog_cc_g+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 cat >conftest.$ac_ext <<_ACEOF
1915 cat confdefs.h >>conftest.$ac_ext
1916 cat >>conftest.$ac_ext <<_ACEOF
1917 /* end confdefs.h. */
1927 rm -f conftest.$ac_objext
1928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929 (eval $ac_compile) 2>conftest.er1
1931 grep -v '^ *+' conftest.er1 >conftest.err
1933 cat conftest.err >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); } &&
1936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; } &&
1942 { ac_try='test -s conftest.$ac_objext'
1943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; }; then
1950 echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1957 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1958 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1959 if test "$ac_test_CFLAGS" = set; then
1960 CFLAGS=$ac_save_CFLAGS
1961 elif test $ac_cv_prog_cc_g = yes; then
1962 if test "$GCC" = yes; then
1968 if test "$GCC" = yes; then
1974 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1975 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1976 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 ac_cv_prog_cc_stdc=no
1981 cat >conftest.$ac_ext <<_ACEOF
1984 cat confdefs.h >>conftest.$ac_ext
1985 cat >>conftest.$ac_ext <<_ACEOF
1986 /* end confdefs.h. */
1989 #include <sys/types.h>
1990 #include <sys/stat.h>
1991 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1992 struct buf { int x; };
1993 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1994 static char *e (p, i)
2000 static char *f (char * (*g) (char **, int), char **p, ...)
2005 s = g (p, va_arg (v,int));
2010 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2011 function prototypes and stuff, but not '\xHH' hex character constants.
2012 These don't provoke an error unfortunately, instead are silently treated
2013 as 'x'. The following induces an error, until -std1 is added to get
2014 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2015 array size at least. It's necessary to write '\x00'==0 to get something
2016 that's true only with -std1. */
2017 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2019 int test (int i, double x);
2020 struct s1 {int (*f) (int a);};
2021 struct s2 {int (*f) (double a);};
2022 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2028 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2033 # Don't try gcc -ansi; that turns off useful extensions and
2034 # breaks some systems' header files.
2035 # AIX -qlanglvl=ansi
2036 # Ultrix and OSF/1 -std1
2037 # HP-UX 10.20 and later -Ae
2038 # HP-UX older versions -Aa -D_HPUX_SOURCE
2039 # SVR4 -Xc -D__EXTENSIONS__
2040 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2042 CC="$ac_save_CC $ac_arg"
2043 rm -f conftest.$ac_objext
2044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045 (eval $ac_compile) 2>conftest.er1
2047 grep -v '^ *+' conftest.er1 >conftest.err
2049 cat conftest.err >&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); } &&
2052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; } &&
2058 { ac_try='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2064 ac_cv_prog_cc_stdc=$ac_arg
2067 echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2071 rm -f conftest.err conftest.$ac_objext
2073 rm -f conftest.$ac_ext conftest.$ac_objext
2078 case "x$ac_cv_prog_cc_stdc" in
2080 echo "$as_me:$LINENO: result: none needed" >&5
2081 echo "${ECHO_T}none needed" >&6 ;;
2083 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2084 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2085 CC="$CC $ac_cv_prog_cc_stdc" ;;
2088 # Some people use a C++ compiler to compile C. Since we use `exit',
2089 # in C++ we need to declare it. In case someone uses the same compiler
2090 # for both compiling C and C++ we need to have the C++ compiler decide
2091 # the declaration of exit, since it's the most demanding environment.
2092 cat >conftest.$ac_ext <<_ACEOF
2097 rm -f conftest.$ac_objext
2098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2099 (eval $ac_compile) 2>conftest.er1
2101 grep -v '^ *+' conftest.er1 >conftest.err
2103 cat conftest.err >&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); } &&
2106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }; } &&
2112 { ac_try='test -s conftest.$ac_objext'
2113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; }; then
2118 for ac_declaration in \
2120 'extern "C" void std::exit (int) throw (); using std::exit;' \
2121 'extern "C" void std::exit (int); using std::exit;' \
2122 'extern "C" void exit (int) throw ();' \
2123 'extern "C" void exit (int);' \
2126 cat >conftest.$ac_ext <<_ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2142 rm -f conftest.$ac_objext
2143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>conftest.er1
2146 grep -v '^ *+' conftest.er1 >conftest.err
2148 cat conftest.err >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
2151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; } &&
2157 { ac_try='test -s conftest.$ac_objext'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2165 echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2171 cat >conftest.$ac_ext <<_ACEOF
2174 cat confdefs.h >>conftest.$ac_ext
2175 cat >>conftest.$ac_ext <<_ACEOF
2176 /* end confdefs.h. */
2186 rm -f conftest.$ac_objext
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188 (eval $ac_compile) 2>conftest.er1
2190 grep -v '^ *+' conftest.er1 >conftest.err
2192 cat conftest.err >&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } &&
2195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; } &&
2201 { ac_try='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
2209 echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2216 if test -n "$ac_declaration"; then
2217 echo '#ifdef __cplusplus' >>confdefs.h
2218 echo $ac_declaration >>confdefs.h
2219 echo '#endif' >>confdefs.h
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2229 ac_cpp='$CPP $CPPFLAGS'
2230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234 # Extract the first word of "mysql_config", so it can be a program name with args.
2235 set dummy mysql_config; ac_word=$2
2236 echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2238 if test "${ac_cv_prog_MYSQL_CONFIG+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 if test -n "$MYSQL_CONFIG"; then
2242 ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2251 ac_cv_prog_MYSQL_CONFIG="yes"
2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 test -z "$ac_cv_prog_MYSQL_CONFIG" && ac_cv_prog_MYSQL_CONFIG="no"
2261 MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
2262 if test -n "$MYSQL_CONFIG"; then
2263 echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
2264 echo "${ECHO_T}$MYSQL_CONFIG" >&6
2266 echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2272 if test "x$mysql_with_threads" = "xyes"; then
2273 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2274 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2275 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 ac_check_lib_save_LIBS=$LIBS
2279 LIBS="-lpthread $LIBS"
2280 cat >conftest.$ac_ext <<_ACEOF
2283 cat confdefs.h >>conftest.$ac_ext
2284 cat >>conftest.$ac_ext <<_ACEOF
2285 /* end confdefs.h. */
2287 /* Override any gcc2 internal prototype to avoid an error. */
2291 /* We use char because int might match the return type of a gcc2
2292 builtin and then its argument prototype would still apply. */
2293 char pthread_create ();
2302 rm -f conftest.$ac_objext conftest$ac_exeext
2303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2304 (eval $ac_link) 2>conftest.er1
2306 grep -v '^ *+' conftest.er1 >conftest.err
2308 cat conftest.err >&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); } &&
2311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try='test -s conftest$ac_exeext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2323 ac_cv_lib_pthread_pthread_create=yes
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2328 ac_cv_lib_pthread_pthread_create=no
2330 rm -f conftest.err conftest.$ac_objext \
2331 conftest$ac_exeext conftest.$ac_ext
2332 LIBS=$ac_check_lib_save_LIBS
2334 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2335 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2336 if test $ac_cv_lib_pthread_pthread_create = yes; then
2337 LIBS="-lpthread $LIBS"
2339 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2340 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2341 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 ac_check_lib_save_LIBS=$LIBS
2347 cat >conftest.$ac_ext <<_ACEOF
2350 cat confdefs.h >>conftest.$ac_ext
2351 cat >>conftest.$ac_ext <<_ACEOF
2352 /* end confdefs.h. */
2354 /* Override any gcc2 internal prototype to avoid an error. */
2358 /* We use char because int might match the return type of a gcc2
2359 builtin and then its argument prototype would still apply. */
2360 char pthread_create ();
2369 rm -f conftest.$ac_objext conftest$ac_exeext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2371 (eval $ac_link) 2>conftest.er1
2373 grep -v '^ *+' conftest.er1 >conftest.err
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; } &&
2384 { ac_try='test -s conftest$ac_exeext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2390 ac_cv_lib_c_r_pthread_create=yes
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2395 ac_cv_lib_c_r_pthread_create=no
2397 rm -f conftest.err conftest.$ac_objext \
2398 conftest$ac_exeext conftest.$ac_ext
2399 LIBS=$ac_check_lib_save_LIBS
2401 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2402 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
2403 if test $ac_cv_lib_c_r_pthread_create = yes; then
2406 mysql_with_threads=no
2415 if test "x$mysql_with_threads" = "xyes"; then
2416 if test "x$MYSQL_CONFIG" = "xyes"; then
2417 mysql_libs="$(mysql_config --libs_r)"
2419 LIBS="$mysql_libs $LIBS"
2420 echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient_r (using mysql_config)" >&5
2421 echo $ECHO_N "checking for mysql_init in -lmysqlclient_r (using mysql_config)... $ECHO_C" >&6
2422 cat >conftest.$ac_ext <<_ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2429 /* Override any gcc2 internal prototype to avoid an error. */
2433 /* We use char because int might match the return type of a gcc2
2434 builtin and then its argument prototype would still apply. */
2444 rm -f conftest.$ac_objext conftest$ac_exeext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446 (eval $ac_link) 2>conftest.er1
2448 grep -v '^ *+' conftest.er1 >conftest.err
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest$ac_exeext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 have_libmysqlclient_r=yes
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2471 rm -f conftest.err conftest.$ac_objext \
2472 conftest$ac_exeext conftest.$ac_ext
2474 if test "x$have_libmysqlclient_r" = "xyes"; then
2475 echo "$as_me:$LINENO: result: yes" >&5
2476 echo "${ECHO_T}yes" >&6
2477 SMART_LIBS="$mysql_libs $SMART_LIBS"
2479 echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6
2483 if test "x$have_libmysqlclient_r" != "xyes"; then
2484 smart_try_dir="$mysql_lib_dir /usr/lib /usr/lib/mysql \
2485 /usr/local/lib/mysql /usr/local/mysql/lib/mysql"
2488 sm_lib_safe=`echo "mysqlclient_r" | sed 'y%./+-%__p_%'`
2489 sm_func_safe=`echo "mysql_init" | sed 'y%./+-%__p_%'`
2490 echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient_r" >&5
2491 echo $ECHO_N "checking for mysql_init in -lmysqlclient_r... $ECHO_C" >&6
2497 if test "x$smart_try_dir" != "x"; then
2498 for try in $smart_try_dir; do
2499 LIBS="-L$try -lmysqlclient_r $old_LIBS"
2500 cat >conftest.$ac_ext <<_ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2506 extern char mysql_init();
2515 rm -f conftest.$ac_objext conftest$ac_exeext
2516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2517 (eval $ac_link) 2>conftest.er1
2519 grep -v '^ *+' conftest.er1 >conftest.err
2521 cat conftest.err >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } &&
2524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try='test -s conftest$ac_exeext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 smart_lib="-L$try -lmysqlclient_r"
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2542 rm -f conftest.err conftest.$ac_objext \
2543 conftest$ac_exeext conftest.$ac_ext
2544 if test "x$smart_lib" != "x"; then
2551 if test "x$smart_lib" = "x"; then
2552 LIBS="-lmysqlclient_r $old_LIBS"
2553 cat >conftest.$ac_ext <<_ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2559 extern char mysql_init();
2568 rm -f conftest.$ac_objext conftest$ac_exeext
2569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2570 (eval $ac_link) 2>conftest.er1
2572 grep -v '^ *+' conftest.er1 >conftest.err
2574 cat conftest.err >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; } &&
2583 { ac_try='test -s conftest$ac_exeext'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2589 smart_lib="-lmysqlclient_r"
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2595 rm -f conftest.err conftest.$ac_objext \
2596 conftest$ac_exeext conftest.$ac_ext
2600 if test "x$smart_lib" = "x"; then
2603 if test "x$LOCATE" != "x"; then
2605 file=libmysqlclient_r${libltdl_cv_shlibext}
2607 for x in `${LOCATE} $file 2>/dev/null`; do
2608 base=`echo $x | sed "s%/${file}%%"`
2609 if test "x$x" = "x$base"; then
2613 dir=`${DIRNAME} $x 2>/dev/null`
2614 exclude=`echo ${dir} | ${GREP} /home`
2615 if test "x$exclude" != "x"; then
2619 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2620 if test "x$already" = "x"; then
2626 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2630 if test "x$LOCATE" != "x"; then
2632 file=libmysqlclient_r.a
2634 for x in `${LOCATE} $file 2>/dev/null`; do
2635 base=`echo $x | sed "s%/${file}%%"`
2636 if test "x$x" = "x$base"; then
2640 dir=`${DIRNAME} $x 2>/dev/null`
2641 exclude=`echo ${dir} | ${GREP} /home`
2642 if test "x$exclude" != "x"; then
2646 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2647 if test "x$already" = "x"; then
2653 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2656 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
2657 LIBS="-L$try -lmysqlclient_r $old_LIBS"
2658 cat >conftest.$ac_ext <<_ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2664 extern char mysql_init();
2673 rm -f conftest.$ac_objext conftest$ac_exeext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2675 (eval $ac_link) 2>conftest.er1
2677 grep -v '^ *+' conftest.er1 >conftest.err
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } &&
2682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest$ac_exeext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 smart_lib="-L$try -lmysqlclient_r"
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2700 rm -f conftest.err conftest.$ac_objext \
2701 conftest$ac_exeext conftest.$ac_ext
2702 if test "x$smart_lib" != "x"; then
2709 if test "x$smart_lib" != "x"; then
2710 echo "$as_me:$LINENO: result: yes" >&5
2711 echo "${ECHO_T}yes" >&6
2712 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
2713 LIBS="$smart_lib $old_LIBS"
2714 SMART_LIBS="$smart_lib $SMART_LIBS"
2716 echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6
2720 if test "x$ac_cv_lib_mysqlclient_r_mysql_init" != "xyes"
2722 { echo "$as_me:$LINENO: WARNING: mysql libraries not found. Use --with-mysql-lib-dir=<path>." >&5
2723 echo "$as_me: WARNING: mysql libraries not found. Use --with-mysql-lib-dir=<path>." >&2;}
2724 targetname="" # disable module
2728 if test "x$MYSQL_CONFIG" = "xyes"; then
2729 mysql_libs="$(mysql_config --libs)"
2731 LIBS="$mysql_libs $LIBS"
2732 echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient (using mysql_config)" >&5
2733 echo $ECHO_N "checking for mysql_init in -lmysqlclient (using mysql_config)... $ECHO_C" >&6
2734 cat >conftest.$ac_ext <<_ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2741 /* Override any gcc2 internal prototype to avoid an error. */
2745 /* We use char because int might match the return type of a gcc2
2746 builtin and then its argument prototype would still apply. */
2756 rm -f conftest.$ac_objext conftest$ac_exeext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2758 (eval $ac_link) 2>conftest.er1
2760 grep -v '^ *+' conftest.er1 >conftest.err
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; } &&
2771 { ac_try='test -s conftest$ac_exeext'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 have_libmysqlclient=yes
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2783 rm -f conftest.err conftest.$ac_objext \
2784 conftest$ac_exeext conftest.$ac_ext
2786 if test "x$have_libmysqlclient" = "xyes"; then
2787 echo "$as_me:$LINENO: result: yes" >&5
2788 echo "${ECHO_T}yes" >&6
2789 SMART_LIBS="$mysql_libs $SMART_LIBS"
2791 echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6
2795 if test "x$have_libmysqlclient" != "xyes"; then
2796 smart_try_dir="$mysql_lib_dir /usr/lib /usr/lib/mysql \
2797 /usr/local/lib/mysql /usr/local/mysql/lib/mysql"
2800 sm_lib_safe=`echo "mysqlclient" | sed 'y%./+-%__p_%'`
2801 sm_func_safe=`echo "mysql_init" | sed 'y%./+-%__p_%'`
2802 echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
2803 echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
2809 if test "x$smart_try_dir" != "x"; then
2810 for try in $smart_try_dir; do
2811 LIBS="-L$try -lmysqlclient $old_LIBS"
2812 cat >conftest.$ac_ext <<_ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2818 extern char mysql_init();
2827 rm -f conftest.$ac_objext conftest$ac_exeext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2829 (eval $ac_link) 2>conftest.er1
2831 grep -v '^ *+' conftest.er1 >conftest.err
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; } &&
2842 { ac_try='test -s conftest$ac_exeext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 smart_lib="-L$try -lmysqlclient"
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2854 rm -f conftest.err conftest.$ac_objext \
2855 conftest$ac_exeext conftest.$ac_ext
2856 if test "x$smart_lib" != "x"; then
2863 if test "x$smart_lib" = "x"; then
2864 LIBS="-lmysqlclient $old_LIBS"
2865 cat >conftest.$ac_ext <<_ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2871 extern char mysql_init();
2880 rm -f conftest.$ac_objext conftest$ac_exeext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2882 (eval $ac_link) 2>conftest.er1
2884 grep -v '^ *+' conftest.er1 >conftest.err
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
2889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; } &&
2895 { ac_try='test -s conftest$ac_exeext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2901 smart_lib="-lmysqlclient"
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f conftest.err conftest.$ac_objext \
2908 conftest$ac_exeext conftest.$ac_ext
2912 if test "x$smart_lib" = "x"; then
2915 if test "x$LOCATE" != "x"; then
2917 file=libmysqlclient${libltdl_cv_shlibext}
2919 for x in `${LOCATE} $file 2>/dev/null`; do
2920 base=`echo $x | sed "s%/${file}%%"`
2921 if test "x$x" = "x$base"; then
2925 dir=`${DIRNAME} $x 2>/dev/null`
2926 exclude=`echo ${dir} | ${GREP} /home`
2927 if test "x$exclude" != "x"; then
2931 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2932 if test "x$already" = "x"; then
2938 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2942 if test "x$LOCATE" != "x"; then
2944 file=libmysqlclient.a
2946 for x in `${LOCATE} $file 2>/dev/null`; do
2947 base=`echo $x | sed "s%/${file}%%"`
2948 if test "x$x" = "x$base"; then
2952 dir=`${DIRNAME} $x 2>/dev/null`
2953 exclude=`echo ${dir} | ${GREP} /home`
2954 if test "x$exclude" != "x"; then
2958 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2959 if test "x$already" = "x"; then
2965 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2968 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
2969 LIBS="-L$try -lmysqlclient $old_LIBS"
2970 cat >conftest.$ac_ext <<_ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2976 extern char mysql_init();
2985 rm -f conftest.$ac_objext conftest$ac_exeext
2986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2987 (eval $ac_link) 2>conftest.er1
2989 grep -v '^ *+' conftest.er1 >conftest.err
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; } &&
3000 { ac_try='test -s conftest$ac_exeext'
3001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; }; then
3006 smart_lib="-L$try -lmysqlclient"
3008 echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3012 rm -f conftest.err conftest.$ac_objext \
3013 conftest$ac_exeext conftest.$ac_ext
3014 if test "x$smart_lib" != "x"; then
3021 if test "x$smart_lib" != "x"; then
3022 echo "$as_me:$LINENO: result: yes" >&5
3023 echo "${ECHO_T}yes" >&6
3024 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3025 LIBS="$smart_lib $old_LIBS"
3026 SMART_LIBS="$smart_lib $SMART_LIBS"
3028 echo "$as_me:$LINENO: result: no" >&5
3029 echo "${ECHO_T}no" >&6
3032 if test "x$ac_cv_lib_mysqlclient_mysql_init" != "xyes"
3034 { echo "$as_me:$LINENO: WARNING: mysql libraries not found. Use --with-mysql-lib-dir=<path>." >&5
3035 echo "$as_me: WARNING: mysql libraries not found. Use --with-mysql-lib-dir=<path>." >&2;}
3036 targetname="" # disable module
3042 if test "x$MYSQL_CONFIG" = "xyes"; then
3043 mysql_cflags="$(mysql_config --cflags)"
3044 old_CFLAGS="$CFLAGS"
3045 CFLAGS="$CFLAGS $mysql_cflags"
3046 echo "$as_me:$LINENO: checking for mysql.h (using mysql_config)" >&5
3047 echo $ECHO_N "checking for mysql.h (using mysql_config)... $ECHO_C" >&6
3048 cat >conftest.$ac_ext <<_ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3063 rm -f conftest.$ac_objext
3064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3065 (eval $ac_compile) 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } &&
3072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3091 if test "x$have_mysql_h" = "xyes"; then
3092 echo "$as_me:$LINENO: result: yes" >&5
3093 echo "${ECHO_T}yes" >&6
3095 cat >>confdefs.h <<\_ACEOF
3096 #define HAVE_MYSQL_H
3099 SMART_CFLAGS="$SMART_CFLAGS $mysql_cflags"
3101 echo "$as_me:$LINENO: result: no" >&5
3102 echo "${ECHO_T}no" >&6
3104 CFLAGS="$old_CFLAGS"
3106 if test "x$have_mysql_h" != "xyes"; then
3107 smart_try_dir="$mysql_include_dir /usr/local/include \
3108 /usr/local/mysql/include"
3111 ac_safe=`echo "mysql/mysql.h" | sed 'y%./+-%__pm%'`
3112 echo "$as_me:$LINENO: checking for mysql/mysql.h" >&5
3113 echo $ECHO_N "checking for mysql/mysql.h... $ECHO_C" >&6
3115 old_CFLAGS="$CFLAGS"
3119 if test "x$smart_try_dir" != "x"; then
3120 for try in $smart_try_dir; do
3121 CFLAGS="$old_CFLAGS -I$try"
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3129 #include <mysql/mysql.h>
3138 rm -f conftest.$ac_objext
3139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140 (eval $ac_compile) 2>conftest.er1
3142 grep -v '^ *+' conftest.er1 >conftest.err
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 smart_include="-I$try"
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3167 if test "x$smart_include" != "x"; then
3171 CFLAGS="$old_CFLAGS"
3174 if test "x$smart_include" = "x"; then
3175 cat >conftest.$ac_ext <<_ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3182 #include <mysql/mysql.h>
3191 rm -f conftest.$ac_objext
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>conftest.er1
3195 grep -v '^ *+' conftest.er1 >conftest.err
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; } &&
3206 { ac_try='test -s conftest.$ac_objext'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3222 if test "x$smart_include" = "x"; then
3225 if test "x$LOCATE" != "x"; then
3229 for x in `${LOCATE} $file 2>/dev/null`; do
3230 base=`echo $x | sed "s%/${file}%%"`
3231 if test "x$x" = "x$base"; then
3235 dir=`${DIRNAME} $x 2>/dev/null`
3236 exclude=`echo ${dir} | ${GREP} /home`
3237 if test "x$exclude" != "x"; then
3241 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
3242 if test "x$already" = "x"; then
3248 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
3251 for try in $smart_include_dir /usr/local/include /opt/include; do
3252 CFLAGS="$old_CFLAGS -I$try"
3253 cat >conftest.$ac_ext <<_ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3260 #include <mysql/mysql.h>
3269 rm -f conftest.$ac_objext
3270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271 (eval $ac_compile) 2>conftest.er1
3273 grep -v '^ *+' conftest.er1 >conftest.err
3275 cat conftest.err >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } &&
3278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; } &&
3284 { ac_try='test -s conftest.$ac_objext'
3285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }; }; then
3290 smart_include="-I$try"
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3298 if test "x$smart_include" != "x"; then
3302 CFLAGS="$old_CFLAGS"
3305 if test "x$smart_include" != "x"; then
3306 echo "$as_me:$LINENO: result: yes" >&5
3307 echo "${ECHO_T}yes" >&6
3308 eval "ac_cv_header_$ac_safe=yes"
3309 CFLAGS="$old_CFLAGS $smart_include"
3310 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
3312 echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6
3316 if test "$ac_cv_header_mysql_mysql_h" = "yes"; then
3318 cat >>confdefs.h <<\_ACEOF
3319 #define HAVE_MYSQL_MYSQL_H
3323 { echo "$as_me:$LINENO: WARNING: mysql headers not found. Use --with-mysql-include-dir=<path>." >&5
3324 echo "$as_me: WARNING: mysql headers not found. Use --with-mysql-include-dir=<path>." >&2;}
3325 targetname="" # disable module
3329 if test "x$targetname" = "x"; then
3330 { echo "$as_me:$LINENO: WARNING: sql submodule 'mysql' disabled" >&5
3331 echo "$as_me: WARNING: sql submodule 'mysql' disabled" >&2;}
3335 echo \*\*\* module rlm_sql_mysql is disabled.
3338 sql_mysql_ldflags="$SMART_LIBS"
3339 sql_mysql_cflags="$SMART_CFLAGS"
3343 ac_config_files="$ac_config_files Makefile"
3344 cat >confcache <<\_ACEOF
3345 # This file is a shell script that caches the results of configure
3346 # tests run on this system so they can be shared between configure
3347 # scripts and configure runs, see configure's option --config-cache.
3348 # It is not useful on other systems. If it contains results you don't
3349 # want to keep, you may remove or edit it.
3351 # config.status only pays attention to the cache file if you give it
3352 # the --recheck option to rerun configure.
3354 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3355 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3360 # The following way of writing the cache mishandles newlines in values,
3361 # but we know of no workaround that is simple, portable, and efficient.
3362 # So, don't put newlines in cache variables' values.
3363 # Ultrix sh set writes to stderr and can't be redirected directly,
3364 # and sets the high bit in the cache file unless we assign to the vars.
3367 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3369 # `set' does not quote correctly, so add quotes (double-quote
3370 # substitution turns \\\\ into \\, and sed turns \\ into \).
3373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3376 # `set' quotes correctly as required by POSIX, so do not add quotes.
3378 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3385 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3387 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3389 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3390 if test -w $cache_file; then
3391 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3392 cat confcache >$cache_file
3394 echo "not updating unwritable cache $cache_file"
3399 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3400 # Let make expand exec_prefix.
3401 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3403 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3404 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3405 # trailing colons and then remove the whole line if VPATH becomes empty
3406 # (actually we leave an empty line to preserve line numbers).
3407 if test "x$srcdir" = x.; then
3408 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3409 s/:*\$(srcdir):*/:/;
3410 s/:*\${srcdir}:*/:/;
3412 s/^\([^=]*=[ ]*\):*/\1/;
3418 DEFS=-DHAVE_CONFIG_H
3422 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3423 # 1. Remove the extension, and $U if already installed.
3424 ac_i=`echo "$ac_i" |
3425 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3427 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3428 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3432 LTLIBOBJS=$ac_ltlibobjs
3436 : ${CONFIG_STATUS=./config.status}
3437 ac_clean_files_save=$ac_clean_files
3438 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3439 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3440 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3441 cat >$CONFIG_STATUS <<_ACEOF
3443 # Generated by $as_me.
3444 # Run this file to recreate the current configuration.
3445 # Compiler output produced by configure, useful for debugging
3446 # configure, is in config.log if it exists.
3451 SHELL=\${CONFIG_SHELL-$SHELL}
3454 cat >>$CONFIG_STATUS <<\_ACEOF
3455 ## --------------------- ##
3456 ## M4sh Initialization. ##
3457 ## --------------------- ##
3459 # Be Bourne compatible
3460 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3463 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3464 # is contrary to our usage. Disable this feature.
3465 alias -g '${1+"$@"}'='"$@"'
3466 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3469 DUALCASE=1; export DUALCASE # for MKS sh
3471 # Support unset when possible.
3472 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3479 # Work around bugs in pre-3.0 UWIN ksh.
3480 $as_unset ENV MAIL MAILPATH
3487 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3488 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3489 LC_TELEPHONE LC_TIME
3491 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3492 eval $as_var=C; export $as_var
3498 # Required to use basename.
3499 if expr a : '\(a\)' >/dev/null 2>&1; then
3505 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3506 as_basename=basename
3512 # Name of the executable.
3513 as_me=`$as_basename "$0" ||
3514 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3515 X"$0" : 'X\(//\)$' \| \
3516 X"$0" : 'X\(/\)$' \| \
3517 . : '\(.\)' 2>/dev/null ||
3519 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3520 /^X\/\(\/\/\)$/{ s//\1/; q; }
3521 /^X\/\(\/\).*/{ s//\1/; q; }
3525 # PATH needs CR, and LINENO needs CR and PATH.
3526 # Avoid depending upon Character Ranges.
3527 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3528 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3529 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3530 as_cr_digits='0123456789'
3531 as_cr_alnum=$as_cr_Letters$as_cr_digits
3533 # The user is always right.
3534 if test "${PATH_SEPARATOR+set}" != set; then
3535 echo "#! /bin/sh" >conf$$.sh
3536 echo "exit 0" >>conf$$.sh
3538 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3549 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3550 test "x$as_lineno_1" != "x$as_lineno_2" &&
3551 test "x$as_lineno_3" = "x$as_lineno_2" || {
3552 # Find who we are. Look in the path if we contain no path at all
3555 *[\\/]* ) as_myself=$0 ;;
3556 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir=.
3561 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3566 # We did not find ourselves, most probably we were run as `sh COMMAND'
3567 # in which case we are not to be found in the path.
3568 if test "x$as_myself" = x; then
3571 if test ! -f "$as_myself"; then
3572 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3573 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3574 { (exit 1); exit 1; }; }
3576 case $CONFIG_SHELL in
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3582 test -z "$as_dir" && as_dir=.
3583 for as_base in sh bash ksh sh5; do
3586 if ("$as_dir/$as_base" -c '
3589 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3590 test "x$as_lineno_1" != "x$as_lineno_2" &&
3591 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3592 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3593 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3594 CONFIG_SHELL=$as_dir/$as_base
3596 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3604 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3605 # uniformly replaced by the line number. The first 'sed' inserts a
3606 # line-number line before each line; the second 'sed' does the real
3607 # work. The second script uses 'N' to pair each line-number line
3608 # with the numbered line, and appends trailing '-' during
3609 # substitution so that $LINENO is not a special case at line end.
3610 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3611 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3612 sed '=' <$as_myself |
3617 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3620 s,^['$as_cr_digits']*\n,,
3622 chmod +x $as_me.lineno ||
3623 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3624 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3625 { (exit 1); exit 1; }; }
3627 # Don't try to exec as it changes $[0], causing all sort of problems
3628 # (the dirname of $[0] is not the place where we might find the
3629 # original and so on. Autoconf is especially sensible to this).
3631 # Exit status is that of the last command.
3636 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3637 *c*,-n*) ECHO_N= ECHO_C='
3639 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3640 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3643 if expr a : '\(a\)' >/dev/null 2>&1; then
3649 rm -f conf$$ conf$$.exe conf$$.file
3651 if ln -s conf$$.file conf$$ 2>/dev/null; then
3652 # We could just check for DJGPP; but this test a) works b) is more generic
3653 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3654 if test -f conf$$.exe; then
3655 # Don't use ln at all; we don't have any links
3660 elif ln conf$$.file conf$$ 2>/dev/null; then
3665 rm -f conf$$ conf$$.exe conf$$.file
3667 if mkdir -p . 2>/dev/null; then
3670 test -d ./-p && rmdir ./-p
3674 as_executable_p="test -f"
3676 # Sed expression to map a string onto a valid CPP name.
3677 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3679 # Sed expression to map a string onto a valid variable name.
3680 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3684 # We need space, tab and new line, in precisely that order.
3694 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3695 # report actual input values of CONFIG_FILES etc. instead of their
3696 # values after options handling. Logging --version etc. is OK.
3700 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3701 ## Running $as_me. ##
3706 This file was extended by $as_me, which was
3707 generated by GNU Autoconf 2.59. Invocation command line was
3709 CONFIG_FILES = $CONFIG_FILES
3710 CONFIG_HEADERS = $CONFIG_HEADERS
3711 CONFIG_LINKS = $CONFIG_LINKS
3712 CONFIG_COMMANDS = $CONFIG_COMMANDS
3716 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3720 # Files that config.status was made for.
3721 if test -n "$ac_config_files"; then
3722 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3725 if test -n "$ac_config_headers"; then
3726 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3729 if test -n "$ac_config_links"; then
3730 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3733 if test -n "$ac_config_commands"; then
3734 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3737 cat >>$CONFIG_STATUS <<\_ACEOF
3740 \`$as_me' instantiates files from templates according to the
3741 current configuration.
3743 Usage: $0 [OPTIONS] [FILE]...
3745 -h, --help print this help, then exit
3746 -V, --version print version number, then exit
3747 -q, --quiet do not print progress messages
3748 -d, --debug don't remove temporary files
3749 --recheck update $as_me by reconfiguring in the same conditions
3750 --file=FILE[:TEMPLATE]
3751 instantiate the configuration file FILE
3752 --header=FILE[:TEMPLATE]
3753 instantiate the configuration header FILE
3755 Configuration files:
3758 Configuration headers:
3761 Report bugs to <bug-autoconf@gnu.org>."
3764 cat >>$CONFIG_STATUS <<_ACEOF
3767 configured by $0, generated by GNU Autoconf 2.59,
3768 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3770 Copyright (C) 2003 Free Software Foundation, Inc.
3771 This config.status script is free software; the Free Software Foundation
3772 gives unlimited permission to copy, distribute and modify it."
3776 cat >>$CONFIG_STATUS <<\_ACEOF
3777 # If no file are specified by the user, then we need to provide default
3778 # value. By we need to know if files were specified by the user.
3784 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3785 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3793 *) # This is not an option, so the user has probably given explicit
3796 ac_need_defaults=false;;
3800 # Handling of the options.
3802 cat >>$CONFIG_STATUS <<\_ACEOF
3803 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3805 --version | --vers* | -V )
3806 echo "$ac_cs_version"; exit 0 ;;
3808 # Conflict between --help and --header
3809 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3810 Try \`$0 --help' for more information." >&5
3811 echo "$as_me: error: ambiguous option: $1
3812 Try \`$0 --help' for more information." >&2;}
3813 { (exit 1); exit 1; }; };;
3814 --help | --hel | -h )
3815 echo "$ac_cs_usage"; exit 0 ;;
3816 --debug | --d* | -d )
3818 --file | --fil | --fi | --f )
3820 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3821 ac_need_defaults=false;;
3822 --header | --heade | --head | --hea )
3824 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3825 ac_need_defaults=false;;
3826 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3827 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3831 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3832 Try \`$0 --help' for more information." >&5
3833 echo "$as_me: error: unrecognized option: $1
3834 Try \`$0 --help' for more information." >&2;}
3835 { (exit 1); exit 1; }; } ;;
3837 *) ac_config_targets="$ac_config_targets $1" ;;
3843 ac_configure_extra_args=
3845 if $ac_cs_silent; then
3847 ac_configure_extra_args="$ac_configure_extra_args --silent"
3851 cat >>$CONFIG_STATUS <<_ACEOF
3852 if \$ac_cs_recheck; then
3853 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3854 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3863 cat >>$CONFIG_STATUS <<\_ACEOF
3864 for ac_config_target in $ac_config_targets
3866 case "$ac_config_target" in
3867 # Handling of arguments.
3868 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3869 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3870 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3871 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3872 { (exit 1); exit 1; }; };;
3876 # If the user did not use the arguments to specify the items to instantiate,
3877 # then the envvar interface is used. Set only those that are not.
3878 # We use the long form for the default assignment because of an extremely
3879 # bizarre bug on SunOS 4.1.3.
3880 if $ac_need_defaults; then
3881 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3882 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3885 # Have a temporary directory for convenience. Make it in the build tree
3886 # simply because there is no reason to put it here, and in addition,
3887 # creating and moving files from /tmp can sometimes cause problems.
3888 # Create a temporary directory, and hook for its removal unless debugging.
3891 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3892 trap '{ (exit 1); exit 1; }' 1 2 13 15
3895 # Create a (secure) tmp directory for tmp files.
3898 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3899 test -n "$tmp" && test -d "$tmp"
3902 tmp=./confstat$$-$RANDOM
3903 (umask 077 && mkdir $tmp)
3906 echo "$me: cannot create a temporary directory in ." >&2
3907 { (exit 1); exit 1; }
3912 cat >>$CONFIG_STATUS <<_ACEOF
3915 # CONFIG_FILES section.
3918 # No need to generate the scripts if there are no CONFIG_FILES.
3919 # This happens for instance when ./config.status config.h
3920 if test -n "\$CONFIG_FILES"; then
3921 # Protect against being on the right side of a sed subst in config.status.
3922 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3923 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3924 s,@SHELL@,$SHELL,;t t
3925 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3926 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3927 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3928 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3929 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3930 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3931 s,@exec_prefix@,$exec_prefix,;t t
3932 s,@prefix@,$prefix,;t t
3933 s,@program_transform_name@,$program_transform_name,;t t
3934 s,@bindir@,$bindir,;t t
3935 s,@sbindir@,$sbindir,;t t
3936 s,@libexecdir@,$libexecdir,;t t
3937 s,@datadir@,$datadir,;t t
3938 s,@sysconfdir@,$sysconfdir,;t t
3939 s,@sharedstatedir@,$sharedstatedir,;t t
3940 s,@localstatedir@,$localstatedir,;t t
3941 s,@libdir@,$libdir,;t t
3942 s,@includedir@,$includedir,;t t
3943 s,@oldincludedir@,$oldincludedir,;t t
3944 s,@infodir@,$infodir,;t t
3945 s,@mandir@,$mandir,;t t
3946 s,@build_alias@,$build_alias,;t t
3947 s,@host_alias@,$host_alias,;t t
3948 s,@target_alias@,$target_alias,;t t
3950 s,@ECHO_C@,$ECHO_C,;t t
3951 s,@ECHO_N@,$ECHO_N,;t t
3952 s,@ECHO_T@,$ECHO_T,;t t
3955 s,@CFLAGS@,$CFLAGS,;t t
3956 s,@LDFLAGS@,$LDFLAGS,;t t
3957 s,@CPPFLAGS@,$CPPFLAGS,;t t
3958 s,@ac_ct_CC@,$ac_ct_CC,;t t
3959 s,@EXEEXT@,$EXEEXT,;t t
3960 s,@OBJEXT@,$OBJEXT,;t t
3961 s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
3962 s,@sql_mysql_ldflags@,$sql_mysql_ldflags,;t t
3963 s,@sql_mysql_cflags@,$sql_mysql_cflags,;t t
3964 s,@targetname@,$targetname,;t t
3965 s,@LIBOBJS@,$LIBOBJS,;t t
3966 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3971 cat >>$CONFIG_STATUS <<\_ACEOF
3972 # Split the substitutions into bite-sized pieces for seds with
3973 # small command number limits, like on Digital OSF/1 and HP-UX.
3975 ac_sed_frag=1 # Number of current file.
3976 ac_beg=1 # First line for current file.
3977 ac_end=$ac_max_sed_lines # Line after last line for current file.
3980 while $ac_more_lines; do
3981 if test $ac_beg -gt 1; then
3982 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3984 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3986 if test ! -s $tmp/subs.frag; then
3989 # The purpose of the label and of the branching condition is to
3990 # speed up the sed processing (if there are no `@' at all, there
3991 # is no need to browse any of the substitutions).
3992 # These are the two extra sed commands mentioned above.
3994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3995 if test -z "$ac_sed_cmds"; then
3996 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3998 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4000 ac_sed_frag=`expr $ac_sed_frag + 1`
4002 ac_end=`expr $ac_end + $ac_max_sed_lines`
4005 if test -z "$ac_sed_cmds"; then
4008 fi # test -n "$CONFIG_FILES"
4011 cat >>$CONFIG_STATUS <<\_ACEOF
4012 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4013 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4015 - | *:- | *:-:* ) # input from stdin
4017 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4019 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4020 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4021 * ) ac_file_in=$ac_file.in ;;
4024 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4025 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4027 X"$ac_file" : 'X\(//\)[^/]' \| \
4028 X"$ac_file" : 'X\(//\)$' \| \
4029 X"$ac_file" : 'X\(/\)' \| \
4030 . : '\(.\)' 2>/dev/null ||
4032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4034 /^X\(\/\/\)$/{ s//\1/; q; }
4035 /^X\(\/\).*/{ s//\1/; q; }
4037 { if $as_mkdir_p; then
4042 while test ! -d "$as_dir"; do
4043 as_dirs="$as_dir $as_dirs"
4044 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4046 X"$as_dir" : 'X\(//\)[^/]' \| \
4047 X"$as_dir" : 'X\(//\)$' \| \
4048 X"$as_dir" : 'X\(/\)' \| \
4049 . : '\(.\)' 2>/dev/null ||
4051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4053 /^X\(\/\/\)$/{ s//\1/; q; }
4054 /^X\(\/\).*/{ s//\1/; q; }
4057 test ! -n "$as_dirs" || mkdir $as_dirs
4058 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4059 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4060 { (exit 1); exit 1; }; }; }
4064 if test "$ac_dir" != .; then
4065 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4066 # A "../" for each directory in $ac_dir_suffix.
4067 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4069 ac_dir_suffix= ac_top_builddir=
4073 .) # No --srcdir option. We are building in place.
4075 if test -z "$ac_top_builddir"; then
4078 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4080 [\\/]* | ?:[\\/]* ) # Absolute path.
4081 ac_srcdir=$srcdir$ac_dir_suffix;
4082 ac_top_srcdir=$srcdir ;;
4084 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4085 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4088 # Do not use `cd foo && pwd` to compute absolute paths, because
4089 # the directories may not exist.
4091 .) ac_abs_builddir="$ac_dir";;
4094 .) ac_abs_builddir=`pwd`;;
4095 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4096 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4099 case $ac_abs_builddir in
4100 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4102 case ${ac_top_builddir}. in
4103 .) ac_abs_top_builddir=$ac_abs_builddir;;
4104 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4105 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4108 case $ac_abs_builddir in
4109 .) ac_abs_srcdir=$ac_srcdir;;
4112 .) ac_abs_srcdir=$ac_abs_builddir;;
4113 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4114 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4117 case $ac_abs_builddir in
4118 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4120 case $ac_top_srcdir in
4121 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4122 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4123 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4129 # Let's still pretend it is `configure' which instantiates (i.e., don't
4130 # use $as_me), people would be surprised to read:
4131 # /* config.h. Generated by config.status. */
4132 if test x"$ac_file" = x-; then
4135 configure_input="$ac_file. "
4137 configure_input=$configure_input"Generated from `echo $ac_file_in |
4138 sed 's,.*/,,'` by configure."
4140 # First look for the input files in the build tree, otherwise in the
4142 ac_file_inputs=`IFS=:
4143 for f in $ac_file_in; do
4145 -) echo $tmp/stdin ;;
4147 # Absolute (can't be DOS-style, as IFS=:)
4148 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4149 echo "$as_me: error: cannot find input file: $f" >&2;}
4150 { (exit 1); exit 1; }; }
4153 if test -f "$f"; then
4156 elif test -f "$srcdir/$f"; then
4161 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4162 echo "$as_me: error: cannot find input file: $f" >&2;}
4163 { (exit 1); exit 1; }; }
4166 done` || { (exit 1); exit 1; }
4168 if test x"$ac_file" != x-; then
4169 { echo "$as_me:$LINENO: creating $ac_file" >&5
4170 echo "$as_me: creating $ac_file" >&6;}
4174 cat >>$CONFIG_STATUS <<_ACEOF
4178 cat >>$CONFIG_STATUS <<\_ACEOF
4180 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4181 s,@configure_input@,$configure_input,;t t
4182 s,@srcdir@,$ac_srcdir,;t t
4183 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4184 s,@top_srcdir@,$ac_top_srcdir,;t t
4185 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4186 s,@builddir@,$ac_builddir,;t t
4187 s,@abs_builddir@,$ac_abs_builddir,;t t
4188 s,@top_builddir@,$ac_top_builddir,;t t
4189 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4190 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4192 if test x"$ac_file" != x-; then
4193 mv $tmp/out $ac_file
4201 cat >>$CONFIG_STATUS <<\_ACEOF
4204 # CONFIG_HEADER section.
4207 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4208 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4210 # ac_d sets the value in "#define NAME VALUE" lines.
4211 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4212 ac_dB='[ ].*$,\1#\2'
4215 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4216 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4217 ac_uB='$,\1#\2define\3'
4221 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4222 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4224 - | *:- | *:-:* ) # input from stdin
4226 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4227 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4228 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4229 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4230 * ) ac_file_in=$ac_file.in ;;
4233 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4234 echo "$as_me: creating $ac_file" >&6;}
4236 # First look for the input files in the build tree, otherwise in the
4238 ac_file_inputs=`IFS=:
4239 for f in $ac_file_in; do
4241 -) echo $tmp/stdin ;;
4243 # Absolute (can't be DOS-style, as IFS=:)
4244 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4245 echo "$as_me: error: cannot find input file: $f" >&2;}
4246 { (exit 1); exit 1; }; }
4247 # Do quote $f, to prevent DOS paths from being IFS'd.
4250 if test -f "$f"; then
4253 elif test -f "$srcdir/$f"; then
4258 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4259 echo "$as_me: error: cannot find input file: $f" >&2;}
4260 { (exit 1); exit 1; }; }
4263 done` || { (exit 1); exit 1; }
4264 # Remove the trailing spaces.
4265 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4269 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4270 # `conftest.undefs', that substitutes the proper values into
4271 # config.h.in to produce config.h. The first handles `#define'
4272 # templates, and the second `#undef' templates.
4273 # And first: Protect against being on the right side of a sed subst in
4274 # config.status. Protect against being in an unquoted here document
4276 rm -f conftest.defines conftest.undefs
4277 # Using a here document instead of a string reduces the quoting nightmare.
4278 # Putting comments in sed scripts is not portable.
4280 # `end' is used to avoid that the second main sed command (meant for
4281 # 0-ary CPP macros) applies to n-ary macro definitions.
4282 # See the Autoconf documentation for `clear'.
4283 cat >confdef2sed.sed <<\_ACEOF
4288 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4290 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4293 # If some macros were called several times there might be several times
4294 # the same #defines, which is useless. Nevertheless, we may not want to
4295 # sort them, since we want the *last* AC-DEFINE to be honored.
4296 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4297 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4298 rm -f confdef2sed.sed
4300 # This sed command replaces #undef with comments. This is necessary, for
4301 # example, in the case of _POSIX_SOURCE, which is predefined and required
4302 # on some systems where configure will not decide to define it.
4303 cat >>conftest.undefs <<\_ACEOF
4304 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4307 # Break up conftest.defines because some shells have a limit on the size
4308 # of here documents, and old seds have small limits too (100 cmds).
4309 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4310 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4311 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4312 echo ' :' >>$CONFIG_STATUS
4314 while grep . conftest.defines >/dev/null
4316 # Write a limited-size here document to $tmp/defines.sed.
4317 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4318 # Speed up: don't consider the non `#define' lines.
4319 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4320 # Work around the forget-to-reset-the-flag bug.
4321 echo 't clr' >>$CONFIG_STATUS
4322 echo ': clr' >>$CONFIG_STATUS
4323 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4325 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4329 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4330 rm -f conftest.defines
4331 mv conftest.tail conftest.defines
4333 rm -f conftest.defines
4334 echo ' fi # grep' >>$CONFIG_STATUS
4335 echo >>$CONFIG_STATUS
4337 # Break up conftest.undefs because some shells have a limit on the size
4338 # of here documents, and old seds have small limits too (100 cmds).
4339 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4341 while grep . conftest.undefs >/dev/null
4343 # Write a limited-size here document to $tmp/undefs.sed.
4344 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4345 # Speed up: don't consider the non `#undef'
4346 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4347 # Work around the forget-to-reset-the-flag bug.
4348 echo 't clr' >>$CONFIG_STATUS
4349 echo ': clr' >>$CONFIG_STATUS
4350 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4352 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4356 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4357 rm -f conftest.undefs
4358 mv conftest.tail conftest.undefs
4360 rm -f conftest.undefs
4362 cat >>$CONFIG_STATUS <<\_ACEOF
4363 # Let's still pretend it is `configure' which instantiates (i.e., don't
4364 # use $as_me), people would be surprised to read:
4365 # /* config.h. Generated by config.status. */
4366 if test x"$ac_file" = x-; then
4367 echo "/* Generated by configure. */" >$tmp/config.h
4369 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4371 cat $tmp/in >>$tmp/config.h
4373 if test x"$ac_file" != x-; then
4374 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4375 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4376 echo "$as_me: $ac_file is unchanged" >&6;}
4378 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4379 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4380 X"$ac_file" : 'X\(//\)[^/]' \| \
4381 X"$ac_file" : 'X\(//\)$' \| \
4382 X"$ac_file" : 'X\(/\)' \| \
4383 . : '\(.\)' 2>/dev/null ||
4385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4386 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4387 /^X\(\/\/\)$/{ s//\1/; q; }
4388 /^X\(\/\).*/{ s//\1/; q; }
4390 { if $as_mkdir_p; then
4395 while test ! -d "$as_dir"; do
4396 as_dirs="$as_dir $as_dirs"
4397 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4398 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4399 X"$as_dir" : 'X\(//\)[^/]' \| \
4400 X"$as_dir" : 'X\(//\)$' \| \
4401 X"$as_dir" : 'X\(/\)' \| \
4402 . : '\(.\)' 2>/dev/null ||
4404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4405 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4406 /^X\(\/\/\)$/{ s//\1/; q; }
4407 /^X\(\/\).*/{ s//\1/; q; }
4410 test ! -n "$as_dirs" || mkdir $as_dirs
4411 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4412 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4413 { (exit 1); exit 1; }; }; }
4416 mv $tmp/config.h $ac_file
4425 cat >>$CONFIG_STATUS <<\_ACEOF
4427 { (exit 0); exit 0; }
4429 chmod +x $CONFIG_STATUS
4430 ac_clean_files=$ac_clean_files_save
4433 # configure is writing to config.log, and then calls config.status.
4434 # config.status does its own redirection, appending to config.log.
4435 # Unfortunately, on DOS this fails, as config.log is still kept open
4436 # by configure, so config.status won't be able to write to it; its
4437 # output is simply discarded. So we exec the FD to /dev/null,
4438 # effectively closing config.log, so it can be properly (re)opened and
4439 # appended to by config.status. When coming back to configure, we
4440 # need to make the FD available again.
4441 if test "$no_create" != yes; then
4443 ac_config_status_args=
4444 test "$silent" = yes &&
4445 ac_config_status_args="$ac_config_status_args --quiet"
4447 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4449 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4450 # would make configure fail if this is the last instruction.
4451 $ac_cs_success || { (exit 1); exit 1; }