From 4339e20c39d2013c2498ec92f684dcc3e60df3a1 Mon Sep 17 00:00:00 2001 From: sailer Date: Thu, 24 Jul 2003 11:17:12 +0000 Subject: [PATCH] Changed pas: Asynchronous Param_store*() with new thread. -- Benjamin Sailer --- allParam/ChangeLog | 5 + allParam/Makefile.am | 10 + allParam/Makefile.in | 35 +- allParam/ca/server/paramIntRecord.cc | 19 +- allParam/ca/server/paramStringRecord.cc | 18 +- allParam/ca/server/storeThread.c | 32 + allParam/ca/server/storeThread.h | 24 + allParam/configure | 2200 ++++++++++++----------- allParam/configure.in | 15 +- 9 files changed, 1330 insertions(+), 1028 deletions(-) create mode 100644 allParam/ca/server/storeThread.c create mode 100644 allParam/ca/server/storeThread.h diff --git a/allParam/ChangeLog b/allParam/ChangeLog index 88bab7f..bbf535f 100644 --- a/allParam/ChangeLog +++ b/allParam/ChangeLog @@ -1,3 +1,8 @@ +2003-07-24 Benjamin Sailer + + * Changed pas to fulfill Param_store*() asynchronously, returning + immediately (done by spawning a new thread). + 2003-07-23 Benjamin Sailer * Changed pas to dynamically allocate and expire parameters diff --git a/allParam/Makefile.am b/allParam/Makefile.am index fb757ec..a8295a5 100644 --- a/allParam/Makefile.am +++ b/allParam/Makefile.am @@ -52,6 +52,16 @@ pas_SOURCES += ca/server/paramRecordSet.cc pas_SOURCES += ca/server/paramStringRecord.cc pas_SOURCES += ca/server/record.cc pas_SOURCES += ca/server/paramServer.cc +pas_SOURCES += ca/server/storeThread.c + +noinst_HEADERS = ca/server/arrayDest.h +noinst_HEADERS += ca/server/paramBlobRecord.h +noinst_HEADERS += ca/server/paramFilenameRecord.h +noinst_HEADERS += ca/server/paramIntRecord.h +noinst_HEADERS += ca/server/paramRecordSet.h +noinst_HEADERS += ca/server/paramStringRecord.h +noinst_HEADERS += ca/server/record.h +noinst_HEADERS += ca/server/storeThread.h EXTRA_BUILT_SOURCES_MY = oraParam.c diff --git a/allParam/Makefile.in b/allParam/Makefile.in index ac3b87a..e0c4c7b 100644 --- a/allParam/Makefile.in +++ b/allParam/Makefile.in @@ -118,7 +118,9 @@ liboraParam_p_a_CFLAGS = -DPTHREADS libtclParam_a_CFLAGS = libtclParam_p_a_CFLAGS = -DPTHREADS -pas_SOURCES = ca/server/arrayDest.cc ca/server/paramBlobRecord.cc ca/server/paramFilenameRecord.cc ca/server/paramIntRecord.cc ca/server/paramRecordSet.cc ca/server/paramStringRecord.cc ca/server/record.cc ca/server/paramServer.cc +pas_SOURCES = ca/server/arrayDest.cc ca/server/paramBlobRecord.cc ca/server/paramFilenameRecord.cc ca/server/paramIntRecord.cc ca/server/paramRecordSet.cc ca/server/paramStringRecord.cc ca/server/record.cc ca/server/paramServer.cc ca/server/storeThread.c + +noinst_HEADERS = ca/server/arrayDest.h ca/server/paramBlobRecord.h ca/server/paramFilenameRecord.h ca/server/paramIntRecord.h ca/server/paramRecordSet.h ca/server/paramStringRecord.h ca/server/record.h ca/server/storeThread.h EXTRA_BUILT_SOURCES_MY = oraParam.c subdir = . @@ -167,7 +169,7 @@ PROGRAMS = $(bin_PROGRAMS) am_pas_OBJECTS = arrayDest.$(OBJEXT) paramBlobRecord.$(OBJEXT) \ paramFilenameRecord.$(OBJEXT) paramIntRecord.$(OBJEXT) \ paramRecordSet.$(OBJEXT) paramStringRecord.$(OBJEXT) \ - record.$(OBJEXT) paramServer.$(OBJEXT) + record.$(OBJEXT) paramServer.$(OBJEXT) storeThread.$(OBJEXT) pas_OBJECTS = $(am_pas_OBJECTS) pas_LDADD = $(LDADD) pas_DEPENDENCIES = @@ -195,7 +197,7 @@ am__depfiles_maybe = depfiles @AMDEP_TRUE@ ./$(DEPDIR)/paramRecordSet.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/paramServer.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/paramStringRecord.Po \ -@AMDEP_TRUE@ ./$(DEPDIR)/record.Po +@AMDEP_TRUE@ ./$(DEPDIR)/record.Po ./$(DEPDIR)/storeThread.Po COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) @@ -212,12 +214,13 @@ DIST_SOURCES = $(libcaParam_a_SOURCES) $(libcaParam_p_a_SOURCES) \ $(liboraParam_a_SOURCES) $(liboraParam_p_a_SOURCES) \ $(libtclParam_a_SOURCES) $(libtclParam_p_a_SOURCES) \ $(pas_SOURCES) -HEADERS = $(include_HEADERS) +HEADERS = $(include_HEADERS) $(noinst_HEADERS) -DIST_COMMON = README $(include_HEADERS) AUTHORS COPYING ChangeLog \ - INSTALL Makefile.am Makefile.in NEWS aclocal.m4 config.h.in \ - config/compile config/depcomp config/install-sh config/missing \ - config/mkinstalldirs configure configure.in +DIST_COMMON = README $(include_HEADERS) $(noinst_HEADERS) AUTHORS \ + COPYING ChangeLog INSTALL Makefile.am Makefile.in NEWS \ + aclocal.m4 config.h.in config/compile config/depcomp \ + config/install-sh config/missing config/mkinstalldirs configure \ + configure.in SOURCES = $(libcaParam_a_SOURCES) $(libcaParam_p_a_SOURCES) $(libfileParam_a_SOURCES) $(libfileParam_p_a_SOURCES) $(liboraParam_a_SOURCES) $(liboraParam_p_a_SOURCES) $(libtclParam_a_SOURCES) $(libtclParam_p_a_SOURCES) $(pas_SOURCES) all: config.h @@ -362,6 +365,7 @@ paramRecordSet.$(OBJEXT): ca/server/paramRecordSet.cc paramStringRecord.$(OBJEXT): ca/server/paramStringRecord.cc record.$(OBJEXT): ca/server/record.cc paramServer.$(OBJEXT): ca/server/paramServer.cc +storeThread.$(OBJEXT): ca/server/storeThread.c pas$(EXEEXT): $(pas_OBJECTS) $(pas_DEPENDENCIES) @rm -f pas$(EXEEXT) $(CXXLINK) $(pas_LDFLAGS) $(pas_OBJECTS) $(pas_LDADD) $(LIBS) @@ -388,6 +392,7 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/paramServer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/paramStringRecord.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/record.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/storeThread.Po@am__quote@ distclean-depend: -rm -rf ./$(DEPDIR) @@ -499,6 +504,18 @@ libtclParam_p_a-tclParam.obj: tcl/tclParam.c @AMDEP_TRUE@ depfile='$(DEPDIR)/libtclParam_p_a-tclParam.Po' tmpdepfile='$(DEPDIR)/libtclParam_p_a-tclParam.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libtclParam_p_a_CFLAGS) $(CFLAGS) -c -o libtclParam_p_a-tclParam.obj `cygpath -w tcl/tclParam.c` + +storeThread.o: ca/server/storeThread.c +@AMDEP_TRUE@ source='ca/server/storeThread.c' object='storeThread.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile='$(DEPDIR)/storeThread.Po' tmpdepfile='$(DEPDIR)/storeThread.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o storeThread.o `test -f 'ca/server/storeThread.c' || echo '$(srcdir)/'`ca/server/storeThread.c + +storeThread.obj: ca/server/storeThread.c +@AMDEP_TRUE@ source='ca/server/storeThread.c' object='storeThread.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile='$(DEPDIR)/storeThread.Po' tmpdepfile='$(DEPDIR)/storeThread.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o storeThread.obj `cygpath -w ca/server/storeThread.c` CCDEPMODE = @CCDEPMODE@ .cc.o: @@ -680,7 +697,7 @@ distcleancheck_listfiles = find . -type f -print distdir: $(DISTFILES) $(am__remove_distdir) mkdir $(distdir) - $(mkinstalldirs) $(distdir)/config + $(mkinstalldirs) $(distdir)/ca/server $(distdir)/config @list='$(DISTFILES)'; for file in $$list; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ diff --git a/allParam/ca/server/paramIntRecord.cc b/allParam/ca/server/paramIntRecord.cc index 1e90842..6fac611 100644 --- a/allParam/ca/server/paramIntRecord.cc +++ b/allParam/ca/server/paramIntRecord.cc @@ -1,5 +1,5 @@ -static const char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/allParam/ca/server/paramIntRecord.cc,v 1.14 2003-05-19 16:30:48 sailer Exp $"; -#define _POSIX_C_SOURCE 199509L +static const char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/allParam/ca/server/paramIntRecord.cc,v 1.15 2003-07-24 11:17:12 sailer Exp $"; +#define _POSIX_C_SOURCE 199506L #if HAVE_CONFIG_H #include @@ -8,7 +8,10 @@ static const char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuild extern "C" { #include + #include #include + + #include "storeThread.h" } #include "paramIntRecord.h" @@ -160,11 +163,19 @@ caStatus ParamIntRecord::write(const casCtx &ctx, const gdd &value) caStatus ParamIntRecord::write(const casCtx &ctx, gdd &value) #endif { + pthread_t threadS, *thread = &threadS; aitUint32 intValue; + ParamStoreIntArg *arg; value.getConvert(intValue); - - Param_storeInt(param, name, idx, (unsigned long int) intValue); + arg = new ParamStoreIntArg; + + arg->param = param; + arg->name = name; + arg->idx = idx; + arg->value = (unsigned long int) intValue; + pthread_create(thread, NULL, storeIntThread, arg); + pthread_detach(*thread); return S_cas_success; } diff --git a/allParam/ca/server/paramStringRecord.cc b/allParam/ca/server/paramStringRecord.cc index 68ba149..d5286fc 100644 --- a/allParam/ca/server/paramStringRecord.cc +++ b/allParam/ca/server/paramStringRecord.cc @@ -1,5 +1,5 @@ -static const char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/allParam/ca/server/paramStringRecord.cc,v 1.13 2003-05-19 16:30:48 sailer Exp $"; -#define _POSIX_C_SOURCE 199509L +static const char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/allParam/ca/server/paramStringRecord.cc,v 1.14 2003-07-24 11:17:12 sailer Exp $"; +#define _POSIX_C_SOURCE 199506L #if HAVE_CONFIG_H #include @@ -8,7 +8,10 @@ static const char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuild extern "C" { #include + #include #include + + #include "storeThread.h" } #include "paramStringRecord.h" @@ -181,10 +184,19 @@ caStatus ParamStringRecord::write(const casCtx &ctx, const gdd &value) caStatus ParamStringRecord::write(const casCtx &ctx, gdd &value) #endif { + pthread_t threadS, *thread = &threadS; aitString stringValue; + ParamStoreStringArg *arg; value.getConvert(stringValue); - Param_storeString(param, name, idx, (const char *) stringValue); + arg = new ParamStoreStringArg; + + arg->param = param; + arg->name = name; + arg->idx = idx; + arg->value = (const char *) stringValue; + pthread_create(thread, NULL, storeStringThread, arg); + pthread_detach(*thread); return S_cas_success; } diff --git a/allParam/ca/server/storeThread.c b/allParam/ca/server/storeThread.c new file mode 100644 index 0000000..e9ec151 --- /dev/null +++ b/allParam/ca/server/storeThread.c @@ -0,0 +1,32 @@ +static const char rcsId[] = "$Header:"; + +#define _POSIX_C_SOURCE 199506L + +#include + +#include + +#include "storeThread.h" + +void *storeIntThread(void *a) +{ + ParamStoreIntArg *arg; + + arg = a; + Param_storeInt(arg->param, arg->name, arg->idx, arg->value); + + free(arg); + return NULL; +} + +void *storeStringThread(void *a) +{ + ParamStoreStringArg *arg; + + arg = a; + Param_storeString(arg->param, arg->name, arg->idx, arg->value); + + free(arg); + return NULL; +} + diff --git a/allParam/ca/server/storeThread.h b/allParam/ca/server/storeThread.h new file mode 100644 index 0000000..1d214fb --- /dev/null +++ b/allParam/ca/server/storeThread.h @@ -0,0 +1,24 @@ +#ifndef STORETHREAD_H +#define STORETHREAD_H + +#include + +typedef struct ParamStoreIntArgS { + const Param *param; + const char *name; + const char *idx; + unsigned long int value; +} ParamStoreIntArg; + +typedef struct ParamStoreStringArgS { + const Param *param; + const char *name; + const char *idx; + const char *value; +} ParamStoreStringArg; + +void *storeIntThread(void *a); +void *storeStringThread(void *a); + +#endif /* STORETHREAD_H */ + diff --git a/allParam/configure b/allParam/configure index 3814720..fe42e6a 100644 --- a/allParam/configure +++ b/allParam/configure @@ -3731,434 +3731,190 @@ fi fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then +if test "x$enable_server" = "xyes" +then + echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 +echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6 +if test "${ac_cv_search_pthread_create+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -#include "confdefs.h" -#include - Syntax error -_ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - : -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether non-existent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -#include "confdefs.h" -#include -_ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -echo "$as_me:$LINENO: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6 -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF + ac_func_search_save_LIBS=$LIBS +ac_cv_search_pthread_create=no +cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" -#include - Syntax error -_ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - : -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.$ac_ext - # OK, works on sane cases. Now check whether non-existent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -#include "confdefs.h" -#include +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_create (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +pthread_create (); + ; + return 0; +} _ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 -if test "${ac_cv_header_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -#include "confdefs.h" -#include -#include -#include -#include - -_ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_cv_header_stdc=yes + (exit $ac_status); }; }; then + ac_cv_search_pthread_create="none required" else echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_header_stdc=no -fi -rm -f conftest.err conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -#include "confdefs.h" -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - +cat conftest.$ac_ext >&5 fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +if test "$ac_cv_search_pthread_create" = no; then + for ac_lib in pthread; do + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -#include "confdefs.h" -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_create (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } #endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - exit(2); - exit (0); +pthread_create (); + ; + return 0; } _ACEOF -rm -f conftest$ac_exeext +rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - : + ac_cv_search_pthread_create="-l$ac_lib" +break else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -( exit $ac_status ) -ac_cv_header_stdc=no -fi -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext + done fi +LIBS=$ac_func_search_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -echo "${ECHO_T}$ac_cv_header_stdc" >&6 -if test $ac_cv_header_stdc = yes; then - -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF +echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 +echo "${ECHO_T}$ac_cv_search_pthread_create" >&6 +if test "$ac_cv_search_pthread_create" != no; then + test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS" fi -# On IRIX 5.3, sys/types and inttypes.h are conflicting. - - - - - - - - + if test "x$ac_cv_search_pthread_create" = "xno" + then + LDFLAGS="-mthreads $LDFLAGS" -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then +echo "$as_me:$LINENO: checking for PTHREAD_pthread_create in -lcompat" >&5 +echo $ECHO_N "checking for PTHREAD_pthread_create in -lcompat... $ECHO_C" >&6 +if test "${ac_cv_lib_compat_PTHREAD_pthread_create+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcompat $LIBS" +cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" -$ac_includes_default -#include <$ac_header> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char PTHREAD_pthread_create (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +PTHREAD_pthread_create (); + ; + return 0; +} _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_Header=yes" + ac_cv_lib_compat_PTHREAD_pthread_create=yes else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -eval "$as_ac_Header=no" +ac_cv_lib_compat_PTHREAD_pthread_create=no fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -if test `eval echo '${'$as_ac_Header'}'` = yes; then +echo "$as_me:$LINENO: result: $ac_cv_lib_compat_PTHREAD_pthread_create" >&5 +echo "${ECHO_T}$ac_cv_lib_compat_PTHREAD_pthread_create" >&6 +if test $ac_cv_lib_compat_PTHREAD_pthread_create = yes; then cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define HAVE_LIBCOMPAT 1 _ACEOF -fi - -done - - - - -# -# Enabling all correct header file and library checks to include param -# + LIBS="-lcompat $LIBS" -# -# First see if we need pthread extension for our libraries ... -# -if test "x" = "xpthread" -then - pthread="_p" else - pthread="" + { { echo "$as_me:$LINENO: error: No multithreading available" >&5 +echo "$as_me: error: No multithreading available" >&2;} + { (exit 1); exit 1; }; } fi -# -# Give us te checking output -# -echo "$as_me:$LINENO: checking whether param source $enable_paramsrc is valid" >&5 -echo $ECHO_N "checking whether param source $enable_paramsrc is valid... $ECHO_C" >&6 - -if test "x$enable_paramsrc" = "xca" -then -# -# ca, so we need -lCom, -lca, -lcaParam / -lcaParam_p -# + fi -echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 # # This is a weird method to check the epics version, but ask them for @@ -4665,13 +4421,14 @@ fi fi -echo "$as_me:$LINENO: checking for library containing Tcl_CreateInterp" >&5 -echo $ECHO_N "checking for library containing Tcl_CreateInterp... $ECHO_C" >&6 -if test "${ac_cv_search_Tcl_CreateInterp+set}" = set; then + + echo "$as_me:$LINENO: checking for library containing getprotobyname" >&5 +echo $ECHO_N "checking for library containing getprotobyname... $ECHO_C" >&6 +if test "${ac_cv_search_getprotobyname+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS -ac_cv_search_Tcl_CreateInterp=no +ac_cv_search_getprotobyname=no cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" @@ -4682,7 +4439,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char Tcl_CreateInterp (); +char getprotobyname (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -4692,7 +4449,7 @@ char Tcl_CreateInterp (); int main () { -Tcl_CreateInterp (); +getprotobyname (); ; return 0; } @@ -4709,14 +4466,122 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_Tcl_CreateInterp="none required" + ac_cv_search_getprotobyname="none required" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -if test "$ac_cv_search_Tcl_CreateInterp" = no; then - for ac_lib in tcl tcl8.3 tcl8.2 tcl8.0 tcl7.4; do +if test "$ac_cv_search_getprotobyname" = no; then + for ac_lib in netinet; do + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char getprotobyname (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +getprotobyname (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_search_getprotobyname="-l$ac_lib" +break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext + done +fi +LIBS=$ac_func_search_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_search_getprotobyname" >&5 +echo "${ECHO_T}$ac_cv_search_getprotobyname" >&6 +if test "$ac_cv_search_getprotobyname" != no; then + test "$ac_cv_search_getprotobyname" = "none required" || LIBS="$ac_cv_search_getprotobyname $LIBS" + +fi + + echo "$as_me:$LINENO: checking for library containing syslog" >&5 +echo $ECHO_N "checking for library containing syslog... $ECHO_C" >&6 +if test "${ac_cv_search_syslog+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_func_search_save_LIBS=$LIBS +ac_cv_search_syslog=no +cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char syslog (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +syslog (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_search_syslog="none required" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +if test "$ac_cv_search_syslog" = no; then + for ac_lib in netinet; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" @@ -4728,7 +4593,70 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char Tcl_CreateInterp (); +char syslog (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +syslog (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_search_syslog="-l$ac_lib" +break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext + done +fi +LIBS=$ac_func_search_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_search_syslog" >&5 +echo "${ECHO_T}$ac_cv_search_syslog" >&6 +if test "$ac_cv_search_syslog" != no; then + test "$ac_cv_search_syslog" = "none required" || LIBS="$ac_cv_search_syslog $LIBS" + +fi + + +echo "$as_me:$LINENO: checking for SYSLOG_syslog in -lcompat" >&5 +echo $ECHO_N "checking for SYSLOG_syslog in -lcompat... $ECHO_C" >&6 +if test "${ac_cv_lib_compat_SYSLOG_syslog+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcompat $LIBS" +cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char SYSLOG_syslog (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -4738,7 +4666,7 @@ char Tcl_CreateInterp (); int main () { -Tcl_CreateInterp (); +SYSLOG_syslog (); ; return 0; } @@ -4755,383 +4683,636 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_Tcl_CreateInterp="-l$ac_lib" -break + ac_cv_lib_compat_SYSLOG_syslog=yes else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 +ac_cv_lib_compat_SYSLOG_syslog=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext - done -fi -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_search_Tcl_CreateInterp" >&5 -echo "${ECHO_T}$ac_cv_search_Tcl_CreateInterp" >&6 -if test "$ac_cv_search_Tcl_CreateInterp" != no; then - test "$ac_cv_search_Tcl_CreateInterp" = "none required" || LIBS="$ac_cv_search_Tcl_CreateInterp $LIBS" +echo "$as_me:$LINENO: result: $ac_cv_lib_compat_SYSLOG_syslog" >&5 +echo "${ECHO_T}$ac_cv_lib_compat_SYSLOG_syslog" >&6 +if test $ac_cv_lib_compat_SYSLOG_syslog = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBCOMPAT 1 +_ACEOF + + LIBS="-lcompat $LIBS" fi -as_ac_Lib=`echo "ac_cv_lib_caParam$pthread''_conSetupParam" | $as_tr_sh` -echo "$as_me:$LINENO: checking for conSetupParam in -lcaParam$pthread" >&5 -echo $ECHO_N "checking for conSetupParam in -lcaParam$pthread... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Lib+set}\" = set"; then + + if test "x$epics_release" = "x313" + then + LDFLAGS="-L$with_epics/lib/$HOST_ARCH $LDFLAGS" + elif test "x$epics_release" = "x314" + then + LDFLAGS="-L$with_epics/lib/$EPICS_HOST_ARCH $LDFLAGS" + fi + LIBS="-lcas -lgdd $LIBS" + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcaParam$pthread $LIBS" -cat >conftest.$ac_ext <<_ACEOF + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" +#include + Syntax error +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + : +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether non-existent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" +#include +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +echo "$as_me:$LINENO: result: $CPP" >&5 +echo "${ECHO_T}$CPP" >&6 +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" +#include + Syntax error +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + : +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether non-existent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" +#include +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + : +else + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} + { (exit 1); exit 1; }; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +echo "$as_me:$LINENO: checking for ANSI C header files" >&5 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 +if test "${ac_cv_header_stdc+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" +#include +#include +#include +#include -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char conSetupParam (); -#ifdef F77_DUMMY_MAIN -# ifdef __cplusplus - extern "C" -# endif - int F77_DUMMY_MAIN() { return 1; } -#endif -int -main () -{ -conSetupParam (); - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_Lib=yes" + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -eval "$as_ac_Lib=no" + ac_cpp_err=yes fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +if test -z "$ac_cpp_err"; then + ac_cv_header_stdc=yes +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_header_stdc=no fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 -if test `eval echo '${'$as_ac_Lib'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_LIBcaParam$pthread" | $as_tr_cpp` 1 -_ACEOF +rm -f conftest.err conftest.$ac_ext - LIBS="-lcaParam$pthread $LIBS" +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" +#include +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "memchr" >/dev/null 2>&1; then + : +else + ac_cv_header_stdc=no fi +rm -f conftest* +fi +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" +#include -elif test "x$enable_paramsrc" = "xfile" -then +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "free" >/dev/null 2>&1; then + : +else + ac_cv_header_stdc=no +fi +rm -f conftest* -echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 +fi -as_ac_Lib=`echo "ac_cv_lib_fileParam$pthread''_conSetupParam" | $as_tr_sh` -echo "$as_me:$LINENO: checking for conSetupParam in -lfileParam$pthread" >&5 -echo $ECHO_N "checking for conSetupParam in -lfileParam$pthread... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Lib+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then + : else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lfileParam$pthread $LIBS" -cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char conSetupParam (); -#ifdef F77_DUMMY_MAIN -# ifdef __cplusplus - extern "C" -# endif - int F77_DUMMY_MAIN() { return 1; } +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { -conSetupParam (); - ; - return 0; + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + exit(2); + exit (0); } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext +rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_Lib=yes" + : else - echo "$as_me: failed program was:" >&5 + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -eval "$as_ac_Lib=no" +( exit $ac_status ) +ac_cv_header_stdc=no +fi +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 -if test `eval echo '${'$as_ac_Lib'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_LIBfileParam$pthread" | $as_tr_cpp` 1 -_ACEOF - - LIBS="-lfileParam$pthread $LIBS" - fi +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 +echo "${ECHO_T}$ac_cv_header_stdc" >&6 +if test $ac_cv_header_stdc = yes; then +cat >>confdefs.h <<\_ACEOF +#define STDC_HEADERS 1 +_ACEOF +fi -elif test "x$enable_paramsrc" = "xora" -then +# On IRIX 5.3, sys/types and inttypes.h are conflicting. -echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 -# -# Zero-order ... -# -echo "$as_me:$LINENO: checking whether we have a valid oracle home" >&5 -echo $ECHO_N "checking whether we have a valid oracle home... $ECHO_C" >&6 -if test -d "$with_oracle/" -then -LDFLAGS="-L$with_oracle/lib $LDFLAGS" -echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 -else -echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -{ { echo "$as_me:$LINENO: error: Missing valid Oracle" >&5 -echo "$as_me: error: Missing valid Oracle" >&2;} - { (exit 1); exit 1; }; } -fi -echo "$as_me:$LINENO: checking for library containing sqlcxt" >&5 -echo $ECHO_N "checking for library containing sqlcxt... $ECHO_C" >&6 -if test "${ac_cv_search_sqlcxt+set}" = set; then +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_func_search_save_LIBS=$LIBS -ac_cv_search_sqlcxt=no -cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -#include "confdefs.h" - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char sqlcxt (); -#ifdef F77_DUMMY_MAIN -# ifdef __cplusplus - extern "C" -# endif - int F77_DUMMY_MAIN() { return 1; } -#endif -int -main () -{ -sqlcxt (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_search_sqlcxt="none required" -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -if test "$ac_cv_search_sqlcxt" = no; then - for ac_lib in clntsh; do - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" +$ac_includes_default -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char sqlcxt (); -#ifdef F77_DUMMY_MAIN -# ifdef __cplusplus - extern "C" -# endif - int F77_DUMMY_MAIN() { return 1; } -#endif -int -main () -{ -sqlcxt (); - ; - return 0; -} +#include <$ac_header> _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_sqlcxt="-l$ac_lib" -break + eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 +eval "$as_ac_Header=no" fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext - done -fi -LIBS=$ac_func_search_save_LIBS +rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:$LINENO: result: $ac_cv_search_sqlcxt" >&5 -echo "${ECHO_T}$ac_cv_search_sqlcxt" >&6 -if test "$ac_cv_search_sqlcxt" != no; then - test "$ac_cv_search_sqlcxt" = "none required" || LIBS="$ac_cv_search_sqlcxt $LIBS" +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF fi +done -as_ac_Lib=`echo "ac_cv_lib_oraParam$pthread''_conSetupParam" | $as_tr_sh` -echo "$as_me:$LINENO: checking for conSetupParam in -loraParam$pthread" >&5 -echo $ECHO_N "checking for conSetupParam in -loraParam$pthread... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Lib+set}\" = set"; then + +if test "${ac_cv_header_aitTypes_h+set}" = set; then + echo "$as_me:$LINENO: checking for aitTypes.h" >&5 +echo $ECHO_N "checking for aitTypes.h... $ECHO_C" >&6 +if test "${ac_cv_header_aitTypes_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: $ac_cv_header_aitTypes_h" >&5 +echo "${ECHO_T}$ac_cv_header_aitTypes_h" >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-loraParam$pthread $LIBS" + # Is the header compilable? +echo "$as_me:$LINENO: checking aitTypes.h usability" >&5 +echo $ECHO_N "checking aitTypes.h usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char conSetupParam (); -#ifdef F77_DUMMY_MAIN -# ifdef __cplusplus - extern "C" -# endif - int F77_DUMMY_MAIN() { return 1; } -#endif -int -main () -{ -conSetupParam (); - ; - return 0; -} +$ac_includes_default +#include _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_Lib=yes" + ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -eval "$as_ac_Lib=no" -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +ac_header_compiler=no fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 -if test `eval echo '${'$as_ac_Lib'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_LIBoraParam$pthread" | $as_tr_cpp` 1 +rm -f conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking aitTypes.h presence" >&5 +echo $ECHO_N "checking aitTypes.h presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" +#include _ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc in + yes:no ) + { echo "$as_me:$LINENO: WARNING: aitTypes.h: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: aitTypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: aitTypes.h: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: aitTypes.h: proceeding with the preprocessor's result" >&2;};; + no:yes ) + { echo "$as_me:$LINENO: WARNING: aitTypes.h: present but cannot be compiled" >&5 +echo "$as_me: WARNING: aitTypes.h: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: aitTypes.h: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: aitTypes.h: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: aitTypes.h: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: aitTypes.h: proceeding with the preprocessor's result" >&2;};; +esac +echo "$as_me:$LINENO: checking for aitTypes.h" >&5 +echo $ECHO_N "checking for aitTypes.h... $ECHO_C" >&6 +if test "${ac_cv_header_aitTypes_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_header_aitTypes_h=$ac_header_preproc +fi +echo "$as_me:$LINENO: result: $ac_cv_header_aitTypes_h" >&5 +echo "${ECHO_T}$ac_cv_header_aitTypes_h" >&6 + +fi +if test $ac_cv_header_aitTypes_h = yes; then + : +else + { { echo "$as_me:$LINENO: error: Missing header file" >&5 +echo "$as_me: error: Missing header file" >&2;} + { (exit 1); exit 1; }; } +fi - LIBS="-loraParam$pthread $LIBS" fi -elif test "x$enable_paramsrc" = "xtcl" +# +# Enabling all correct header file and library checks to include param +# + +# +# First see if we need pthread extension for our libraries ... +# +if test "xpthread" = "xpthread" +then + pthread="_p" +else + pthread="" +fi + +# +# Give us te checking output +# +echo "$as_me:$LINENO: checking whether param source $enable_paramsrc is valid" >&5 +echo $ECHO_N "checking whether param source $enable_paramsrc is valid... $ECHO_C" >&6 + +if test "x$enable_paramsrc" = "xca" +then +# +# ca, so we need -lCom, -lca, -lcaParam / -lcaParam_p +# + +echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +# +# This is a weird method to check the epics version, but ask them for +# a better way ... +# +echo "$as_me:$LINENO: checking whether we have a valid epics release" >&5 +echo $ECHO_N "checking whether we have a valid epics release... $ECHO_C" >&6 + +if test -x "$with_epics/startup/EpicsHostArch" +then +epics_release="314" + +echo "$as_me:$LINENO: result: $epics_release" >&5 +echo "${ECHO_T}$epics_release" >&6 +cat >>confdefs.h <<\_ACEOF +#define EPICS_RELEASE 314 +_ACEOF + + +EPICS_HOST_ARCH=$($with_epics/startup/EpicsHostArch) +HOST_ARCH=$($with_epics/startup/HostArch) +elif test -x "$with_epics/startup/HostArch" +then +epics_release="313" + +echo "$as_me:$LINENO: result: $epics_release" >&5 +echo "${ECHO_T}$epics_release" >&6 +cat >>confdefs.h <<\_ACEOF +#define EPICS_RELEASE 313 +_ACEOF + + +HOST_ARCH=$($with_epics/startup/HostArch) +else + +echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +{ { echo "$as_me:$LINENO: error: Missing valid EPICS version" >&5 +echo "$as_me: error: Missing valid EPICS version" >&2;} + { (exit 1); exit 1; }; } + +fi + +CPPFLAGS="$CPPFLAGS -I$with_epics/include" +if test "x$epics_release" = "x314" then +LDFLAGS="$LDFLAGS -L$with_epics/lib/$EPICS_HOST_ARCH" +CPPFLAGS="$CPPFLAGS -I$with_epics/include/os/$HOST_ARCH" +else +LDFLAGS="$LDFLAGS -L$with_epics/lib/$HOST_ARCH" +CPPFLAGS="$CPPFLAGS -I$with_epics/include/os/$HOST_ARCH" +fi -echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 -echo "$as_me:$LINENO: checking for library containing Tcl_CreateInterp" >&5 -echo $ECHO_N "checking for library containing Tcl_CreateInterp... $ECHO_C" >&6 -if test "${ac_cv_search_Tcl_CreateInterp+set}" = set; then +echo "$as_me:$LINENO: checking for library containing fdmgr_add_fd" >&5 +echo $ECHO_N "checking for library containing fdmgr_add_fd... $ECHO_C" >&6 +if test "${ac_cv_search_fdmgr_add_fd+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS -ac_cv_search_Tcl_CreateInterp=no +ac_cv_search_fdmgr_add_fd=no cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" @@ -5142,7 +5323,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char Tcl_CreateInterp (); +char fdmgr_add_fd (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -5152,7 +5333,7 @@ char Tcl_CreateInterp (); int main () { -Tcl_CreateInterp (); +fdmgr_add_fd (); ; return 0; } @@ -5169,14 +5350,14 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_Tcl_CreateInterp="none required" + ac_cv_search_fdmgr_add_fd="none required" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -if test "$ac_cv_search_Tcl_CreateInterp" = no; then - for ac_lib in tcl tcl8.3 tcl8.2 tcl8.0 tcl7.4; do +if test "$ac_cv_search_fdmgr_add_fd" = no; then + for ac_lib in Com; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" @@ -5188,7 +5369,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char Tcl_CreateInterp (); +char fdmgr_add_fd (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -5198,7 +5379,7 @@ char Tcl_CreateInterp (); int main () { -Tcl_CreateInterp (); +fdmgr_add_fd (); ; return 0; } @@ -5215,7 +5396,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_Tcl_CreateInterp="-l$ac_lib" + ac_cv_search_fdmgr_add_fd="-l$ac_lib" break else echo "$as_me: failed program was:" >&5 @@ -5226,22 +5407,25 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi LIBS=$ac_func_search_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_search_Tcl_CreateInterp" >&5 -echo "${ECHO_T}$ac_cv_search_Tcl_CreateInterp" >&6 -if test "$ac_cv_search_Tcl_CreateInterp" != no; then - test "$ac_cv_search_Tcl_CreateInterp" = "none required" || LIBS="$ac_cv_search_Tcl_CreateInterp $LIBS" +echo "$as_me:$LINENO: result: $ac_cv_search_fdmgr_add_fd" >&5 +echo "${ECHO_T}$ac_cv_search_fdmgr_add_fd" >&6 +if test "$ac_cv_search_fdmgr_add_fd" != no; then + test "$ac_cv_search_fdmgr_add_fd" = "none required" || LIBS="$ac_cv_search_fdmgr_add_fd $LIBS" fi -as_ac_Lib=`echo "ac_cv_lib_tclParam$pthread''_conSetupParam" | $as_tr_sh` -echo "$as_me:$LINENO: checking for conSetupParam in -ltclParam$pthread" >&5 -echo $ECHO_N "checking for conSetupParam in -ltclParam$pthread... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Lib+set}\" = set"; then +if test "x$ac_cv_search_fdmgr_add_fd" = "xno" +then + unset ac_cv_search_fdmgr_add_fd + + echo "$as_me:$LINENO: checking for library containing fdmgr_add_fd" >&5 +echo $ECHO_N "checking for library containing fdmgr_add_fd... $ECHO_C" >&6 +if test "${ac_cv_search_fdmgr_add_fd+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ltclParam$pthread $LIBS" + ac_func_search_save_LIBS=$LIBS +ac_cv_search_fdmgr_add_fd=no cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" @@ -5252,7 +5436,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char conSetupParam (); +char fdmgr_add_fd (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -5262,7 +5446,7 @@ char conSetupParam (); int main () { -conSetupParam (); +fdmgr_add_fd (); ; return 0; } @@ -5279,208 +5463,82 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_Lib=yes" + ac_cv_search_fdmgr_add_fd="none required" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -eval "$as_ac_Lib=no" fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 -if test `eval echo '${'$as_ac_Lib'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_LIBtclParam$pthread" | $as_tr_cpp` 1 -_ACEOF - - LIBS="-ltclParam$pthread $LIBS" - -fi - - - -else - -echo "$as_me:$LINENO: result: invalid param source $enable_paramsrc" >&5 -echo "${ECHO_T}invalid param source $enable_paramsrc" >&6 -{ { echo "$as_me:$LINENO: error: cannot get parameter source for pas and test program" >&5 -echo "$as_me: error: cannot get parameter source for pas and test program" >&2;} - { (exit 1); exit 1; }; } - -fi -# -# Last but not least we need the header file ... -# - -if test "${ac_cv_header_allParam_h+set}" = set; then - echo "$as_me:$LINENO: checking for allParam.h" >&5 -echo $ECHO_N "checking for allParam.h... $ECHO_C" >&6 -if test "${ac_cv_header_allParam_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -echo "$as_me:$LINENO: result: $ac_cv_header_allParam_h" >&5 -echo "${ECHO_T}$ac_cv_header_allParam_h" >&6 -else - # Is the header compilable? -echo "$as_me:$LINENO: checking allParam.h usability" >&5 -echo $ECHO_N "checking allParam.h usability... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF +if test "$ac_cv_search_fdmgr_add_fd" = no; then + for ac_lib in Com; do + LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS" + cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" -$ac_includes_default -#include + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char fdmgr_add_fd (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +fdmgr_add_fd (); + ; + return 0; +} _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_header_compiler=yes + ac_cv_search_fdmgr_add_fd="-l$ac_lib" +break else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -ac_header_compiler=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6 - -# Is the header present? -echo "$as_me:$LINENO: checking allParam.h presence" >&5 -echo $ECHO_N "checking allParam.h presence... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -#include "confdefs.h" -#include -_ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes fi -if test -z "$ac_cpp_err"; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6 - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc in - yes:no ) - { echo "$as_me:$LINENO: WARNING: allParam.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: allParam.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: allParam.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: allParam.h: proceeding with the preprocessor's result" >&2;};; - no:yes ) - { echo "$as_me:$LINENO: WARNING: allParam.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: allParam.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: allParam.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: allParam.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: allParam.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: allParam.h: proceeding with the preprocessor's result" >&2;};; -esac -echo "$as_me:$LINENO: checking for allParam.h" >&5 -echo $ECHO_N "checking for allParam.h... $ECHO_C" >&6 -if test "${ac_cv_header_allParam_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_allParam_h=$ac_header_preproc +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext + done fi -echo "$as_me:$LINENO: result: $ac_cv_header_allParam_h" >&5 -echo "${ECHO_T}$ac_cv_header_allParam_h" >&6 - +LIBS=$ac_func_search_save_LIBS fi +echo "$as_me:$LINENO: result: $ac_cv_search_fdmgr_add_fd" >&5 +echo "${ECHO_T}$ac_cv_search_fdmgr_add_fd" >&6 +if test "$ac_cv_search_fdmgr_add_fd" != no; then + test "$ac_cv_search_fdmgr_add_fd" = "none required" || LIBS="$ac_cv_search_fdmgr_add_fd $LIBS" - - - -if test "x$enable_server" = "xyes" -then - -# -# This is a weird method to check the epics version, but ask them for -# a better way ... -# -echo "$as_me:$LINENO: checking whether we have a valid epics release" >&5 -echo $ECHO_N "checking whether we have a valid epics release... $ECHO_C" >&6 - -if test -x "$with_epics/startup/EpicsHostArch" -then -epics_release="314" - -echo "$as_me:$LINENO: result: $epics_release" >&5 -echo "${ECHO_T}$epics_release" >&6 -cat >>confdefs.h <<\_ACEOF -#define EPICS_RELEASE 314 -_ACEOF - - -EPICS_HOST_ARCH=$($with_epics/startup/EpicsHostArch) -HOST_ARCH=$($with_epics/startup/HostArch) -elif test -x "$with_epics/startup/HostArch" -then -epics_release="313" - -echo "$as_me:$LINENO: result: $epics_release" >&5 -echo "${ECHO_T}$epics_release" >&6 -cat >>confdefs.h <<\_ACEOF -#define EPICS_RELEASE 313 -_ACEOF - - -HOST_ARCH=$($with_epics/startup/HostArch) else - -echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -{ { echo "$as_me:$LINENO: error: Missing valid EPICS version" >&5 -echo "$as_me: error: Missing valid EPICS version" >&2;} - { (exit 1); exit 1; }; } - + LIBS="-lCom $LIBS" fi -CPPFLAGS="$CPPFLAGS -I$with_epics/include" -if test "x$epics_release" = "x314" -then -LDFLAGS="$LDFLAGS -L$with_epics/lib/$EPICS_HOST_ARCH" -CPPFLAGS="$CPPFLAGS -I$with_epics/include/os/$HOST_ARCH" -else -LDFLAGS="$LDFLAGS -L$with_epics/lib/$HOST_ARCH" -CPPFLAGS="$CPPFLAGS -I$with_epics/include/os/$HOST_ARCH" + fi -echo "$as_me:$LINENO: checking for library containing fdmgr_add_fd" >&5 -echo $ECHO_N "checking for library containing fdmgr_add_fd... $ECHO_C" >&6 -if test "${ac_cv_search_fdmgr_add_fd+set}" = set; then +echo "$as_me:$LINENO: checking for library containing ca_array_get" >&5 +echo $ECHO_N "checking for library containing ca_array_get... $ECHO_C" >&6 +if test "${ac_cv_search_ca_array_get+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS -ac_cv_search_fdmgr_add_fd=no +ac_cv_search_ca_array_get=no cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" @@ -5491,7 +5549,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char fdmgr_add_fd (); +char ca_array_get (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -5501,7 +5559,7 @@ char fdmgr_add_fd (); int main () { -fdmgr_add_fd (); +ca_array_get (); ; return 0; } @@ -5518,14 +5576,14 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_fdmgr_add_fd="none required" + ac_cv_search_ca_array_get="none required" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -if test "$ac_cv_search_fdmgr_add_fd" = no; then - for ac_lib in Com; do +if test "$ac_cv_search_ca_array_get" = no; then + for ac_lib in ca; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" @@ -5537,7 +5595,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char fdmgr_add_fd (); +char ca_array_get (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -5547,7 +5605,7 @@ char fdmgr_add_fd (); int main () { -fdmgr_add_fd (); +ca_array_get (); ; return 0; } @@ -5564,7 +5622,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_fdmgr_add_fd="-l$ac_lib" + ac_cv_search_ca_array_get="-l$ac_lib" break else echo "$as_me: failed program was:" >&5 @@ -5575,25 +5633,25 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi LIBS=$ac_func_search_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_search_fdmgr_add_fd" >&5 -echo "${ECHO_T}$ac_cv_search_fdmgr_add_fd" >&6 -if test "$ac_cv_search_fdmgr_add_fd" != no; then - test "$ac_cv_search_fdmgr_add_fd" = "none required" || LIBS="$ac_cv_search_fdmgr_add_fd $LIBS" +echo "$as_me:$LINENO: result: $ac_cv_search_ca_array_get" >&5 +echo "${ECHO_T}$ac_cv_search_ca_array_get" >&6 +if test "$ac_cv_search_ca_array_get" != no; then + test "$ac_cv_search_ca_array_get" = "none required" || LIBS="$ac_cv_search_ca_array_get $LIBS" fi -if test "x$ac_cv_search_fdmgr_add_fd" = "xno" +if test "x$ac_cv_search_ca_array_get" = "xno" then - unset ac_cv_search_fdmgr_add_fd + unset ac_cv_search_ca_array_get - echo "$as_me:$LINENO: checking for library containing fdmgr_add_fd" >&5 -echo $ECHO_N "checking for library containing fdmgr_add_fd... $ECHO_C" >&6 -if test "${ac_cv_search_fdmgr_add_fd+set}" = set; then + echo "$as_me:$LINENO: checking for library containing ca_array_get" >&5 +echo $ECHO_N "checking for library containing ca_array_get... $ECHO_C" >&6 +if test "${ac_cv_search_ca_array_get+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS -ac_cv_search_fdmgr_add_fd=no +ac_cv_search_ca_array_get=no cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" @@ -5604,7 +5662,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char fdmgr_add_fd (); +char ca_array_get (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -5614,7 +5672,7 @@ char fdmgr_add_fd (); int main () { -fdmgr_add_fd (); +ca_array_get (); ; return 0; } @@ -5631,14 +5689,14 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_fdmgr_add_fd="none required" + ac_cv_search_ca_array_get="none required" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -if test "$ac_cv_search_fdmgr_add_fd" = no; then - for ac_lib in Com; do +if test "$ac_cv_search_ca_array_get" = no; then + for ac_lib in ca; do LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" @@ -5650,7 +5708,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char fdmgr_add_fd (); +char ca_array_get (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -5660,7 +5718,7 @@ char fdmgr_add_fd (); int main () { -fdmgr_add_fd (); +ca_array_get (); ; return 0; } @@ -5677,7 +5735,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_fdmgr_add_fd="-l$ac_lib" + ac_cv_search_ca_array_get="-l$ac_lib" break else echo "$as_me: failed program was:" >&5 @@ -5688,25 +5746,26 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi LIBS=$ac_func_search_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_search_fdmgr_add_fd" >&5 -echo "${ECHO_T}$ac_cv_search_fdmgr_add_fd" >&6 -if test "$ac_cv_search_fdmgr_add_fd" != no; then - test "$ac_cv_search_fdmgr_add_fd" = "none required" || LIBS="$ac_cv_search_fdmgr_add_fd $LIBS" +echo "$as_me:$LINENO: result: $ac_cv_search_ca_array_get" >&5 +echo "${ECHO_T}$ac_cv_search_ca_array_get" >&6 +if test "$ac_cv_search_ca_array_get" != no; then + test "$ac_cv_search_ca_array_get" = "none required" || LIBS="$ac_cv_search_ca_array_get $LIBS" else - LIBS="-lCom $LIBS" + LIBS="-lca $LIBS" fi fi -echo "$as_me:$LINENO: checking for library containing ca_array_get" >&5 -echo $ECHO_N "checking for library containing ca_array_get... $ECHO_C" >&6 -if test "${ac_cv_search_ca_array_get+set}" = set; then + +echo "$as_me:$LINENO: checking for library containing Tcl_CreateInterp" >&5 +echo $ECHO_N "checking for library containing Tcl_CreateInterp... $ECHO_C" >&6 +if test "${ac_cv_search_Tcl_CreateInterp+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS -ac_cv_search_ca_array_get=no +ac_cv_search_Tcl_CreateInterp=no cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" @@ -5717,7 +5776,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char ca_array_get (); +char Tcl_CreateInterp (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -5727,7 +5786,7 @@ char ca_array_get (); int main () { -ca_array_get (); +Tcl_CreateInterp (); ; return 0; } @@ -5744,14 +5803,14 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_ca_array_get="none required" + ac_cv_search_Tcl_CreateInterp="none required" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -if test "$ac_cv_search_ca_array_get" = no; then - for ac_lib in ca; do +if test "$ac_cv_search_Tcl_CreateInterp" = no; then + for ac_lib in tcl tcl8.3 tcl8.2 tcl8.0 tcl7.4; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" @@ -5763,7 +5822,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char ca_array_get (); +char Tcl_CreateInterp (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -5773,7 +5832,7 @@ char ca_array_get (); int main () { -ca_array_get (); +Tcl_CreateInterp (); ; return 0; } @@ -5790,7 +5849,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_ca_array_get="-l$ac_lib" + ac_cv_search_Tcl_CreateInterp="-l$ac_lib" break else echo "$as_me: failed program was:" >&5 @@ -5801,25 +5860,95 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi LIBS=$ac_func_search_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_search_ca_array_get" >&5 -echo "${ECHO_T}$ac_cv_search_ca_array_get" >&6 -if test "$ac_cv_search_ca_array_get" != no; then - test "$ac_cv_search_ca_array_get" = "none required" || LIBS="$ac_cv_search_ca_array_get $LIBS" +echo "$as_me:$LINENO: result: $ac_cv_search_Tcl_CreateInterp" >&5 +echo "${ECHO_T}$ac_cv_search_Tcl_CreateInterp" >&6 +if test "$ac_cv_search_Tcl_CreateInterp" != no; then + test "$ac_cv_search_Tcl_CreateInterp" = "none required" || LIBS="$ac_cv_search_Tcl_CreateInterp $LIBS" fi -if test "x$ac_cv_search_ca_array_get" = "xno" +as_ac_Lib=`echo "ac_cv_lib_caParam$pthread''_conSetupParam" | $as_tr_sh` +echo "$as_me:$LINENO: checking for conSetupParam in -lcaParam$pthread" >&5 +echo $ECHO_N "checking for conSetupParam in -lcaParam$pthread... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Lib+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcaParam$pthread $LIBS" +cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char conSetupParam (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +conSetupParam (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_Lib=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$as_ac_Lib=no" +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 +if test `eval echo '${'$as_ac_Lib'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_LIBcaParam$pthread" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lcaParam$pthread $LIBS" + +fi + + + +elif test "x$enable_paramsrc" = "xfile" then - unset ac_cv_search_ca_array_get - echo "$as_me:$LINENO: checking for library containing ca_array_get" >&5 -echo $ECHO_N "checking for library containing ca_array_get... $ECHO_C" >&6 -if test "${ac_cv_search_ca_array_get+set}" = set; then +echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +as_ac_Lib=`echo "ac_cv_lib_fileParam$pthread''_conSetupParam" | $as_tr_sh` +echo "$as_me:$LINENO: checking for conSetupParam in -lfileParam$pthread" >&5 +echo $ECHO_N "checking for conSetupParam in -lfileParam$pthread... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Lib+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_func_search_save_LIBS=$LIBS -ac_cv_search_ca_array_get=no + ac_check_lib_save_LIBS=$LIBS +LIBS="-lfileParam$pthread $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" @@ -5830,7 +5959,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char ca_array_get (); +char conSetupParam (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -5840,7 +5969,7 @@ char ca_array_get (); int main () { -ca_array_get (); +conSetupParam (); ; return 0; } @@ -5857,16 +5986,66 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_ca_array_get="none required" + eval "$as_ac_Lib=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$as_ac_Lib=no" +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 +if test `eval echo '${'$as_ac_Lib'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_LIBfileParam$pthread" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lfileParam$pthread $LIBS" + +fi + + + +elif test "x$enable_paramsrc" = "xora" +then + +echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +# +# Zero-order ... +# +echo "$as_me:$LINENO: checking whether we have a valid oracle home" >&5 +echo $ECHO_N "checking whether we have a valid oracle home... $ECHO_C" >&6 + +if test -d "$with_oracle/" +then +LDFLAGS="-L$with_oracle/lib $LDFLAGS" + +echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +else + +echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +{ { echo "$as_me:$LINENO: error: Missing valid Oracle" >&5 +echo "$as_me: error: Missing valid Oracle" >&2;} + { (exit 1); exit 1; }; } + +fi + + +echo "$as_me:$LINENO: checking for library containing sqlcxt" >&5 +echo $ECHO_N "checking for library containing sqlcxt... $ECHO_C" >&6 +if test "${ac_cv_search_sqlcxt+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -if test "$ac_cv_search_ca_array_get" = no; then - for ac_lib in ca; do - LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS" - cat >conftest.$ac_ext <<_ACEOF + ac_func_search_save_LIBS=$LIBS +ac_cv_search_sqlcxt=no +cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" @@ -5876,7 +6055,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char ca_array_get (); +char sqlcxt (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -5886,7 +6065,7 @@ char ca_array_get (); int main () { -ca_array_get (); +sqlcxt (); ; return 0; } @@ -5903,39 +6082,16 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_ca_array_get="-l$ac_lib" -break + ac_cv_search_sqlcxt="none required" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext - done -fi -LIBS=$ac_func_search_save_LIBS -fi -echo "$as_me:$LINENO: result: $ac_cv_search_ca_array_get" >&5 -echo "${ECHO_T}$ac_cv_search_ca_array_get" >&6 -if test "$ac_cv_search_ca_array_get" != no; then - test "$ac_cv_search_ca_array_get" = "none required" || LIBS="$ac_cv_search_ca_array_get $LIBS" - -else - LIBS="-lca $LIBS" -fi - - -fi - - - - echo "$as_me:$LINENO: checking for library containing getprotobyname" >&5 -echo $ECHO_N "checking for library containing getprotobyname... $ECHO_C" >&6 -if test "${ac_cv_search_getprotobyname+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$LIBS -ac_cv_search_getprotobyname=no -cat >conftest.$ac_ext <<_ACEOF +if test "$ac_cv_search_sqlcxt" = no; then + for ac_lib in clntsh; do + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" @@ -5945,7 +6101,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char getprotobyname (); +char sqlcxt (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -5955,7 +6111,7 @@ char getprotobyname (); int main () { -getprotobyname (); +sqlcxt (); ; return 0; } @@ -5972,16 +6128,34 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_getprotobyname="none required" + ac_cv_search_sqlcxt="-l$ac_lib" +break else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -if test "$ac_cv_search_getprotobyname" = no; then - for ac_lib in netinet; do - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - cat >conftest.$ac_ext <<_ACEOF + done +fi +LIBS=$ac_func_search_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_search_sqlcxt" >&5 +echo "${ECHO_T}$ac_cv_search_sqlcxt" >&6 +if test "$ac_cv_search_sqlcxt" != no; then + test "$ac_cv_search_sqlcxt" = "none required" || LIBS="$ac_cv_search_sqlcxt $LIBS" + +fi + + +as_ac_Lib=`echo "ac_cv_lib_oraParam$pthread''_conSetupParam" | $as_tr_sh` +echo "$as_me:$LINENO: checking for conSetupParam in -loraParam$pthread" >&5 +echo $ECHO_N "checking for conSetupParam in -loraParam$pthread... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Lib+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-loraParam$pthread $LIBS" +cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" @@ -5991,7 +6165,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char getprotobyname (); +char conSetupParam (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -6001,7 +6175,7 @@ char getprotobyname (); int main () { -getprotobyname (); +conSetupParam (); ; return 0; } @@ -6018,31 +6192,40 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_getprotobyname="-l$ac_lib" -break + eval "$as_ac_Lib=yes" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 +eval "$as_ac_Lib=no" fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext - done -fi -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_search_getprotobyname" >&5 -echo "${ECHO_T}$ac_cv_search_getprotobyname" >&6 -if test "$ac_cv_search_getprotobyname" != no; then - test "$ac_cv_search_getprotobyname" = "none required" || LIBS="$ac_cv_search_getprotobyname $LIBS" +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 +if test `eval echo '${'$as_ac_Lib'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_LIBoraParam$pthread" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-loraParam$pthread $LIBS" fi - echo "$as_me:$LINENO: checking for library containing syslog" >&5 -echo $ECHO_N "checking for library containing syslog... $ECHO_C" >&6 -if test "${ac_cv_search_syslog+set}" = set; then + + +elif test "x$enable_paramsrc" = "xtcl" +then + +echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +echo "$as_me:$LINENO: checking for library containing Tcl_CreateInterp" >&5 +echo $ECHO_N "checking for library containing Tcl_CreateInterp... $ECHO_C" >&6 +if test "${ac_cv_search_Tcl_CreateInterp+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS -ac_cv_search_syslog=no +ac_cv_search_Tcl_CreateInterp=no cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" @@ -6053,7 +6236,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char syslog (); +char Tcl_CreateInterp (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -6063,7 +6246,7 @@ char syslog (); int main () { -syslog (); +Tcl_CreateInterp (); ; return 0; } @@ -6080,14 +6263,14 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_syslog="none required" + ac_cv_search_Tcl_CreateInterp="none required" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -if test "$ac_cv_search_syslog" = no; then - for ac_lib in netinet; do +if test "$ac_cv_search_Tcl_CreateInterp" = no; then + for ac_lib in tcl tcl8.3 tcl8.2 tcl8.0 tcl7.4; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" @@ -6099,7 +6282,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char syslog (); +char Tcl_CreateInterp (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -6109,7 +6292,7 @@ char syslog (); int main () { -syslog (); +Tcl_CreateInterp (); ; return 0; } @@ -6126,7 +6309,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_syslog="-l$ac_lib" + ac_cv_search_Tcl_CreateInterp="-l$ac_lib" break else echo "$as_me: failed program was:" >&5 @@ -6137,21 +6320,22 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi LIBS=$ac_func_search_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_search_syslog" >&5 -echo "${ECHO_T}$ac_cv_search_syslog" >&6 -if test "$ac_cv_search_syslog" != no; then - test "$ac_cv_search_syslog" = "none required" || LIBS="$ac_cv_search_syslog $LIBS" +echo "$as_me:$LINENO: result: $ac_cv_search_Tcl_CreateInterp" >&5 +echo "${ECHO_T}$ac_cv_search_Tcl_CreateInterp" >&6 +if test "$ac_cv_search_Tcl_CreateInterp" != no; then + test "$ac_cv_search_Tcl_CreateInterp" = "none required" || LIBS="$ac_cv_search_Tcl_CreateInterp $LIBS" fi -echo "$as_me:$LINENO: checking for SYSLOG_syslog in -lcompat" >&5 -echo $ECHO_N "checking for SYSLOG_syslog in -lcompat... $ECHO_C" >&6 -if test "${ac_cv_lib_compat_SYSLOG_syslog+set}" = set; then +as_ac_Lib=`echo "ac_cv_lib_tclParam$pthread''_conSetupParam" | $as_tr_sh` +echo "$as_me:$LINENO: checking for conSetupParam in -ltclParam$pthread" >&5 +echo $ECHO_N "checking for conSetupParam in -ltclParam$pthread... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Lib+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lcompat $LIBS" +LIBS="-ltclParam$pthread $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" @@ -6162,7 +6346,7 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char SYSLOG_syslog (); +char conSetupParam (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -6172,7 +6356,7 @@ char SYSLOG_syslog (); int main () { -SYSLOG_syslog (); +conSetupParam (); ; return 0; } @@ -6189,53 +6373,58 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_compat_SYSLOG_syslog=yes + eval "$as_ac_Lib=yes" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -ac_cv_lib_compat_SYSLOG_syslog=no +eval "$as_ac_Lib=no" fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_lib_compat_SYSLOG_syslog" >&5 -echo "${ECHO_T}$ac_cv_lib_compat_SYSLOG_syslog" >&6 -if test $ac_cv_lib_compat_SYSLOG_syslog = yes; then +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 +if test `eval echo '${'$as_ac_Lib'}'` = yes; then cat >>confdefs.h <<_ACEOF -#define HAVE_LIBCOMPAT 1 +#define `echo "HAVE_LIBtclParam$pthread" | $as_tr_cpp` 1 _ACEOF - LIBS="-lcompat $LIBS" + LIBS="-ltclParam$pthread $LIBS" fi - if test "x$epics_release" = "x313" - then - LDFLAGS="-L$with_epics/lib/$HOST_ARCH $LDFLAGS" - elif test "x$epics_release" = "x314" - then - LDFLAGS="-L$with_epics/lib/$EPICS_HOST_ARCH $LDFLAGS" - fi - LIBS="-lcas -lgdd $LIBS" - if test "${ac_cv_header_aitTypes_h+set}" = set; then - echo "$as_me:$LINENO: checking for aitTypes.h" >&5 -echo $ECHO_N "checking for aitTypes.h... $ECHO_C" >&6 -if test "${ac_cv_header_aitTypes_h+set}" = set; then +else + +echo "$as_me:$LINENO: result: invalid param source $enable_paramsrc" >&5 +echo "${ECHO_T}invalid param source $enable_paramsrc" >&6 +{ { echo "$as_me:$LINENO: error: cannot get parameter source for pas and test program" >&5 +echo "$as_me: error: cannot get parameter source for pas and test program" >&2;} + { (exit 1); exit 1; }; } + +fi +# +# Last but not least we need the header file ... +# + +if test "${ac_cv_header_allParam_h+set}" = set; then + echo "$as_me:$LINENO: checking for allParam.h" >&5 +echo $ECHO_N "checking for allParam.h... $ECHO_C" >&6 +if test "${ac_cv_header_allParam_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi -echo "$as_me:$LINENO: result: $ac_cv_header_aitTypes_h" >&5 -echo "${ECHO_T}$ac_cv_header_aitTypes_h" >&6 +echo "$as_me:$LINENO: result: $ac_cv_header_allParam_h" >&5 +echo "${ECHO_T}$ac_cv_header_allParam_h" >&6 else # Is the header compilable? -echo "$as_me:$LINENO: checking aitTypes.h usability" >&5 -echo $ECHO_N "checking aitTypes.h usability... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking allParam.h usability" >&5 +echo $ECHO_N "checking allParam.h usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" $ac_includes_default -#include +#include _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 @@ -6260,12 +6449,12 @@ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? -echo "$as_me:$LINENO: checking aitTypes.h presence" >&5 -echo $ECHO_N "checking aitTypes.h presence... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking allParam.h presence" >&5 +echo $ECHO_N "checking allParam.h presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" -#include +#include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 @@ -6297,39 +6486,32 @@ echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc in yes:no ) - { echo "$as_me:$LINENO: WARNING: aitTypes.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: aitTypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: aitTypes.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: aitTypes.h: proceeding with the preprocessor's result" >&2;};; + { echo "$as_me:$LINENO: WARNING: allParam.h: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: allParam.h: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: allParam.h: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: allParam.h: proceeding with the preprocessor's result" >&2;};; no:yes ) - { echo "$as_me:$LINENO: WARNING: aitTypes.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: aitTypes.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: aitTypes.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: aitTypes.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: aitTypes.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: aitTypes.h: proceeding with the preprocessor's result" >&2;};; + { echo "$as_me:$LINENO: WARNING: allParam.h: present but cannot be compiled" >&5 +echo "$as_me: WARNING: allParam.h: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: allParam.h: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: allParam.h: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: allParam.h: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: allParam.h: proceeding with the preprocessor's result" >&2;};; esac -echo "$as_me:$LINENO: checking for aitTypes.h" >&5 -echo $ECHO_N "checking for aitTypes.h... $ECHO_C" >&6 -if test "${ac_cv_header_aitTypes_h+set}" = set; then +echo "$as_me:$LINENO: checking for allParam.h" >&5 +echo $ECHO_N "checking for allParam.h... $ECHO_C" >&6 +if test "${ac_cv_header_allParam_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_cv_header_aitTypes_h=$ac_header_preproc + ac_cv_header_allParam_h=$ac_header_preproc fi -echo "$as_me:$LINENO: result: $ac_cv_header_aitTypes_h" >&5 -echo "${ECHO_T}$ac_cv_header_aitTypes_h" >&6 +echo "$as_me:$LINENO: result: $ac_cv_header_allParam_h" >&5 +echo "${ECHO_T}$ac_cv_header_allParam_h" >&6 fi -if test $ac_cv_header_aitTypes_h = yes; then - : -else - { { echo "$as_me:$LINENO: error: Missing header file" >&5 -echo "$as_me: error: Missing header file" >&2;} - { (exit 1); exit 1; }; } -fi -fi + echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 diff --git a/allParam/configure.in b/allParam/configure.in index 53f5ac6..5e34412 100644 --- a/allParam/configure.in +++ b/allParam/configure.in @@ -130,11 +130,17 @@ then AC_ERROR([No multithreading available])) fi -had_CHECK_PARAM([$enable_paramsrc],[],[], - AC_ERROR([cannot get parameter source for pas and test program])) - if test "x$enable_server" = "xyes" then + dnl Multithreading + AC_SEARCH_LIBS([pthread_create], [pthread]) + if test "x$ac_cv_search_pthread_create" = "xno" + then + LDFLAGS="-mthreads $LDFLAGS" + AC_CHECK_LIB([compat], [PTHREAD_pthread_create],, + AC_ERROR([No multithreading available])) + fi + had_EPICS_CLIENT([$with_epics]) AC_SEARCH_LIBS(getprotobyname, netinet) @@ -153,6 +159,9 @@ then AC_CHECK_HEADER([aitTypes.h],,AC_ERROR([Missing header file])) fi +had_CHECK_PARAM([$enable_paramsrc],[pthread],[], + AC_ERROR([cannot get parameter source for pas and test program])) + dnl dnl Checks for header files. dnl -- 2.43.0