Commit 5171d8eb authored by Pekka Pessi's avatar Pekka Pessi

Added sofia_config.h and sofia_config.c (currently in nua subdirectory).

darcs-hash:20051024235647-65a35-2142184a866f6c72be278855d3e6b412fa10c244.gz
parent b0d864c9
......@@ -34,10 +34,11 @@ TESTS = test_nua
BUILT_SOURCES = nua_tag_ref.c
include_HEADERS = nua.h nua_stack.h nua_tag.h
include_HEADERS = nua.h nua_stack.h nua_tag.h sofia_config.h
libnua_la_SOURCES = nua.c nua_common.c nua_stack.c \
nua_tag.c nua_tag_ref.c
nua_tag.c nua_tag_ref.c \
sofia_config.c
COVERAGE_INPUT = $(libnua_la_SOURCES) $(include_HEADERS)
......@@ -61,7 +62,8 @@ LDADD = libnua.la \
# ----------------------------------------------------------------------
# Install and distribution rules
EXTRA_DIST = Doxyfile nua.docs $(BUILT_SOURCES)
EXTRA_DIST = Doxyfile nua.docs $(BUILT_SOURCES) \
sofia_config.h.in
# ----------------------------------------------------------------------
# Sofia specific rules
......
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: Pekka Pessi <pekka.pessi@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
/**@file sofia_config.c Provide sofia-sip features.
*
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Mon Oct 24 14:51:32 2005 ppessi
*/
#include "config.h"
#include <stddef.h>
#include "su_configure.h"
#include "sofia_config.h"
char const *sofia_name_version = PACKAGE_STRING;
#if HAVE_SOFIA_SIGCOMP
#include <sigcomp.h>
char const *sofia_has_sigcomp = sigcomp_package_version;
#else
char const *sofia_has_sigcomp = NULL;
#endif
#if HAVE_OPENSSL
#include <tport_tls.h>
char const *sofia_has_tls = tls_version;
#else
char const *sofia_has_tls = NULL;
#endif
#if HAVE_SOFIA_STUN
char const *sofia_has_stun = NULL;
#else
char const *sofia_has_stun = NULL;
#endif
#if SU_HAVE_IN6
char const *sofia_has_ipv6 = "v6";
#else
char const *sofia_has_ipv6 = NULL;
#endif
char const *sofia_has_smime = NULL;
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: Pekka Pessi <pekka.pessi@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
/**@file sofia_version.h
* @brief Nokia User Agent Library
*
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Wed Feb 14 17:09:44 2001 ppessi
*/
#ifndef SOFIA_VERSION_H
/** Defined when @b <sofia_version.h> has been included. */
#define SOFIA_VERSION_H
/** Define as current Sofia version */
#define SOFIA_VERSION @PACKAGE_VERSION@
/** Define as current Sofia name and version */
#define SOFIA_NAME_VERSION @PACKAGE_STRING@
extern char const *sofia_name_version;
extern char const *sofia_has_sigcomp;
extern char const *sofia_has_tls;
extern char const *sofia_has_stun;
extern char const *sofia_has_ipv6;
extern char const *sofia_has_smime;
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment