3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-radius enable RADIUS support (default=yes)"
17 --with-large-fdset[=MAXFD] Maximum number of sockets supported (default=1024)"
19 --enable-mysql enable MySQL support (default=yes)"
21 --with-mysql-include-dir=DIR directory where the MySQL includes may be found "
23 --with-mysql-lib-dir=DIR directory where the MySQL libraries may be found "
25 --with-mysql-dir=DIR base directory where MySQL is installed "
27 --enable-pgsql enable PostgreSQL support (default=yes)"
29 --with-pgsql-include-dir=DIR directory where the PostgreSQL includes may be found "
31 --with-pgsql-lib-dir=DIR directory where the PostgreSQL libraries may be found "
33 --with-pgsql-dir=DIR base directory where PostgreSQL is installed "
35 --enable-firebird enable Interbase/Firebird support (default=yes)"
37 --with-firebird-include-dir=DIR directory where Firebird includes may be found "
39 --with-firebird-lib-dir=DIR directory where Firebird libraries may be found "
41 --with-firebird-dir=DIR base directory where Firebird is installed "
43 # Initialize some variables set by options.
44 # The variables have the same names as the options, with
45 # dashes changed to underlines.
47 cache_file=./config.cache
56 program_transform_name=s,x,x,
64 bindir='${exec_prefix}/bin'
65 sbindir='${exec_prefix}/sbin'
66 libexecdir='${exec_prefix}/libexec'
67 datadir='${prefix}/share'
68 sysconfdir='${prefix}/etc'
69 sharedstatedir='${prefix}/com'
70 localstatedir='${prefix}/var'
71 libdir='${exec_prefix}/lib'
72 includedir='${prefix}/include'
73 oldincludedir='/usr/include'
74 infodir='${prefix}/info'
75 mandir='${prefix}/man'
77 # Initialize some other variables.
80 SHELL=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 # Accept the important Cygnus configure options, so we can diagnose typos.
104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107 bindir="$ac_optarg" ;;
109 -build | --build | --buil | --bui | --bu)
111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
112 build="$ac_optarg" ;;
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116 ac_prev=cache_file ;;
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119 cache_file="$ac_optarg" ;;
121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125 datadir="$ac_optarg" ;;
127 -disable-* | --disable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}=no" ;;
136 -enable-* | --enable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151 | --exec | --exe | --ex)
152 ac_prev=exec_prefix ;;
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155 | --exec=* | --exe=* | --ex=*)
156 exec_prefix="$ac_optarg" ;;
158 -gas | --gas | --ga | --g)
159 # Obsolete; use --with-gas.
162 -help | --help | --hel | --he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --version print the version of autoconf that created configure
174 Directory and file names:
175 --prefix=PREFIX install architecture-independent files in PREFIX
177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
179 --bindir=DIR user executables in DIR [EPREFIX/bin]
180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
182 --datadir=DIR read-only architecture-independent data in DIR
184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
185 --sharedstatedir=DIR modifiable architecture-independent data in DIR
187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
188 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
189 --includedir=DIR C header files in DIR [PREFIX/include]
190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
191 --infodir=DIR info documentation in DIR [PREFIX/info]
192 --mandir=DIR man documentation in DIR [PREFIX/man]
193 --srcdir=DIR find the sources in DIR [configure dir or ..]
194 --program-prefix=PREFIX prepend PREFIX to installed program names
195 --program-suffix=SUFFIX append SUFFIX to installed program names
196 --program-transform-name=PROGRAM
197 run sed PROGRAM on installed program names
201 --build=BUILD configure for building on BUILD [BUILD=HOST]
202 --host=HOST configure for HOST [guessed]
203 --target=TARGET configure for TARGET [TARGET=HOST]
204 Features and packages:
205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
209 --x-includes=DIR X include files are in DIR
210 --x-libraries=DIR X library files are in DIR
212 if test -n "$ac_help"; then
213 echo "--enable and --with options recognized:$ac_help"
217 -host | --host | --hos | --ho)
219 -host=* | --host=* | --hos=* | --ho=*)
222 -includedir | --includedir | --includedi | --included | --include \
223 | --includ | --inclu | --incl | --inc)
224 ac_prev=includedir ;;
225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
226 | --includ=* | --inclu=* | --incl=* | --inc=*)
227 includedir="$ac_optarg" ;;
229 -infodir | --infodir | --infodi | --infod | --info | --inf)
231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
232 infodir="$ac_optarg" ;;
234 -libdir | --libdir | --libdi | --libd)
236 -libdir=* | --libdir=* | --libdi=* | --libd=*)
237 libdir="$ac_optarg" ;;
239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
240 | --libexe | --libex | --libe)
241 ac_prev=libexecdir ;;
242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
243 | --libexe=* | --libex=* | --libe=*)
244 libexecdir="$ac_optarg" ;;
246 -localstatedir | --localstatedir | --localstatedi | --localstated \
247 | --localstate | --localstat | --localsta | --localst \
248 | --locals | --local | --loca | --loc | --lo)
249 ac_prev=localstatedir ;;
250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
251 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
252 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
253 localstatedir="$ac_optarg" ;;
255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
258 mandir="$ac_optarg" ;;
261 # Obsolete; use --without-fp.
264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
274 | --oldin | --oldi | --old | --ol | --o)
275 ac_prev=oldincludedir ;;
276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
279 oldincludedir="$ac_optarg" ;;
281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
284 prefix="$ac_optarg" ;;
286 -program-prefix | --program-prefix | --program-prefi | --program-pref \
287 | --program-pre | --program-pr | --program-p)
288 ac_prev=program_prefix ;;
289 -program-prefix=* | --program-prefix=* | --program-prefi=* \
290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
291 program_prefix="$ac_optarg" ;;
293 -program-suffix | --program-suffix | --program-suffi | --program-suff \
294 | --program-suf | --program-su | --program-s)
295 ac_prev=program_suffix ;;
296 -program-suffix=* | --program-suffix=* | --program-suffi=* \
297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
298 program_suffix="$ac_optarg" ;;
300 -program-transform-name | --program-transform-name \
301 | --program-transform-nam | --program-transform-na \
302 | --program-transform-n | --program-transform- \
303 | --program-transform | --program-transfor \
304 | --program-transfo | --program-transf \
305 | --program-trans | --program-tran \
306 | --progr-tra | --program-tr | --program-t)
307 ac_prev=program_transform_name ;;
308 -program-transform-name=* | --program-transform-name=* \
309 | --program-transform-nam=* | --program-transform-na=* \
310 | --program-transform-n=* | --program-transform-=* \
311 | --program-transform=* | --program-transfor=* \
312 | --program-transfo=* | --program-transf=* \
313 | --program-trans=* | --program-tran=* \
314 | --progr-tra=* | --program-tr=* | --program-t=*)
315 program_transform_name="$ac_optarg" ;;
317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
318 | -silent | --silent | --silen | --sile | --sil)
321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
325 sbindir="$ac_optarg" ;;
327 -sharedstatedir | --sharedstatedir | --sharedstatedi \
328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
329 | --sharedst | --shareds | --shared | --share | --shar \
331 ac_prev=sharedstatedir ;;
332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
336 sharedstatedir="$ac_optarg" ;;
338 -site | --site | --sit)
340 -site=* | --site=* | --sit=*)
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
355 -target | --target | --targe | --targ | --tar | --ta | --t)
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
390 # Obsolete; use --with-x.
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 if test ! -r $srcdir/$ac_unique_file; then
496 ac_srcdir_defaulted=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$CONFIG_SITE"; then
509 if test "x$prefix" != xNONE; then
510 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
515 for ac_site_file in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
522 if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
526 echo "creating cache $cache_file"
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp='$CPP $CPPFLAGS'
533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling=$ac_cv_prog_cc_cross
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548 ac_n= ac_c='\c' ac_t=
553 # Extract the first word of "gcc", so it can be a program name with args.
554 set dummy gcc; ac_word=$2
555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
556 echo "configure:557: checking for $ac_word" >&5
557 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
558 echo $ac_n "(cached) $ac_c" 1>&6
560 if test -n "$CC"; then
561 ac_cv_prog_CC="$CC" # Let the user override the test.
563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
565 for ac_dir in $ac_dummy; do
566 test -z "$ac_dir" && ac_dir=.
567 if test -f $ac_dir/$ac_word; then
576 if test -n "$CC"; then
577 echo "$ac_t""$CC" 1>&6
579 echo "$ac_t""no" 1>&6
582 if test -z "$CC"; then
583 # Extract the first word of "cc", so it can be a program name with args.
584 set dummy cc; ac_word=$2
585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
586 echo "configure:587: checking for $ac_word" >&5
587 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
590 if test -n "$CC"; then
591 ac_cv_prog_CC="$CC" # Let the user override the test.
593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
596 for ac_dir in $ac_dummy; do
597 test -z "$ac_dir" && ac_dir=.
598 if test -f $ac_dir/$ac_word; then
599 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
608 if test $ac_prog_rejected = yes; then
609 # We found a bogon in the path, so make sure we never use it.
610 set dummy $ac_cv_prog_CC
612 if test $# -gt 0; then
613 # We chose a different compiler from the bogus one.
614 # However, it has the same basename, so the bogon will be chosen
615 # first if we set CC to just the basename; use the full file name.
617 set dummy "$ac_dir/$ac_word" "$@"
625 if test -n "$CC"; then
626 echo "$ac_t""$CC" 1>&6
628 echo "$ac_t""no" 1>&6
631 if test -z "$CC"; then
634 # Extract the first word of "cl", so it can be a program name with args.
635 set dummy cl; ac_word=$2
636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
637 echo "configure:638: checking for $ac_word" >&5
638 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
639 echo $ac_n "(cached) $ac_c" 1>&6
641 if test -n "$CC"; then
642 ac_cv_prog_CC="$CC" # Let the user override the test.
644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
646 for ac_dir in $ac_dummy; do
647 test -z "$ac_dir" && ac_dir=.
648 if test -f $ac_dir/$ac_word; then
657 if test -n "$CC"; then
658 echo "$ac_t""$CC" 1>&6
660 echo "$ac_t""no" 1>&6
665 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
668 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
669 echo "configure:670: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
672 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
673 ac_cpp='$CPP $CPPFLAGS'
674 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
675 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
676 cross_compiling=$ac_cv_prog_cc_cross
678 cat > conftest.$ac_ext << EOF
680 #line 681 "configure"
681 #include "confdefs.h"
685 if { (eval echo configure:686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
686 ac_cv_prog_cc_works=yes
687 # If we can't run a trivial program, we are probably using a cross compiler.
688 if (./conftest; exit) 2>/dev/null; then
689 ac_cv_prog_cc_cross=no
691 ac_cv_prog_cc_cross=yes
694 echo "configure: failed program was:" >&5
695 cat conftest.$ac_ext >&5
696 ac_cv_prog_cc_works=no
700 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
701 ac_cpp='$CPP $CPPFLAGS'
702 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
703 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
704 cross_compiling=$ac_cv_prog_cc_cross
706 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
707 if test $ac_cv_prog_cc_works = no; then
708 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
710 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
711 echo "configure:712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
712 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
713 cross_compiling=$ac_cv_prog_cc_cross
715 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
716 echo "configure:717: checking whether we are using GNU C" >&5
717 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
718 echo $ac_n "(cached) $ac_c" 1>&6
720 cat > conftest.c <<EOF
725 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
732 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
734 if test $ac_cv_prog_gcc = yes; then
740 ac_test_CFLAGS="${CFLAGS+set}"
741 ac_save_CFLAGS="$CFLAGS"
743 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
744 echo "configure:745: checking whether ${CC-cc} accepts -g" >&5
745 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
746 echo $ac_n "(cached) $ac_c" 1>&6
748 echo 'void f(){}' > conftest.c
749 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
758 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
759 if test "$ac_test_CFLAGS" = set; then
760 CFLAGS="$ac_save_CFLAGS"
761 elif test $ac_cv_prog_cc_g = yes; then
762 if test "$GCC" = yes; then
768 if test "$GCC" = yes; then
775 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
777 # Extract the first word of "$ac_prog", so it can be a program name with args.
778 set dummy $ac_prog; ac_word=$2
779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
780 echo "configure:781: checking for $ac_word" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 if test -n "$CXX"; then
785 ac_cv_prog_CXX="$CXX" # Let the user override the test.
787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
789 for ac_dir in $ac_dummy; do
790 test -z "$ac_dir" && ac_dir=.
791 if test -f $ac_dir/$ac_word; then
792 ac_cv_prog_CXX="$ac_prog"
799 CXX="$ac_cv_prog_CXX"
800 if test -n "$CXX"; then
801 echo "$ac_t""$CXX" 1>&6
803 echo "$ac_t""no" 1>&6
806 test -n "$CXX" && break
808 test -n "$CXX" || CXX="gcc"
811 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
812 echo "configure:813: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
815 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
816 ac_cpp='$CXXCPP $CPPFLAGS'
817 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
818 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
819 cross_compiling=$ac_cv_prog_cxx_cross
821 cat > conftest.$ac_ext << EOF
823 #line 824 "configure"
824 #include "confdefs.h"
826 int main(){return(0);}
828 if { (eval echo configure:829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
829 ac_cv_prog_cxx_works=yes
830 # If we can't run a trivial program, we are probably using a cross compiler.
831 if (./conftest; exit) 2>/dev/null; then
832 ac_cv_prog_cxx_cross=no
834 ac_cv_prog_cxx_cross=yes
837 echo "configure: failed program was:" >&5
838 cat conftest.$ac_ext >&5
839 ac_cv_prog_cxx_works=no
843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
844 ac_cpp='$CPP $CPPFLAGS'
845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
847 cross_compiling=$ac_cv_prog_cc_cross
849 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
850 if test $ac_cv_prog_cxx_works = no; then
851 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
853 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
854 echo "configure:855: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
855 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
856 cross_compiling=$ac_cv_prog_cxx_cross
858 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
859 echo "configure:860: checking whether we are using GNU C++" >&5
860 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 cat > conftest.C <<EOF
868 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
875 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
877 if test $ac_cv_prog_gxx = yes; then
883 ac_test_CXXFLAGS="${CXXFLAGS+set}"
884 ac_save_CXXFLAGS="$CXXFLAGS"
886 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
887 echo "configure:888: checking whether ${CXX-g++} accepts -g" >&5
888 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
891 echo 'void f(){}' > conftest.cc
892 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
901 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
902 if test "$ac_test_CXXFLAGS" = set; then
903 CXXFLAGS="$ac_save_CXXFLAGS"
904 elif test $ac_cv_prog_cxx_g = yes; then
905 if test "$GXX" = yes; then
911 if test "$GXX" = yes; then
919 echo $ac_n "checking if MSG_NOSIGNAL is supported by recv call""... $ac_c" 1>&6
920 echo "configure:921: checking if MSG_NOSIGNAL is supported by recv call" >&5
921 cat > conftest.$ac_ext <<EOF
922 #line 923 "configure"
923 #include "confdefs.h"
925 #include <sys/types.h>
926 #include <sys/socket.h>
929 recv(0,NULL,1,MSG_NOSIGNAL);
932 if { (eval echo configure:933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
936 echo "configure: failed program was:" >&5
937 cat conftest.$ac_ext >&5
942 if test "$HAS_MSG_NOSIGNAL" = 0 ; then
943 echo "$ac_t""no" 1>&6
945 echo "$ac_t""yes" 1>&6
946 STDCCFLAGS="-DHAS_MSG_NOSIGNAL=1 $STDCCFLAGS"
950 #if test "${PWLIBDIR:-unset}" != "unset" ; then
951 # if test -d ${PWLIBDIR}; then
952 # AC_CHECK_FILE(${PWLIBDIR}/make/unix.mak, HAS_PTLIB=1)
954 # if test "${HAS_PTLIB:-unset}" != "unset" ; then
955 # AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , ${PWLIBDIR}/make)
958 #if test "${HAS_PTLIB:-unset}" = "unset" ; then
959 # if test -d ${HOME}/pwlib/include; then
960 # AC_CHECK_FILE(${HOME}/pwlib/include/ptlib.h, HAS_PTLIB=1)
962 # if test "${HAS_PTLIB:-unset}" != "unset" ; then
963 # PWLIBDIR="${HOME}/pwlib"
964 # AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , ${PWLIBDIR}/make)
966 # if test -d ../pwlib; then
967 # AC_CHECK_FILE(../pwlib/include/ptlib.h, HAS_PTLIB=1)
969 # if test "${HAS_PTLIB:-unset}" != "unset" ; then
970 # PWLIBDIR="../pwlib"
971 # AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , ${PWLIBDIR}/make)
973 # if test -d /usr/local/include; then
974 # AC_CHECK_FILE(/usr/local/include/ptlib.h, HAS_PTLIB=1)
976 # if test "${HAS_PTLIB:-unset}" != "unset" ; then
977 # AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , /usr/local/share/pwlib/make:/usr/local/bin)
979 # if test -d /usr/include; then
980 # AC_CHECK_FILE(/usr/include/ptlib.h, HAS_PTLIB=1)
982 # if test "${HAS_PTLIB:-unset}" != "unset" ; then
983 # AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , /usr/share/pwlib/make/)
990 #if test "${HAS_PTLIB:-unset}" = "unset" ; then
991 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
995 #if test "${PWLIBDIR:-unset}" = "unset" ; then
996 # if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
997 # echo "Cannot find ptlib-config - please install and try again"
1000 # PWLIBDIR=`$PTLIB_CONFIG --pwlibdir`
1003 echo "PWLib prefix set to $PWLIBDIR"
1007 if test "${PTLIB_CONFIG:-unset}" = "unset"; then
1008 #AC_CHECK_FILE(${PWLIBDIR}/version.h, HAS_PWLIB_VERSION_FILE=1)
1009 if test "${HAS_PWLIB_VERSION_FILE:-unset}" != "unset"; then
1010 PWLIB_MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
1011 PWLIB_MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
1012 PWLIB_BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
1013 PWLIB_VERSION="${PWLIB_MAJOR_VERSION}.${PWLIB_MINOR_VERSION}.${PWLIB_BUILD_NUMBER}"
1016 ac_safe=`echo "${PWLIBDIR}/ptbuildopts.h" | sed 'y%./+-%__p_%'`
1017 echo $ac_n "checking for ${PWLIBDIR}/ptbuildopts.h""... $ac_c" 1>&6
1018 echo "configure:1019: checking for ${PWLIBDIR}/ptbuildopts.h" >&5
1019 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1022 if test "$cross_compiling" = yes; then
1023 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1025 if test -r ${PWLIBDIR}/ptbuildopts.h; then
1026 eval "ac_cv_file_$ac_safe=yes"
1028 eval "ac_cv_file_$ac_safe=no"
1032 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
1033 echo "$ac_t""yes" 1>&6
1034 HAS_PWLIB_VERSION_FILE=1
1036 echo "$ac_t""no" 1>&6
1040 if test "${HAS_PWLIB_VERSION_FILE:-unset}" != "unset"; then
1041 PWLIB_MAJOR_VERSION=`cat ${PWLIBDIR}/ptbuildopts.h | grep PWLIB_MAJOR | cut -f3 -d' '`
1042 PWLIB_MINOR_VERSION=`cat ${PWLIBDIR}/ptbuildopts.h | grep PWLIB_MINOR | cut -f3 -d' '`
1043 PWLIB_BUILD_NUMBER=`cat ${PWLIBDIR}/ptbuildopts.h | grep PWLIB_BUILD | cut -f3 -d' '`
1044 PWLIB_VERSION="${PWLIB_MAJOR_VERSION}.${PWLIB_MINOR_VERSION}.${PWLIB_BUILD_NUMBER}"
1048 PWLIB_VERSION=`${PTLIB_CONFIG} --version`
1049 PWLIB_MAJOR_VERSION=`echo "${PWLIB_VERSION}" | sed -e "s/\([0-9]*\)\.[0-9]*\.[0-9]*.*/\1/"`
1050 PWLIB_MINOR_VERSION=`echo "${PWLIB_VERSION}" | sed -e 's/[0-9]*\.\([0-9]*\)\.[0-9]*.*/\1/'`
1051 PWLIB_BUILD_NUMBER=`echo "${PWLIB_VERSION}" | sed -e 's/[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/'`
1053 if test "${PWLIB_VERSION:-unset}" = "unset" -o "${PWLIB_VERSION}" = ".."; then
1054 echo "Error: could not determine PWLib version"
1058 echo "PTLib version is ${PWLIB_VERSION}"
1060 if test ${PWLIB_MAJOR_VERSION} -lt 1; then
1061 echo "Error: at leat PWLib version 1.7.5.2 (Pandora) required"
1064 if test ${PWLIB_MAJOR_VERSION} -eq 1; then
1065 if test ${PWLIB_MINOR_VERSION} -lt 7; then
1066 echo "Error: at leat PWLib version 1.7.5.2 (Pandora) required"
1068 elif test ${PWLIB_MINOR_VERSION} -eq 7; then
1069 if test ${PWLIB_BUILD_NUMBER} -lt 5; then
1070 echo "Error: at leat PWLib version 1.7.5.2 (Pandora) required"
1079 NEEDOPENH323PREFIX=0
1081 #if test "${OPENH323DIR:-unset}" != "unset" ; then
1082 # if test -d ${OPENH323DIR}; then
1083 # AC_CHECK_FILE(${OPENH323DIR}/openh323u.mak, HAS_OPENH323=1)
1086 #if test "${HAS_OPENH323:-unset}" = "unset" ; then
1087 # if test -d ${PWLIBDIR}/../openh323; then
1088 # AC_CHECK_FILE(${PWLIBDIR}/../openh323/version.h, HAS_OPENH323=1)
1090 # if test "${HAS_OPENH323:-unset}" != "unset" ; then
1091 # OPENH323DIR="${PWLIBDIR}/../openh323"
1093 # if test -d ${HOME}/openh323/include; then
1094 # AC_CHECK_FILE(${HOME}/openh323/include/h323.h, HAS_OPENH323=1)
1096 # if test "${HAS_OPENH323:-unset}" != "unset" ; then
1097 # OPENH323DIR="${HOME}/openh323"
1099 # if test -d /usr/local/include/openh323; then
1100 # AC_CHECK_FILE(/usr/local/include/openh323/h323.h, HAS_OPENH323=1)
1102 # if test "${HAS_OPENH323:-unset}" != "unset" ; then
1103 # OPENH323DIR="/usr/local"
1104 # OPENH323INSTALLPREFIX="/usr/local"
1105 # NEEDOPENH323PREFIX=1
1107 # if test -d /usr/include/openh323; then
1108 # AC_CHECK_FILE(/usr/include/openh323/h323.h, HAS_OPENH323=1)
1110 # if test "${HAS_OPENH323:-unset}" != "unset" ; then
1111 # OPENH323DIR="/usr"
1112 # OPENH323INSTALLPREFIX="/usr"
1113 # NEEDOPENH323PREFIX=1
1120 if test "${HAS_OPENH323:-unset}" = "unset" ; then
1121 echo "Cannot find OpenH323 - please install or set OPENH323DIR and try again"
1125 if test -d "${OPENH323DIR}/share/openh323"; then
1126 OPENH323MAKEDIR=${OPENH323DIR}/share/openh323/
1129 echo "OpenH323 prefix set to $OPENH323DIR"
1131 if test "${OPENH323MAKEDIR:-unset}" = "unset"; then
1132 OPENH323MAKEDIR=${OPENH323DIR}
1138 if test -d ${OPENH323DIR}; then
1139 # AC_CHECK_FILE(${OPENH323DIR}/version.h, HAS_OPENH323_VERSIONFILE=1)
1140 if test "${HAS_OPENH323_VERSIONFILE:-unset}" != "unset"; then
1141 OPENH323_VERSION_FILE=${OPENH323DIR}/version.h
1142 OPENH323_MAJOR_VERSION=`cat ${OPENH323_VERSION_FILE} | grep MAJOR_VERSION | cut -f3 -d' '`
1143 OPENH323_MINOR_VERSION=`cat ${OPENH323_VERSION_FILE} | grep MINOR_VERSION | cut -f3 -d' '`
1144 OPENH323_BUILD_NUMBER=`cat ${OPENH323_VERSION_FILE} | grep BUILD_NUMBER | cut -f3 -d' '`
1147 ac_safe=`echo "${OPENH323MAKEDIR}/openh323buildopts.h" | sed 'y%./+-%__p_%'`
1148 echo $ac_n "checking for ${OPENH323MAKEDIR}/openh323buildopts.h""... $ac_c" 1>&6
1149 echo "configure:1150: checking for ${OPENH323MAKEDIR}/openh323buildopts.h" >&5
1150 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 if test "$cross_compiling" = yes; then
1154 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1156 if test -r ${OPENH323MAKEDIR}/openh323buildopts.h; then
1157 eval "ac_cv_file_$ac_safe=yes"
1159 eval "ac_cv_file_$ac_safe=no"
1163 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
1164 echo "$ac_t""yes" 1>&6
1165 HAS_OPENH323_VERSIONFILE=1
1167 echo "$ac_t""no" 1>&6
1171 if test "${HAS_OPENH323_VERSIONFILE:-unset}" != "unset"; then
1172 OPENH323_VERSION_FILE=${OPENH323MAKEDIR}/openh323buildopts.h
1173 OPENH323_MAJOR_VERSION=`cat ${OPENH323_VERSION_FILE} | grep OPENH323_MAJOR | cut -f3 -d' '`
1174 OPENH323_MINOR_VERSION=`cat ${OPENH323_VERSION_FILE} | grep OPENH323_MINOR | cut -f3 -d' '`
1175 OPENH323_BUILD_NUMBER=`cat ${OPENH323_VERSION_FILE} | grep OPENH323_BUILD | cut -f3 -d' '`
1178 ac_safe=`echo "${OPENH323MAKEDIR}/../../include/openh323/openh323buildopts.h" | sed 'y%./+-%__p_%'`
1179 echo $ac_n "checking for ${OPENH323MAKEDIR}/../../include/openh323/openh323buildopts.h""... $ac_c" 1>&6
1180 echo "configure:1181: checking for ${OPENH323MAKEDIR}/../../include/openh323/openh323buildopts.h" >&5
1181 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 if test "$cross_compiling" = yes; then
1185 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1187 if test -r ${OPENH323MAKEDIR}/../../include/openh323/openh323buildopts.h; then
1188 eval "ac_cv_file_$ac_safe=yes"
1190 eval "ac_cv_file_$ac_safe=no"
1194 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
1195 echo "$ac_t""yes" 1>&6
1196 HAS_OPENH323_VERSIONFILE=1
1198 echo "$ac_t""no" 1>&6
1202 if test "${HAS_OPENH323_VERSIONFILE:-unset}" != "unset"; then
1203 OPENH323_VERSION_FILE=${OPENH323MAKEDIR}/../../include/openh323/openh323buildopts.h
1204 OPENH323_MAJOR_VERSION=`cat ${OPENH323_VERSION_FILE} | grep OPENH323_MAJOR | cut -f2 -d' '`
1205 OPENH323_MINOR_VERSION=`cat ${OPENH323_VERSION_FILE} | grep OPENH323_MINOR | cut -f2 -d' '`
1206 OPENH323_BUILD_NUMBER=`cat ${OPENH323_VERSION_FILE} | grep "OPENH323_BUILD " | cut -f2 -d' '`
1211 if test "${HAS_OPENH323_VERSIONFILE:-unset}" != "unset"; then
1212 if test "${OPENH323_MAJOR_VERSION}" = ""; then
1213 echo "Error: Could not determine OpenH323 version"
1216 OPENH323_VERSION="${OPENH323_MAJOR_VERSION}.${OPENH323_MINOR_VERSION}.${OPENH323_BUILD_NUMBER}"
1217 echo "OpenH323 version is ${OPENH323_VERSION}"
1219 echo "Error: Could not determine OpenH323 version"
1223 if test ${OPENH323_MAJOR_VERSION} -lt 1; then
1224 echo "Error: at leat OpenH323 version 1.14.4.2 (Pandora) required"
1227 if test ${OPENH323_MAJOR_VERSION} -eq 1; then
1228 if test ${OPENH323_MINOR_VERSION} -lt 14; then
1229 echo "Error: at leat OpenH323 version 1.14.4.2 (Pandora) required"
1231 elif test ${OPENH323_MINOR_VERSION} -eq 14; then
1232 if test ${OPENH323_BUILD_NUMBER} -lt 4; then
1233 echo "Error: at leat OpenH323 version 1.14.4.2 (Pandora) required"
1241 if test "x$prefix" = "xNONE"; then
1242 INSTALLPREFIX="/usr/local"
1244 INSTALLPREFIX="${prefix}"
1249 # Check whether --enable-radius or --disable-radius was given.
1250 if test "${enable_radius+set}" = set; then
1251 enableval="$enable_radius"
1252 radius="${enableval}"
1259 if test "x${radius}" != "xno" ; then
1261 STDCCFLAGS="-DHAS_RADIUS=1 $STDCCFLAGS"
1262 SOURCES="$SOURCES radproto.cxx radauth.cxx radacct.cxx"
1263 HEADERS="$HEADERS radproto.h radauth.h radacct.h"
1264 echo "RADIUS support enabled"
1266 echo "RADIUS support disabled"
1271 # Check whether --with-large-fdset or --without-large-fdset was given.
1272 if test "${with_large_fdset+set}" = set; then
1273 withval="$with_large_fdset"
1274 largefdset="$withval"
1281 if test "x${largefdset}" != "xno" ; then
1282 if test "x${largefdset}" = "xyes"; then
1285 LARGE_FDSET=${largefdset}
1287 STDCCFLAGS="-DLARGE_FDSET=${LARGE_FDSET} $STDCCFLAGS"
1288 echo "LARGE FDSET support enabled"
1290 echo "LARGE FDSET support disabled"
1294 # Check whether --enable-mysql or --disable-mysql was given.
1295 if test "${enable_mysql+set}" = set; then
1296 enableval="$enable_mysql"
1297 mysql="${enableval}"
1304 # Check whether --with-mysql-include-dir or --without-mysql-include-dir was given.
1305 if test "${with_mysql_include_dir+set}" = set; then
1306 withval="$with_mysql_include_dir"
1307 mysql_include_dir="$withval"
1312 # Check whether --with-mysql-lib-dir or --without-mysql-lib-dir was given.
1313 if test "${with_mysql_lib_dir+set}" = set; then
1314 withval="$with_mysql_lib_dir"
1315 mysql_lib_dir="$withval"
1320 # Check whether --with-mysql-dir or --without-mysql-dir was given.
1321 if test "${with_mysql_dir+set}" = set; then
1322 withval="$with_mysql_dir"
1323 mysql_lib_dir="$withval/lib/mysql"
1324 mysql_include_dir="$withval/include/mysql"
1330 if test "x${mysql}" != "xno"; then
1332 echo $ac_n "checking for compress in -lz""... $ac_c" 1>&6
1333 echo "configure:1334: checking for compress in -lz" >&5
1334 ac_lib_var=`echo z'_'compress | sed 'y%./+-%__p_%'`
1335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1338 ac_save_LIBS="$LIBS"
1340 cat > conftest.$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1343 /* Override any gcc2 internal prototype to avoid an error. */
1344 /* We use char because int might match the return type of a gcc2
1345 builtin and then its argument prototype would still apply. */
1352 if { (eval echo configure:1353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1354 eval "ac_cv_lib_$ac_lib_var=yes"
1356 echo "configure: failed program was:" >&5
1357 cat conftest.$ac_ext >&5
1359 eval "ac_cv_lib_$ac_lib_var=no"
1362 LIBS="$ac_save_LIBS"
1365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1366 echo "$ac_t""yes" 1>&6
1369 echo "$ac_t""no" 1>&6
1372 echo $ac_n "checking for compress in -lz""... $ac_c" 1>&6
1373 echo "configure:1374: checking for compress in -lz" >&5
1374 ac_lib_var=`echo z'_'compress | sed 'y%./+-%__p_%'`
1375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 ac_save_LIBS="$LIBS"
1380 cat > conftest.$ac_ext <<EOF
1381 #line 1382 "configure"
1382 #include "confdefs.h"
1383 /* Override any gcc2 internal prototype to avoid an error. */
1384 /* We use char because int might match the return type of a gcc2
1385 builtin and then its argument prototype would still apply. */
1392 if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1394 eval "ac_cv_lib_$ac_lib_var=yes"
1396 echo "configure: failed program was:" >&5
1397 cat conftest.$ac_ext >&5
1399 eval "ac_cv_lib_$ac_lib_var=no"
1402 LIBS="$ac_save_LIBS"
1405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1406 echo "$ac_t""yes" 1>&6
1409 echo "$ac_t""no" 1>&6
1413 echo $ac_n "checking for mysql.h""... $ac_c" 1>&6
1414 echo "configure:1415: checking for mysql.h" >&5
1416 cat > conftest.$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1424 if { (eval echo configure:1425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1428 echo "configure: failed program was:" >&5
1429 cat conftest.$ac_ext >&5
1436 if test "x$MYSQL_INCLUDE" = "x"; then
1437 old_CFLAGS="$CFLAGS"
1439 for try in $mysql_include_dir /usr/include/mysql /usr/local/include/mysql /usr/local/mysql/include/mysql; do
1440 if test -d $try; then
1441 CFLAGS="$old_CFLAGS -I$try"
1442 cat > conftest.$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1450 if { (eval echo configure:1451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1452 MYSQL_INCLUDE="-I$try"
1454 echo "configure: failed program was:" >&5
1455 cat conftest.$ac_ext >&5
1461 if test "x$MYSQL_INCLUDE" != "x"; then
1466 CFLAGS="$old_CFLAGS"
1469 if test "x$MYSQL_INCLUDE" = "x"; then
1470 echo "$ac_t""no" 1>&6
1471 echo "configure: warning: mysql headers not found. Use --with-mysql-include-dir=<path>" 1>&2
1474 sql_mysql_cflags="${sql_mysql_cflags} ${MYSQL_INCLUDE}"
1475 echo "$ac_t""yes" 1>&6
1477 echo $ac_n "checking for mysql_init in -lmysqlclient""... $ac_c" 1>&6
1478 echo "configure:1479: checking for mysql_init in -lmysqlclient" >&5
1482 for try in $mysql_lib_dir /usr/lib /usr/lib/mysql /usr/local/lib/mysql /usr/local/mysql/lib/mysql; do
1483 if test -d $try; then
1484 LIBS="$old_LIBS -L$try -lmysqlclient ${MYSQL_LIBS}"
1485 cat > conftest.$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1488 extern char mysql_init();
1493 if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1495 MYSQL_LIBS="-lmysqlclient ${MYSQL_LIBS}"
1496 MYSQL_LDFLAGS="-L$try"
1500 echo "configure: failed program was:" >&5
1501 cat conftest.$ac_ext >&5
1504 if test "x$MYSQL_LDFLAGS" != "x"; then
1511 if test "x$MYSQL_LDFLAGS" = "x"; then
1512 echo "$ac_t""no" 1>&6
1514 echo "configure: warning: mysql lib not found. Use --with-mysql-lib-dir=<path>" 1>&2
1517 echo "$ac_t""yes" 1>&6
1518 sql_mysql_ldflags="$sql_mysql_ldflags $MYSQL_LDFLAGS"
1522 sql_mysql_ldflags="$sql_mysql_ldflags $LIBS"
1524 if test "x$mysql" = "xno"; then
1525 echo "configure: warning: MySQL disabled" 1>&2
1531 if test "x$mysql" != "xno"; then
1533 SOURCES="$SOURCES gksql_mysql.cxx"
1534 STDCCFLAGS="${sql_mysql_cflags} -DHAS_MYSQL=1 $STDCCFLAGS"
1535 LDFLAGS="$MYSQL_LDFLAGS $LDFLAGS"
1536 ENDLDLIBS="$MYSQL_LIBS $ENDLDLIBS"
1537 echo "MySQL support enabled"
1539 echo "MySQL support disabled"
1544 # Check whether --enable-pgsql or --disable-pgsql was given.
1545 if test "${enable_pgsql+set}" = set; then
1546 enableval="$enable_pgsql"
1547 pgsql="${enableval}"
1554 # Check whether --with-pgsql-include-dir or --without-pgsql-include-dir was given.
1555 if test "${with_pgsql_include_dir+set}" = set; then
1556 withval="$with_pgsql_include_dir"
1557 pgsql_include_dir="$withval"
1562 # Check whether --with-pgsql-lib-dir or --without-pgsql-lib-dir was given.
1563 if test "${with_pgsql_lib_dir+set}" = set; then
1564 withval="$with_pgsql_lib_dir"
1565 pgsql_lib_dir="$withval"
1570 # Check whether --with-pgsql-dir or --without-pgsql-dir was given.
1571 if test "${with_pgsql_dir+set}" = set; then
1572 withval="$with_pgsql_dir"
1573 pgsql_lib_dir="$withval/lib"
1574 pgsql_include_dir="$withval/include"
1580 if test "x${pgsql}" != "xno"; then
1582 echo $ac_n "checking for libpq-fe.h""... $ac_c" 1>&6
1583 echo "configure:1584: checking for libpq-fe.h" >&5
1585 cat > conftest.$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
1588 #include <libpq-fe.h>
1593 if { (eval echo configure:1594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1597 echo "configure: failed program was:" >&5
1598 cat conftest.$ac_ext >&5
1605 if test "x$PGSQL_INCLUDE" = "x"; then
1606 old_CFLAGS="$CFLAGS"
1608 for try in /usr/include/pgsql /usr/local/include /usr/local/include/pgsql /usr/local/pgsql/include $pgsql_include_dir; do
1609 if test -d $try; then
1610 CFLAGS="$old_CFLAGS -I$try"
1611 cat > conftest.$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1614 #include <libpq-fe.h>
1619 if { (eval echo configure:1620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1621 PGSQL_INCLUDE="-I$try"
1623 echo "configure: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1630 if test "x$PGSQL_INCLUDE" != "x"; then
1635 CFLAGS="$old_CFLAGS"
1638 if test "x$PGSQL_INCLUDE" = "x"; then
1639 echo "$ac_t""no" 1>&6
1640 echo "configure: warning: pgsql headers not found. Use --with-pgsql-include-dir=<path>" 1>&2
1643 sql_pgsql_cflags="${sql_pgsql_cflags} ${PGSQL_INCLUDE}"
1644 echo "$ac_t""yes" 1>&6
1646 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
1647 echo "configure:1648: checking for PQconnectdb in -lpq" >&5
1651 for try in /usr/lib /usr/local/lib /usr/local/pgsql/lib $pgsql_lib_dir; do
1652 if test -d $try; then
1653 LIBS="$old_LIBS -L$try -lpq -lcrypt ${PGSQL_LIBS}"
1654 cat > conftest.$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 extern char PQconnectdb();
1662 if { (eval echo configure:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1664 PGSQL_LIBS="-lpq -lcrypt ${PGSQL_LIBS}"
1665 PGSQL_LDFLAGS="-L$try"
1669 echo "configure: failed program was:" >&5
1670 cat conftest.$ac_ext >&5
1673 if test "x$PGSQL_LDFLAGS" != "x"; then
1680 if test "x$PGSQL_LDFLAGS" = "x"; then
1681 echo "$ac_t""no" 1>&6
1683 echo "configure: warning: pgsql lib not found. Use --with-pgsql-lib-dir=<path>" 1>&2
1686 echo "$ac_t""yes" 1>&6
1687 sql_pgsql_ldflags="$sql_pgsql_ldflags $PGSQL_LDFLAGS"
1691 sql_pgsql_ldflags="$sql_pgsql_ldflags $LIBS"
1693 if test "x$pgsql" = "xno"; then
1694 echo "configure: warning: PostgreSQL disabled" 1>&2
1700 if test "x$pgsql" != "xno"; then
1702 SOURCES="$SOURCES gksql_pgsql.cxx"
1703 STDCCFLAGS="${sql_pgsql_cflags} -DHAS_PGSQL=1 $STDCCFLAGS"
1704 LDFLAGS="$PGSQL_LDFLAGS $LDFLAGS"
1705 ENDLDLIBS="$PGSQL_LIBS $ENDLDLIBS"
1706 echo "PostgreSQL support enabled"
1708 echo "PostgreSQL support disabled"
1713 if test "x$pgsql" != "xno" -o "x$mysql" != "xno"; then
1714 SOURCES="$SOURCES sqlauth.cxx sqlacct.cxx gksql.cxx"
1715 HEADERS="$HEADERS sqlacct.h gksql.h"
1718 # Check whether --enable-firebird or --disable-firebird was given.
1719 if test "${enable_firebird+set}" = set; then
1720 enableval="$enable_firebird"
1721 firebird="${enableval}"
1728 # Check whether --with-firebird-include-dir or --without-firebird-include-dir was given.
1729 if test "${with_firebird_include_dir+set}" = set; then
1730 withval="$with_firebird_include_dir"
1731 firebird_include_dir="$withval"
1736 # Check whether --with-firebird-lib-dir or --without-firebird-lib-dir was given.
1737 if test "${with_firebird_lib_dir+set}" = set; then
1738 withval="$with_firebird_lib_dir"
1739 firebird_lib_dir="$withval"
1744 # Check whether --with-firebird-dir or --without-firebird-dir was given.
1745 if test "${with_firebird_dir+set}" = set; then
1746 withval="$with_firebird_dir"
1747 firebird_lib_dir="$withval/lib"
1748 firebird_include_dir="$withval/include"
1754 if test "x${firebird}" != "xno"; then
1756 echo $ac_n "checking for ibase.h""... $ac_c" 1>&6
1757 echo "configure:1758: checking for ibase.h" >&5
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1767 if { (eval echo configure:1768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1769 FIREBIRD_INCLUDE=" "
1771 echo "configure: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1779 if test "x$FIREBIRD_INCLUDE" = "x"; then
1780 old_CFLAGS="$CFLAGS"
1782 for try in /usr/include/firebird /usr/local/include/firebird /usr/local/firebird/include $firebird_include_dir; do
1783 if test -d $try; then
1784 CFLAGS="$old_CFLAGS -I$try"
1785 cat > conftest.$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1793 if { (eval echo configure:1794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1795 FIREBIRD_INCLUDE="-I$try"
1797 echo "configure: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1804 if test "x$FIREBIRD_INCLUDE" != "x"; then
1809 CFLAGS="$old_CFLAGS"
1812 if test "x$FIREBIRD_INCLUDE" = "x"; then
1813 echo "$ac_t""no" 1>&6
1814 echo "configure: warning: Firebird headers not found. Use --with-firebird-include-dir=<path>" 1>&2
1817 sql_firebird_cflags="${sql_firebird_cflags} ${FIREBIRD_INCLUDE}"
1818 echo "$ac_t""yes" 1>&6
1820 echo $ac_n "checking for isc_attach_database in -lfbclient""... $ac_c" 1>&6
1821 echo "configure:1822: checking for isc_attach_database in -lfbclient" >&5
1825 for try in /usr/lib /usr/lib/firebird /usr/local/lib /usr/local/lib/firebird /usr/local/firebird/lib $firebird_lib_dir; do
1826 if test -d $try; then
1827 LIBS="$old_LIBS -L$try -lfbclient ${FIREBIRD_LIBS}"
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1831 extern char isc_attach_database();
1833 isc_attach_database()
1836 if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1838 FIREBIRD_LIBS="-lfbclient ${FIREBIRD_LIBS}"
1839 FIREBIRD_LDFLAGS="-L$try"
1843 echo "configure: failed program was:" >&5
1844 cat conftest.$ac_ext >&5
1847 if test "x$FIREBIRD_LDFLAGS" != "x"; then
1854 if test "x$FIREBIRD_LDFLAGS" = "x"; then
1855 echo "$ac_t""no" 1>&6
1857 echo "configure: warning: Firebird lib not found. Use --with-firebird-lib-dir=<path>" 1>&2
1860 echo "$ac_t""yes" 1>&6
1861 sql_firebird_ldflags="$sql_firebird_ldflags $FIREBIRD_LDFLAGS"
1865 sql_firebird_ldflags="$sql_firebird_ldflags $LIBS"
1867 if test "x$firebird" = "xno"; then
1868 echo "configure: warning: Firebird disabled" 1>&2
1874 if test "x$firebird" != "xno"; then
1876 SOURCES="$SOURCES gksql_firebird.cxx"
1877 STDCCFLAGS="${sql_firebird_cflags} -DHAS_FIREBIRD=1 $STDCCFLAGS"
1878 LDFLAGS="$FIREBIRD_LDFLAGS $LDFLAGS"
1879 ENDLDLIBS="$FIREBIRD_LIBS $ENDLDLIBS"
1880 echo "Firebird support enabled"
1882 echo "Firebird support disabled"
1888 GNUGK_MAJOR_VERSION=`cat version.h | grep "define GNUGK_MAJOR_VERSION" | cut -f4 -d' '`
1889 GNUGK_MINOR_VERSION=`cat version.h | grep "define GNUGK_MINOR_VERSION" | cut -f4 -d' '`
1890 GNUGK_BUILD_NUMBER=`cat version.h | grep "define GNUGK_BUILD_NUMBER" | cut -f4 -d' '`
1891 GNUGK_BUILD_TYPE=`cat version.h | grep "define GNUGK_BUILD_TYPE" | cut -f4 -d' '`
1892 GNUGK_VERSION="${GNUGK_MAJOR_VERSION}.${GNUGK_MINOR_VERSION}.${GNUGK_BUILD_NUMBER}"
1893 echo "GNU Gatkeeper version is ${GNUGK_VERSION}"
1901 PROGRAMNAME="Gatekeeper"
1917 cat > confcache <<\EOF
1918 # This file is a shell script that caches the results of configure
1919 # tests run on this system so they can be shared between configure
1920 # scripts and configure runs. It is not useful on other systems.
1921 # If it contains results you don't want to keep, you may remove or edit it.
1923 # By default, configure uses ./config.cache as the cache file,
1924 # creating it if it does not exist already. You can give configure
1925 # the --cache-file=FILE option to use a different cache file; that is
1926 # what configure does when it calls configure scripts in
1927 # subdirectories, so they share the cache.
1928 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1929 # config.status only pays attention to the cache file if you give it the
1930 # --recheck option to rerun configure.
1933 # The following way of writing the cache mishandles newlines in values,
1934 # but we know of no workaround that is simple, portable, and efficient.
1935 # So, don't put newlines in cache variables' values.
1936 # Ultrix sh set writes to stderr and can't be redirected directly,
1937 # and sets the high bit in the cache file unless we assign to the vars.
1939 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1941 # `set' does not quote correctly, so add quotes (double-quote substitution
1942 # turns \\\\ into \\, and sed turns \\ into \).
1944 -e "s/'/'\\\\''/g" \
1945 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1948 # `set' quotes correctly as required by POSIX, so do not add quotes.
1949 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1952 if cmp -s $cache_file confcache; then
1955 if test -w $cache_file; then
1956 echo "updating cache $cache_file"
1957 cat confcache > $cache_file
1959 echo "not updating unwritable cache $cache_file"
1964 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1966 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1967 # Let make expand exec_prefix.
1968 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1970 # Any assignment to VPATH causes Sun make to only execute
1971 # the first set of double-colon rules, so remove it if not needed.
1972 # If there is a colon in the path, we need to keep it.
1973 if test "x$srcdir" = x.; then
1974 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1977 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1979 # Transform confdefs.h into DEFS.
1980 # Protect against shell expansion while executing Makefile rules.
1981 # Protect against Makefile macro expansion.
1982 cat > conftest.defs <<\EOF
1983 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1984 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1989 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1993 # Without the "./", some shells look in PATH for config.status.
1994 : ${CONFIG_STATUS=./config.status}
1996 echo creating $CONFIG_STATUS
1997 rm -f $CONFIG_STATUS
1998 cat > $CONFIG_STATUS <<EOF
2000 # Generated automatically by configure.
2001 # Run this file to recreate the current configuration.
2002 # This directory was configured as follows,
2003 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2005 # $0 $ac_configure_args
2007 # Compiler output produced by configure, useful for debugging
2008 # configure, is in ./config.log if it exists.
2010 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2013 case "\$ac_option" in
2014 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2015 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2016 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2017 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2018 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2020 -help | --help | --hel | --he | --h)
2021 echo "\$ac_cs_usage"; exit 0 ;;
2022 *) echo "\$ac_cs_usage"; exit 1 ;;
2026 ac_given_srcdir=$srcdir
2028 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2030 cat >> $CONFIG_STATUS <<EOF
2032 # Protect against being on the right side of a sed subst in config.status.
2033 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2034 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2038 s%@CFLAGS@%$CFLAGS%g
2039 s%@CPPFLAGS@%$CPPFLAGS%g
2040 s%@CXXFLAGS@%$CXXFLAGS%g
2041 s%@FFLAGS@%$FFLAGS%g
2043 s%@LDFLAGS@%$LDFLAGS%g
2045 s%@exec_prefix@%$exec_prefix%g
2046 s%@prefix@%$prefix%g
2047 s%@program_transform_name@%$program_transform_name%g
2048 s%@bindir@%$bindir%g
2049 s%@sbindir@%$sbindir%g
2050 s%@libexecdir@%$libexecdir%g
2051 s%@datadir@%$datadir%g
2052 s%@sysconfdir@%$sysconfdir%g
2053 s%@sharedstatedir@%$sharedstatedir%g
2054 s%@localstatedir@%$localstatedir%g
2055 s%@libdir@%$libdir%g
2056 s%@includedir@%$includedir%g
2057 s%@oldincludedir@%$oldincludedir%g
2058 s%@infodir@%$infodir%g
2059 s%@mandir@%$mandir%g
2062 s%@PWLIBDIR@%$PWLIBDIR%g
2063 s%@PWLIB_VERSION@%$PWLIB_VERSION%g
2064 s%@OPENH323DIR@%$OPENH323DIR%g
2065 s%@OPENH323MAKEDIR@%$OPENH323MAKEDIR%g
2066 s%@OPENH323_VERSION@%$OPENH323_VERSION%g
2067 s%@INSTALLPREFIX@%$INSTALLPREFIX%g
2068 s%@HAS_RADIUS@%$HAS_RADIUS%g
2069 s%@LARGE_FDSET@%$LARGE_FDSET%g
2070 s%@HAS_MYSQL@%$HAS_MYSQL%g
2071 s%@HAS_PGSQL@%$HAS_PGSQL%g
2072 s%@HAS_FIREBIRD@%$HAS_FIREBIRD%g
2073 s%@GNUGK_VERSION@%$GNUGK_VERSION%g
2074 s%@GNUGK_MAJOR_VERSION@%$GNUGK_MAJOR_VERSION%g
2075 s%@GNUGK_MINOR_VERSION@%$GNUGK_MINOR_VERSION%g
2076 s%@GNUGK_BUILD_NUMBER@%$GNUGK_BUILD_NUMBER%g
2077 s%@GNUGK_BUILD_TYPE@%$GNUGK_BUILD_TYPE%g
2078 s%@MANUFACTURER@%$MANUFACTURER%g
2079 s%@PROGRAMNAME@%$PROGRAMNAME%g
2080 s%@STDCCFLAGS@%$STDCCFLAGS%g
2081 s%@ENDLDLIBS@%$ENDLDLIBS%g
2082 s%@ENDLDFLAGS@%$ENDLDFLAGS%g
2083 s%@SOURCES@%$SOURCES%g
2084 s%@HEADERS@%$HEADERS%g
2085 s%@HAS_MSG_NOSIGNAL@%$HAS_MSG_NOSIGNAL%g
2086 s%@NEEDOPENH323PREFIX@%$NEEDOPENH323PREFIX%g
2087 s%@OPENH323INSTALLPREFIX@%$OPENH323INSTALLPREFIX%g
2092 cat >> $CONFIG_STATUS <<\EOF
2094 # Split the substitutions into bite-sized pieces for seds with
2095 # small command number limits, like on Digital OSF/1 and HP-UX.
2096 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2097 ac_file=1 # Number of current file.
2098 ac_beg=1 # First line for current file.
2099 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2102 while $ac_more_lines; do
2103 if test $ac_beg -gt 1; then
2104 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2106 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2108 if test ! -s conftest.s$ac_file; then
2110 rm -f conftest.s$ac_file
2112 if test -z "$ac_sed_cmds"; then
2113 ac_sed_cmds="sed -f conftest.s$ac_file"
2115 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2117 ac_file=`expr $ac_file + 1`
2119 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2122 if test -z "$ac_sed_cmds"; then
2127 cat >> $CONFIG_STATUS <<EOF
2129 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2131 cat >> $CONFIG_STATUS <<\EOF
2132 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2133 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2135 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2136 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2137 *) ac_file_in="${ac_file}.in" ;;
2140 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2142 # Remove last slash and all that follows it. Not all systems have dirname.
2143 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2144 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2145 # The file is in a subdirectory.
2146 test ! -d "$ac_dir" && mkdir "$ac_dir"
2147 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2148 # A "../" for each directory in $ac_dir_suffix.
2149 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2151 ac_dir_suffix= ac_dots=
2154 case "$ac_given_srcdir" in
2156 if test -z "$ac_dots"; then top_srcdir=.
2157 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2158 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2160 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2161 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2165 echo creating "$ac_file"
2167 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2169 *Makefile*) ac_comsub="1i\\
2170 # $configure_input" ;;
2174 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2176 s%@configure_input@%$configure_input%g
2177 s%@srcdir@%$srcdir%g
2178 s%@top_srcdir@%$top_srcdir%g
2179 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2184 cat >> $CONFIG_STATUS <<EOF
2187 cat >> $CONFIG_STATUS <<\EOF
2191 chmod +x $CONFIG_STATUS
2192 rm -fr confdefs* $ac_clean_files
2193 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1