From: <ma...@us...> - 2003-12-30 05:35:14
|
Update of /cvsroot/sharedaemon/ui-wx In directory sc8-pr-cvs1:/tmp/cvs-serv30631 Modified Files: configure Log Message: Now detects environment. Index: configure =================================================================== RCS file: /cvsroot/sharedaemon/ui-wx/configure,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- configure 26 Dec 2003 14:25:28 -0000 1.15 +++ configure 30 Dec 2003 05:35:05 -0000 1.16 @@ -19,6 +19,53 @@ ################################################################################ ## +# Checks for environment +# +check_env() { + echo -e "checking environment...\\t\\t\\t\\t\\c"; + env=`uname -s`; + case $env in + MINGW32_NT-5.1) + system=Mingw32; + ;; + MINGW32_NT-5.2) + system=Mingw32; + ;; + MINGW32_98-4.10) + system=Mingw32; + ;; + CYGWIN_NT-5.1) + system=Cygwin; + ;; + CYGWIN_NT-5.2) + system=Cygwin; + ;; + CYGWIN_98-4.10) + system=Cygwin; + ;; + Linux) + system=Linux; + ;; + FreeBSD) + system=BSD; + ;; + NetBSD) + system=BSD; + ;; + OpenBSD) + system=BSD; + ;; + SunOS) + system=SunOS; + ;; + *) + system=Unknown; + ;; + esac; + echo $system; +} + +## # Parses command-line options and sets variables as needed. # parse_cmdline() { @@ -102,6 +149,11 @@ shift; done; + if test $system = "FreeBSD"; then colours=0; fi; + if test $system = "NetBSD"; then colours=0; fi; + if test $system = "OpenBSD"; then colours=0; fi; + if test $system = "Cygwin"; then colours=0; fi; + echo -e "checking for --disable-colours\\t\\t\\t\\c"; if test $colours = 1; then colour_default="\33[0;2m" @@ -399,6 +451,10 @@ fi; fi; + if test $system = "FreeBSD"; then cppflags="$cppflags -D__BSD__"; fi; + if test $system = "NetBSD"; then cppflags="$cppflags -D__BSD__"; fi; + if test $system = "OpenBSD"; then cppflags="$cppflags -D__BSD__"; fi; + if test $show_flags = 1; then print_cpp_flags=" with flags: `$wxconfig --cxxflags` $cppflags $include"; print_link_flags=" with flags: $linkflags"; @@ -462,6 +518,7 @@ ## # Main script execution part. # +check_env; parse_cmdline $@; check_wxconfig; check_wxversion; |