Changeset 2603
- Timestamp:
- 2001-06-21T14:35:31+12:00 (23 years ago)
- Location:
- trunk/gsdl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/configure
r2521 r2603 3182 3182 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then 3183 3183 echo "$ac_t""$gdbmdir" 1>&6 ; 3184 cat >> confdefs.h <<\EOF3185 #define HAVE_LIBGDBM 13186 EOF3187 3188 3184 else 3189 echo "$ac_t""can't find bothgdbm.h and libgdbm.a in $gdbmdir" 1>&6;3185 echo "$ac_t""can't find gdbm.h and libgdbm.a in $gdbmdir" 1>&6; 3190 3186 echo $ac_n "checking looking for GDBM library in default locations""... $ac_c" 1>&6 3191 echo "configure:31 92: checking looking for GDBM library in default locations" >&53187 echo "configure:3188: checking looking for GDBM library in default locations" >&5 3192 3188 fi 3193 3189 fi 3194 3190 3191 # look in default path and in /usr/local 3195 3192 if test -z "$GDBM_INCLUDE" ; then 3196 3193 # try in system directory 3197 3194 cat > conftest.$ac_ext <<EOF 3198 #line 319 9"configure"3195 #line 3196 "configure" 3199 3196 #include "confdefs.h" 3200 3197 #include <gdbm.h> … … 3204 3201 ; return 0; } 3205 3202 EOF 3206 if { (eval echo configure:320 7: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3203 if { (eval echo configure:3204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3207 3204 rm -rf conftest* 3208 3205 success=yes … … 3215 3212 fi 3216 3213 rm -f conftest* 3214 3215 if test $success = "no"; then 3216 # last chance - look in /usr/local (eg FreeBSD) 3217 GDBM_LIBPATH=-L/usr/local/lib 3218 GDBM_INCLUDE=-I/usr/local/include 3219 ac_save_CXXFLAGS="$CXXFLAGS" 3220 ac_save_LIBS="$LIBS" 3221 CXXFLAGS="$CXXFLAGS -I/usr/local/include" 3222 LIBS="$LIBS -L/usr/local/lib -lgdbm" 3223 cat > conftest.$ac_ext <<EOF 3224 #line 3225 "configure" 3225 #include "confdefs.h" 3226 #include <gdbm.h> 3227 #include <stdio.h> 3228 3229 int main() { 3230 printf("%s",gdbm_version); 3231 ; return 0; } 3232 EOF 3233 if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3234 rm -rf conftest* 3235 success=/usr/local 3236 else 3237 echo "configure: failed program was:" >&5 3238 cat conftest.$ac_ext >&5 3239 rm -rf conftest* 3240 success=no 3241 3242 fi 3243 rm -f conftest* 3244 CXXFLAGS=$ac_save_CXXFLAGS 3245 LIBS=$ac_save_LIBS 3246 fi 3247 3217 3248 echo "$ac_t""$success" 1>&6 3218 3249 if test $success = "no"; then 3219 3250 { echo "configure: error: GDBM Library not available - cannot install" 1>&2; exit 1; } 3220 3251 fi 3221 GDBM_LIBPATH= 3222 GDBM_INCLUDE= 3223 fi 3252 fi 3253 cat >> confdefs.h <<\EOF 3254 #define HAVE_LIBGDBM 1 3255 EOF 3256 3224 3257 3225 3258 … … 3227 3260 3228 3261 echo $ac_n "checking that Perl 5 is available""... $ac_c" 1>&6 3229 echo "configure:32 30: checking that Perl 5 is available" >&53262 echo "configure:3263: checking that Perl 5 is available" >&5 3230 3263 success="no" 3231 3264 pl_path="$PATH" … … 3257 3290 success=no 3258 3291 echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6 3259 echo "configure:32 60: checking "whether STL library has known faults"" >&53292 echo "configure:3293: checking "whether STL library has known faults"" >&5 3260 3293 3261 3294 cat > conftest.$ac_ext <<EOF 3262 #line 32 63"configure"3295 #line 3296 "configure" 3263 3296 #include "confdefs.h" 3264 3297 #include <vector> … … 3268 3301 ; return 0; } 3269 3302 EOF 3270 if { (eval echo configure:3 271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3303 if { (eval echo configure:3304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3271 3304 rm -rf conftest* 3272 3305 success=yes … … 3279 3312 if test $success = "no"; then 3280 3313 cat > conftest.$ac_ext <<EOF 3281 #line 3 282"configure"3314 #line 3315 "configure" 3282 3315 #include "confdefs.h" 3283 3316 #include <vector.h> … … 3287 3320 ; return 0; } 3288 3321 EOF 3289 if { (eval echo configure:3 290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3322 if { (eval echo configure:3323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3290 3323 rm -rf conftest* 3291 3324 success="yes" … … 3299 3332 if test $success = "no"; then 3300 3333 cat > conftest.$ac_ext <<EOF 3301 #line 33 02"configure"3334 #line 3335 "configure" 3302 3335 #include "confdefs.h" 3303 3336 #include <ospace\\std\\vector> … … 3307 3340 ; return 0; } 3308 3341 EOF 3309 if { (eval echo configure:33 10: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3342 if { (eval echo configure:3343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3310 3343 rm -rf conftest* 3311 3344 success="yes" -
trunk/gsdl/configure.in
r2521 r2603 208 208 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then 209 209 AC_MSG_RESULT($gdbmdir) ; 210 AC_DEFINE(HAVE_LIBGDBM , 1)211 210 else 212 AC_MSG_RESULT(can't find bothgdbm.h and libgdbm.a in $gdbmdir);211 AC_MSG_RESULT(can't find gdbm.h and libgdbm.a in $gdbmdir); 213 212 AC_MSG_CHECKING( looking for GDBM library in default locations) 214 213 fi 215 214 fi 216 215 216 # look in default path and in /usr/local 217 217 if test -z "$GDBM_INCLUDE" ; then 218 218 # try in system directory … … 224 224 success=no 225 225 ) 226 227 if test $success = "no"; then 228 # last chance - look in /usr/local (eg FreeBSD) 229 GDBM_LIBPATH=-L/usr/local/lib 230 GDBM_INCLUDE=-I/usr/local/include 231 ac_save_CXXFLAGS="$CXXFLAGS" 232 ac_save_LIBS="$LIBS" 233 CXXFLAGS="$CXXFLAGS -I/usr/local/include" 234 LIBS="$LIBS -L/usr/local/lib -lgdbm" 235 AC_TRY_LINK( 236 [#include <gdbm.h> 237 #include <stdio.h> 238 ], 239 [printf("%s",gdbm_version);], 240 success=/usr/local, 241 success=no 242 ) 243 CXXFLAGS=$ac_save_CXXFLAGS 244 LIBS=$ac_save_LIBS 245 fi 246 226 247 AC_MSG_RESULT($success) 227 248 if test $success = "no"; then 228 249 AC_MSG_ERROR(GDBM Library not available - cannot install) 229 250 fi 230 GDBM_LIBPATH= 231 GDBM_INCLUDE= 232 fi 251 fi 252 dnl I don't think anything actually checks this define, but... 253 AC_DEFINE(HAVE_LIBGDBM , 1) 233 254 234 255 AC_SUBST(GDBM_LIBPATH)
Note:
See TracChangeset
for help on using the changeset viewer.