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