import from branch_1_1:
[freeradius.git] / src / modules / rlm_sql / drivers / rlm_sql_mysql / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.12 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
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 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
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
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
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 \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
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 ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
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
86
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
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
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
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
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
123     as_myself=$0
124   fi
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; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
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
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
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 |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
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; }; }
178
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).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >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
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
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'"
230
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'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
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`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
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}
267
268 # Identity of this package.
269 PACKAGE_NAME=
270 PACKAGE_TARNAME=
271 PACKAGE_VERSION=
272 PACKAGE_STRING=
273 PACKAGE_BUGREPORT=
274
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'
277 ac_subst_files=''
278
279 # Initialize some variables set by options.
280 ac_init_help=
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
284 cache_file=/dev/null
285 exec_prefix=NONE
286 no_create=
287 no_recursion=
288 prefix=NONE
289 program_prefix=NONE
290 program_suffix=NONE
291 program_transform_name=s,x,x,
292 silent=
293 site=
294 srcdir=
295 verbose=
296 x_includes=NONE
297 x_libraries=NONE
298
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'
316
317 ac_prev=
318 for ac_option
319 do
320   # If the previous option needs an argument, assign it.
321   if test -n "$ac_prev"; then
322     eval "$ac_prev=\$ac_option"
323     ac_prev=
324     continue
325   fi
326
327   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329   # Accept the important Cygnus configure options, so we can diagnose typos.
330
331   case $ac_option in
332
333   -bindir | --bindir | --bindi | --bind | --bin | --bi)
334     ac_prev=bindir ;;
335   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336     bindir=$ac_optarg ;;
337
338   -build | --build | --buil | --bui | --bu)
339     ac_prev=build_alias ;;
340   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341     build_alias=$ac_optarg ;;
342
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 ;;
349
350   --config-cache | -C)
351     cache_file=config.cache ;;
352
353   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354     ac_prev=datadir ;;
355   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356   | --da=*)
357     datadir=$ac_optarg ;;
358
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" ;;
367
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'`
375     case $ac_option in
376       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377       *) ac_optarg=yes ;;
378     esac
379     eval "enable_$ac_feature='$ac_optarg'" ;;
380
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 ;;
389
390   -gas | --gas | --ga | --g)
391     # Obsolete; use --with-gas.
392     with_gas=yes ;;
393
394   -help | --help | --hel | --he | -h)
395     ac_init_help=long ;;
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 ;;
400
401   -host | --host | --hos | --ho)
402     ac_prev=host_alias ;;
403   -host=* | --host=* | --hos=* | --ho=*)
404     host_alias=$ac_optarg ;;
405
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 ;;
412
413   -infodir | --infodir | --infodi | --infod | --info | --inf)
414     ac_prev=infodir ;;
415   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416     infodir=$ac_optarg ;;
417
418   -libdir | --libdir | --libdi | --libd)
419     ac_prev=libdir ;;
420   -libdir=* | --libdir=* | --libdi=* | --libd=*)
421     libdir=$ac_optarg ;;
422
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 ;;
429
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 ;;
438
439   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440     ac_prev=mandir ;;
441   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442     mandir=$ac_optarg ;;
443
444   -nfp | --nfp | --nf)
445     # Obsolete; use --without-fp.
446     with_fp=no ;;
447
448   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449   | --no-cr | --no-c | -n)
450     no_create=yes ;;
451
452   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454     no_recursion=yes ;;
455
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 ;;
464
465   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466     ac_prev=prefix ;;
467   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468     prefix=$ac_optarg ;;
469
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 ;;
476
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 ;;
483
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 ;;
500
501   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502   | -silent | --silent | --silen | --sile | --sil)
503     silent=yes ;;
504
505   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506     ac_prev=sbindir ;;
507   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508   | --sbi=* | --sb=*)
509     sbindir=$ac_optarg ;;
510
511   -sharedstatedir | --sharedstatedir | --sharedstatedi \
512   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513   | --sharedst | --shareds | --shared | --share | --shar \
514   | --sha | --sh)
515     ac_prev=sharedstatedir ;;
516   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519   | --sha=* | --sh=*)
520     sharedstatedir=$ac_optarg ;;
521
522   -site | --site | --sit)
523     ac_prev=site ;;
524   -site=* | --site=* | --sit=*)
525     site=$ac_optarg ;;
526
527   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528     ac_prev=srcdir ;;
529   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530     srcdir=$ac_optarg ;;
531
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 ;;
538
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 ;;
543
544   -v | -verbose | --verbose | --verbos | --verbo | --verb)
545     verbose=yes ;;
546
547   -version | --version | --versio | --versi | --vers | -V)
548     ac_init_version=: ;;
549
550   -with-* | --with-*)
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'`
557     case $ac_option in
558       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559       *) ac_optarg=yes ;;
560     esac
561     eval "with_$ac_package='$ac_optarg'" ;;
562
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" ;;
571
572   --x)
573     # Obsolete; use --with-x.
574     with_x=yes ;;
575
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 ;;
582
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 ;;
589
590   -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592    { (exit 1); exit 1; }; }
593     ;;
594
595   *=*)
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'"
603     export $ac_envvar ;;
604
605   *)
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}
611     ;;
612
613   esac
614 done
615
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; }; }
620 fi
621
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
624 do
625   eval ac_val=$`echo $ac_var`
626   case $ac_val in
627     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629    { (exit 1); exit 1; }; };;
630   esac
631 done
632
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
636 do
637   eval ac_val=$`echo $ac_var`
638   case $ac_val in
639     [\\/$]* | ?:[\\/]* ) ;;
640     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641    { (exit 1); exit 1; }; };;
642   esac
643 done
644
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.
648 build=$build_alias
649 host=$host_alias
650 target=$target_alias
651
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
659     cross_compiling=yes
660   fi
661 fi
662
663 ac_tool_prefix=
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666 test "$silent" = yes && exec 6>/dev/null
667
668
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 ||
679 echo X"$0" |
680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682           /^X\(\/\/\)$/{ s//\1/; q; }
683           /^X\(\/\).*/{ s//\1/; q; }
684           s/.*/./; q'`
685   srcdir=$ac_confdir
686   if test ! -r $srcdir/$ac_unique_file; then
687     srcdir=..
688   fi
689 else
690   ac_srcdir_defaulted=no
691 fi
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; }; }
696   else
697     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698    { (exit 1); exit 1; }; }
699   fi
700 fi
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}
718 ac_env_CC_value=$CC
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
733
734 #
735 # Report the --help message.
736 #
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.
740   cat <<_ACEOF
741 \`configure' configures this package to adapt to many kinds of systems.
742
743 Usage: $0 [OPTION]... [VAR=VALUE]...
744
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.
747
748 Defaults for the options are specified in brackets.
749
750 Configuration:
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 \`..']
760
761 _ACEOF
762
763   cat <<_ACEOF
764 Installation directories:
765   --prefix=PREFIX         install architecture-independent files in PREFIX
766                           [$ac_default_prefix]
767   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
768                           [PREFIX]
769
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'.
774
775 For better control, use the options below.
776
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]
790 _ACEOF
791
792   cat <<\_ACEOF
793 _ACEOF
794 fi
795
796 if test -n "$ac_init_help"; then
797
798   cat <<\_ACEOF
799
800 Optional Packages:
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)
807
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>
815
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.
818
819 _ACEOF
820 fi
821
822 if test "$ac_init_help" = "recursive"; then
823   # If there are subdirs, report their specific --help.
824   ac_popdir=`pwd`
825   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
826     test -d $ac_dir || continue
827     ac_builddir=.
828
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'`
833 else
834   ac_dir_suffix= ac_top_builddir=
835 fi
836
837 case $srcdir in
838   .)  # No --srcdir option.  We are building in place.
839     ac_srcdir=.
840     if test -z "$ac_top_builddir"; then
841        ac_top_srcdir=.
842     else
843        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
844     fi ;;
845   [\\/]* | ?:[\\/]* )  # Absolute path.
846     ac_srcdir=$srcdir$ac_dir_suffix;
847     ac_top_srcdir=$srcdir ;;
848   *) # Relative path.
849     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
850     ac_top_srcdir=$ac_top_builddir$srcdir ;;
851 esac
852
853 # Do not use `cd foo && pwd` to compute absolute paths, because
854 # the directories may not exist.
855 case `pwd` in
856 .) ac_abs_builddir="$ac_dir";;
857 *)
858   case "$ac_dir" in
859   .) ac_abs_builddir=`pwd`;;
860   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
861   *) ac_abs_builddir=`pwd`/"$ac_dir";;
862   esac;;
863 esac
864 case $ac_abs_builddir in
865 .) ac_abs_top_builddir=${ac_top_builddir}.;;
866 *)
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}.;;
871   esac;;
872 esac
873 case $ac_abs_builddir in
874 .) ac_abs_srcdir=$ac_srcdir;;
875 *)
876   case $ac_srcdir in
877   .) ac_abs_srcdir=$ac_abs_builddir;;
878   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
879   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
880   esac;;
881 esac
882 case $ac_abs_builddir in
883 .) ac_abs_top_srcdir=$ac_top_srcdir;;
884 *)
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;;
889   esac;;
890 esac
891
892     cd $ac_dir
893     # Check for guested configure; otherwise get Cygnus style configure.
894     if test -f $ac_srcdir/configure.gnu; then
895       echo
896       $SHELL $ac_srcdir/configure.gnu  --help=recursive
897     elif test -f $ac_srcdir/configure; then
898       echo
899       $SHELL $ac_srcdir/configure  --help=recursive
900     elif test -f $ac_srcdir/configure.ac ||
901            test -f $ac_srcdir/configure.in; then
902       echo
903       $ac_configure --help
904     else
905       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
906     fi
907     cd "$ac_popdir"
908   done
909 fi
910
911 test -n "$ac_init_help" && exit 0
912 if $ac_init_version; then
913   cat <<\_ACEOF
914
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.
918 _ACEOF
919   exit 0
920 fi
921 exec 5>config.log
922 cat >&5 <<_ACEOF
923 This file contains any messages produced by compilers while
924 running configure, to aid debugging if configure makes a mistake.
925
926 It was created by $as_me, which was
927 generated by GNU Autoconf 2.59.  Invocation command line was
928
929   $ $0 $@
930
931 _ACEOF
932 {
933 cat <<_ASUNAME
934 ## --------- ##
935 ## Platform. ##
936 ## --------- ##
937
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`
943
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`
946
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`
954
955 _ASUNAME
956
957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
958 for as_dir in $PATH
959 do
960   IFS=$as_save_IFS
961   test -z "$as_dir" && as_dir=.
962   echo "PATH: $as_dir"
963 done
964
965 } >&5
966
967 cat >&5 <<_ACEOF
968
969
970 ## ----------- ##
971 ## Core tests. ##
972 ## ----------- ##
973
974 _ACEOF
975
976
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.
982 ac_configure_args=
983 ac_configure_args0=
984 ac_configure_args1=
985 ac_sep=
986 ac_must_keep_next=false
987 for ac_pass in 1 2
988 do
989   for ac_arg
990   do
991     case $ac_arg in
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)
995       continue ;;
996     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
997       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
998     esac
999     case $ac_pass in
1000     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1001     2)
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.
1005       else
1006         case $ac_arg in
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 ;;
1013             esac
1014             ;;
1015           -* ) ac_must_keep_next=true ;;
1016         esac
1017       fi
1018       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1019       # Get rid of the leading space.
1020       ac_sep=" "
1021       ;;
1022     esac
1023   done
1024 done
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; }
1027
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.
1035   {
1036     echo
1037
1038     cat <<\_ASBOX
1039 ## ---------------- ##
1040 ## Cache variables. ##
1041 ## ---------------- ##
1042 _ASBOX
1043     echo
1044     # The following way of writing the cache mishandles newlines in values,
1045 {
1046   (set) 2>&1 |
1047     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1048     *ac_space=\ *)
1049       sed -n \
1050         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1051           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1052       ;;
1053     *)
1054       sed -n \
1055         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1056       ;;
1057     esac;
1058 }
1059     echo
1060
1061     cat <<\_ASBOX
1062 ## ----------------- ##
1063 ## Output variables. ##
1064 ## ----------------- ##
1065 _ASBOX
1066     echo
1067     for ac_var in $ac_subst_vars
1068     do
1069       eval ac_val=$`echo $ac_var`
1070       echo "$ac_var='"'"'$ac_val'"'"'"
1071     done | sort
1072     echo
1073
1074     if test -n "$ac_subst_files"; then
1075       cat <<\_ASBOX
1076 ## ------------- ##
1077 ## Output files. ##
1078 ## ------------- ##
1079 _ASBOX
1080       echo
1081       for ac_var in $ac_subst_files
1082       do
1083         eval ac_val=$`echo $ac_var`
1084         echo "$ac_var='"'"'$ac_val'"'"'"
1085       done | sort
1086       echo
1087     fi
1088
1089     if test -s confdefs.h; then
1090       cat <<\_ASBOX
1091 ## ----------- ##
1092 ## confdefs.h. ##
1093 ## ----------- ##
1094 _ASBOX
1095       echo
1096       sed "/^$/d" confdefs.h | sort
1097       echo
1098     fi
1099     test "$ac_signal" != 0 &&
1100       echo "$as_me: caught signal $ac_signal"
1101     echo "$as_me: exit $exit_status"
1102   } >&5
1103   rm -f core *.core &&
1104   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1105     exit $exit_status
1106      ' 0
1107 for ac_signal in 1 2 13 15; do
1108   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1109 done
1110 ac_signal=0
1111
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.
1115 echo >confdefs.h
1116
1117 # Predefined preprocessor variables.
1118
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_NAME "$PACKAGE_NAME"
1121 _ACEOF
1122
1123
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1126 _ACEOF
1127
1128
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1131 _ACEOF
1132
1133
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_STRING "$PACKAGE_STRING"
1136 _ACEOF
1137
1138
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1141 _ACEOF
1142
1143
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"
1149   else
1150     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1151   fi
1152 fi
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
1158     . "$ac_site_file"
1159   fi
1160 done
1161
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;}
1168     case $cache_file in
1169       [\\/]* | ?:[\\/]* ) . $cache_file;;
1170       *)                      . ./$cache_file;;
1171     esac
1172   fi
1173 else
1174   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1175 echo "$as_me: creating cache $cache_file" >&6;}
1176   >$cache_file
1177 fi
1178
1179 # Check that the precious variables saved in the cache have kept the same
1180 # value.
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
1189     set,)
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=: ;;
1193     ,set)
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=: ;;
1197     ,);;
1198     *)
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=:
1207       fi;;
1208   esac
1209   # Pass precious variables to config.status.
1210   if test "$ac_new_set" = set; then
1211     case $ac_new_val in
1212     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1213       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1214     *) ac_arg=$ac_var=$ac_new_val ;;
1215     esac
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'" ;;
1219     esac
1220   fi
1221 done
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; }; }
1228 fi
1229
1230 ac_ext=c
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
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256           ac_config_headers="$ac_config_headers config.h"
1257
1258
1259 SMART_LIBS=""
1260 SMART_CLFAGS=""
1261 mysql_lib_dir=""
1262 mysql_include_dir=""
1263
1264 if test x$with_rlm_sql_mysql != xno; then
1265
1266     targetname=rlm_sql_mysql # we change this if a test fails
1267
1268
1269
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"
1275
1276 fi;
1277
1278
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"
1283
1284 fi;
1285
1286
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"
1291
1292 fi;
1293
1294         mysql_with_threads=yes
1295
1296 # Check whether --with-threads or --without-threads was given.
1297 if test "${with_threads+set}" = set; then
1298   withval="$with_threads"
1299    case "$withval" in
1300         no)
1301             mysql_with_threads=no
1302             ;;
1303         *)
1304             ;;
1305         esac
1306
1307 fi;
1308
1309
1310     ac_ext=c
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
1322 else
1323   if test -n "$CC"; then
1324   ac_cv_prog_CC="$CC" # Let the user override the test.
1325 else
1326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1327 for as_dir in $PATH
1328 do
1329   IFS=$as_save_IFS
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
1335     break 2
1336   fi
1337 done
1338 done
1339
1340 fi
1341 fi
1342 CC=$ac_cv_prog_CC
1343 if test -n "$CC"; then
1344   echo "$as_me:$LINENO: result: $CC" >&5
1345 echo "${ECHO_T}$CC" >&6
1346 else
1347   echo "$as_me:$LINENO: result: no" >&5
1348 echo "${ECHO_T}no" >&6
1349 fi
1350
1351 fi
1352 if test -z "$ac_cv_prog_CC"; then
1353   ac_ct_CC=$CC
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
1360 else
1361   if test -n "$ac_ct_CC"; then
1362   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1363 else
1364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1365 for as_dir in $PATH
1366 do
1367   IFS=$as_save_IFS
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
1373     break 2
1374   fi
1375 done
1376 done
1377
1378 fi
1379 fi
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
1384 else
1385   echo "$as_me:$LINENO: result: no" >&5
1386 echo "${ECHO_T}no" >&6
1387 fi
1388
1389   CC=$ac_ct_CC
1390 else
1391   CC="$ac_cv_prog_CC"
1392 fi
1393
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
1402 else
1403   if test -n "$CC"; then
1404   ac_cv_prog_CC="$CC" # Let the user override the test.
1405 else
1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407 for as_dir in $PATH
1408 do
1409   IFS=$as_save_IFS
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
1415     break 2
1416   fi
1417 done
1418 done
1419
1420 fi
1421 fi
1422 CC=$ac_cv_prog_CC
1423 if test -n "$CC"; then
1424   echo "$as_me:$LINENO: result: $CC" >&5
1425 echo "${ECHO_T}$CC" >&6
1426 else
1427   echo "$as_me:$LINENO: result: no" >&5
1428 echo "${ECHO_T}no" >&6
1429 fi
1430
1431 fi
1432 if test -z "$ac_cv_prog_CC"; then
1433   ac_ct_CC=$CC
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
1440 else
1441   if test -n "$ac_ct_CC"; then
1442   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1443 else
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 for as_dir in $PATH
1446 do
1447   IFS=$as_save_IFS
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
1453     break 2
1454   fi
1455 done
1456 done
1457
1458 fi
1459 fi
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
1464 else
1465   echo "$as_me:$LINENO: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1467 fi
1468
1469   CC=$ac_ct_CC
1470 else
1471   CC="$ac_cv_prog_CC"
1472 fi
1473
1474 fi
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
1482 else
1483   if test -n "$CC"; then
1484   ac_cv_prog_CC="$CC" # Let the user override the test.
1485 else
1486   ac_prog_rejected=no
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1489 do
1490   IFS=$as_save_IFS
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
1496        continue
1497      fi
1498     ac_cv_prog_CC="cc"
1499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500     break 2
1501   fi
1502 done
1503 done
1504
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
1508   shift
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.
1513     shift
1514     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1515   fi
1516 fi
1517 fi
1518 fi
1519 CC=$ac_cv_prog_CC
1520 if test -n "$CC"; then
1521   echo "$as_me:$LINENO: result: $CC" >&5
1522 echo "${ECHO_T}$CC" >&6
1523 else
1524   echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1526 fi
1527
1528 fi
1529 if test -z "$CC"; then
1530   if test -n "$ac_tool_prefix"; then
1531   for ac_prog in cl
1532   do
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
1539 else
1540   if test -n "$CC"; then
1541   ac_cv_prog_CC="$CC" # Let the user override the test.
1542 else
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1545 do
1546   IFS=$as_save_IFS
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
1552     break 2
1553   fi
1554 done
1555 done
1556
1557 fi
1558 fi
1559 CC=$ac_cv_prog_CC
1560 if test -n "$CC"; then
1561   echo "$as_me:$LINENO: result: $CC" >&5
1562 echo "${ECHO_T}$CC" >&6
1563 else
1564   echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1566 fi
1567
1568     test -n "$CC" && break
1569   done
1570 fi
1571 if test -z "$CC"; then
1572   ac_ct_CC=$CC
1573   for ac_prog in cl
1574 do
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
1581 else
1582   if test -n "$ac_ct_CC"; then
1583   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1584 else
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 for as_dir in $PATH
1587 do
1588   IFS=$as_save_IFS
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
1594     break 2
1595   fi
1596 done
1597 done
1598
1599 fi
1600 fi
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
1605 else
1606   echo "$as_me:$LINENO: result: no" >&5
1607 echo "${ECHO_T}no" >&6
1608 fi
1609
1610   test -n "$ac_ct_CC" && break
1611 done
1612
1613   CC=$ac_ct_CC
1614 fi
1615
1616 fi
1617
1618
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; }; }
1624
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
1631   ac_status=$?
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
1636   ac_status=$?
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
1641   ac_status=$?
1642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1643   (exit $ac_status); }
1644
1645 cat >conftest.$ac_ext <<_ACEOF
1646 /* confdefs.h.  */
1647 _ACEOF
1648 cat confdefs.h >>conftest.$ac_ext
1649 cat >>conftest.$ac_ext <<_ACEOF
1650 /* end confdefs.h.  */
1651
1652 int
1653 main ()
1654 {
1655
1656   ;
1657   return 0;
1658 }
1659 _ACEOF
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
1664 # of exeext.
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
1670   ac_status=$?
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
1675 # resort.
1676
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.
1679 ac_cv_exeext=
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
1682 do
1683   test -f "$ac_file" || continue
1684   case $ac_file in
1685     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1686         ;;
1687     conftest.$ac_ext )
1688         # This is the source file.
1689         ;;
1690     [ab].out )
1691         # We found the default executable, but exeext='' is most
1692         # certainly right.
1693         break;;
1694     *.* )
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.
1699         export ac_cv_exeext
1700         break;;
1701     * )
1702         break;;
1703   esac
1704 done
1705 else
1706   echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
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; }; }
1714 fi
1715
1716 ac_exeext=$ac_cv_exeext
1717 echo "$as_me:$LINENO: result: $ac_file" >&5
1718 echo "${ECHO_T}$ac_file" >&6
1719
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
1729   (eval $ac_try) 2>&5
1730   ac_status=$?
1731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732   (exit $ac_status); }; }; then
1733     cross_compiling=no
1734   else
1735     if test "$cross_compiling" = maybe; then
1736         cross_compiling=yes
1737     else
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; }; }
1745     fi
1746   fi
1747 fi
1748 echo "$as_me:$LINENO: result: yes" >&5
1749 echo "${ECHO_T}yes" >&6
1750
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
1759
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
1764   ac_status=$?
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
1770 # `rm'.
1771 for ac_file in conftest.exe conftest conftest.*; do
1772   test -f "$ac_file" || continue
1773   case $ac_file in
1774     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1775     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1776           export ac_cv_exeext
1777           break;;
1778     * ) break;;
1779   esac
1780 done
1781 else
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; }; }
1787 fi
1788
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
1792
1793 rm -f conftest.$ac_ext
1794 EXEEXT=$ac_cv_exeext
1795 ac_exeext=$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
1800 else
1801   cat >conftest.$ac_ext <<_ACEOF
1802 /* confdefs.h.  */
1803 _ACEOF
1804 cat confdefs.h >>conftest.$ac_ext
1805 cat >>conftest.$ac_ext <<_ACEOF
1806 /* end confdefs.h.  */
1807
1808 int
1809 main ()
1810 {
1811
1812   ;
1813   return 0;
1814 }
1815 _ACEOF
1816 rm -f conftest.o conftest.obj
1817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1818   (eval $ac_compile) 2>&5
1819   ac_status=$?
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
1823   case $ac_file in
1824     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1825     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1826        break;;
1827   esac
1828 done
1829 else
1830   echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
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; }; }
1838 fi
1839
1840 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1841 fi
1842 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1843 echo "${ECHO_T}$ac_cv_objext" >&6
1844 OBJEXT=$ac_cv_objext
1845 ac_objext=$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
1850 else
1851   cat >conftest.$ac_ext <<_ACEOF
1852 /* confdefs.h.  */
1853 _ACEOF
1854 cat confdefs.h >>conftest.$ac_ext
1855 cat >>conftest.$ac_ext <<_ACEOF
1856 /* end confdefs.h.  */
1857
1858 int
1859 main ()
1860 {
1861 #ifndef __GNUC__
1862        choke me
1863 #endif
1864
1865   ;
1866   return 0;
1867 }
1868 _ACEOF
1869 rm -f conftest.$ac_objext
1870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1871   (eval $ac_compile) 2>conftest.er1
1872   ac_status=$?
1873   grep -v '^ *+' conftest.er1 >conftest.err
1874   rm -f conftest.er1
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
1880   (eval $ac_try) 2>&5
1881   ac_status=$?
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
1886   (eval $ac_try) 2>&5
1887   ac_status=$?
1888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889   (exit $ac_status); }; }; then
1890   ac_compiler_gnu=yes
1891 else
1892   echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895 ac_compiler_gnu=no
1896 fi
1897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1898 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1899
1900 fi
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
1906 CFLAGS="-g"
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
1911 else
1912   cat >conftest.$ac_ext <<_ACEOF
1913 /* confdefs.h.  */
1914 _ACEOF
1915 cat confdefs.h >>conftest.$ac_ext
1916 cat >>conftest.$ac_ext <<_ACEOF
1917 /* end confdefs.h.  */
1918
1919 int
1920 main ()
1921 {
1922
1923   ;
1924   return 0;
1925 }
1926 _ACEOF
1927 rm -f conftest.$ac_objext
1928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929   (eval $ac_compile) 2>conftest.er1
1930   ac_status=$?
1931   grep -v '^ *+' conftest.er1 >conftest.err
1932   rm -f conftest.er1
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
1938   (eval $ac_try) 2>&5
1939   ac_status=$?
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
1944   (eval $ac_try) 2>&5
1945   ac_status=$?
1946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947   (exit $ac_status); }; }; then
1948   ac_cv_prog_cc_g=yes
1949 else
1950   echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1952
1953 ac_cv_prog_cc_g=no
1954 fi
1955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1956 fi
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
1963     CFLAGS="-g -O2"
1964   else
1965     CFLAGS="-g"
1966   fi
1967 else
1968   if test "$GCC" = yes; then
1969     CFLAGS="-O2"
1970   else
1971     CFLAGS=
1972   fi
1973 fi
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
1978 else
1979   ac_cv_prog_cc_stdc=no
1980 ac_save_CC=$CC
1981 cat >conftest.$ac_ext <<_ACEOF
1982 /* confdefs.h.  */
1983 _ACEOF
1984 cat confdefs.h >>conftest.$ac_ext
1985 cat >>conftest.$ac_ext <<_ACEOF
1986 /* end confdefs.h.  */
1987 #include <stdarg.h>
1988 #include <stdio.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)
1995      char **p;
1996      int i;
1997 {
1998   return p[i];
1999 }
2000 static char *f (char * (*g) (char **, int), char **p, ...)
2001 {
2002   char *s;
2003   va_list v;
2004   va_start (v,p);
2005   s = g (p, va_arg (v,int));
2006   va_end (v);
2007   return s;
2008 }
2009
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];
2018
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);
2023 int argc;
2024 char **argv;
2025 int
2026 main ()
2027 {
2028 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2029   ;
2030   return 0;
2031 }
2032 _ACEOF
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__"
2041 do
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
2046   ac_status=$?
2047   grep -v '^ *+' conftest.er1 >conftest.err
2048   rm -f conftest.er1
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
2054   (eval $ac_try) 2>&5
2055   ac_status=$?
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
2060   (eval $ac_try) 2>&5
2061   ac_status=$?
2062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063   (exit $ac_status); }; }; then
2064   ac_cv_prog_cc_stdc=$ac_arg
2065 break
2066 else
2067   echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2069
2070 fi
2071 rm -f conftest.err conftest.$ac_objext
2072 done
2073 rm -f conftest.$ac_ext conftest.$ac_objext
2074 CC=$ac_save_CC
2075
2076 fi
2077
2078 case "x$ac_cv_prog_cc_stdc" in
2079   x|xno)
2080     echo "$as_me:$LINENO: result: none needed" >&5
2081 echo "${ECHO_T}none needed" >&6 ;;
2082   *)
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" ;;
2086 esac
2087
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
2093 #ifndef __cplusplus
2094   choke me
2095 #endif
2096 _ACEOF
2097 rm -f conftest.$ac_objext
2098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2099   (eval $ac_compile) 2>conftest.er1
2100   ac_status=$?
2101   grep -v '^ *+' conftest.er1 >conftest.err
2102   rm -f conftest.er1
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
2108   (eval $ac_try) 2>&5
2109   ac_status=$?
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
2114   (eval $ac_try) 2>&5
2115   ac_status=$?
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); }; }; then
2118   for ac_declaration in \
2119    '' \
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);' \
2124    'void exit (int);'
2125 do
2126   cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132 $ac_declaration
2133 #include <stdlib.h>
2134 int
2135 main ()
2136 {
2137 exit (42);
2138   ;
2139   return 0;
2140 }
2141 _ACEOF
2142 rm -f conftest.$ac_objext
2143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144   (eval $ac_compile) 2>conftest.er1
2145   ac_status=$?
2146   grep -v '^ *+' conftest.er1 >conftest.err
2147   rm -f conftest.er1
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
2153   (eval $ac_try) 2>&5
2154   ac_status=$?
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
2159   (eval $ac_try) 2>&5
2160   ac_status=$?
2161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162   (exit $ac_status); }; }; then
2163   :
2164 else
2165   echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 continue
2169 fi
2170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2171   cat >conftest.$ac_ext <<_ACEOF
2172 /* confdefs.h.  */
2173 _ACEOF
2174 cat confdefs.h >>conftest.$ac_ext
2175 cat >>conftest.$ac_ext <<_ACEOF
2176 /* end confdefs.h.  */
2177 $ac_declaration
2178 int
2179 main ()
2180 {
2181 exit (42);
2182   ;
2183   return 0;
2184 }
2185 _ACEOF
2186 rm -f conftest.$ac_objext
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188   (eval $ac_compile) 2>conftest.er1
2189   ac_status=$?
2190   grep -v '^ *+' conftest.er1 >conftest.err
2191   rm -f conftest.er1
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
2197   (eval $ac_try) 2>&5
2198   ac_status=$?
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
2203   (eval $ac_try) 2>&5
2204   ac_status=$?
2205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206   (exit $ac_status); }; }; then
2207   break
2208 else
2209   echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2211
2212 fi
2213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2214 done
2215 rm -f conftest*
2216 if test -n "$ac_declaration"; then
2217   echo '#ifdef __cplusplus' >>confdefs.h
2218   echo $ac_declaration      >>confdefs.h
2219   echo '#endif'             >>confdefs.h
2220 fi
2221
2222 else
2223   echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 fi
2227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228 ac_ext=c
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
2233
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
2240 else
2241   if test -n "$MYSQL_CONFIG"; then
2242   ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
2243 else
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247   IFS=$as_save_IFS
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
2253     break 2
2254   fi
2255 done
2256 done
2257
2258   test -z "$ac_cv_prog_MYSQL_CONFIG" && ac_cv_prog_MYSQL_CONFIG="no"
2259 fi
2260 fi
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
2265 else
2266   echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2268 fi
2269
2270
2271
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
2277 else
2278   ac_check_lib_save_LIBS=$LIBS
2279 LIBS="-lpthread  $LIBS"
2280 cat >conftest.$ac_ext <<_ACEOF
2281 /* confdefs.h.  */
2282 _ACEOF
2283 cat confdefs.h >>conftest.$ac_ext
2284 cat >>conftest.$ac_ext <<_ACEOF
2285 /* end confdefs.h.  */
2286
2287 /* Override any gcc2 internal prototype to avoid an error.  */
2288 #ifdef __cplusplus
2289 extern "C"
2290 #endif
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 ();
2294 int
2295 main ()
2296 {
2297 pthread_create ();
2298   ;
2299   return 0;
2300 }
2301 _ACEOF
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
2305   ac_status=$?
2306   grep -v '^ *+' conftest.er1 >conftest.err
2307   rm -f conftest.er1
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
2313   (eval $ac_try) 2>&5
2314   ac_status=$?
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
2319   (eval $ac_try) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; }; then
2323   ac_cv_lib_pthread_pthread_create=yes
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 ac_cv_lib_pthread_pthread_create=no
2329 fi
2330 rm -f conftest.err conftest.$ac_objext \
2331       conftest$ac_exeext conftest.$ac_ext
2332 LIBS=$ac_check_lib_save_LIBS
2333 fi
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"
2338 else
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
2343 else
2344   ac_check_lib_save_LIBS=$LIBS
2345 LIBS="-lc_r  $LIBS"
2346
2347 cat >conftest.$ac_ext <<_ACEOF
2348 /* confdefs.h.  */
2349 _ACEOF
2350 cat confdefs.h >>conftest.$ac_ext
2351 cat >>conftest.$ac_ext <<_ACEOF
2352 /* end confdefs.h.  */
2353
2354 /* Override any gcc2 internal prototype to avoid an error.  */
2355 #ifdef __cplusplus
2356 extern "C"
2357 #endif
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 ();
2361 int
2362 main ()
2363 {
2364 pthread_create ();
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
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
2372   ac_status=$?
2373   grep -v '^ *+' conftest.er1 >conftest.err
2374   rm -f conftest.er1
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
2380   (eval $ac_try) 2>&5
2381   ac_status=$?
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
2386   (eval $ac_try) 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; }; then
2390   ac_cv_lib_c_r_pthread_create=yes
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2394
2395 ac_cv_lib_c_r_pthread_create=no
2396 fi
2397 rm -f conftest.err conftest.$ac_objext \
2398       conftest$ac_exeext conftest.$ac_ext
2399 LIBS=$ac_check_lib_save_LIBS
2400 fi
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
2404    LIBS="-lc_r $LIBS"
2405 else
2406    mysql_with_threads=no
2407
2408 fi
2409
2410
2411 fi
2412
2413     fi
2414
2415     if test "x$mysql_with_threads" = "xyes"; then
2416                 if test "x$MYSQL_CONFIG" = "xyes"; then
2417             mysql_libs="$(mysql_config --libs_r)"
2418             old_LIBS="$LIBS"
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
2423 /* confdefs.h.  */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h.  */
2428
2429 /* Override any gcc2 internal prototype to avoid an error.  */
2430 #ifdef __cplusplus
2431 extern "C"
2432 #endif
2433 /* We use char because int might match the return type of a gcc2
2434    builtin and then its argument prototype would still apply.  */
2435 char mysql_init ();
2436 int
2437 main ()
2438 {
2439 mysql_init ();
2440   ;
2441   return 0;
2442 }
2443 _ACEOF
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
2447   ac_status=$?
2448   grep -v '^ *+' conftest.er1 >conftest.err
2449   rm -f conftest.er1
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
2455   (eval $ac_try) 2>&5
2456   ac_status=$?
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
2461   (eval $ac_try) 2>&5
2462   ac_status=$?
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); }; }; then
2465   have_libmysqlclient_r=yes
2466 else
2467   echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2469
2470 fi
2471 rm -f conftest.err conftest.$ac_objext \
2472       conftest$ac_exeext conftest.$ac_ext
2473             LIBS="$old_LIBS"
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"
2478             else
2479                 echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6
2481             fi
2482         fi
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"
2486
2487
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
2492
2493 old_LIBS="$LIBS"
2494 smart_lib=
2495 smart_lib_dir=
2496
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
2501 /* confdefs.h.  */
2502 _ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h.  */
2506 extern char mysql_init();
2507 int
2508 main ()
2509 {
2510  mysql_init()
2511   ;
2512   return 0;
2513 }
2514 _ACEOF
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
2518   ac_status=$?
2519   grep -v '^ *+' conftest.er1 >conftest.err
2520   rm -f conftest.er1
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
2526   (eval $ac_try) 2>&5
2527   ac_status=$?
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
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; }; then
2536   smart_lib="-L$try -lmysqlclient_r"
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 fi
2542 rm -f conftest.err conftest.$ac_objext \
2543       conftest$ac_exeext conftest.$ac_ext
2544     if test "x$smart_lib" != "x"; then
2545       break;
2546     fi
2547   done
2548   LIBS="$old_LIBS"
2549 fi
2550
2551 if test "x$smart_lib" = "x"; then
2552   LIBS="-lmysqlclient_r $old_LIBS"
2553   cat >conftest.$ac_ext <<_ACEOF
2554 /* confdefs.h.  */
2555 _ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h.  */
2559 extern char mysql_init();
2560 int
2561 main ()
2562 {
2563  mysql_init()
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
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
2571   ac_status=$?
2572   grep -v '^ *+' conftest.er1 >conftest.err
2573   rm -f conftest.er1
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
2579   (eval $ac_try) 2>&5
2580   ac_status=$?
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
2585   (eval $ac_try) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; }; then
2589   smart_lib="-lmysqlclient_r"
2590 else
2591   echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594 fi
2595 rm -f conftest.err conftest.$ac_objext \
2596       conftest$ac_exeext conftest.$ac_ext
2597   LIBS="$old_LIBS"
2598 fi
2599
2600 if test "x$smart_lib" = "x"; then
2601
2602
2603 if test "x$LOCATE" != "x"; then
2604         DIRS=
2605   file=libmysqlclient_r${libltdl_cv_shlibext}
2606
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
2610       continue;
2611     fi
2612
2613     dir=`${DIRNAME} $x 2>/dev/null`
2614                 exclude=`echo ${dir} | ${GREP} /home`
2615     if test "x$exclude" != "x"; then
2616       continue
2617     fi
2618
2619                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2620     if test "x$already" = "x"; then
2621       DIRS="$DIRS $dir"
2622     fi
2623   done
2624 fi
2625
2626 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2627
2628
2629
2630 if test "x$LOCATE" != "x"; then
2631         DIRS=
2632   file=libmysqlclient_r.a
2633
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
2637       continue;
2638     fi
2639
2640     dir=`${DIRNAME} $x 2>/dev/null`
2641                 exclude=`echo ${dir} | ${GREP} /home`
2642     if test "x$exclude" != "x"; then
2643       continue
2644     fi
2645
2646                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2647     if test "x$already" = "x"; then
2648       DIRS="$DIRS $dir"
2649     fi
2650   done
2651 fi
2652
2653 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2654
2655
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
2659 /* confdefs.h.  */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h.  */
2664 extern char mysql_init();
2665 int
2666 main ()
2667 {
2668  mysql_init()
2669   ;
2670   return 0;
2671 }
2672 _ACEOF
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
2676   ac_status=$?
2677   grep -v '^ *+' conftest.er1 >conftest.err
2678   rm -f conftest.er1
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
2684   (eval $ac_try) 2>&5
2685   ac_status=$?
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
2690   (eval $ac_try) 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); }; }; then
2694   smart_lib="-L$try -lmysqlclient_r"
2695 else
2696   echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2698
2699 fi
2700 rm -f conftest.err conftest.$ac_objext \
2701       conftest$ac_exeext conftest.$ac_ext
2702     if test "x$smart_lib" != "x"; then
2703       break;
2704     fi
2705   done
2706   LIBS="$old_LIBS"
2707 fi
2708
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"
2715 else
2716   echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6
2718 fi
2719
2720             if test "x$ac_cv_lib_mysqlclient_r_mysql_init" != "xyes"
2721                 then
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
2725             fi
2726         fi
2727     else
2728                 if test "x$MYSQL_CONFIG" = "xyes"; then
2729             mysql_libs="$(mysql_config --libs)"
2730             old_LIBS="$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
2735 /* confdefs.h.  */
2736 _ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h.  */
2740
2741 /* Override any gcc2 internal prototype to avoid an error.  */
2742 #ifdef __cplusplus
2743 extern "C"
2744 #endif
2745 /* We use char because int might match the return type of a gcc2
2746    builtin and then its argument prototype would still apply.  */
2747 char mysql_init ();
2748 int
2749 main ()
2750 {
2751 mysql_init ();
2752   ;
2753   return 0;
2754 }
2755 _ACEOF
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
2759   ac_status=$?
2760   grep -v '^ *+' conftest.er1 >conftest.err
2761   rm -f conftest.er1
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
2767   (eval $ac_try) 2>&5
2768   ac_status=$?
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
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; }; then
2777   have_libmysqlclient=yes
2778 else
2779   echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 fi
2783 rm -f conftest.err conftest.$ac_objext \
2784       conftest$ac_exeext conftest.$ac_ext
2785             LIBS="$old_LIBS"
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"
2790             else
2791                 echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6
2793             fi
2794         fi
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"
2798
2799
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
2804
2805 old_LIBS="$LIBS"
2806 smart_lib=
2807 smart_lib_dir=
2808
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
2813 /* confdefs.h.  */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h.  */
2818 extern char mysql_init();
2819 int
2820 main ()
2821 {
2822  mysql_init()
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
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
2830   ac_status=$?
2831   grep -v '^ *+' conftest.er1 >conftest.err
2832   rm -f conftest.er1
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
2838   (eval $ac_try) 2>&5
2839   ac_status=$?
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
2844   (eval $ac_try) 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; }; then
2848   smart_lib="-L$try -lmysqlclient"
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853 fi
2854 rm -f conftest.err conftest.$ac_objext \
2855       conftest$ac_exeext conftest.$ac_ext
2856     if test "x$smart_lib" != "x"; then
2857       break;
2858     fi
2859   done
2860   LIBS="$old_LIBS"
2861 fi
2862
2863 if test "x$smart_lib" = "x"; then
2864   LIBS="-lmysqlclient $old_LIBS"
2865   cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h.  */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h.  */
2871 extern char mysql_init();
2872 int
2873 main ()
2874 {
2875  mysql_init()
2876   ;
2877   return 0;
2878 }
2879 _ACEOF
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
2883   ac_status=$?
2884   grep -v '^ *+' conftest.er1 >conftest.err
2885   rm -f conftest.er1
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
2891   (eval $ac_try) 2>&5
2892   ac_status=$?
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
2897   (eval $ac_try) 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; }; then
2901   smart_lib="-lmysqlclient"
2902 else
2903   echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2905
2906 fi
2907 rm -f conftest.err conftest.$ac_objext \
2908       conftest$ac_exeext conftest.$ac_ext
2909   LIBS="$old_LIBS"
2910 fi
2911
2912 if test "x$smart_lib" = "x"; then
2913
2914
2915 if test "x$LOCATE" != "x"; then
2916         DIRS=
2917   file=libmysqlclient${libltdl_cv_shlibext}
2918
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
2922       continue;
2923     fi
2924
2925     dir=`${DIRNAME} $x 2>/dev/null`
2926                 exclude=`echo ${dir} | ${GREP} /home`
2927     if test "x$exclude" != "x"; then
2928       continue
2929     fi
2930
2931                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2932     if test "x$already" = "x"; then
2933       DIRS="$DIRS $dir"
2934     fi
2935   done
2936 fi
2937
2938 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2939
2940
2941
2942 if test "x$LOCATE" != "x"; then
2943         DIRS=
2944   file=libmysqlclient.a
2945
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
2949       continue;
2950     fi
2951
2952     dir=`${DIRNAME} $x 2>/dev/null`
2953                 exclude=`echo ${dir} | ${GREP} /home`
2954     if test "x$exclude" != "x"; then
2955       continue
2956     fi
2957
2958                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2959     if test "x$already" = "x"; then
2960       DIRS="$DIRS $dir"
2961     fi
2962   done
2963 fi
2964
2965 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2966
2967
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
2971 /* confdefs.h.  */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h.  */
2976 extern char mysql_init();
2977 int
2978 main ()
2979 {
2980  mysql_init()
2981   ;
2982   return 0;
2983 }
2984 _ACEOF
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
2988   ac_status=$?
2989   grep -v '^ *+' conftest.er1 >conftest.err
2990   rm -f conftest.er1
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
2996   (eval $ac_try) 2>&5
2997   ac_status=$?
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
3002   (eval $ac_try) 2>&5
3003   ac_status=$?
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); }; }; then
3006   smart_lib="-L$try -lmysqlclient"
3007 else
3008   echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3010
3011 fi
3012 rm -f conftest.err conftest.$ac_objext \
3013       conftest$ac_exeext conftest.$ac_ext
3014     if test "x$smart_lib" != "x"; then
3015       break;
3016     fi
3017   done
3018   LIBS="$old_LIBS"
3019 fi
3020
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"
3027 else
3028   echo "$as_me:$LINENO: result: no" >&5
3029 echo "${ECHO_T}no" >&6
3030 fi
3031
3032             if test "x$ac_cv_lib_mysqlclient_mysql_init" != "xyes"
3033                 then
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
3037             fi
3038         fi
3039     fi
3040
3041
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
3049 /* confdefs.h.  */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h.  */
3054 #include <mysql.h>
3055 int
3056 main ()
3057 {
3058 int a = 1;
3059   ;
3060   return 0;
3061 }
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3065   (eval $ac_compile) 2>conftest.er1
3066   ac_status=$?
3067   grep -v '^ *+' conftest.er1 >conftest.err
3068   rm -f conftest.er1
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
3074   (eval $ac_try) 2>&5
3075   ac_status=$?
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
3080   (eval $ac_try) 2>&5
3081   ac_status=$?
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); }; }; then
3084   have_mysql_h=yes
3085 else
3086   echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 fi
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
3094
3095 cat >>confdefs.h <<\_ACEOF
3096 #define HAVE_MYSQL_H
3097 _ACEOF
3098
3099             SMART_CFLAGS="$SMART_CFLAGS $mysql_cflags"
3100         else
3101             echo "$as_me:$LINENO: result: no" >&5
3102 echo "${ECHO_T}no" >&6
3103         fi
3104         CFLAGS="$old_CFLAGS"
3105     fi
3106     if test "x$have_mysql_h" != "xyes"; then
3107                 smart_try_dir="$mysql_include_dir /usr/local/include \
3108                 /usr/local/mysql/include"
3109
3110
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
3114
3115 old_CFLAGS="$CFLAGS"
3116 smart_include=
3117 smart_include_dir=
3118
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
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128
3129                     #include <mysql/mysql.h>
3130 int
3131 main ()
3132 {
3133  int a = 1;
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140   (eval $ac_compile) 2>conftest.er1
3141   ac_status=$?
3142   grep -v '^ *+' conftest.er1 >conftest.err
3143   rm -f conftest.er1
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
3149   (eval $ac_try) 2>&5
3150   ac_status=$?
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
3155   (eval $ac_try) 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; }; then
3159   smart_include="-I$try"
3160 else
3161   echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 smart_include=
3165 fi
3166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3167     if test "x$smart_include" != "x"; then
3168       break;
3169     fi
3170   done
3171   CFLAGS="$old_CFLAGS"
3172 fi
3173
3174 if test "x$smart_include" = "x"; then
3175   cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h.  */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h.  */
3181
3182                   #include <mysql/mysql.h>
3183 int
3184 main ()
3185 {
3186  int a = 1;
3187   ;
3188   return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.$ac_objext
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193   (eval $ac_compile) 2>conftest.er1
3194   ac_status=$?
3195   grep -v '^ *+' conftest.er1 >conftest.err
3196   rm -f conftest.er1
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
3202   (eval $ac_try) 2>&5
3203   ac_status=$?
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
3208   (eval $ac_try) 2>&5
3209   ac_status=$?
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); }; }; then
3212   smart_include=" "
3213 else
3214   echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 smart_include=
3218 fi
3219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3220 fi
3221
3222 if test "x$smart_include" = "x"; then
3223
3224
3225 if test "x$LOCATE" != "x"; then
3226         DIRS=
3227   file=mysql/mysql.h
3228
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
3232       continue;
3233     fi
3234
3235     dir=`${DIRNAME} $x 2>/dev/null`
3236                 exclude=`echo ${dir} | ${GREP} /home`
3237     if test "x$exclude" != "x"; then
3238       continue
3239     fi
3240
3241                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
3242     if test "x$already" = "x"; then
3243       DIRS="$DIRS $dir"
3244     fi
3245   done
3246 fi
3247
3248 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
3249
3250
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
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259
3260                     #include <mysql/mysql.h>
3261 int
3262 main ()
3263 {
3264  int a = 1;
3265   ;
3266   return 0;
3267 }
3268 _ACEOF
3269 rm -f conftest.$ac_objext
3270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271   (eval $ac_compile) 2>conftest.er1
3272   ac_status=$?
3273   grep -v '^ *+' conftest.er1 >conftest.err
3274   rm -f conftest.er1
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
3280   (eval $ac_try) 2>&5
3281   ac_status=$?
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
3286   (eval $ac_try) 2>&5
3287   ac_status=$?
3288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289   (exit $ac_status); }; }; then
3290   smart_include="-I$try"
3291 else
3292   echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295 smart_include=
3296 fi
3297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3298     if test "x$smart_include" != "x"; then
3299       break;
3300     fi
3301   done
3302   CFLAGS="$old_CFLAGS"
3303 fi
3304
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"
3311 else
3312   echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6
3314 fi
3315
3316         if test "$ac_cv_header_mysql_mysql_h" = "yes"; then
3317
3318 cat >>confdefs.h <<\_ACEOF
3319 #define HAVE_MYSQL_MYSQL_H
3320 _ACEOF
3321
3322         else
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
3326         fi
3327     fi
3328
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;}
3332     fi
3333 else
3334     targetname=
3335     echo \*\*\* module rlm_sql_mysql is disabled.
3336 fi
3337
3338 sql_mysql_ldflags="$SMART_LIBS"
3339 sql_mysql_cflags="$SMART_CFLAGS"
3340
3341
3342
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.
3350 #
3351 # config.status only pays attention to the cache file if you give it
3352 # the --recheck option to rerun configure.
3353 #
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
3356 # following values.
3357
3358 _ACEOF
3359
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.
3365 {
3366   (set) 2>&1 |
3367     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3368     *ac_space=\ *)
3369       # `set' does not quote correctly, so add quotes (double-quote
3370       # substitution turns \\\\ into \\, and sed turns \\ into \).
3371       sed -n \
3372         "s/'/'\\\\''/g;
3373           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3374       ;;
3375     *)
3376       # `set' quotes correctly as required by POSIX, so do not add quotes.
3377       sed -n \
3378         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3379       ;;
3380     esac;
3381 } |
3382   sed '
3383      t clear
3384      : clear
3385      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3386      t end
3387      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3388      : end' >>confcache
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
3393   else
3394     echo "not updating unwritable cache $cache_file"
3395   fi
3396 fi
3397 rm -f confcache
3398
3399 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3400 # Let make expand exec_prefix.
3401 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3402
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}:*/:/;
3411 s/:*@srcdir@:*/:/;
3412 s/^\([^=]*=[     ]*\):*/\1/;
3413 s/:*$//;
3414 s/^[^=]*=[       ]*$//;
3415 }'
3416 fi
3417
3418 DEFS=-DHAVE_CONFIG_H
3419
3420 ac_libobjs=
3421 ac_ltlibobjs=
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$//'`
3426   # 2. Add them.
3427   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3428   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3429 done
3430 LIBOBJS=$ac_libobjs
3431
3432 LTLIBOBJS=$ac_ltlibobjs
3433
3434
3435
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
3442 #! $SHELL
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.
3447
3448 debug=false
3449 ac_cs_recheck=false
3450 ac_cs_silent=false
3451 SHELL=\${CONFIG_SHELL-$SHELL}
3452 _ACEOF
3453
3454 cat >>$CONFIG_STATUS <<\_ACEOF
3455 ## --------------------- ##
3456 ## M4sh Initialization.  ##
3457 ## --------------------- ##
3458
3459 # Be Bourne compatible
3460 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3461   emulate sh
3462   NULLCMD=:
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
3467   set -o posix
3468 fi
3469 DUALCASE=1; export DUALCASE # for MKS sh
3470
3471 # Support unset when possible.
3472 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3473   as_unset=unset
3474 else
3475   as_unset=false
3476 fi
3477
3478
3479 # Work around bugs in pre-3.0 UWIN ksh.
3480 $as_unset ENV MAIL MAILPATH
3481 PS1='$ '
3482 PS2='> '
3483 PS4='+ '
3484
3485 # NLS nuisances.
3486 for as_var in \
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
3490 do
3491   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3492     eval $as_var=C; export $as_var
3493   else
3494     $as_unset $as_var
3495   fi
3496 done
3497
3498 # Required to use basename.
3499 if expr a : '\(a\)' >/dev/null 2>&1; then
3500   as_expr=expr
3501 else
3502   as_expr=false
3503 fi
3504
3505 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3506   as_basename=basename
3507 else
3508   as_basename=false
3509 fi
3510
3511
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 ||
3518 echo X/"$0" |
3519     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3520           /^X\/\(\/\/\)$/{ s//\1/; q; }
3521           /^X\/\(\/\).*/{ s//\1/; q; }
3522           s/.*/./; q'`
3523
3524
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
3532
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
3537   chmod +x conf$$.sh
3538   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3539     PATH_SEPARATOR=';'
3540   else
3541     PATH_SEPARATOR=:
3542   fi
3543   rm -f conf$$.sh
3544 fi
3545
3546
3547   as_lineno_1=$LINENO
3548   as_lineno_2=$LINENO
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
3553   # relative or not.
3554   case $0 in
3555     *[\\/]* ) as_myself=$0 ;;
3556     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559   IFS=$as_save_IFS
3560   test -z "$as_dir" && as_dir=.
3561   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3562 done
3563
3564        ;;
3565   esac
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
3569     as_myself=$0
3570   fi
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; }; }
3575   fi
3576   case $CONFIG_SHELL in
3577   '')
3578     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3580 do
3581   IFS=$as_save_IFS
3582   test -z "$as_dir" && as_dir=.
3583   for as_base in sh bash ksh sh5; do
3584          case $as_dir in
3585          /*)
3586            if ("$as_dir/$as_base" -c '
3587   as_lineno_1=$LINENO
3588   as_lineno_2=$LINENO
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
3595              export CONFIG_SHELL
3596              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3597            fi;;
3598          esac
3599        done
3600 done
3601 ;;
3602   esac
3603
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 |
3613     sed '
3614       N
3615       s,$,-,
3616       : loop
3617       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3618       t loop
3619       s,-$,,
3620       s,^['$as_cr_digits']*\n,,
3621     ' >$as_me.lineno &&
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; }; }
3626
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).
3630   . ./$as_me.lineno
3631   # Exit status is that of the last command.
3632   exit
3633 }
3634
3635
3636 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3637   *c*,-n*) ECHO_N= ECHO_C='
3638 ' ECHO_T='      ' ;;
3639   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3640   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3641 esac
3642
3643 if expr a : '\(a\)' >/dev/null 2>&1; then
3644   as_expr=expr
3645 else
3646   as_expr=false
3647 fi
3648
3649 rm -f conf$$ conf$$.exe conf$$.file
3650 echo >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
3656     as_ln_s='cp -p'
3657   else
3658     as_ln_s='ln -s'
3659   fi
3660 elif ln conf$$.file conf$$ 2>/dev/null; then
3661   as_ln_s=ln
3662 else
3663   as_ln_s='cp -p'
3664 fi
3665 rm -f conf$$ conf$$.exe conf$$.file
3666
3667 if mkdir -p . 2>/dev/null; then
3668   as_mkdir_p=:
3669 else
3670   test -d ./-p && rmdir ./-p
3671   as_mkdir_p=false
3672 fi
3673
3674 as_executable_p="test -f"
3675
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'"
3678
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'"
3681
3682
3683 # IFS
3684 # We need space, tab and new line, in precisely that order.
3685 as_nl='
3686 '
3687 IFS="   $as_nl"
3688
3689 # CDPATH.
3690 $as_unset CDPATH
3691
3692 exec 6>&1
3693
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.
3697 exec 5>>config.log
3698 {
3699   echo
3700   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3701 ## Running $as_me. ##
3702 _ASBOX
3703 } >&5
3704 cat >&5 <<_CSEOF
3705
3706 This file was extended by $as_me, which was
3707 generated by GNU Autoconf 2.59.  Invocation command line was
3708
3709   CONFIG_FILES    = $CONFIG_FILES
3710   CONFIG_HEADERS  = $CONFIG_HEADERS
3711   CONFIG_LINKS    = $CONFIG_LINKS
3712   CONFIG_COMMANDS = $CONFIG_COMMANDS
3713   $ $0 $@
3714
3715 _CSEOF
3716 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3717 echo >&5
3718 _ACEOF
3719
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
3723 fi
3724
3725 if test -n "$ac_config_headers"; then
3726   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3727 fi
3728
3729 if test -n "$ac_config_links"; then
3730   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3731 fi
3732
3733 if test -n "$ac_config_commands"; then
3734   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3735 fi
3736
3737 cat >>$CONFIG_STATUS <<\_ACEOF
3738
3739 ac_cs_usage="\
3740 \`$as_me' instantiates files from templates according to the
3741 current configuration.
3742
3743 Usage: $0 [OPTIONS] [FILE]...
3744
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
3754
3755 Configuration files:
3756 $config_files
3757
3758 Configuration headers:
3759 $config_headers
3760
3761 Report bugs to <bug-autoconf@gnu.org>."
3762 _ACEOF
3763
3764 cat >>$CONFIG_STATUS <<_ACEOF
3765 ac_cs_version="\\
3766 config.status
3767 configured by $0, generated by GNU Autoconf 2.59,
3768   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3769
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."
3773 srcdir=$srcdir
3774 _ACEOF
3775
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.
3779 ac_need_defaults=:
3780 while test $# != 0
3781 do
3782   case $1 in
3783   --*=*)
3784     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3785     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3786     ac_shift=:
3787     ;;
3788   -*)
3789     ac_option=$1
3790     ac_optarg=$2
3791     ac_shift=shift
3792     ;;
3793   *) # This is not an option, so the user has probably given explicit
3794      # arguments.
3795      ac_option=$1
3796      ac_need_defaults=false;;
3797   esac
3798
3799   case $ac_option in
3800   # Handling of the options.
3801 _ACEOF
3802 cat >>$CONFIG_STATUS <<\_ACEOF
3803   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3804     ac_cs_recheck=: ;;
3805   --version | --vers* | -V )
3806     echo "$ac_cs_version"; exit 0 ;;
3807   --he | --h)
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 )
3817     debug=: ;;
3818   --file | --fil | --fi | --f )
3819     $ac_shift
3820     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3821     ac_need_defaults=false;;
3822   --header | --heade | --head | --hea )
3823     $ac_shift
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)
3828     ac_cs_silent=: ;;
3829
3830   # This is an error.
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; }; } ;;
3836
3837   *) ac_config_targets="$ac_config_targets $1" ;;
3838
3839   esac
3840   shift
3841 done
3842
3843 ac_configure_extra_args=
3844
3845 if $ac_cs_silent; then
3846   exec 6>/dev/null
3847   ac_configure_extra_args="$ac_configure_extra_args --silent"
3848 fi
3849
3850 _ACEOF
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
3855 fi
3856
3857 _ACEOF
3858
3859
3860
3861
3862
3863 cat >>$CONFIG_STATUS <<\_ACEOF
3864 for ac_config_target in $ac_config_targets
3865 do
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; }; };;
3873   esac
3874 done
3875
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
3883 fi
3884
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.
3889 $debug ||
3890 {
3891   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3892   trap '{ (exit 1); exit 1; }' 1 2 13 15
3893 }
3894
3895 # Create a (secure) tmp directory for tmp files.
3896
3897 {
3898   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3899   test -n "$tmp" && test -d "$tmp"
3900 }  ||
3901 {
3902   tmp=./confstat$$-$RANDOM
3903   (umask 077 && mkdir $tmp)
3904 } ||
3905 {
3906    echo "$me: cannot create a temporary directory in ." >&2
3907    { (exit 1); exit 1; }
3908 }
3909
3910 _ACEOF
3911
3912 cat >>$CONFIG_STATUS <<_ACEOF
3913
3914 #
3915 # CONFIG_FILES section.
3916 #
3917
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
3949 s,@DEFS@,$DEFS,;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
3953 s,@LIBS@,$LIBS,;t t
3954 s,@CC@,$CC,;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
3967 CEOF
3968
3969 _ACEOF
3970
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.
3974   ac_max_sed_lines=48
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.
3978   ac_more_lines=:
3979   ac_sed_cmds=
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
3983     else
3984       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3985     fi
3986     if test ! -s $tmp/subs.frag; then
3987       ac_more_lines=false
3988     else
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.
3993       (echo ':t
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"
3997       else
3998         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3999       fi
4000       ac_sed_frag=`expr $ac_sed_frag + 1`
4001       ac_beg=$ac_end
4002       ac_end=`expr $ac_end + $ac_max_sed_lines`
4003     fi
4004   done
4005   if test -z "$ac_sed_cmds"; then
4006     ac_sed_cmds=cat
4007   fi
4008 fi # test -n "$CONFIG_FILES"
4009
4010 _ACEOF
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".
4014   case $ac_file in
4015   - | *:- | *:-:* ) # input from stdin
4016         cat >$tmp/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 ;;
4022   esac
4023
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 ||
4031 echo X"$ac_file" |
4032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4033           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4034           /^X\(\/\/\)$/{ s//\1/; q; }
4035           /^X\(\/\).*/{ s//\1/; q; }
4036           s/.*/./; q'`
4037   { if $as_mkdir_p; then
4038     mkdir -p "$ac_dir"
4039   else
4040     as_dir="$ac_dir"
4041     as_dirs=
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 ||
4050 echo X"$as_dir" |
4051     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4052           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4053           /^X\(\/\/\)$/{ s//\1/; q; }
4054           /^X\(\/\).*/{ s//\1/; q; }
4055           s/.*/./; q'`
4056     done
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; }; }; }
4061
4062   ac_builddir=.
4063
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'`
4068 else
4069   ac_dir_suffix= ac_top_builddir=
4070 fi
4071
4072 case $srcdir in
4073   .)  # No --srcdir option.  We are building in place.
4074     ac_srcdir=.
4075     if test -z "$ac_top_builddir"; then
4076        ac_top_srcdir=.
4077     else
4078        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4079     fi ;;
4080   [\\/]* | ?:[\\/]* )  # Absolute path.
4081     ac_srcdir=$srcdir$ac_dir_suffix;
4082     ac_top_srcdir=$srcdir ;;
4083   *) # Relative path.
4084     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4085     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4086 esac
4087
4088 # Do not use `cd foo && pwd` to compute absolute paths, because
4089 # the directories may not exist.
4090 case `pwd` in
4091 .) ac_abs_builddir="$ac_dir";;
4092 *)
4093   case "$ac_dir" in
4094   .) ac_abs_builddir=`pwd`;;
4095   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4096   *) ac_abs_builddir=`pwd`/"$ac_dir";;
4097   esac;;
4098 esac
4099 case $ac_abs_builddir in
4100 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4101 *)
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}.;;
4106   esac;;
4107 esac
4108 case $ac_abs_builddir in
4109 .) ac_abs_srcdir=$ac_srcdir;;
4110 *)
4111   case $ac_srcdir in
4112   .) ac_abs_srcdir=$ac_abs_builddir;;
4113   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4114   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4115   esac;;
4116 esac
4117 case $ac_abs_builddir in
4118 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4119 *)
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;;
4124   esac;;
4125 esac
4126
4127
4128
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
4133     configure_input=
4134   else
4135     configure_input="$ac_file.  "
4136   fi
4137   configure_input=$configure_input"Generated from `echo $ac_file_in |
4138                                      sed 's,.*/,,'` by configure."
4139
4140   # First look for the input files in the build tree, otherwise in the
4141   # src tree.
4142   ac_file_inputs=`IFS=:
4143     for f in $ac_file_in; do
4144       case $f in
4145       -) echo $tmp/stdin ;;
4146       [\\/$]*)
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; }; }
4151          echo "$f";;
4152       *) # Relative
4153          if test -f "$f"; then
4154            # Build tree
4155            echo "$f"
4156          elif test -f "$srcdir/$f"; then
4157            # Source tree
4158            echo "$srcdir/$f"
4159          else
4160            # /dev/null tree
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; }; }
4164          fi;;
4165       esac
4166     done` || { (exit 1); exit 1; }
4167
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;}
4171     rm -f "$ac_file"
4172   fi
4173 _ACEOF
4174 cat >>$CONFIG_STATUS <<_ACEOF
4175   sed "$ac_vpsub
4176 $extrasub
4177 _ACEOF
4178 cat >>$CONFIG_STATUS <<\_ACEOF
4179 :t
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
4191   rm -f $tmp/stdin
4192   if test x"$ac_file" != x-; then
4193     mv $tmp/out $ac_file
4194   else
4195     cat $tmp/out
4196     rm -f $tmp/out
4197   fi
4198
4199 done
4200 _ACEOF
4201 cat >>$CONFIG_STATUS <<\_ACEOF
4202
4203 #
4204 # CONFIG_HEADER section.
4205 #
4206
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.
4209 #
4210 # ac_d sets the value in "#define NAME VALUE" lines.
4211 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
4212 ac_dB='[         ].*$,\1#\2'
4213 ac_dC=' '
4214 ac_dD=',;t'
4215 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4216 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4217 ac_uB='$,\1#\2define\3'
4218 ac_uC=' '
4219 ac_uD=',;t'
4220
4221 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4222   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4223   case $ac_file in
4224   - | *:- | *:-:* ) # input from stdin
4225         cat >$tmp/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 ;;
4231   esac
4232
4233   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4234 echo "$as_me: creating $ac_file" >&6;}
4235
4236   # First look for the input files in the build tree, otherwise in the
4237   # src tree.
4238   ac_file_inputs=`IFS=:
4239     for f in $ac_file_in; do
4240       case $f in
4241       -) echo $tmp/stdin ;;
4242       [\\/$]*)
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.
4248          echo "$f";;
4249       *) # Relative
4250          if test -f "$f"; then
4251            # Build tree
4252            echo "$f"
4253          elif test -f "$srcdir/$f"; then
4254            # Source tree
4255            echo "$srcdir/$f"
4256          else
4257            # /dev/null tree
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; }; }
4261          fi;;
4262       esac
4263     done` || { (exit 1); exit 1; }
4264   # Remove the trailing spaces.
4265   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
4266
4267 _ACEOF
4268
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
4275 # in config.status.
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.
4279 #
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
4284 s/[\\&,]/\\&/g
4285 s,[\\$`],\\&,g
4286 t clear
4287 : clear
4288 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4289 t end
4290 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4291 : end
4292 _ACEOF
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
4299
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]*,/* & */,
4305 _ACEOF
4306
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
4313 rm -f conftest.tail
4314 while grep . conftest.defines >/dev/null
4315 do
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
4324   echo 'CEOF
4325   sed -f $tmp/defines.sed $tmp/in >$tmp/out
4326   rm -f $tmp/in
4327   mv $tmp/out $tmp/in
4328 ' >>$CONFIG_STATUS
4329   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4330   rm -f conftest.defines
4331   mv conftest.tail conftest.defines
4332 done
4333 rm -f conftest.defines
4334 echo '  fi # grep' >>$CONFIG_STATUS
4335 echo >>$CONFIG_STATUS
4336
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
4340 rm -f conftest.tail
4341 while grep . conftest.undefs >/dev/null
4342 do
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
4351   echo 'CEOF
4352   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4353   rm -f $tmp/in
4354   mv $tmp/out $tmp/in
4355 ' >>$CONFIG_STATUS
4356   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4357   rm -f conftest.undefs
4358   mv conftest.tail conftest.undefs
4359 done
4360 rm -f conftest.undefs
4361
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
4368   else
4369     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
4370   fi
4371   cat $tmp/in >>$tmp/config.h
4372   rm -f $tmp/in
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;}
4377     else
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 ||
4384 echo X"$ac_file" |
4385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4386           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4387           /^X\(\/\/\)$/{ s//\1/; q; }
4388           /^X\(\/\).*/{ s//\1/; q; }
4389           s/.*/./; q'`
4390       { if $as_mkdir_p; then
4391     mkdir -p "$ac_dir"
4392   else
4393     as_dir="$ac_dir"
4394     as_dirs=
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 ||
4403 echo X"$as_dir" |
4404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4405           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4406           /^X\(\/\/\)$/{ s//\1/; q; }
4407           /^X\(\/\).*/{ s//\1/; q; }
4408           s/.*/./; q'`
4409     done
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; }; }; }
4414
4415       rm -f $ac_file
4416       mv $tmp/config.h $ac_file
4417     fi
4418   else
4419     cat $tmp/config.h
4420     rm -f $tmp/config.h
4421   fi
4422 done
4423 _ACEOF
4424
4425 cat >>$CONFIG_STATUS <<\_ACEOF
4426
4427 { (exit 0); exit 0; }
4428 _ACEOF
4429 chmod +x $CONFIG_STATUS
4430 ac_clean_files=$ac_clean_files_save
4431
4432
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
4442   ac_cs_success=:
4443   ac_config_status_args=
4444   test "$silent" = yes &&
4445     ac_config_status_args="$ac_config_status_args --quiet"
4446   exec 5>/dev/null
4447   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4448   exec 5>>config.log
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; }
4452 fi
4453