/[cvs]/eggdrop1.9/configure.in
ViewVC logotype

Diff of /eggdrop1.9/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.4 by fabian, Sat Oct 9 19:31:56 1999 UTC revision 1.5 by fabian, Sun Oct 10 00:56:33 1999 UTC
# Line 15  AC_PROG_CC Line 15  AC_PROG_CC
15  dnl no cross-compiling!  dnl no cross-compiling!
16  if test ! "x${cross_compiling}" = "xno"  if test ! "x${cross_compiling}" = "xno"
17  then  then
18    echo ""    echo "" >&2
19    echo "This system does not appear to have a working C compiler."    echo "This system does not appear to have a working C compiler." >&2
20    echo "A working C compiler is required to compile eggdrop."    echo "A working C compiler is required to compile eggdrop." >&2
21    echo ""    echo "" >&2
22    exit 1    exit 1
23  fi  fi
24    
# Line 134  case $system in Line 134  case $system in
134      AC_CHECK_PROG(GMAKE,gmake,gmake)      AC_CHECK_PROG(GMAKE,gmake,gmake)
135      if test "x${GMAKE}" = "x"      if test "x${GMAKE}" = "x"
136      then      then
137        echo ""        echo "" >&2
138        echo "Yoicks! you have BSD/OS & you dont have 'gmake', you may"        echo "Yoicks! you have BSD/OS & you dont have 'gmake', you may" >&2
139        echo "not be able to compile the bot successfully :("        echo "not be able to compile the bot successfully :(" >&2
140        echo ""        echo "" >&2
141      fi      fi
142      ;;      ;;
143    *BSD)    *BSD)
# Line 169  case $system in Line 169  case $system in
169      SHLIB_STRIP="touch"      SHLIB_STRIP="touch"
170      AC_DEFINE(MODULES_OK)      AC_DEFINE(MODULES_OK)
171      ;;      ;;
172        1.0|1.1|1.2|1.3)        1.0|1.1|1.2)
173      AC_MSG_RESULT(pre 1.4)      AC_MSG_RESULT(pre 1.3)
174      SHLIB_LD='ld -R -export $@:'      SHLIB_LD='ld -R -export $@:'
175      AC_DEFINE(OSF1_HACKS)      AC_DEFINE(OSF1_HACKS)
176      AC_DEFINE(MODULES_OK)      AC_DEFINE(MODULES_OK)
# Line 279  AC_CHECK_FUNCS(dprintf bzero uname vsnpr Line 279  AC_CHECK_FUNCS(dprintf bzero uname vsnpr
279    
280  if test "x${ac_cv_func_vsprintf}" = "xno"  if test "x${ac_cv_func_vsprintf}" = "xno"
281  then  then
282    echo ""    echo "" >&2
283    echo "Your system does not have the sprintf/vsprintf libraries."    echo "Your system does not have the sprintf/vsprintf libraries." >&2
284    echo "These are required to compile almost anything.  Sorry."    echo "These are required to compile almost anything.  Sorry." >&2
285    echo ""    echo "" >&2
286    exit 1    exit 1
287  fi  fi
288    
289  if test "x${ac_cv_header_stdc}" = "xno"  if test "x${ac_cv_header_stdc}" = "xno"
290  then  then
291    echo ""    echo "" >&2
292    echo "Your system must support ANSI C Header files."    echo "Your system must support ANSI C Header files." >&2
293    echo "These are required for the language support. Sorry."    echo "These are required for the language support. Sorry." >&2
294    echo ""    echo "" >&2
295    exit 1    exit 1
296  fi  fi
297    
# Line 328  tclheaderpaths="/usr/local/include /usr/ Line 328  tclheaderpaths="/usr/local/include /usr/
328      /usr/include $HOME/include $HOME/tcl/include $HOME"      /usr/include $HOME/include $HOME/tcl/include $HOME"
329    
330  # sanity checking to make sure either both or neither TCLLIB and TCLINC are set  # sanity checking to make sure either both or neither TCLLIB and TCLINC are set
331  if test ! "x${TCLLIB}" = "x" && test "x${TCLINC}" = "x"  if test ! "x${TCLLIB}" = "x"
332  then  then
333    echo ""    if test "x${TCLINC}" = "x"
334    echo "You set the environment variable TCLLIB, but I failed to detect TCLINC."    then
335    echo "Please set both if you wish to use them."      echo "" >&2
336    echo "configure will now try to autodetect both libtcl and tcl.h"      echo "Environment variable TCLLIB was set, but I did not detect TCLINC." >&2
337    echo ""      echo "Please set both TCLLIB and TCLINC correctly if you wish to use them." >&2
338        echo "configure will now attempt to autodetect both libtcl and tcl.h..." >&2
339        echo "" >&2
340    unset TCLLIB    unset TCLLIB
341      fi
342  else  else
343    if test ! "x${TCLINC}" = "x"    if test ! "x${TCLINC}" = "x"
344    then    then
345      echo ""      echo "" >&2
346      echo "You set the environment variable TCLINC, but I failed to detect TCLLIB."      echo "Environment variable TCLINC was set, but I did not detect TCLLIB." >&2
347      echo "Please set both if you wish to use them."      echo "Please set both TCLLIB and TCLINC correctly if you wish to use them." >&2
348      echo "configure will now try to autodetect both libtcl and tcl.h"      echo "configure will now attempt to autodetect both libtcl and tcl.h..." >&2
349      echo ""      echo "" >&2
350      unset TCLINC      unset TCLINC
351    fi    fi
352  fi  fi
# Line 380  else Line 383  else
383      done      done
384      if test "x${TCLLIBFN}" = "x"      if test "x${TCLLIBFN}" = "x"
385      then      then
386        echo "Environment variable TCLLIB is set, but incorrect."        echo "" >&2
387          echo "Environment variable TCLLIB was set, but incorrect." >&2
388          echo "Please set both TCLLIB and TCLINC correctly if you wish to use them." >&2
389          echo "configure will now attempt to autodetect both libtcl and tcl.h..." >&2
390          echo "" >&2
391        unset TCLLIB        unset TCLLIB
392          unset TCLINC
393      fi      fi
394    fi    fi
395    
# Line 435  else Line 443  else
443    then    then
444      if test ! -r "$TCLINC/$TCLINCFN"      if test ! -r "$TCLINC/$TCLINCFN"
445      then      then
446        echo "Environment variable TCLINC is set, but incorrect."        echo "" >&2
447        unset TCLINC        echo "Environment variable TCLINC was set, but incorrect." >&2
448          echo "Please set both TCLLIB and TCLINC correctly if you wish to use them." >&2
449          echo "configure cannot safely continue now..." >&2
450          echo "" >&2
451          exit 1
452      fi      fi
453    fi    fi
454    
# Line 489  fi # test tclincname Line 501  fi # test tclincname
501  # done looking, now either TCLLIB & TCLINC are both set, or neither is set  # done looking, now either TCLLIB & TCLINC are both set, or neither is set
502  if test "x${TCLLIB}" = "x"  if test "x${TCLLIB}" = "x"
503  then  then
504    echo ""    echo "" >&2
505    echo "I can't find Tcl on this system."    echo "I can't find Tcl on this system." >&2
506    echo ""    echo "" >&2
507    echo "Eggdrop now requires Tcl to compile.  If you already have Tcl"    echo "Eggdrop now requires Tcl to compile.  If you already have Tcl" >&2
508    echo "installed on this system, and I just wasn't looking in the right"    echo "installed on this system, and I just wasn't looking in the right" >&2
509    echo "place for it, set the environment variables TCLLIB and TCLINC so"    echo "place for it, set the environment variables TCLLIB and TCLINC so" >&2
510    echo "I will know where to find 'libtcl.a' (or 'libtcl.so') and 'tcl.h'"    echo "I will know where to find 'libtcl.a' (or 'libtcl.so') and 'tcl.h'" >&2
511    echo "(respectively).  Then run 'configure' again."    echo "(respectively).  Then run 'configure' again." >&2
512    echo ""    echo "" >&2
513    echo "Read the README file if you don't know what Tcl is or how to get"    echo "Read the README file if you don't know what Tcl is or how to get" >&2
514    echo "it and install it."    echo "it and install it." >&2
515    echo ""    echo "" >&2
516    exit 1    exit 1
517  else  else
518    
# Line 532  else Line 544  else
544      TCL_REQS="$TCLLIB/lib$TCLLIBFN$TCLLIBEXT"      TCL_REQS="$TCLLIB/lib$TCLLIBFN$TCLLIBEXT"
545      TCL_LIBS="-L$TCLLIB -l$TCLLIBFN -lm"      TCL_LIBS="-L$TCLLIB -l$TCLLIBFN -lm"
546    else    else
547      echo ""      echo "" >&2
548      echo "Your tcl version is much too old for eggdrop to use."      echo "Your Tcl version is much too old for eggdrop to use." >&2
549      echo "I suggest you download and complie a more recent version."      echo "I suggest you download and complie a more recent version." >&2
550      echo "The most reliable current version is 8.2.1"      echo "The most reliable current version is 8.2.1" >&2
551      echo ""      echo "" >&2
552      exit 1      exit 1
553    fi    fi
554    
555    if test "x${TCLLIBEXT}" = "x.a"    if test "x${TCLLIBEXT}" = "x.a"
556    then    then
557      echo ""      echo "" >&2
558      echo "Your libtcl is not a shared library."      echo "Your libtcl is not a shared library." >&2
559      echo "configure will set default make type to static..."      echo "configure will set default make type to static..." >&2
560      echo ""      echo "" >&2
561      DEFAULT_MAKE=static      DEFAULT_MAKE=static
562    fi    fi
563    
# Line 563  if test $need_dl = 1 && test "x${ac_cv_f Line 575  if test $need_dl = 1 && test "x${ac_cv_f
575  then  then
576    if test "$LINUX" = "yes"    if test "$LINUX" = "yes"
577    then    then
578      echo "Since you are on a Linux system, this has a known problem,"      echo "Since you are on a Linux system, this has a known problem," >&2
579      if test -r "/lib/libdl.so.1"      if test -r "/lib/libdl.so.1"
580      then      then
581        echo "and you seem to have it, I know a kludge for it,"        echo "and you seem to have it, I know a kludge for it," >&2
582        echo "so we'll do that..."        echo "so we'll do that..." >&2
583        echo ""        echo "" >&2
584        AC_DEFINE(HAVE_DLOPEN)        AC_DEFINE(HAVE_DLOPEN)
585        LIBS="/lib/libdl.so.1 $LIBS"        LIBS="/lib/libdl.so.1 $LIBS"
586        got_dl=1        got_dl=1
587      else      else
588        echo "which you DONT seem to have... doh!"        echo "which you DONT seem to have... doh!" >&2
589        echo "perhaps you may still have the stuff lying around somewhere"        echo "perhaps you may still have the stuff lying around somewhere" >&2
590        echo "if you work out where it is, add it to your XLIBS= lines"        echo "if you work out where it is, add it to your XLIBS= lines" >&2
591        echo "and #define HAVE_DLOPEN in config.h"        echo "and #define HAVE_DLOPEN in config.h" >&2
592        echo ""        echo "" >&2
593        echo "we'll proceed on anyway, but you probably won't be able"        echo "we'll proceed on anyway, but you probably won't be able" >&2
594        echo "to 'make eggdrop' but you might be able to make the"        echo "to 'make eggdrop' but you might be able to make the" >&2
595        echo "static bot (I'll default your make to this version)."        echo "static bot (I'll default your make to this version)." >&2
596        DEFAULT_MAKE=static        DEFAULT_MAKE=static
597      fi      fi
598    else    else
599      echo "You don't seem to have libdl anywhere I can find it, this will"      echo "You don't seem to have libdl anywhere I can find it, this will" >&2
600      echo "prevent you from doing dynamic modules, I'll set your default"      echo "prevent you from doing dynamic modules, I'll set your default" >&2
601      echo "make to static linking."      echo "make to static linking." >&2
602      DEFAULT_MAKE=static      DEFAULT_MAKE=static
603    fi    fi
604  fi  fi
# Line 607  AC_SUBST(CP2) Line 619  AC_SUBST(CP2)
619  AC_SUBST(CP3)  AC_SUBST(CP3)
620  AC_SUBST(EGGEXEC)  AC_SUBST(EGGEXEC)
621  AC_SUBST(CC)  AC_SUBST(CC)
 AC_SUBST(RESLIB)  
622  AC_SUBST(SHLIB_LD)  AC_SUBST(SHLIB_LD)
623  AC_SUBST(SHLIB_CC)  AC_SUBST(SHLIB_CC)
624  AC_SUBST(SHLIB_STRIP)  AC_SUBST(SHLIB_STRIP)
625    AC_SUBST(RESLIB)
626  AC_SUBST(BEL_MOD_LD)  AC_SUBST(BEL_MOD_LD)
627  AC_SUBST(BEL_MOD_CC)  AC_SUBST(BEL_MOD_CC)
628  AC_SUBST(BEL_MOD_STRIP)  AC_SUBST(BEL_MOD_STRIP)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23