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