Skip to content

Commit 324144d

Browse files
committed
コンフィグレーションでISAMを使用しているかどうかで、テストなどを分けられるようにしました。
Added configuration switch to check if currently using ISAM or not.
1 parent 7537fe8 commit 324144d

File tree

16 files changed

+182
-35
lines changed

16 files changed

+182
-35
lines changed

Makefile.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ SHELL = @SHELL@
179179
STRIP = @STRIP@
180180
USE_NLS = @USE_NLS@
181181
VERSION = @VERSION@
182+
WITH_ISAM_FALSE = @WITH_ISAM_FALSE@
183+
WITH_ISAM_TRUE = @WITH_ISAM_TRUE@
182184
XGETTEXT = @XGETTEXT@
183185
ac_ct_AR = @ac_ct_AR@
184186
ac_ct_AS = @ac_ct_AS@

bin/Makefile.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ SHELL = @SHELL@
160160
STRIP = @STRIP@
161161
USE_NLS = @USE_NLS@
162162
VERSION = @VERSION@
163+
WITH_ISAM_FALSE = @WITH_ISAM_FALSE@
164+
WITH_ISAM_TRUE = @WITH_ISAM_TRUE@
163165
XGETTEXT = @XGETTEXT@
164166
ac_ct_AR = @ac_ct_AR@
165167
ac_ct_AS = @ac_ct_AS@

cobc/Makefile.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ SHELL = @SHELL@
167167
STRIP = @STRIP@
168168
USE_NLS = @USE_NLS@
169169
VERSION = @VERSION@
170+
WITH_ISAM_FALSE = @WITH_ISAM_FALSE@
171+
WITH_ISAM_TRUE = @WITH_ISAM_TRUE@
170172
XGETTEXT = @XGETTEXT@
171173
ac_ct_AR = @ac_ct_AR@
172174
ac_ct_AS = @ac_ct_AS@

config/Makefile.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ SHELL = @SHELL@
149149
STRIP = @STRIP@
150150
USE_NLS = @USE_NLS@
151151
VERSION = @VERSION@
152+
WITH_ISAM_FALSE = @WITH_ISAM_FALSE@
153+
WITH_ISAM_TRUE = @WITH_ISAM_TRUE@
152154
XGETTEXT = @XGETTEXT@
153155
ac_ct_AR = @ac_ct_AR@
154156
ac_ct_AS = @ac_ct_AS@

configure

Lines changed: 50 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ ac_includes_default="\
465465
# include <unistd.h>
466466
#endif"
467467

468-
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP I18N_UTF8_TRUE I18N_UTF8_FALSE LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXXCPP LIBTOOL ALLOCA LIBICONV LTLIBICONV LIBOBJS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTLLIBS LIBINTL LTLIBINTL POSUB COB_CC COB_CFLAGS COB_LDFLAGS COB_LIBS COB_CONFIG_DIR COB_COPY_DIR COB_LIBRARY_PATH COB_MODULE_EXT COBC_LIBS LIBCOB_CFLAGS LIBCOB_LIBS COB_EXPORT_DYN COB_PIC_FLAGS COB_SHARED_OPT COB_BIGENDIAN COB_FIX_LIB COB_HAS_INLINE COB_M4_FLAGS LTLIBOBJS'
468+
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP WITH_ISAM_TRUE WITH_ISAM_FALSE I18N_UTF8_TRUE I18N_UTF8_FALSE LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXXCPP LIBTOOL ALLOCA LIBICONV LTLIBICONV LIBOBJS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTLLIBS LIBINTL LTLIBINTL POSUB COB_CC COB_CFLAGS COB_LDFLAGS COB_LIBS COB_CONFIG_DIR COB_COPY_DIR COB_LIBRARY_PATH COB_MODULE_EXT COBC_LIBS LIBCOB_CFLAGS LIBCOB_LIBS COB_EXPORT_DYN COB_PIC_FLAGS COB_SHARED_OPT COB_BIGENDIAN COB_FIX_LIB COB_HAS_INLINE COB_M4_FLAGS LTLIBOBJS'
469469
ac_subst_files=''
470470

471471
# Initialize some variables set by options.
@@ -3729,6 +3729,7 @@ fi
37293729
_ACEOF
37303730

37313731
LIBCOB_LIBS="$LIBCOB_LIBS -lifisam -lifisamx"
3732+
WITH_ISAM_DEFINED=yes
37323733
fi
37333734
fi;
37343735

@@ -3977,6 +3978,7 @@ fi
39773978
_ACEOF
39783979

39793980
LIBCOB_LIBS="$LIBCOB_LIBS -ldisam"
3981+
WITH_ISAM_DEFINED=yes
39803982
fi
39813983
fi;
39823984
fi
@@ -4226,10 +4228,22 @@ fi
42264228
_ACEOF
42274229

42284230
LIBCOB_LIBS="$LIBCOB_LIBS -lvbisam"
4231+
WITH_ISAM_DEFINED=yes
42294232
fi
42304233
fi;
42314234
fi
42324235

4236+
4237+
4238+
if test x$WITH_ISAM_DEFINED = xyes; then
4239+
WITH_ISAM_TRUE=
4240+
WITH_ISAM_FALSE='#'
4241+
else
4242+
WITH_ISAM_TRUE='#'
4243+
WITH_ISAM_FALSE=
4244+
fi
4245+
4246+
42334247
LIBDB=""
42344248

42354249
if test "$with_cisam" != "yes" -a "$with_disam" != "yes" -a "$with_vbisam" != "yes"
@@ -4277,6 +4291,9 @@ _ACEOF
42774291
fi;
42784292
fi;
42794293
fi;
4294+
cp tests/jp-compat_notisam.at tests/jp-compat.at
4295+
else
4296+
cp tests/jp-compat_isam.at tests/jp-compat.at
42804297
fi
42814298

42824299
#AC_ARG_WITH(lfs64,
@@ -5121,7 +5138,7 @@ ia64-*-hpux*)
51215138
;;
51225139
*-*-irix6*)
51235140
# Find out which ABI we are using.
5124-
echo '#line 5124 "configure"' > conftest.$ac_ext
5141+
echo '#line 5141 "configure"' > conftest.$ac_ext
51255142
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51265143
(eval $ac_compile) 2>&5
51275144
ac_status=$?
@@ -6863,11 +6880,11 @@ else
68636880
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
68646881
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
68656882
-e 's:$: $lt_compiler_flag:'`
6866-
(eval echo "\"\$as_me:6866: $lt_compile\"" >&5)
6883+
(eval echo "\"\$as_me:6883: $lt_compile\"" >&5)
68676884
(eval "$lt_compile" 2>conftest.err)
68686885
ac_status=$?
68696886
cat conftest.err >&5
6870-
echo "$as_me:6870: \$? = $ac_status" >&5
6887+
echo "$as_me:6887: \$? = $ac_status" >&5
68716888
if (exit $ac_status) && test -s "$ac_outfile"; then
68726889
# The compiler can only warn and ignore the option if not recognized
68736890
# So say no if there are warnings other than the usual output.
@@ -7153,11 +7170,11 @@ else
71537170
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
71547171
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
71557172
-e 's:$: $lt_compiler_flag:'`
7156-
(eval echo "\"\$as_me:7156: $lt_compile\"" >&5)
7173+
(eval echo "\"\$as_me:7173: $lt_compile\"" >&5)
71577174
(eval "$lt_compile" 2>conftest.err)
71587175
ac_status=$?
71597176
cat conftest.err >&5
7160-
echo "$as_me:7160: \$? = $ac_status" >&5
7177+
echo "$as_me:7177: \$? = $ac_status" >&5
71617178
if (exit $ac_status) && test -s "$ac_outfile"; then
71627179
# The compiler can only warn and ignore the option if not recognized
71637180
# So say no if there are warnings other than the usual output.
@@ -7257,11 +7274,11 @@ else
72577274
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
72587275
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
72597276
-e 's:$: $lt_compiler_flag:'`
7260-
(eval echo "\"\$as_me:7260: $lt_compile\"" >&5)
7277+
(eval echo "\"\$as_me:7277: $lt_compile\"" >&5)
72617278
(eval "$lt_compile" 2>out/conftest.err)
72627279
ac_status=$?
72637280
cat out/conftest.err >&5
7264-
echo "$as_me:7264: \$? = $ac_status" >&5
7281+
echo "$as_me:7281: \$? = $ac_status" >&5
72657282
if (exit $ac_status) && test -s out/conftest2.$ac_objext
72667283
then
72677284
# The compiler can only warn and ignore the option if not recognized
@@ -9643,7 +9660,7 @@ else
96439660
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
96449661
lt_status=$lt_dlunknown
96459662
cat > conftest.$ac_ext <<EOF
9646-
#line 9646 "configure"
9663+
#line 9663 "configure"
96479664
#include "confdefs.h"
96489665

96499666
#if HAVE_DLFCN_H
@@ -9743,7 +9760,7 @@ else
97439760
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
97449761
lt_status=$lt_dlunknown
97459762
cat > conftest.$ac_ext <<EOF
9746-
#line 9746 "configure"
9763+
#line 9763 "configure"
97479764
#include "confdefs.h"
97489765

97499766
#if HAVE_DLFCN_H
@@ -12167,11 +12184,11 @@ else
1216712184
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1216812185
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1216912186
-e 's:$: $lt_compiler_flag:'`
12170-
(eval echo "\"\$as_me:12170: $lt_compile\"" >&5)
12187+
(eval echo "\"\$as_me:12187: $lt_compile\"" >&5)
1217112188
(eval "$lt_compile" 2>conftest.err)
1217212189
ac_status=$?
1217312190
cat conftest.err >&5
12174-
echo "$as_me:12174: \$? = $ac_status" >&5
12191+
echo "$as_me:12191: \$? = $ac_status" >&5
1217512192
if (exit $ac_status) && test -s "$ac_outfile"; then
1217612193
# The compiler can only warn and ignore the option if not recognized
1217712194
# So say no if there are warnings other than the usual output.
@@ -12271,11 +12288,11 @@ else
1227112288
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1227212289
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1227312290
-e 's:$: $lt_compiler_flag:'`
12274-
(eval echo "\"\$as_me:12274: $lt_compile\"" >&5)
12291+
(eval echo "\"\$as_me:12291: $lt_compile\"" >&5)
1227512292
(eval "$lt_compile" 2>out/conftest.err)
1227612293
ac_status=$?
1227712294
cat out/conftest.err >&5
12278-
echo "$as_me:12278: \$? = $ac_status" >&5
12295+
echo "$as_me:12295: \$? = $ac_status" >&5
1227912296
if (exit $ac_status) && test -s out/conftest2.$ac_objext
1228012297
then
1228112298
# The compiler can only warn and ignore the option if not recognized
@@ -13833,11 +13850,11 @@ else
1383313850
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1383413851
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1383513852
-e 's:$: $lt_compiler_flag:'`
13836-
(eval echo "\"\$as_me:13836: $lt_compile\"" >&5)
13853+
(eval echo "\"\$as_me:13853: $lt_compile\"" >&5)
1383713854
(eval "$lt_compile" 2>conftest.err)
1383813855
ac_status=$?
1383913856
cat conftest.err >&5
13840-
echo "$as_me:13840: \$? = $ac_status" >&5
13857+
echo "$as_me:13857: \$? = $ac_status" >&5
1384113858
if (exit $ac_status) && test -s "$ac_outfile"; then
1384213859
# The compiler can only warn and ignore the option if not recognized
1384313860
# So say no if there are warnings other than the usual output.
@@ -13937,11 +13954,11 @@ else
1393713954
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1393813955
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1393913956
-e 's:$: $lt_compiler_flag:'`
13940-
(eval echo "\"\$as_me:13940: $lt_compile\"" >&5)
13957+
(eval echo "\"\$as_me:13957: $lt_compile\"" >&5)
1394113958
(eval "$lt_compile" 2>out/conftest.err)
1394213959
ac_status=$?
1394313960
cat out/conftest.err >&5
13944-
echo "$as_me:13944: \$? = $ac_status" >&5
13961+
echo "$as_me:13961: \$? = $ac_status" >&5
1394513962
if (exit $ac_status) && test -s out/conftest2.$ac_objext
1394613963
then
1394713964
# The compiler can only warn and ignore the option if not recognized
@@ -16129,11 +16146,11 @@ else
1612916146
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1613016147
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1613116148
-e 's:$: $lt_compiler_flag:'`
16132-
(eval echo "\"\$as_me:16132: $lt_compile\"" >&5)
16149+
(eval echo "\"\$as_me:16149: $lt_compile\"" >&5)
1613316150
(eval "$lt_compile" 2>conftest.err)
1613416151
ac_status=$?
1613516152
cat conftest.err >&5
16136-
echo "$as_me:16136: \$? = $ac_status" >&5
16153+
echo "$as_me:16153: \$? = $ac_status" >&5
1613716154
if (exit $ac_status) && test -s "$ac_outfile"; then
1613816155
# The compiler can only warn and ignore the option if not recognized
1613916156
# So say no if there are warnings other than the usual output.
@@ -16419,11 +16436,11 @@ else
1641916436
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1642016437
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1642116438
-e 's:$: $lt_compiler_flag:'`
16422-
(eval echo "\"\$as_me:16422: $lt_compile\"" >&5)
16439+
(eval echo "\"\$as_me:16439: $lt_compile\"" >&5)
1642316440
(eval "$lt_compile" 2>conftest.err)
1642416441
ac_status=$?
1642516442
cat conftest.err >&5
16426-
echo "$as_me:16426: \$? = $ac_status" >&5
16443+
echo "$as_me:16443: \$? = $ac_status" >&5
1642716444
if (exit $ac_status) && test -s "$ac_outfile"; then
1642816445
# The compiler can only warn and ignore the option if not recognized
1642916446
# So say no if there are warnings other than the usual output.
@@ -16523,11 +16540,11 @@ else
1652316540
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1652416541
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1652516542
-e 's:$: $lt_compiler_flag:'`
16526-
(eval echo "\"\$as_me:16526: $lt_compile\"" >&5)
16543+
(eval echo "\"\$as_me:16543: $lt_compile\"" >&5)
1652716544
(eval "$lt_compile" 2>out/conftest.err)
1652816545
ac_status=$?
1652916546
cat out/conftest.err >&5
16530-
echo "$as_me:16530: \$? = $ac_status" >&5
16547+
echo "$as_me:16547: \$? = $ac_status" >&5
1653116548
if (exit $ac_status) && test -s out/conftest2.$ac_objext
1653216549
then
1653316550
# The compiler can only warn and ignore the option if not recognized
@@ -26945,6 +26962,13 @@ echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2694526962
Usually this means the macro was only invoked conditionally." >&2;}
2694626963
{ (exit 1); exit 1; }; }
2694726964
fi
26965+
if test -z "${WITH_ISAM_TRUE}" && test -z "${WITH_ISAM_FALSE}"; then
26966+
{ { echo "$as_me:$LINENO: error: conditional \"WITH_ISAM\" was never defined.
26967+
Usually this means the macro was only invoked conditionally." >&5
26968+
echo "$as_me: error: conditional \"WITH_ISAM\" was never defined.
26969+
Usually this means the macro was only invoked conditionally." >&2;}
26970+
{ (exit 1); exit 1; }; }
26971+
fi
2694826972
if test -z "${I18N_UTF8_TRUE}" && test -z "${I18N_UTF8_FALSE}"; then
2694926973
{ { echo "$as_me:$LINENO: error: conditional \"I18N_UTF8\" was never defined.
2695026974
Usually this means the macro was only invoked conditionally." >&5
@@ -27548,6 +27572,8 @@ s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
2754827572
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
2754927573
s,@CPP@,$CPP,;t t
2755027574
s,@EGREP@,$EGREP,;t t
27575+
s,@WITH_ISAM_TRUE@,$WITH_ISAM_TRUE,;t t
27576+
s,@WITH_ISAM_FALSE@,$WITH_ISAM_FALSE,;t t
2755127577
s,@I18N_UTF8_TRUE@,$I18N_UTF8_TRUE,;t t
2755227578
s,@I18N_UTF8_FALSE@,$I18N_UTF8_FALSE,;t t
2755327579
s,@LN_S@,$LN_S,;t t

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ AC_ARG_WITH(cisam,
116116
AC_CHECK_LIB([ifisam], [isopen], , AC_MSG_ERROR(libifisam is required for CISAM), [ifisamx])
117117
AC_DEFINE(WITH_CISAM)
118118
LIBCOB_LIBS="$LIBCOB_LIBS -lifisam -lifisamx"
119+
WITH_ISAM_DEFINED=yes
119120
fi ], [])
120121

121122
if test "$with_cisam" != "yes"
@@ -128,6 +129,7 @@ then
128129
AC_CHECK_LIB([disam], [isopen], , AC_MSG_ERROR(libdisam is required for DISAM))
129130
AC_DEFINE(WITH_DISAM)
130131
LIBCOB_LIBS="$LIBCOB_LIBS -ldisam"
132+
WITH_ISAM_DEFINED=yes
131133
fi ], [])
132134
fi
133135

@@ -141,9 +143,12 @@ AC_ARG_WITH(vbisam,
141143
AC_CHECK_LIB([vbisam], [isopen], , AC_MSG_ERROR(libvbisam is required for VBISAM))
142144
AC_DEFINE(WITH_VBISAM)
143145
LIBCOB_LIBS="$LIBCOB_LIBS -lvbisam"
146+
WITH_ISAM_DEFINED=yes
144147
fi ], [])
145148
fi
146149

150+
AM_CONDITIONAL(WITH_ISAM, test x$WITH_ISAM_DEFINED = xyes)
151+
147152
LIBDB=""
148153

149154
if test "$with_cisam" != "yes" -a "$with_disam" != "yes" -a "$with_vbisam" != "yes"
@@ -167,6 +172,9 @@ then
167172
fi ],
168173
[ LIBDB="3"
169174
AC_DEFINE(WITH_DB, 3) ]) ]) ])
175+
cp tests/jp-compat_notisam.at tests/jp-compat.at
176+
else
177+
cp tests/jp-compat_isam.at tests/jp-compat.at
170178
fi
171179

172180
#AC_ARG_WITH(lfs64,

copy/Makefile.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ SHELL = @SHELL@
149149
STRIP = @STRIP@
150150
USE_NLS = @USE_NLS@
151151
VERSION = @VERSION@
152+
WITH_ISAM_FALSE = @WITH_ISAM_FALSE@
153+
WITH_ISAM_TRUE = @WITH_ISAM_TRUE@
152154
XGETTEXT = @XGETTEXT@
153155
ac_ct_AR = @ac_ct_AR@
154156
ac_ct_AS = @ac_ct_AS@

lib/Makefile.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ SHELL = @SHELL@
162162
STRIP = @STRIP@
163163
USE_NLS = @USE_NLS@
164164
VERSION = @VERSION@
165+
WITH_ISAM_FALSE = @WITH_ISAM_FALSE@
166+
WITH_ISAM_TRUE = @WITH_ISAM_TRUE@
165167
XGETTEXT = @XGETTEXT@
166168
ac_ct_AR = @ac_ct_AR@
167169
ac_ct_AS = @ac_ct_AS@

libcob/Makefile.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ SHELL = @SHELL@
173173
STRIP = @STRIP@
174174
USE_NLS = @USE_NLS@
175175
VERSION = @VERSION@
176+
WITH_ISAM_FALSE = @WITH_ISAM_FALSE@
177+
WITH_ISAM_TRUE = @WITH_ISAM_TRUE@
176178
XGETTEXT = @XGETTEXT@
177179
ac_ct_AR = @ac_ct_AR@
178180
ac_ct_AS = @ac_ct_AS@

libcob/fileio.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ static int relative_delete (cob_file *f);
285285

286286
struct indexfile;
287287

288+
#if defined(WITH_CISAM) || defined(WITH_DISAM) || defined(WITH_VBISAM)
289+
288290
static int extract_key (
289291
struct indexfile *fh
290292
, int ix_cob_key
@@ -296,6 +298,8 @@ static int keycmp (
296298
, const void *pb_rec
297299
, const void *pb_key);
298300

301+
#endif
302+
299303
#if defined(WITH_DB) || defined(WITH_CISAM) || defined(WITH_DISAM) || defined(WITH_VBISAM) || defined(WITH_INDEX_EXTFH)
300304

301305
#ifdef WITH_DB
@@ -6018,6 +6022,8 @@ cob_file_return (cob_file *f)
60186022
}
60196023
}
60206024

6025+
#if defined(WITH_CISAM) || defined(WITH_DISAM) || defined(WITH_VBISAM)
6026+
60216027
/*
60226028
** Using the offset:length of the (component parts) of the ix_cob_key key,
60236029
** extract the key-value from the given data record.
@@ -6067,3 +6073,5 @@ static int keycmp (
60676073
free (pb_key2);
60686074
return (cmp);
60696075
}
6076+
6077+
#endif

0 commit comments

Comments
 (0)