Check-in [2ae4c0df0a]
Overview
Comment:Began adding IPv6 support
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | 0.1.17
Files: files | file ages | folders
SHA1: 2ae4c0df0a6278ef97af19291c6054e7dc18ad03
User & Date: rkeene on 2005-03-05 11:30:28
Other Links: manifest | tags
Context
2005-07-18
11:54
Updated configure process on Win32 to use DLL base. Fixed "lc_cleanup" causing segfaults. check-in: 793852910f user: rkeene tags: trunk, 0.1.18
2005-03-05
11:30
Began adding IPv6 support check-in: 2ae4c0df0a user: rkeene tags: trunk, 0.1.17
2004-12-25
20:00
Fixed last fix for Mac OS X shared libraries, oops. libconfig 0.1.16 check-in: 4d7bd96b4e user: rkeene tags: trunk, 0.1.16
Changes

Modified aclocal.m4 from [c9951d60be] to [c82f946580].

   132    132   		cygwin*)
   133    133   			SHOBJEXT="dll"
   134    134   			SHOBJFLAGS="-fPIC -DPIC"
   135    135   			CFLAGS="$CFLAGS -mms-bitfields"
   136    136   			CPPFLAGS="$CPPFLAGS -mms-bitfields"
   137    137   			SHOBJLDFLAGS='-shared -Wl,--enable-auto-image-base -Wl,--output-def,$[@].def,--out-implib,$[@].a'
   138    138   			;;
   139         -
   140    139   	esac
   141    140   ])
   142    141   
   143    142   
   144    143   AC_DEFUN(DC_ASK_OPTLIB, [
   145    144     AC_ARG_WITH($5, [  --with-$5 $4], [
   146    145   # Specified

Modified configure from [26f4f96e22] to [148d79f3e2].

     1      1   #! /bin/sh
     2      2   # From configure.ac Revision .
     3      3   # Guess values for system-dependent variables and create Makefiles.
     4         -# Generated by GNU Autoconf 2.59 for libconfig 0.1.16.
            4  +# Generated by GNU Autoconf 2.59 for libconfig 0.1.17.
     5      5   #
     6      6   # Copyright (C) 2003 Free Software Foundation, Inc.
     7      7   # This configure script is free software; the Free Software Foundation
     8      8   # gives unlimited permission to copy, distribute and modify it.
     9      9   ## --------------------- ##
    10     10   ## M4sh Initialization.  ##
    11     11   ## --------------------- ##
................................................................................
   264    264   # This variable seems obsolete.  It should probably be removed, and
   265    265   # only ac_max_sed_lines should be used.
   266    266   : ${ac_max_here_lines=38}
   267    267   
   268    268   # Identity of this package.
   269    269   PACKAGE_NAME='libconfig'
   270    270   PACKAGE_TARNAME='libconfig'
   271         -PACKAGE_VERSION='0.1.16'
   272         -PACKAGE_STRING='libconfig 0.1.16'
          271  +PACKAGE_VERSION='0.1.17'
          272  +PACKAGE_STRING='libconfig 0.1.17'
   273    273   PACKAGE_BUGREPORT=''
   274    274   
   275    275   # Factoring default headers for most tests.
   276    276   ac_includes_default="\
   277    277   #include <stdio.h>
   278    278   #if HAVE_SYS_TYPES_H
   279    279   # include <sys/types.h>
................................................................................
   774    774   #
   775    775   # Report the --help message.
   776    776   #
   777    777   if test "$ac_init_help" = "long"; then
   778    778     # Omit some internal or obsolete options to make the list less imposing.
   779    779     # This message is too long to be a string in the A/UX 3.1 sh.
   780    780     cat <<_ACEOF
   781         -\`configure' configures libconfig 0.1.16 to adapt to many kinds of systems.
          781  +\`configure' configures libconfig 0.1.17 to adapt to many kinds of systems.
   782    782   
   783    783   Usage: $0 [OPTION]... [VAR=VALUE]...
   784    784   
   785    785   To assign environment variables (e.g., CC, CFLAGS...), specify them as
   786    786   VAR=VALUE.  See below for descriptions of some of the useful variables.
   787    787   
   788    788   Defaults for the options are specified in brackets.
................................................................................
   835    835     --build=BUILD     configure for building on BUILD [guessed]
   836    836     --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   837    837   _ACEOF
   838    838   fi
   839    839   
   840    840   if test -n "$ac_init_help"; then
   841    841     case $ac_init_help in
   842         -     short | recursive ) echo "Configuration of libconfig 0.1.16:";;
          842  +     short | recursive ) echo "Configuration of libconfig 0.1.17:";;
   843    843      esac
   844    844     cat <<\_ACEOF
   845    845   
   846    846   Optional Features:
   847    847     --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   848    848     --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   849    849     --enable-small          Enable small build of libconfig. (disabled)
................................................................................
   956    956       cd $ac_popdir
   957    957     done
   958    958   fi
   959    959   
   960    960   test -n "$ac_init_help" && exit 0
   961    961   if $ac_init_version; then
   962    962     cat <<\_ACEOF
   963         -libconfig configure 0.1.16
          963  +libconfig configure 0.1.17
   964    964   generated by GNU Autoconf 2.59
   965    965   
   966    966   Copyright (C) 2003 Free Software Foundation, Inc.
   967    967   This configure script is free software; the Free Software Foundation
   968    968   gives unlimited permission to copy, distribute and modify it.
   969    969   _ACEOF
   970    970     exit 0
   971    971   fi
   972    972   exec 5>config.log
   973    973   cat >&5 <<_ACEOF
   974    974   This file contains any messages produced by compilers while
   975    975   running configure, to aid debugging if configure makes a mistake.
   976    976   
   977         -It was created by libconfig $as_me 0.1.16, which was
          977  +It was created by libconfig $as_me 0.1.17, which was
   978    978   generated by GNU Autoconf 2.59.  Invocation command line was
   979    979   
   980    980     $ $0 $@
   981    981   
   982    982   _ACEOF
   983    983   {
   984    984   cat <<_ASUNAME
................................................................................
  1425   1425   		cygwin*)
  1426   1426   			SHOBJEXT="dll"
  1427   1427   			SHOBJFLAGS="-fPIC -DPIC"
  1428   1428   			CFLAGS="$CFLAGS -mms-bitfields"
  1429   1429   			CPPFLAGS="$CPPFLAGS -mms-bitfields"
  1430   1430   			SHOBJLDFLAGS='-shared -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a'
  1431   1431   			;;
  1432         -
  1433   1432   	esac
  1434   1433   
  1435   1434   
  1436   1435   ac_ext=c
  1437   1436   ac_cpp='$CPP $CPPFLAGS'
  1438   1437   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1439   1438   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
................................................................................
 17448  17447     echo
 17449  17448     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 17450  17449   ## Running $as_me. ##
 17451  17450   _ASBOX
 17452  17451   } >&5
 17453  17452   cat >&5 <<_CSEOF
 17454  17453   
 17455         -This file was extended by libconfig $as_me 0.1.16, which was
        17454  +This file was extended by libconfig $as_me 0.1.17, which was
 17456  17455   generated by GNU Autoconf 2.59.  Invocation command line was
 17457  17456   
 17458  17457     CONFIG_FILES    = $CONFIG_FILES
 17459  17458     CONFIG_HEADERS  = $CONFIG_HEADERS
 17460  17459     CONFIG_LINKS    = $CONFIG_LINKS
 17461  17460     CONFIG_COMMANDS = $CONFIG_COMMANDS
 17462  17461     $ $0 $@
................................................................................
 17508  17507   $config_headers
 17509  17508   
 17510  17509   Report bugs to <bug-autoconf@gnu.org>."
 17511  17510   _ACEOF
 17512  17511   
 17513  17512   cat >>$CONFIG_STATUS <<_ACEOF
 17514  17513   ac_cs_version="\\
 17515         -libconfig config.status 0.1.16
        17514  +libconfig config.status 0.1.17
 17516  17515   configured by $0, generated by GNU Autoconf 2.59,
 17517  17516     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 17518  17517   
 17519  17518   Copyright (C) 2003 Free Software Foundation, Inc.
 17520  17519   This config.status script is free software; the Free Software Foundation
 17521  17520   gives unlimited permission to copy, distribute and modify it."
 17522  17521   srcdir=$srcdir

Modified configure.ac from [4f70cf89d5] to [f782ded3ab].

     1      1   AC_REVISION($Revision $)
     2         -AC_INIT(libconfig, 0.1.16)
            2  +AC_INIT(libconfig, 0.1.17)
     3      3   AC_CONFIG_HEADER(config.h)
     4      4   
     5      5   dnl Find out about the host OS
     6      6   DC_CHK_OS_INFO
     7      7   
     8      8   dnl Checks for programs.
     9      9   AC_PROG_CC

Modified libconfig.c from [787b35b6d1] to [94dfe70fb7].

    51     51   	return(0);
    52     52   }
    53     53   
    54     54   static int lc_process_var_cidr(void *data, const char *value) {
    55     55   	return(0);
    56     56   }
    57     57   
    58         -static int lc_process_var_ip(void *data, const char *value) {
    59         -	uint32_t *dataval = NULL, retval = 0;
           58  +static int lc_process_var_hostname6(void *data, const char *value) {
           59  +}
           60  +
           61  +static int lc_process_var_hostname4(void *data, const char *value) {
           62  +}
           63  +
           64  +static int lc_process_var_ip6(void *data, const char *value) {
           65  +}
           66  +
           67  +static int lc_process_var_ip4(void *data, const char *value) {
           68  +	uint32_t *dataval, retval = 0;
    60     69   	const char *dotptr = NULL;
    61     70   	int tmpval = -1;
           71  +//	int dotcount
    62     72   
    63     73   	dataval = data;
    64     74   
    65     75   	dotptr = value;
    66     76   
    67     77   	while (1) {
    68     78   		tmpval = atoi(dotptr);
................................................................................
   274    284   		case LC_VAR_BOOL_BY_EXISTANCE:
   275    285   			return(lc_process_var_bool_byexistance(data, value));
   276    286   			break;
   277    287   		case LC_VAR_SIZE_SIZE_T:
   278    288   			return(lc_process_var_sizesizet(data, value));
   279    289   			break;
   280    290   		case LC_VAR_IP:
   281         -			return(lc_process_var_ip(data, value));
          291  +		case LC_VAR_IP4:
          292  +			return(lc_process_var_ip4(data, value));
          293  +			break;
          294  +		case LC_VAR_IP6:
          295  +			return(lc_process_var_ip6(data, value));
          296  +			break;
          297  +		case LC_VAR_HOSTNAME4:
          298  +			return(lc_process_var_hostname4(data, value));
          299  +			break;
          300  +		case LC_VAR_HOSTNAME6:
          301  +			return(lc_process_var_hostname6(data, value));
   282    302   			break;
   283    303   		case LC_VAR_CIDR:
   284    304   			return(lc_process_var_cidr(data, value));
   285    305   			break;
   286    306   		case LC_VAR_TIME:
   287    307   		case LC_VAR_DATE:
   288    308   		case LC_VAR_FILENAME:

Modified libconfig.h.in from [1f64289873] to [46fa13e1cf].

    37     37           LC_VAR_SECTION,
    38     38           LC_VAR_SECTIONSTART,
    39     39           LC_VAR_SECTIONEND,
    40     40           LC_VAR_BOOL_BY_EXISTANCE,
    41     41           LC_VAR_SIZE_SIZE_T,
    42     42   	LC_VAR_CIDR,
    43     43   	LC_VAR_IP,
           44  +	LC_VAR_IP4,
           45  +	LC_VAR_IP6,
           46  +	LC_VAR_HOSTNAME4,
           47  +	LC_VAR_HOSTNAME6,
    44     48   } lc_var_type_t;
    45     49   
    46     50   __BLANK_LINE__
    47     51   
    48     52   typedef enum {
    49     53           LC_FLAGS_VAR,
    50     54           LC_FLAGS_CMDLINE,